File tree 6 files changed +24
-5
lines changed 6 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -186,12 +186,17 @@ android {
186
186
187
187
}
188
188
}
189
+
190
+ packagingOptions {
191
+ pickFirst ' **/libhermes.so'
192
+ pickFirst ' **/libjsc.so'
193
+ }
189
194
}
190
195
191
196
dependencies {
192
197
implementation fileTree(dir : " libs" , include : [" *.jar" ])
193
198
// noinspection GradleDynamicVersion
194
- implementation " com.facebook.react:react-native:+ " // From node_modules
199
+ implementation project( " :ReactAndroid " ) // From node_modules
195
200
196
201
implementation " androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
197
202
Original file line number Diff line number Diff line change @@ -13,9 +13,11 @@ buildscript {
13
13
mavenCentral()
14
14
}
15
15
dependencies {
16
- classpath(" com.android.tools.build:gradle:4.2.2 " )
16
+ classpath(" com.android.tools.build:gradle:7.0.4 " )
17
17
// NOTE: Do not place your application dependencies here; they belong
18
18
// in the individual module build.gradle files
19
+ classpath(" com.facebook.react:react-native-gradle-plugin" )
20
+ classpath(" de.undercouch:gradle-download-task:4.1.2" )
19
21
}
20
22
}
21
23
Original file line number Diff line number Diff line change 10
10
# Specifies the JVM arguments used for the daemon process.
11
11
# The setting is particularly useful for tweaking memory settings.
12
12
# Default value: -Xmx1024m -XX:MaxPermSize=256m
13
- # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
13
+ org.gradle.jvmargs =-Xmx2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14
14
15
15
# When configured, Gradle will run in incubating parallel mode.
16
16
# This option should only be used with decoupled projects. More details, visit
Original file line number Diff line number Diff line change 1
1
rootProject. name = ' RNNewArchitectureApp'
2
2
apply from : file(" ../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesSettingsGradle(settings)
3
3
include ' :app'
4
+ includeBuild(' ../node_modules/react-native-gradle-plugin' )
5
+
6
+ include(" :ReactAndroid" )
7
+ project(" :ReactAndroid" ). projectDir = file(' ../node_modules/react-native/ReactAndroid' )
Original file line number Diff line number Diff line change 11
11
},
12
12
"dependencies" : {
13
13
"react" : " 17.0.2" ,
14
- "react-native" : " 0.0.0-20220201-2008-79975d146"
14
+ "react-native" : " 0.0.0-20220201-2008-79975d146" ,
15
+ "react-native-gradle-plugin" : " ^0.0.4"
15
16
},
16
17
"devDependencies" : {
17
18
"@babel/core" : " ^7.12.9" ,
Original file line number Diff line number Diff line change @@ -5329,7 +5329,7 @@ react-is@^16.13.1:
5329
5329
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
5330
5330
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
5331
5331
5332
- react-native-codegen@^0.0.13 :
5332
+ react-native-codegen@*, react-native-codegen@ ^0.0.13 :
5333
5333
version "0.0.13"
5334
5334
resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.0.13.tgz#4cc94546fc75a5dbe9350d59c10108f2efe6bc17"
5335
5335
integrity sha512-rCh1P+s0Q4N6vNgS97ckafbhJRztz22+0l0VZoyQC06F07J98kI5cUByH0ATypPRIdpkMbAZc59DoPdDFc01bg==
@@ -5339,6 +5339,13 @@ react-native-codegen@^0.0.13:
5339
5339
jscodeshift "^0.13.1"
5340
5340
nullthrows "^1.1.1"
5341
5341
5342
+ react-native-gradle-plugin@^0.0.4 :
5343
+ version "0.0.4"
5344
+ resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.0.4.tgz#47adcc4f1e1f2c1558811ad78ad39546007d8667"
5345
+ integrity sha512-D0lFhHy9uSkiPKsGEdEoFtN/jCjS70OxxzBXfq0s9J3ie8GXRBEDHsZuuX/enfRq5fvbCnhKjuYezf+DVYTNnw==
5346
+ dependencies :
5347
+ react-native-codegen "*"
5348
+
5342
5349
5343
5350
version "0.0.0-20220201-2008-79975d146"
5344
5351
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.0.0-20220201-2008-79975d146.tgz#a9f1efa7d808e2043d8ab75c37f096d81852e273"
You can’t perform that action at this time.
0 commit comments