This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 93c777b
Showing
630 changed files
with
17,793 additions
and
0 deletions.
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,67 @@ | ||
name: Analyze, build and distribute Android application | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
flutter_version: "1.22.5" | ||
|
||
jobs: | ||
buildApk: | ||
name: Analyze, build and distribute Android application | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v1 | ||
- name: Set up Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Cache Flutter dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: /opt/hostedtoolcache/flutter | ||
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }} | ||
- name: Set up flutter | ||
uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: ${{ env.flutter_version }} | ||
- name: Get dependencies | ||
run: flutter pub get | ||
- name: Format source code | ||
run: find -name "*.dart" -not -path "./lib/generated/*" -exec flutter format --set-exit-if-changed {} \; | ||
- name: Analyze source code | ||
run: flutter analyze . | ||
- name: Add config files | ||
env: | ||
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }} | ||
GOOGLE_SERVICES_STAGE_JSON: ${{ secrets.GOOGLE_SERVICES_STAGE_JSON }} | ||
GOOGLE_SERVICES_PROD_JSON: ${{ secrets.GOOGLE_SERVICES_PROD_JSON }} | ||
DEBUG_JKS: ${{ secrets.DEBUG_JKS }} | ||
RELEASE_JKS: ${{ secrets.RELEASE_JKS }} | ||
run: | | ||
sudo echo "$KEYSTORE_PROPERTIES" > android/keystore.properties | ||
sudo echo $GOOGLE_SERVICES_STAGE_JSON > android/app/src/stage/google-services.json | ||
sudo echo $GOOGLE_SERVICES_PROD_JSON > android/app/src/prod/google-services.json | ||
sudo echo "$DEBUG_JKS" | base64 -d > android/debug.jks | ||
sudo echo "$RELEASE_JKS" | base64 -d > android/release.jks | ||
- name: Build stage application | ||
run: flutter build apk --flavor stage | ||
- name: Build production application | ||
run: flutter build apk --flavor prod | ||
- name: Distribute stage via Firebase | ||
uses: wzieba/Firebase-Distribution-Github-Action@v1 | ||
with: | ||
appId: ${{ secrets.STAGE_APP_ID }} | ||
token: ${{ secrets.FIREBASE_TOKEN }} | ||
groups: testers | ||
file: build/app/outputs/flutter-apk/app-stage-release.apk | ||
- name: Distribute production via Firebase | ||
uses: wzieba/Firebase-Distribution-Github-Action@v1 | ||
with: | ||
appId: ${{ secrets.PROD_APP_ID }} | ||
token: ${{ secrets.FIREBASE_TOKEN }} | ||
groups: testers | ||
file: build/app/outputs/flutter-apk/app-prod-release.apk |
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,43 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
|
||
# Web related | ||
lib/generated_plugin_registrant.dart | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
/fastlane/service_account.json |
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,10 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: 81a45ec2e5f80fa71d5135f1702ce540558b416d | ||
channel: beta | ||
|
||
project_type: 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,9 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Dev" type="FlutterRunConfigurationType" | ||
factoryName="Flutter"> | ||
<option name="additionalArgs" value="--flavor=dev" /> | ||
<option name="buildFlavor" value="dev" /> | ||
<option name="filePath" value="$PROJECT_DIR$/lib/main.dart" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,7 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="song_checker.dart" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application" nameIsGenerated="true"> | ||
<option name="filePath" value="$PROJECT_DIR$/lib/song_checker.dart" /> | ||
<option name="workingDirectory" value="$PROJECT_DIR$" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,7 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="users_mitigator.dart" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application" nameIsGenerated="true"> | ||
<option name="filePath" value="$PROJECT_DIR$/lib/users_mitigator.dart" /> | ||
<option name="workingDirectory" value="$PROJECT_DIR$" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
Oops, something went wrong.