-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate Fastlane with Firebase App Distribution for Android releases
- Loading branch information
1 parent
1d0a706
commit 3059c38
Showing
16 changed files
with
265 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" | ||
|
||
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | ||
eval_gemfile(plugins_path) if File.exist?(plugins_path) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "300451659202", | ||
"project_id": "wirdak-5656", | ||
"storage_bucket": "wirdak-5656.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:300451659202:android:79ca3b6cb06215b2e22a5b", | ||
"android_client_info": { | ||
"package_name": "com.example.wirdak" | ||
} | ||
}, | ||
"oauth_client": [], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyAyaKYPFzW68molI1zA6CTBNDye5gEDGO0" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one | ||
package_name("com.example.wirdak") # e.g. com.krausefx.app |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
default_platform(:android) | ||
|
||
platform :android do | ||
desc "Lane For Android Firebase Distribution" | ||
lane :firebase_distribution do | ||
sh "flutter clean" | ||
sh "flutter build apk --release --flavor production -t lib/main_production.dart --no-tree-shake-icons" | ||
firebase_app_distribution( | ||
app: "1:300451659202:android:79ca3b6cb06215b2e22a5b", | ||
release_notes: 'Android Release', | ||
testers: "[email protected], [email protected]", | ||
android_artifact_type: "APK", | ||
android_artifact_path: "../build/app/outputs/flutter-apk/app-production-release.apk", | ||
firebase_cli_token: ENV["FIREBASE_CLI_TOKEN"] | ||
) | ||
end | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Autogenerated by fastlane | ||
# | ||
# Ensure this file is checked in to source control! | ||
|
||
gem 'fastlane-plugin-firebase_app_distribution' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
fastlane documentation | ||
---- | ||
|
||
# Installation | ||
|
||
Make sure you have the latest version of the Xcode command line tools installed: | ||
|
||
```sh | ||
xcode-select --install | ||
``` | ||
|
||
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) | ||
|
||
# Available Actions | ||
|
||
## Android | ||
|
||
### android firebase_distribution | ||
|
||
```sh | ||
[bundle exec] fastlane android firebase_distribution | ||
``` | ||
|
||
Lane For Android Firebase Distribution | ||
|
||
---- | ||
|
||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. | ||
|
||
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). | ||
|
||
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites> | ||
<testsuite name="fastlane.lanes"> | ||
|
||
|
||
|
||
|
||
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.0025916"> | ||
|
||
</testcase> | ||
|
||
|
||
<testcase classname="fastlane.lanes" name="1: flutter clean" time="1.4624795"> | ||
|
||
</testcase> | ||
|
||
|
||
<testcase classname="fastlane.lanes" name="2: flutter build apk --release --flavor production -t lib/main_production.dart --no-tree-shake-icons" time="27.766649"> | ||
|
||
</testcase> | ||
|
||
|
||
<testcase classname="fastlane.lanes" name="3: firebase_app_distribution" time="84.6622783"> | ||
|
||
</testcase> | ||
|
||
</testsuite> | ||
</testsuites> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"flutter":{"platforms":{"android":{"default":{"projectId":"wirdak-5656","appId":"1:300451659202:android:79ca3b6cb06215b2e22a5b","fileOutput":"android/app/google-services.json"}},"dart":{"lib/firebase_options.dart":{"projectId":"wirdak-5656","configurations":{"android":"1:300451659202:android:79ca3b6cb06215b2e22a5b","ios":"1:300451659202:ios:449021c3aa24239de22a5b","macos":"1:300451659202:ios:449021c3aa24239de22a5b","web":"1:300451659202:web:3fdf9a9648ca69cce22a5b","windows":"1:300451659202:web:07e8606ab120e416e22a5b"}}}}}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
// File generated by FlutterFire CLI. | ||
// ignore_for_file: type=lint | ||
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; | ||
import 'package:flutter/foundation.dart' | ||
show defaultTargetPlatform, kIsWeb, TargetPlatform; | ||
|
||
/// Default [FirebaseOptions] for use with your Firebase apps. | ||
/// | ||
/// Example: | ||
/// ```dart | ||
/// import 'firebase_options.dart'; | ||
/// // ... | ||
/// await Firebase.initializeApp( | ||
/// options: DefaultFirebaseOptions.currentPlatform, | ||
/// ); | ||
/// ``` | ||
class DefaultFirebaseOptions { | ||
static FirebaseOptions get currentPlatform { | ||
if (kIsWeb) { | ||
return web; | ||
} | ||
switch (defaultTargetPlatform) { | ||
case TargetPlatform.android: | ||
return android; | ||
case TargetPlatform.iOS: | ||
return ios; | ||
case TargetPlatform.macOS: | ||
return macos; | ||
case TargetPlatform.windows: | ||
return windows; | ||
case TargetPlatform.linux: | ||
throw UnsupportedError( | ||
'DefaultFirebaseOptions have not been configured for linux - ' | ||
'you can reconfigure this by running the FlutterFire CLI again.', | ||
); | ||
default: | ||
throw UnsupportedError( | ||
'DefaultFirebaseOptions are not supported for this platform.', | ||
); | ||
} | ||
} | ||
|
||
static const FirebaseOptions web = FirebaseOptions( | ||
apiKey: 'AIzaSyCQXdyKNITrJCAvJwf1c0Z3ex308OILWWQ', | ||
appId: '1:300451659202:web:3fdf9a9648ca69cce22a5b', | ||
messagingSenderId: '300451659202', | ||
projectId: 'wirdak-5656', | ||
authDomain: 'wirdak-5656.firebaseapp.com', | ||
storageBucket: 'wirdak-5656.appspot.com', | ||
); | ||
|
||
static const FirebaseOptions android = FirebaseOptions( | ||
apiKey: 'AIzaSyAyaKYPFzW68molI1zA6CTBNDye5gEDGO0', | ||
appId: '1:300451659202:android:79ca3b6cb06215b2e22a5b', | ||
messagingSenderId: '300451659202', | ||
projectId: 'wirdak-5656', | ||
storageBucket: 'wirdak-5656.appspot.com', | ||
); | ||
|
||
static const FirebaseOptions ios = FirebaseOptions( | ||
apiKey: 'AIzaSyDNQjG5xmhB-W3ZhJyQIIXZIwqB3y9WB1I', | ||
appId: '1:300451659202:ios:449021c3aa24239de22a5b', | ||
messagingSenderId: '300451659202', | ||
projectId: 'wirdak-5656', | ||
storageBucket: 'wirdak-5656.appspot.com', | ||
iosBundleId: 'com.example.wirdak', | ||
); | ||
|
||
static const FirebaseOptions macos = FirebaseOptions( | ||
apiKey: 'AIzaSyDNQjG5xmhB-W3ZhJyQIIXZIwqB3y9WB1I', | ||
appId: '1:300451659202:ios:449021c3aa24239de22a5b', | ||
messagingSenderId: '300451659202', | ||
projectId: 'wirdak-5656', | ||
storageBucket: 'wirdak-5656.appspot.com', | ||
iosBundleId: 'com.example.wirdak', | ||
); | ||
|
||
static const FirebaseOptions windows = FirebaseOptions( | ||
apiKey: 'AIzaSyCQXdyKNITrJCAvJwf1c0Z3ex308OILWWQ', | ||
appId: '1:300451659202:web:07e8606ab120e416e22a5b', | ||
messagingSenderId: '300451659202', | ||
projectId: 'wirdak-5656', | ||
authDomain: 'wirdak-5656.firebaseapp.com', | ||
storageBucket: 'wirdak-5656.appspot.com', | ||
); | ||
} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
# | ||
|
||
list(APPEND FLUTTER_PLUGIN_LIST | ||
firebase_core | ||
) | ||
|
||
list(APPEND FLUTTER_FFI_PLUGIN_LIST | ||
|