Skip to content

Commit 2b38af4

Browse files
committed
bump react-native-test-app for TurboModule support
1 parent b816642 commit 2b38af4

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

android/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ buildscript {
4242
: '1.6.10'
4343

4444
repositories {
45-
google()
4645
mavenCentral()
46+
google()
4747
}
4848
dependencies {
49-
if (project == rootProject) {
50-
classpath 'com.android.tools.build:gradle:4.2.2'
49+
def projectExampleDir = Paths.get(project.projectDir.getParent(), "example", "android").toString()
50+
def rootProjectDir = rootProject.projectDir.getPath()
51+
if (projectExampleDir == rootProjectDir) {
5152
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$asyncStorageKtVersion"
5253
}
5354
}

example/android/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,12 @@ buildscript {
3838
println("[AsyncStorage] Using Next storage: " + nextStorageFlag)
3939

4040
repositories {
41-
google()
4241
mavenCentral()
43-
jcenter()
42+
google()
4443
}
4544

4645
dependencies {
4746
classpath "com.android.tools.build:gradle:$androidPluginVersion"
48-
// kotlinVersion is applied from react-native-test-app's dependencies.gradle script
49-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
5047
}
5148
}
5249

@@ -55,7 +52,8 @@ allprojects {
5552
maven {
5653
url("$rootDir/../../node_modules/detox/Detox-android")
5754
}
58-
jcenter()
55+
mavenCentral()
56+
google()
5957
}
6058
afterEvaluate { project ->
6159
def androidExtension = project.extensions.findByName('android')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"react-native": "^0.68.0-0",
8888
"react-native-builder-bob": "^0.18.0",
8989
"react-native-macos": "^0.68.0-0",
90-
"react-native-test-app": "^1.4.6",
90+
"react-native-test-app": "^1.5.0",
9191
"react-native-web": "^0.17.0",
9292
"react-native-windows": "^0.68.0-0",
9393
"react-test-renderer": "17.0.2",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9882,10 +9882,10 @@ react-native-macos@^0.68.0-0:
98829882
whatwg-fetch "^3.0.0"
98839883
ws "^6.1.4"
98849884

9885-
react-native-test-app@^1.4.6:
9886-
version "1.4.6"
9887-
resolved "https://registry.yarnpkg.com/react-native-test-app/-/react-native-test-app-1.4.6.tgz#2087d453771676ed499c2a203eb6c867a84a6c1b"
9888-
integrity sha512-YOR/kQ1etMNc6/+DhYXiZQIqIz8Oox+5QvSuA+t8W0DfuUfIQkcLmEVT/11Eq5x7jcEjZAfc0yIm5yU+mhOTJw==
9885+
react-native-test-app@^1.5.0:
9886+
version "1.5.0"
9887+
resolved "https://registry.yarnpkg.com/react-native-test-app/-/react-native-test-app-1.5.0.tgz#a504a71246555234a18c02cab454d2a57950e914"
9888+
integrity sha512-Z+zJjnwnqE/H36aFRKLgjyjrCRanB2R5gN8j33VclBiw9tP6O3lC7iCEewJlKVyRkPzMDOdL0EM18hcx6snqsg==
98899889
dependencies:
98909890
ajv "^8.0.0"
98919891
chalk "^4.1.0"

0 commit comments

Comments
 (0)