Skip to content

Commit

Permalink
refactor(fixing version code issue)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Palmqvist <[email protected]>
  • Loading branch information
coolusername244 and PalmN72 committed Oct 30, 2023
1 parent 5b594e7 commit b192749
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions apps/skolplattformen-app-new/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6 changes: 0 additions & 6 deletions apps/skolplattformen-app-new/android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,13 @@ 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}"
system("echo", commandargs)
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
Expand Down
5 changes: 0 additions & 5 deletions apps/skolplattformen-app-new/fastlane/Pluginfile

This file was deleted.

0 comments on commit b192749

Please sign in to comment.