This repository was archived by the owner on Jul 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +24
-5
lines changed Expand file tree Collapse file tree 6 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -186,12 +186,17 @@ android {
186186
187187 }
188188 }
189+
190+ packagingOptions {
191+ pickFirst ' **/libhermes.so'
192+ pickFirst ' **/libjsc.so'
193+ }
189194}
190195
191196dependencies {
192197 implementation fileTree(dir : " libs" , include : [" *.jar" ])
193198 // noinspection GradleDynamicVersion
194- implementation " com.facebook.react:react-native:+ " // From node_modules
199+ implementation project( " :ReactAndroid " ) // From node_modules
195200
196201 implementation " androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
197202
Original file line number Diff line number Diff line change @@ -13,9 +13,11 @@ buildscript {
1313 mavenCentral()
1414 }
1515 dependencies {
16- classpath(" com.android.tools.build:gradle:4.2.2 " )
16+ classpath(" com.android.tools.build:gradle:7.0.4 " )
1717 // NOTE: Do not place your application dependencies here; they belong
1818 // 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" )
1921 }
2022}
2123
Original file line number Diff line number Diff line change 1010# Specifies the JVM arguments used for the daemon process.
1111# The setting is particularly useful for tweaking memory settings.
1212# 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
1414
1515# When configured, Gradle will run in incubating parallel mode.
1616# This option should only be used with decoupled projects. More details, visit
Original file line number Diff line number Diff line change 11rootProject. name = ' RNNewArchitectureApp'
22apply from : file(" ../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesSettingsGradle(settings)
33include ' :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 1111 },
1212 "dependencies" : {
1313 "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"
1516 },
1617 "devDependencies" : {
1718 "@babel/core" : " ^7.12.9" ,
Original file line number Diff line number Diff line change @@ -5329,7 +5329,7 @@ react-is@^16.13.1:
53295329 resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
53305330 integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
53315331
5332- react-native-codegen@^0.0.13 :
5332+ react-native-codegen@*, react-native-codegen@ ^0.0.13 :
53335333 version "0.0.13"
53345334 resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.0.13.tgz#4cc94546fc75a5dbe9350d59c10108f2efe6bc17"
53355335 integrity sha512-rCh1P+s0Q4N6vNgS97ckafbhJRztz22+0l0VZoyQC06F07J98kI5cUByH0ATypPRIdpkMbAZc59DoPdDFc01bg==
@@ -5339,6 +5339,13 @@ react-native-codegen@^0.0.13:
53395339 jscodeshift "^0.13.1"
53405340 nullthrows "^1.1.1"
53415341
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+
5342534953435350 version "0.0.0-20220201-2008-79975d146"
53445351 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