refactor(fixing version code issue)

Co-authored-by: Sebastian Palmqvist <PalmN72@users.noreply.github.com>
This commit is contained in:
Lee 2023-10-30 14:37:28 +01:00
parent 90cfe49e71
commit 0abbee615f
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ platform :android do
ENV['GITTAGNAME'] = ENV['VERSION_NAME'].gsub(/\s+/, '').match(/\((.*?)\)/)[1] + '.' + ENV['VERSION_CODE']
ENV['SUPPLY_VERSION_NAME'] = ENV['VERSION_NAME']
increment_version_code(
gradle_file_path: "../app/build.gradle",
gradle_file_path: File.join(Dir.pwd, '..', 'app', "build.gradle"),
)
versionFile = File.join(Dir.pwd, '..', 'version', 'version.properties').to_s
commandargs = "-n \"VERSION=#{ENV['VERSION_NAME']}\" > #{versionFile}".to_s