Skip to content

Commit

Permalink
deployment preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
DJaegerScript committed Jan 18, 2024
1 parent a7401e2 commit c46e7ea
Show file tree
Hide file tree
Showing 124 changed files with 378 additions and 4,425 deletions.
46 changes: 46 additions & 0 deletions .github/worfklows/app-dpl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Firebase APP workflow

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
firebase_app:
name: Run Firebase Workflow
runs-on: ubuntu-latest ## virtual machine
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'

- name: Change Directory to Flutter Project
run: cd flutter_app

- name: Decode google-services.json
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo "$GOOGLE_SERVICES_JSON" > android/app/google-services.json

- run: sed -i "s/MAPS_API_KEY/${{ secrets.MAPS_API_KEY }}/g" ./android/app/src/main/AndroidManifest.xml
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build apk --dart-define=API_URL=${{ secrets.API_URL }}
- uses: actions/upload-artifact@v1
with:
name: release-apk
path: build/app/outputs/apk/release/app-release.apk
- name: Upload to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_APP_ID}}
serviceCredentialsFileContent: ${{secrets.CREDENTIAL_FILE_CONTENT}}
groups: testers
file: build/app/outputs/flutter-apk/app.apk
1 change: 1 addition & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
/android/app/google-services.json
10 changes: 7 additions & 3 deletions client/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
<application
android:icon="@mipmap/ic_launcher"
android:label="JaGadis">

<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="MAPS_API_KEY" />

<!-- android:value="AIzaSyBtXWQ-lr_-pT7apgXYa-s565mh9rC4T3k" />-->

<activity
android:name="com.example.client.MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
Expand Down Expand Up @@ -40,9 +47,6 @@
android:name="flutterEmbedding"
android:value="2" />

<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyBtXWQ-lr_-pT7apgXYa-s565mh9rC4T3k" />

<service
android:name="id.flutter.flutter_background_service.BackgroundService"
Expand Down
3 changes: 3 additions & 0 deletions client/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
// START: FlutterFire Configuration
classpath 'com.google.gms:google-services:4.3.10'
// END: FlutterFire Configuration
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
34 changes: 0 additions & 34 deletions client/ios/.gitignore

This file was deleted.

26 changes: 0 additions & 26 deletions client/ios/Flutter/AppFrameworkInfo.plist

This file was deleted.

1 change: 0 additions & 1 deletion client/ios/Flutter/Debug.xcconfig

This file was deleted.

1 change: 0 additions & 1 deletion client/ios/Flutter/Release.xcconfig

This file was deleted.

Loading

0 comments on commit c46e7ea

Please sign in to comment.