Skip to content

Commit

Permalink
React Native 70 compliance - Detox demo projects (#3939)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4vidi committed Feb 16, 2023
1 parent e04bb14 commit 4914dcf
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 14 deletions.
@@ -1,9 +1,9 @@
- label: ":android::react: RN.69 + Android: Demo app"
- label: ":android::react: RN .70 + Android: Demo app"
command:
- "nvm install"
- "./scripts/demo-projects.android.sh"
env:
REACT_NATIVE_VERSION: 0.69.7
REACT_NATIVE_VERSION: 0.70.7
DETOX_DISABLE_POD_INSTALL: true
DETOX_DISABLE_POSTINSTALL: true
artifact_paths:
Expand Down
@@ -1,9 +1,9 @@
- label: ":ios::react: RN.69 + iOS: Demo app"
- label: ":ios::react: RN. 70 + iOS: Demo app"
command:
- "nvm install"
- "./scripts/demo-projects.ios.sh"
env:
REACT_NATIVE_VERSION: 0.69.7
REACT_NATIVE_VERSION: 0.70.7
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/artifacts*.tar.gz"
4 changes: 2 additions & 2 deletions .buildkite/pipeline_common.sh
Expand Up @@ -7,7 +7,7 @@ cat .buildkite/jobs/pipeline.ios_rn_70.yml
cat .buildkite/jobs/pipeline.android_rn_68.yml
cat .buildkite/jobs/pipeline.android_rn_70.yml
cat .buildkite/jobs/pipeline.android_demo_app_rn_68.yml
cat .buildkite/jobs/pipeline.android_demo_app_rn_69.yml
cat .buildkite/jobs/pipeline.android_demo_app_rn_70.yml
cat .buildkite/jobs/pipeline.ios_demo_app_rn_68.yml
cat .buildkite/jobs/pipeline.ios_demo_app_rn_69.yml
cat .buildkite/jobs/pipeline.ios_demo_app_rn_70.yml
cat .buildkite/pipeline.post_processing.yml
2 changes: 1 addition & 1 deletion detox/android/build.gradle
Expand Up @@ -23,7 +23,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.1'
classpath 'com.android.tools.build:gradle:7.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"

Expand Down
2 changes: 1 addition & 1 deletion detox/android/gradle/wrapper/gradle-wrapper.properties
Expand Up @@ -3,5 +3,5 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip

2 changes: 0 additions & 2 deletions detox/test/ios/Podfile
Expand Up @@ -4,8 +4,6 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ
platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false

production = ENV["PRODUCTION"] == "1"

def shared_pods
config = use_native_modules!

Expand Down
12 changes: 10 additions & 2 deletions examples/demo-react-native/ios/Podfile
Expand Up @@ -13,7 +13,15 @@ target 'example' do
)

post_install do |installer|
react_native_post_install(installer)
if ENV["REACT_NATIVE_VERSION"] && ENV["REACT_NATIVE_VERSION"].match(/0.6[6,7,8,9].*/)
react_native_post_install(installer)
else
react_native_post_install(
installer,
# Set `mac_catalyst_enabled` to `true` in order to apply patches
# necessary for Mac Catalyst builds
:mac_catalyst_enabled => false
)
end
end
end

4 changes: 2 additions & 2 deletions examples/demo-react-native/package.json
Expand Up @@ -23,8 +23,8 @@
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.3",
"react": "18.0.0",
"react-native": "0.69.7",
"react": "18.1.0",
"react-native": "0.70.7",
"tslib": "^2.0.3"
},
"devDependencies": {
Expand Down

0 comments on commit 4914dcf

Please sign in to comment.