Skip to content

Commit 80dd3d8

Browse files
author
Jonas Greifenhain
committed
fastlane: Add lane for Android production deployments
1 parent c34f59b commit 80dd3d8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

open_wearable/android/fastlane/Fastfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,29 @@ platform :android do
4040
)
4141
end
4242
end
43+
44+
lane :production_deploy do
45+
begin
46+
sh "./get-flutter-dependencies.sh"
47+
sh "flutter build appbundle --release"
48+
49+
gradle(
50+
task: 'bundle',
51+
build_type: 'Release',
52+
properties: {
53+
# This injection seems not to be supported anymore and got replaced in build.gradle
54+
# "android.injected.version.code" => version,
55+
"android.injected.signing.store.file" => ENV["OPEN_WEARABLE_APP_ANDROID_KEYSTORE_PATH"],
56+
"android.injected.signing.store.password" => ENV["OPEN_WEARABLE_APP_ANDROID_KEYSTORE_PASSWORD"],
57+
"android.injected.signing.key.alias" => "upload",
58+
"android.injected.signing.key.password" => ENV["OPEN_WEARABLE_APP_ANDROID_KEYSTORE_PASSWORD"],
59+
}
60+
)
61+
upload_to_play_store(
62+
track: 'production',
63+
skip_upload_changelogs: false,
64+
aab: "../build/app/outputs/bundle/release/app-release.aab"
65+
)
66+
end
67+
end
4368
end

0 commit comments

Comments
 (0)