Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong0993 committed Jan 16, 2021
0 parents commit 93c777b
Show file tree
Hide file tree
Showing 630 changed files with 17,793 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/main.yml
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
43 changes: 43 additions & 0 deletions .gitignore
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
10 changes: 10 additions & 0 deletions .metadata
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
9 changes: 9 additions & 0 deletions .run/Dev.run.xml
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>
7 changes: 7 additions & 0 deletions .run/song_checker.dart.run.xml
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>
7 changes: 7 additions & 0 deletions .run/users_mitigator.dart.run.xml
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>
Loading

0 comments on commit 93c777b

Please sign in to comment.