Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit bc8d7af

Browse files
committed
fix: Add GMS on GMS version and remove it for FLOSS version
1 parent 1619b30 commit bc8d7af

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.github/workflows/build-testing.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
- name: Update pubspec.yaml for FLOSS variant 📝
4545
run: sed -i -e 's/^#f//' pubspec.yaml
4646

47+
- name: Update android/app/build.gradle for FLOSS variant 📝
48+
run: sed -i -e 's/^\/\/f //' android/app/build.gradle
49+
4750
- name: Install dependencies 📦
4851
run: flutter pub get
4952

.github/workflows/release-app.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,23 @@ jobs:
6161
mv app-arm64-v8a-release.apk locus-arm64-gms.apk &&
6262
mv app-armeabi-v7a-release.apk locus-armeabi-gms.apk &&
6363
mv app-x86_64-release.apk locus-x86-gms.apk
64-
64+
6565
- name: Upload APKs 🚀
6666
uses: softprops/action-gh-release@v1
6767
env:
6868
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
6969
with:
7070
files: 'build/app/outputs/flutter-apk/*.apk'
71-
71+
7272
- name: Clean Flutter
7373
run: flutter clean
7474

7575
- name: Update pubspec.yaml for FLOSS variant 📝
7676
run: sed -i -e 's/^#f//' pubspec.yaml
7777

78+
- name: Update android/app/build.gradle for FLOSS variant 📝
79+
run: sed -i -e 's/^\/\/f //' android/app/build.gradle
80+
7881
- name: Install dependencies 📦
7982
run: flutter pub get
8083

android/app/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ dependencies {
9191
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
9292
}
9393

94-
configurations.all {
95-
exclude group: 'com.google.android.gms'
96-
}
94+
// Remove this for FLOSS version
95+
//f configurations.all {
96+
//f exclude group: 'com.google.android.gms'
97+
//f }

pubspec.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -661,14 +661,6 @@ packages:
661661
url: "https://pub.dev"
662662
source: hosted
663663
version: "2.1.2"
664-
gms_check:
665-
dependency: "direct main"
666-
description:
667-
name: gms_check
668-
sha256: "696780955f9432dd75f32dbd65994f45765ff6abe9aa34d6e2d2d6ced70671a7"
669-
url: "https://pub.dev"
670-
source: hosted
671-
version: "1.0.1"
672664
google_polyline_algorithm:
673665
dependency: transitive
674666
description:

0 commit comments

Comments
 (0)