Skip to content

Commit

Permalink
Merge pull request #419 from adobe/new_arc
Browse files Browse the repository at this point in the history
React native new architecture sample app
  • Loading branch information
namArora3112 authored Jan 8, 2025
2 parents cf383c6 + dfcbe23 commit 673e4be
Show file tree
Hide file tree
Showing 127 changed files with 27,021 additions and 15,834 deletions.
50 changes: 38 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ orbs:
jobs:
unit-test:
docker:
# switch to use node v18.x becaseu of the error: the engine "node" is incompatible with this module. Expected version "^16.10.0 || ^18.0.0 || >=20.0.0". Got "19.7.0"
# Use Node.js 18.x for compatibility with the project dependencies
- image: cimg/node:18.20

steps:
Expand All @@ -18,13 +18,19 @@ jobs:
keys:
- yarn-cache-{{ checksum "yarn.lock" }}

- run: yarn install
- run:
name: Install Node.js and Yarn Dependencies
command: yarn install

- run:
name: Build the Project
command: yarn run build

- save_cache:
key: yarn-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- ./apps/AEPSampleApp/node_modules
- ./apps/AEPSampleAppNewArchEnabled/node_modules

- run:
name: Unit Tests
Expand All @@ -33,20 +39,23 @@ jobs:
build-sample-app-android:
executor:
name: rn/linux_android
# the installed tools within the image: https://hub.docker.com/r/reactnativecommunity/react-native-android/tags
build_image_version: v13.0
resource_class: large

steps:
- checkout

- run:
name: yarn install
name: Install Node.js and Yarn Dependencies
command: yarn install

- run:
name: Build the Project
command: yarn run build

- run:
name: Building Android Sample App
command: yarn sampleapp:android:build
command: yarn sampleappnewarchenabled:android:build

environment:
_JAVA_OPTIONS: "-Xmx4096M -XX:MaxMetaspaceSize=512m"
Expand All @@ -62,25 +71,42 @@ jobs:
keys:
- ios-yarn-cache-{{ checksum "yarn.lock" }}

- run: yarn install
- run:
name: Set Xcode Path
command: sudo xcode-select -s /Applications/Xcode.app

- run:
name: Install Node.js and Yarn Dependencies
command: yarn install

- run:
name: Build the Project
command: yarn run build

- save_cache:
key: ios-yarn-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- ./apps/AEPSampleApp/node_modules
- ./apps/AEPSampleAppNewArchEnabled/node_modules

- run:
name: Install latest Cocoapods
name: Install Cocoapods
command: sudo gem install cocoapods

- run:
name: Install pods
command: yarn sampleapp:ios:pod:install
name: Install Pods
command: yarn sampleappnewarchenabled:ios:pod:install

- run:
name: Building iOS Sample App
command: cd apps/AEPSampleApp && npx react-native run-ios --verbose --terminal terminal
command: |
cd apps/AEPSampleAppNewArchEnabled/ios
xcodebuild \
-workspace AEPSampleAppNewArchEnabled.xcworkspace \
-scheme AEPSampleAppNewArchEnabled \
-sdk iphonesimulator \
-destination "generic/platform=iOS Simulator" \
clean build
workflows:
version: 2.1
Expand Down
39 changes: 37 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# Comment in the public line below if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

Expand All @@ -103,12 +103,47 @@ dist
# TernJS port file
.tern-port

# Build output
build/

## User settings
xcuserdata/
packages/.DS_Store

dist/
test/.DS_Store

.yarn/
.yarn/

# Ignore all .properties, .lock, .bin, and other build output files inside the .gradle directory
**/android/gradle/**/*.lock
**/android/gradle/**/*.bin

# Ignore Gradle build directories and cache files
.gradle/
**/build/
**/.gradle/

# Ignore all Eclipse settings and metadata files
**/.settings/

# IntelliJ IDEA project files
.idea/

# File-based project format
*.iws

# IntelliJ
out/

# Exclude all Android Studio/IntelliJ generated files
**/android/.idea/
**/android/.gradle/
**/android/build/

# Ignore all .idea directories across the project
**/.idea/

# Ignore VSCode settings
.vscode/
.vscode/settings.json
Loading

0 comments on commit 673e4be

Please sign in to comment.