Last active
December 11, 2023 06:09
-
-
Save victory316/778ef914224f76430eacca3cc77ce350 to your computer and use it in GitHub Desktop.
APK build anb publish to firebase with fastlane
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Submit a new Release Build to Firebase App Distribution" | |
lane :publishProdRelease do | |
gradle( | |
task: 'assemble', | |
flavor: "prod", | |
build_type: 'Release', | |
print_command: true, | |
properties: { | |
"android.injected.signing.store.file" => ENV["KEYSTORE_FILE"], | |
"android.injected.signing.store.password" => ENV["KEYSTORE_PASSWORD"], | |
"android.injected.signing.key.alias" => ENV["KEY_ALIAS"], | |
"android.injected.signing.key.password" => ENV["KEY_PASSWORD"] | |
} | |
) | |
firebase_app_distribution( | |
service_credentials_file: "firebase_credentials.json", | |
app: ENV["APP_ID"], | |
groups: "QA", | |
release_notes: "Test version of prodRelease." | |
) | |
end | |
desc "Submit a new Release Build to Firebase App Distribution in local environment" | |
lane :publishProdReleaseLocal do | |
keystore_path = File.join(Dir.pwd, "release_apk.jks") | |
gradle( | |
task: 'assemble', | |
flavor: "prod", | |
build_type: 'Release', | |
print_command: true, | |
properties: { | |
"android.injected.signing.store.file" => keystore_path, | |
"android.injected.signing.store.password" => "password", | |
"android.injected.signing.key.alias" => "alias", | |
"android.injected.signing.key.password" => "password" | |
} | |
) | |
firebase_app_distribution( | |
app: "app id", | |
groups: "qa group", | |
release_notes: "sample release note" | |
) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment