Compare commits

...

7 Commits

Author SHA1 Message Date
Lee ebaa2ddaff refactor(tag fix)
Co-authored-by: Sebastian Palmqvist <PalmN72@users.noreply.github.com>
2023-10-27 14:34:54 +02:00
Lee b0010e6e7a refactor(tag fix)
Co-authored-by: Sebastian Palmqvist <PalmN72@users.noreply.github.com>
2023-10-27 14:14:15 +02:00
Lee 1102812257 refactor(added config email)
Co-authored-by: Sebastian Palmqvist <PalmN72@users.noreply.github.com>
2023-10-27 12:15:42 +02:00
Palmn72 6b69aba1ec test(hardcoded git-tag)
Co-authored-by: Lee Sheppard<coolusername244@users.noreply.github.com>
2023-10-27 11:51:26 +02:00
Palmn72 682ba6cf27 test(bumping gradle versioncode manually)
Co-authored-by: Lee Sheppard<coolusername244@users.noreply.github.com>
2023-10-27 11:28:32 +02:00
Lee 6a1c29cc70 refactor(trying somthing that may not work)
Co-authored-by: Sebastian Palmqvist <PalmN72@users.noreply.github.com>
2023-10-27 11:17:12 +02:00
Lee 7b6f47a26c refactor(amended version and key alias)
Co-authored-by: Sebastian Palmqvist <PalmN72@users.noreply.github.com>
2023-10-27 10:45:46 +02:00
2 changed files with 9 additions and 5 deletions

View File

@ -78,7 +78,7 @@ android {
applicationId "com.oppna_skolplattformen_new.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionCode 2
versionName "1.0"
}
signingConfigs {

12
apps/skolplattformen-app-new/android/fastlane/Fastfile Normal file → Executable file
View File

@ -23,6 +23,7 @@ platform :android do
# versionNameOverride = "1.9.0"
if versionNameOverride.nil?
releaseNameSemVerArr = google_play_track_release_names(track: 'internal').max.split('.')
puts "releaseNameSemVerArr: #{releaseNameSemVerArr}"
releaseNameSemVerArr[2] = (releaseNameSemVerArr.last.to_i + 1).to_s
ENV['VERSION_NAME'] = releaseNameSemVerArr.join('.')
ENV['SUPPLY_VERSION_NAME'] = ENV['VERSION_NAME']
@ -91,14 +92,17 @@ platform :android do
mapping_paths: [mappingFilePath, symbolsFilePath]
)
system('git config user.email "github@example.com"')
system('git config user.email "leesheppard2404@gmail.com"')
system('git config user.name "Github Actions Android Pipeline"')
gitTagName = releaseNameSemVerArr.join('.').gsub(/[\s()]/, '')
add_git_tag(
grouping: "builds",
includes_lane: true,
prefix: "v#{ENV['VERSION_NAME']}-",
build_number: ENV['VERSION_CODE'],
# prefix: "v#{ENV['VERSION_NAME']}-",
# build_number: ENV['VERSION_CODE'],
tag: gitTagName
)
push_to_git_remote(
tags: true