chore: add play store actions to Fastfile

This commit is contained in:
Lei Nelissen
2023-06-13 23:07:17 +02:00
parent 2fa57a51c9
commit 9abe37df70
2 changed files with 19 additions and 8 deletions

View File

@@ -102,7 +102,7 @@ android {
applicationId "nl.moeilijkedingen.jellyfinaudioplayer" applicationId "nl.moeilijkedingen.jellyfinaudioplayer"
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 18 versionCode 21
versionName "2.1.0" versionName "2.1.0"
} }

View File

@@ -5,10 +5,10 @@ package = load_json(json_path: "package.json")
platform :ios do platform :ios do
before_all do before_all do
get_certificates( get_certificates(
output_path: 'certificates/' output_path: "certificates/"
) )
get_provisioning_profile( get_provisioning_profile(
output_path: 'certificates/', output_path: "certificates/",
filename: "provisioning.mobileprovision", filename: "provisioning.mobileprovision",
fail_on_name_taken: false, fail_on_name_taken: false,
) )
@@ -75,8 +75,8 @@ platform :ios do
finalize: true finalize: true
) )
sentry_upload_dsym( sentry_upload_dsym(
dsym_path: 'build/Fintunes.app.dSYM.zip', dsym_path: "build/Fintunes.app.dSYM.zip",
info_plist: 'ios/Fintunes/Info.plist', info_plist: "ios/Fintunes/Info.plist",
) )
sentry_upload_file( sentry_upload_file(
version: package["version"], version: package["version"],
@@ -103,7 +103,7 @@ platform :android do
desc "Generate beta build" desc "Generate beta build"
lane :beta do lane :beta do
android_set_version_name( android_set_version_name(
version_name: package['version'], version_name: package["version"],
gradle_file: "android/app/build.gradle" gradle_file: "android/app/build.gradle"
) )
android_set_version_code( android_set_version_code(
@@ -114,14 +114,25 @@ platform :android do
build_type: "Release", build_type: "Release",
project_dir: "android" project_dir: "android"
) )
gradle(
task: "bundle",
build_type: "Release",
project_dir: "android"
)
upload_to_play_store(
track: "beta",
skip_upload_apk: true
)
end end
lane :release do lane :release do
gradle( gradle(
task: "bundle", task: "bundle",
build_type: 'Release', build_type: "Release",
project_dir: "android" project_dir: "android"
) )
upload_to_play_store upload_to_play_store(
skip_upload_apk: true
)
end end
end end