diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 63c482c..dad1b0e 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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') diff --git a/app.json b/app.json index 373c09b..4b78ac5 100644 --- a/app.json +++ b/app.json @@ -27,6 +27,7 @@ "bundleIdentifier": "cn.qczlit.weiyou" }, "android": { + "googleServicesFile": "./google-services.json", "adaptiveIcon": { "backgroundColor": "#0570F9", "foregroundImage": "./assets/android-icon-foreground.png", diff --git a/google-services.json b/google-services.json new file mode 100644 index 0000000..6add9d2 --- /dev/null +++ b/google-services.json @@ -0,0 +1,23 @@ +{ + "project_info": { + "project_number": "000000000000", + "project_id": "withyou-dummy", + "storage_bucket": "withyou-dummy.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:000000000000:android:0000000000000000", + "android_client_info": { + "package_name": "cn.qczlit.withyou" + } + }, + "api_key": [ + { + "current_key": "AIzaSyDummyKeyForFirebaseInitOnly" + } + ] + } + ], + "configuration_version": "1" +}