build(android): add google services and update NDK version
Some checks failed
Frontend CI / ota-android (push) Successful in 1m45s
Frontend CI / ota-ios (push) Successful in 1m49s
Frontend CI / build-android-apk (push) Has been cancelled
Frontend CI / build-and-push-web (push) Has been cancelled

Configure Firebase/Google Services support for Android and update the CI
build pipeline to use a newer NDK version.

- Add `google-services.json` and configure `googleServicesFile` in `app.json`
- Add `com.google.gms:google-services:4.4.4` classpath to build workflow
- Update Android NDK version from `27.0.12077973` to `27.1.12297006` in CI cache and installation steps
This commit is contained in:
2026-06-04 13:29:02 +08:00
parent 3cc3695d0e
commit f79415591d
3 changed files with 29 additions and 4 deletions

View File

@@ -213,16 +213,16 @@ jobs:
uses: actions/cache@v4
id: cache-ndk
with:
path: /opt/android/ndk/27.0.12077973
key: ndk-27.0.12077973-v1
path: /opt/android/ndk/27.1.12297006
key: ndk-27.1.12297006-v1
- name: Install Android NDK
if: steps.cache-ndk.outputs.cache-hit != 'true'
run: |
echo "Existing NDK versions:"
ls /opt/android/ndk/ 2>/dev/null || echo "No NDK dir"
echo "Installing NDK 27.0.12077973..."
yes | sdkmanager --install "ndk;27.0.12077973"
echo "Installing NDK 27.1.12297006..."
yes | sdkmanager --install "ndk;27.1.12297006"
echo "NDK after install:"
ls /opt/android/ndk/
@@ -345,6 +345,7 @@ jobs:
classpath('com.huawei.agconnect:agcp:1.9.1.301') {
exclude group: 'com.huawei.agconnect', module: 'agconnect-apms-plugin'
}
classpath('com.google.gms:google-services:4.4.4')
classpath('com.android.tools.build:gradle:8.12.0')
classpath('com.facebook.react:react-native-gradle-plugin')
classpath('org.jetbrains.kotlin:kotlin-gradle-plugin')