Image for building android (SDK 21 to latest) and deploying to Play Store and Firebase on Gitlab CI
3.6K
Image for building android apps and deploying to Google Play Store and Firebase App Distributions on Gitlab CI
image: jpsison/android-fastlane-firebase:sdk-<SDK Version>
... and yours will be here ^_^
FIREBASE_TOKENThe following is an example of lane to create a staging release build and deploy to Firebase App Distribution
desc "Submit a new staging build to Firebase App Distribution"
lane :stageDeploy do |options|
if options[:group]
build_android_app(
task: "assemble",
flavor: "stage",
build_type: "release"
)
firebase_app_distribution(
app: "<your-app-id-here>",
groups: options[:group], //we usually notify our testers when a new build is available, you can create group on firebase console
release_notes_file: "./release-notes.txt",
firebase_cli_path: "/usr/local/bin/firebase"
)
else
UI.user_error!("Missing group name!")
end
end
And then you can run fastlane stageDeploy group:internal-testers or you can just simply run fastlane stageDeploy but will cause an error since group name is required on the code above, you might need to adjust them according to your needs.
The following is an example of lane to submit a build and deploy to Google Play internally, given that you already built the .apk
desc "Submit a new Internal Build to Play Store"
lane :internal do
upload_to_play_store(track: 'internal', apk: 'app/build/outputs/apk/production/playstore/app-production-playstore.apk')
end
With the example given, your options are not limited in deploying to Play Store, you can read more about deploying to Google Play here
This project is licensed under the MIT License - see the LICENSE.md file for details
Content type
Image
Digest
Size
709.4 MB
Last updated
over 5 years ago
docker pull jpsison/android-fastlane-firebase