@@ -5,17 +5,21 @@ apply plugin: 'kotlin-android-extensions'
5
5
project. ext. react = [
6
6
root : " ../../../" ,
7
7
entryFile : " index.js" ,
8
+ cliPath : " node_modules/react-native/cli.js" ,
8
9
bundleAssetName : " index.bundle" ,
9
10
enableHermes : true ,
10
11
bundleInAlpha : true ,
11
12
bundleInBeta : true ,
12
- hermesFlagsDebug :[' -Xes6-proxy' ],
13
- hermesFlagsRelease :[' -Xes6-proxy' ]
13
+ hermesFlagsDebug :[' -Xes6-proxy' ,' -output-source-map' ],
14
+ hermesFlagsRelease :[' -output-source-map' ],
15
+ hermesCommand : " ../../../node_modules/react-native/node_modules/hermes-engine/%OS-BIN%/hermesc" ,
14
16
]
15
17
16
18
apply from : " ../../../node_modules/react-native/react.gradle"
17
19
18
20
android {
21
+ ndkVersion " 20.1.5948944"
22
+
19
23
compileSdkVersion androidSdkVersion
20
24
21
25
defaultConfig {
@@ -39,37 +43,23 @@ android {
39
43
sourceCompatibility JavaVersion . VERSION_1_8
40
44
targetCompatibility JavaVersion . VERSION_1_8
41
45
}
42
- def taskName = getGradle(). getStartParameter(). getTaskRequests(). toString()
43
-
44
- packagingOptions {
45
- pickFirst ' **/libc++_shared.so'
46
- if (taskName. contains(" InternalDebug" )) {
47
- // Release libs take precedence and must be removed
48
- // to allow debugging
49
- exclude ' **/libhermes-executor-release.so'
50
- } else {
51
- // Reduce size by deleting the debugger/inspector
52
- exclude ' **/libhermes-inspector.so'
53
- exclude ' **/libhermes-executor-debug.so'
54
- }
55
- }
56
-
57
46
}
58
47
59
48
60
49
dependencies {
61
50
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
62
- def hermesPath = " ../../../node_modules/hermes-engine/android/" ;
63
- exec {
64
- executable ' grep'
65
- args " version" , ' ../../../node_modules/hermes-engine/package.json'
66
- }
51
+ // noinspection GradleDynamicVersion
52
+ implementation " com.facebook.react:react-native:+"
53
+
54
+ def hermesPath = " ../../../node_modules/react-native/node_modules/hermes-engine/android/" ;
67
55
debugImplementation files(hermesPath + " hermes-debug.aar" )
68
56
releaseImplementation files(hermesPath + " hermes-release.aar" )
69
57
implementation " org.jetbrains.kotlin:$kotlinStdlib :$kotlinVersion "
70
58
implementation " androidx.appcompat:appcompat:1.0.0"
71
- implementation ' com.facebook.react:react-native:+'
72
59
implementation project(' :react-native-notifications' )
73
60
}
74
61
75
- apply plugin : ' com.google.gms.google-services'
62
+ apply plugin : ' com.google.gms.google-services'
63
+
64
+ apply from : file(" ../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" )
65
+ applyNativeModulesAppBuildGradle(project, " ../../../" )
0 commit comments