Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 11 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ setup_env_file: &setup_env_file
executors:
default:
docker:
- image: cimg/node:22.2.0
- image: cimg/node:22.14.0
working_directory: ~/project

orbs:
Expand All @@ -37,7 +37,6 @@ run_on_release: &run_on_release
branches:
ignore: /.*/


commands:
attach_project:
steps:
Expand All @@ -50,13 +49,14 @@ jobs:
steps:
- checkout
- attach_project
- node/install:
node-version: 22.14.0

- run:
name: Install dependencies
command: |
corepack enable
yarn install --cwd example --ignore-engines
yarn install --ignore-engines
yarn install
- save_cache:
key: dependencies-{{ checksum "package.json" }}
paths: node_modules
Expand Down Expand Up @@ -115,13 +115,7 @@ jobs:
tag: default
working_directory: ~/project
steps:
- checkout:
path: ~/project
- node/install:
node-version: 18.17.0

- attach_workspace:
at: ~/project
- attach_project

- <<: *setup_env_file

Expand All @@ -132,7 +126,7 @@ jobs:
- run:
working_directory: example/test
name: Build android
command: npm run build:android
command: yarn run build:android

- android/create-avd:
avd-name: Android_29
Expand All @@ -152,7 +146,7 @@ jobs:
- run:
working_directory: example/test
name: Run UI Tests
command: npm run test:android
command: yarn run test:android

- store_artifacts:
path: ~/.maestro/tests
Expand All @@ -162,9 +156,7 @@ jobs:
ios-e2e-test:
<<: *macos_config
steps:
- checkout
- attach_workspace:
at: ~/project
- attach_project

- <<: *setup_env_file

Expand All @@ -189,7 +181,7 @@ jobs:
- run:
working_directory: example/test
name: Build
command: npm run build:ios
command: yarn run build:ios

- run:
name: Create and boot iPhone 15 simulator
Expand All @@ -206,7 +198,7 @@ jobs:
- run:
working_directory: example/test
name: Run UI Tests
command: npm run test:ios
command: yarn run test:ios

- store_artifacts:
path: ~/.maestro/tests
Expand All @@ -229,13 +221,12 @@ jobs:
- run:
name: Install dependencies
command: |
yarn install --ignore-engines
yarn install

- run:
name: Publish the package
command: npm publish


workflows:
version: 2.1
build-and-test:
Expand Down
22 changes: 21 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ project.xcworkspace

# Android/IJ
#
.classpath
.cxx
.idea
.gradle
.project
.settings
local.properties
android.iml

# Ruby
example/vendor/

# Cocoapods
#
example/ios/Pods
Expand All @@ -46,9 +53,17 @@ node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log
yarn.lock
package-lock.json

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions


# BUCK
buck-out/
\.buckd/
Expand All @@ -68,3 +83,8 @@ google-services.json
/.bundle/
/vendor/bundle
/lib/bundler/man/


# React Native Codegen
ios/generated
android/generated
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
22.14.0
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.1.cjs

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions .yarnrc

This file was deleted.

10 changes: 10 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
nodeLinker: node-modules
nmHoistingLimits: workspaces

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.6.1.cjs
21 changes: 20 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,21 @@ buildscript {

dependencies {
classpath("com.android.tools.build:gradle:8.6.1")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}
}

apply plugin: 'com.android.library'

def isNewArchitectureEnabled() {
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
}

if (isNewArchitectureEnabled()) {
apply plugin: "com.facebook.react"
}

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
Expand All @@ -53,6 +60,18 @@ android {
lintOptions {
disable 'GradleCompatible'
}
buildFeatures {
buildConfig true
}
sourceSets {
main {
if (isNewArchitectureEnabled()) {
java.srcDirs += ["src/newarch"]
} else {
java.srcDirs += ["src/oldarch"]
}
}
}
}

repositories {
Expand Down
Loading