This file contains hidden or 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
| jobs: | |
| release-android: | |
| name: release android app | |
| runs-on: ubuntu-latest | |
| steps: | |
| - ... | |
| - name: promote to production | |
| if: contains(github.event_name,'release')&&(!github.event.release.prerelease) | |
| run: bundle exec fastlane production | |
| - ... |
This file contains hidden or 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
| def keystoreProperties = new Properties() | |
| def keystorePropertiesFile = rootProject.file('key.properties') | |
| if (keystorePropertiesFile.exists()) { | |
| keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) | |
| } | |
| android { | |
| // other config | |
| signingConfigs { | |
| release { |
This file contains hidden or 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
| // def keystoreProperties = new Properties() | |
| // def keystorePropertiesFile = rootProject.file('key.properties') | |
| // if (keystorePropertiesFile.exists()) { | |
| // keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) | |
| // } | |
| android { | |
| // other config | |
| signingConfigs { | |
| release { |
This file contains hidden or 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
| signingConfigs { | |
| release { | |
| keyAlias System.getenv('ANDROID_DEBUG') ? null : keystoreProperties['keyAlias'] | |
| keyPassword System.getenv('ANDROID_DEBUG') ? null : keystoreProperties['keyPassword'] | |
| storeFile System.getenv('ANDROID_DEBUG') ? null : file(keystoreProperties['storeFile']) | |
| storePassword System.getenv('ANDROID_DEBUG') ? null : keystoreProperties['storePassword'] | |
| } | |
| } |
This file contains hidden or 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
| buildTypes { | |
| release { | |
| signingConfig System.getenv('ANDROID_DEBUG') ? signingConfigs.debug : signingConfigs.release | |
| minifyEnabled true | |
| useProguard true | |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
| } | |
| } |
This file contains hidden or 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
| source "https://rubygems.pkg.github.com/tianhaoz95" do | |
| gem "fastlane-plugin-flutter_version", "0.1.7" | |
| end |
This file contains hidden or 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
| platform :android do | |
| desc "Submit app to Google Play Store" | |
| lane :internal do | |
| begin | |
| gradle(task: 'bundle', build_type: 'Release') | |
| upload_to_play_store( | |
| track: 'internal', | |
| # This line uses flutter_version plugin to retrieve the version code | |
| version_code: flutter_version()["version_code"] | |
| ) |
This file contains hidden or 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
| - name: install fastlane plugins | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} | |
| run: | | |
| bundle config rubygems.pkg.github.com tianhaoz95:$GITHUB_TOKEN | |
| bundle install | |
| bundle exec fastlane install_plugins |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp(debugShowCheckedModeBanner: false, home: HomeScreen()); | |
| } | |
| } |
This file contains hidden or 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
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'My App', | |
| theme: ThemeData(), | |
| darkTheme: ThemeData(brightness: Brightness.dark), | |
| ); | |
| } | |
| } |