From 45dac328296d804fa7603b6371e614cb31d30f4d Mon Sep 17 00:00:00 2001 From: Naman Arora Date: Tue, 18 Nov 2025 14:36:56 +0530 Subject: [PATCH 1/3] android ci cd fixes --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd5facd3..3ae883e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -124,7 +124,7 @@ workflows: jobs: - unit-test - build-sample-app-ios - # - build-sample-app-android + - build-sample-app-android # Disable the Android build job because of the error below: # Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'. # > [CXX1210] /root/project/apps/AEPSampleApp/node_modules/react-native-reanimated/android/CMakeLists.txt debug|arm64-v8a : No compatible library found From 95b494fd5f3c9fd22dbdde16ccbf9cdca92705a9 Mon Sep 17 00:00:00 2001 From: Naman Arora Date: Tue, 18 Nov 2025 14:43:04 +0530 Subject: [PATCH 2/3] added npx before expo --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6eea8aa9..fa408c82 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "sampleappnewarchenabled:ios:pod:update": "cd apps/AEPSampleAppNewArchEnabled/ios && pod update", "sampleappnewarchenabled:ios:pod:install": "cd apps/AEPSampleAppNewArchEnabled/ios && pod install", "sampleappnewarchenabled:ios:build": "cd apps/AEPSampleAppNewArchEnabled && expo run:ios", - "sampleappnewarchenabled:android:build": "cd apps/AEPSampleAppNewArchEnabled && expo run:android", + "sampleappnewarchenabled:android:build": "cd apps/AEPSampleAppNewArchEnabled && npx expo run:android", "sampleappnewarchenabled:start": "cd apps/AEPSampleAppNewArchEnabled && npx expo start", "sampleappnewarchenabled:ios:run": "cd apps/AEPSampleAppNewArchEnabled && npx expo run:ios", "sampleappnewarchenabled:android:run": "cd apps/AEPSampleAppNewArchEnabled && npx expo run:android" From f034e8dcee7ddf921a689dbdb63b6bf06d721de9 Mon Sep 17 00:00:00 2001 From: Naman Arora Date: Tue, 18 Nov 2025 15:04:48 +0530 Subject: [PATCH 3/3] android debug build script fixes --- .circleci/config.yml | 31 +++++++++++++++++++++++++++---- package.json | 3 ++- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ae883e8..f41b83bf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -48,6 +48,11 @@ jobs: steps: - checkout + - restore_cache: + keys: + - android-yarn-cache-{{ checksum "yarn.lock" }} + - android-yarn-cache- + - run: name: Install Node.js and Yarn Dependencies command: yarn install @@ -60,12 +65,34 @@ jobs: name: Expo Prebuild command: cd apps/AEPSampleAppNewArchEnabled && npx expo prebuild + - save_cache: + key: android-yarn-cache-{{ checksum "yarn.lock" }} + paths: + - ./node_modules + - ./apps/AEPSampleAppNewArchEnabled/node_modules + + - restore_cache: + keys: + - android-gradle-cache-{{ checksum "apps/AEPSampleAppNewArchEnabled/android/build.gradle" }}-{{ checksum "apps/AEPSampleAppNewArchEnabled/android/app/build.gradle" }} + - android-gradle-cache- + - run: name: Building Android Sample App command: yarn sampleappnewarchenabled:android:build environment: _JAVA_OPTIONS: "-Xmx4096M -XX:MaxMetaspaceSize=512m" + - save_cache: + key: android-gradle-cache-{{ checksum "apps/AEPSampleAppNewArchEnabled/android/build.gradle" }}-{{ checksum "apps/AEPSampleAppNewArchEnabled/android/app/build.gradle" }} + paths: + - ~/.gradle + - ./apps/AEPSampleAppNewArchEnabled/android/.gradle + - ./apps/AEPSampleAppNewArchEnabled/android/build + + - store_artifacts: + path: apps/AEPSampleAppNewArchEnabled/android/app/build/outputs/apk/debug + destination: apk + build-sample-app-ios: macos: xcode: 15.2 @@ -125,7 +152,3 @@ workflows: - unit-test - build-sample-app-ios - build-sample-app-android - # Disable the Android build job because of the error below: - # Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'. - # > [CXX1210] /root/project/apps/AEPSampleApp/node_modules/react-native-reanimated/android/CMakeLists.txt debug|arm64-v8a : No compatible library found - # The Android build job will be enabled once the issue is resolved. diff --git a/package.json b/package.json index fa408c82..e4e08663 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "sampleappnewarchenabled:ios:pod:update": "cd apps/AEPSampleAppNewArchEnabled/ios && pod update", "sampleappnewarchenabled:ios:pod:install": "cd apps/AEPSampleAppNewArchEnabled/ios && pod install", "sampleappnewarchenabled:ios:build": "cd apps/AEPSampleAppNewArchEnabled && expo run:ios", - "sampleappnewarchenabled:android:build": "cd apps/AEPSampleAppNewArchEnabled && npx expo run:android", + "sampleappnewarchenabled:android:build": "cd apps/AEPSampleAppNewArchEnabled/android && ./gradlew assembleDebug --no-daemon", + "sampleappnewarchenabled:android:build:release": "cd apps/AEPSampleAppNewArchEnabled/android && ./gradlew assembleRelease --no-daemon", "sampleappnewarchenabled:start": "cd apps/AEPSampleAppNewArchEnabled && npx expo start", "sampleappnewarchenabled:ios:run": "cd apps/AEPSampleAppNewArchEnabled && npx expo run:ios", "sampleappnewarchenabled:android:run": "cd apps/AEPSampleAppNewArchEnabled && npx expo run:android"