refactor(fixing version code issue)

Co-authored-by: Sebastian Palmqvist <PalmN72@users.noreply.github.com>
This commit is contained in:
Lee 2023-10-30 15:11:08 +01:00
parent 5b594e75e4
commit b1927496db
3 changed files with 0 additions and 14 deletions

View File

@ -7,6 +7,3 @@ gem 'bundler'
gem 'cocoapods', '~> 1.12'
gem 'fastlane'
gem 'dotenv'
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)

View File

@ -27,9 +27,6 @@ platform :android do
ENV['VERSION_NAME'] = releaseNameSemVerArr.join('.')
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: 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
puts "echo #{commandargs}"
@ -37,9 +34,6 @@ platform :android do
else
ENV['VERSION_NAME'] = versionNameOverride
end
puts "test"
puts "Hello there - #{ENV['VERSION_NAME']}"
puts "Hello there - #{ENV['VERSION_CODE']}"
puts "Compiling #{ENV['VERSION_NAME']} (#{ENV['VERSION_CODE']}) "
# Dir.pwd when running through Fastlane is app/android/fastlane

View File

@ -1,5 +0,0 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
gem 'fastlane-plugin-increment_version_code'