Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

flutterci

Fastlane setup

# Upload native-debug-symbols.zip to play store after creating a release
cd build/app/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/ &&
zip -r native-debug-symbols.zip arm64-v8a armeabi-v7a x86_64


sudo apt install rubygems
sudo apt install ruby-bundler
sudo apt install -y ruby ruby-dev build-essential
sudo gem install fastlane -NV
# sudo gem cleanup
# brew install fastlane

cd android && ./gradlew signingReport
sudo npm install -g firebase-tools
firebase logout
firebase login
dart pub global activate flutterfire_cli
flutterfire configure
flutter pub add firebase_core
keytool -genkey -v -keystore ~upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload


# https://console.cloud.google.com/apis/library/androidpublisher.googleapis.com?hl=en&inv=1&invt=Abrhmw&project=flutter-app1-d3af8
fastlane run validate_play_store_json_key json_key:/home/soufiane/dev/projects/playground/dev_ops/flutter_ci/flutter_ci-432e4-b2e456c83eaa.json
(cd android && fastlane init)
cd android && bundle exec fastlane add_plugin firebase_app_distribution

(cd ios && fastlane init)
cd ios && bundle exec fastlane add_plugin firebase_app_distribution

bundle update


# In CI
firebase logout
firebase login:ci # and make use of FIREBASE_CLI_TOKEN
fastlane # Or `/usr/local/bin/fastlane`

# Android
# cd android && bundle exec fastlane <name of the lane>
cd android && fastlane distribute # distribute | internal | alpha | beta | promote_to_production | production |
# cd android && bundle exec fastlane run firebase_app_distribution
cd android && bundle exec fastlane run deploy

# iOS
cd ios && fastlane <name of the lane>

CI/CD






cd android && APP_NAME="flutter_ci" BUILD_NAME="1.0.0" BUILD_NUMBER="1" ANDROID_PACKAGE_NAME="dev.soufianes.flutterci" bundle exec fastlane build_android_app

cd android && APP_NAME="flutter_ci" BUILD_NAME="1.0.0" BUILD_NUMBER="1" ANDROID_PACKAGE_NAME="dev.soufianes.flutterci" bundle exec fastlane build_android_apk

cd android && APP_NAME="flutter_ci" BUILD_NAME="1.0.0" BUILD_NUMBER="1" ANDROID_PACKAGE_NAME="dev.soufianes.flutterci" bundle exec fastlane build_all_android_artifacts

cd android && APP_NAME="flutter_ci" BUILD_NAME="1.0.0" BUILD_NUMBER="1" ANDROID_PACKAGE_NAME="dev.soufianes.flutterci" bundle exec fastlane build_manifest

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages