File tree Expand file tree Collapse file tree 5 files changed +798
-614
lines changed Expand file tree Collapse file tree 5 files changed +798
-614
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ project.ext.react = [
33
33
// Whether to bundle JS and assets in release mode
34
34
bundleInRelease : true ,
35
35
36
+ enableHermes : false ,
37
+
36
38
// Whether to bundle JS and assets in another build variant (if configured).
37
39
// See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
38
40
// The configuration property can be in the following formats
@@ -164,4 +166,6 @@ android {
164
166
dependencies {
165
167
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
166
168
implementation(" com.facebook.react:react-native:$rootProject . ext . reactNativeVersion " )
169
+ // noinspection GradleDynamicVersion
170
+ implementation ' org.webkit:android-jsc:+'
167
171
}
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ import groovy.json.JsonSlurper
4
4
5
5
buildscript {
6
6
repositories {
7
- jcenter()
8
7
google()
8
+ jcenter()
9
9
}
10
+
10
11
dependencies {
11
12
classpath ' com.android.tools.build:gradle:3.4.2'
12
13
@@ -15,22 +16,29 @@ buildscript {
15
16
}
16
17
}
17
18
19
+ final reactNativePath = ' /react-native/android'
20
+ final jscAndroidPath = ' /jsc-android/dist'
21
+
18
22
allprojects {
19
23
repositories {
20
24
maven {
21
25
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
22
- url findReactNative()
26
+ url findNodeModules() + reactNativePath
27
+ }
28
+
29
+ maven {
30
+ // Android JSC is installed from npm
31
+ url findNodeModules() + jscAndroidPath
23
32
}
24
33
25
- mavenLocal()
26
- jcenter()
27
34
google()
35
+ jcenter()
28
36
}
29
37
}
30
38
31
- final findReactNative () {
32
- final reactNativePath = ' node_modules/react-native/android '
33
- final notFoundMessage = ' Unable to find React Native . Have you run yarn from the root?'
39
+ final findNodeModules () {
40
+ final reactNativePath = ' node_modules'
41
+ final notFoundMessage = ' Unable to find node_modules folder . Have you run yarn from the root?'
34
42
35
43
def root = file(" $rootDir " )
36
44
if (root == null ) {
@@ -101,9 +109,5 @@ final getProjectVersion() {
101
109
102
110
println " Project version: $version "
103
111
104
- if (version. startsWith(' ^' )) {
105
- version = version. substring(1 )
106
- }
107
-
108
112
return version
109
113
}
Original file line number Diff line number Diff line change 1
1
rootProject. name = ' ReactNativeActivityDemo'
2
2
3
+ // https://react-native-community.github.io/upgrade-helper/?from=0.59.10&to=0.60.0
4
+ apply from : file(" ../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" );
5
+ applyNativeModulesSettingsGradle(settings)
6
+
3
7
include ' :app'
Original file line number Diff line number Diff line change 4
4
"type" : " git" ,
5
5
"url" : " https://github.com/petterh/react-native-android-activity.git"
6
6
},
7
- "version" : " 5.0.3 " ,
7
+ "version" : " 5.0.4 " ,
8
8
"private" : true ,
9
9
"scripts" : {
10
10
"start" : " node node_modules/react-native/local-cli/cli.js start"
11
11
},
12
12
"dependencies" : {
13
- "react" : " 16.8.3 " ,
14
- "react-native" : " 0.59.9 "
13
+ "react" : " 16.8.6 " ,
14
+ "react-native" : " 0.60.5 "
15
15
},
16
16
"devDependencies" : {
17
17
"babel-loader" : " 8.0.6" ,
You can’t perform that action at this time.
0 commit comments