diff --git a/.github/workflows/release-android.yml b/.github/workflows/release-android.yml index 712d02a6..7fcbb1a4 100644 --- a/.github/workflows/release-android.yml +++ b/.github/workflows/release-android.yml @@ -42,6 +42,16 @@ jobs: key: android-sdk-${{ runner.os }}-${{ hashFiles('android/build.gradle', 'android/gradle.properties', 'android/app/build.gradle') }} restore-keys: android-sdk-${{ runner.os }}- + - name: Compute native cache key input + run: | + node -e " + const fs = require('fs'); + const lock = JSON.parse(fs.readFileSync('package-lock.json', 'utf8')); + if (lock.packages && lock.packages['']) delete lock.packages[''].version; + delete lock.version; + fs.writeFileSync('.cxx-cache-input.json', JSON.stringify(lock.packages || {})); + " + - name: Cache native CMake build outputs uses: actions/cache@v4 with: @@ -50,7 +60,7 @@ jobs: android/app/build/intermediates/cxx android/app/build/intermediates/merged_native_libs android/app/build/intermediates/stripped_native_libs - key: cxx-${{ runner.os }}-${{ hashFiles('package-lock.json', 'android/build.gradle', 'android/app/build.gradle') }} + key: cxx-${{ runner.os }}-${{ hashFiles('.cxx-cache-input.json', 'android/build.gradle', 'android/app/build.gradle') }} restore-keys: cxx-${{ runner.os }}- - name: Install JS dependencies diff --git a/android/gradle.properties b/android/gradle.properties index 8e39f82e..075de840 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -28,7 +28,7 @@ android.enablePngCrunchInReleaseBuilds=true # Use this property to specify which architecture you want to build. # You can also override it from the CLI using # ./gradlew -PreactNativeArchitectures=x86_64 -reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 +reactNativeArchitectures=arm64-v8a # Use this property to enable support to the new architecture. # This will allow you to use TurboModules and the Fabric render in