Add support for Android Gradle Plugin 3.0 "implementation" keyword. (#1958)
This commit is contained in:
parent
97c310980a
commit
d05725c914
|
@ -16,7 +16,7 @@
|
|||
* [Sync] Added `Session.isConnected()`.
|
||||
|
||||
### Bug fixes
|
||||
* None.
|
||||
* React Native for Android now supports the Android Gradle Plugin 3.0 (#1742).
|
||||
|
||||
### Internals
|
||||
* Updated to Object Store commit: 97fd03819f398b3c81c8b007feaca8636629050b
|
||||
|
|
|
@ -126,11 +126,11 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':react-native-exit-app-no-history')
|
||||
compile fileTree(dir: "libs", include: ["*.jar"])
|
||||
compile "com.android.support:appcompat-v7:23.0.1"
|
||||
compile "com.facebook.react:react-native:+" // From node_modules
|
||||
compile project(":realm")
|
||||
implementation project(':react-native-exit-app-no-history')
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
implementation "com.android.support:appcompat-v7:23.0.1"
|
||||
implementation "com.facebook.react:react-native:+" // From node_modules
|
||||
implementation project(":realm")
|
||||
}
|
||||
|
||||
// Run this once to be able to run the application with BUCK
|
||||
|
|
|
@ -6,7 +6,7 @@ buildscript {
|
|||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.1.2'
|
||||
classpath 'com.android.tools.build:gradle:3.1.3'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
|
@ -392,8 +392,15 @@ afterEvaluate { project ->
|
|||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
compile 'org.nanohttpd:nanohttpd:2.2.0'
|
||||
compile 'com.facebook.react:react-native:+' // From node_modules
|
||||
def dependencyType = "implementation"
|
||||
try {
|
||||
project.getConfigurations().getByName("implementation")
|
||||
} catch (UnknownConfigurationException e) {
|
||||
dependencyType = "compile" // Pre 3.0 Android Gradle Plugin
|
||||
}
|
||||
|
||||
project.dependencies {
|
||||
add(dependencyType, fileTree(dir: 'libs', include: ['*.jar']))
|
||||
add(dependencyType, 'org.nanohttpd:nanohttpd:2.2.0')
|
||||
add(dependencyType, 'com.facebook.react:react-native:+')
|
||||
}
|
||||
|
|
|
@ -81,8 +81,15 @@ task send(type: SendAnalyticsTask) << {
|
|||
|
||||
preBuild.dependsOn send
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
compile 'org.nanohttpd:nanohttpd:2.2.0'
|
||||
compile 'com.facebook.react:react-native:+' // From node_modules
|
||||
def dependencyType = "implementation"
|
||||
try {
|
||||
project.getConfigurations().getByName("implementation")
|
||||
} catch (UnknownConfigurationException e) {
|
||||
dependencyType = "compile" // Pre 3.0 Android Gradle Plugin
|
||||
}
|
||||
|
||||
project.dependencies {
|
||||
add(dependencyType, fileTree(dir: 'libs', include: ['*.jar']))
|
||||
add(dependencyType, 'org.nanohttpd:nanohttpd:2.2.0')
|
||||
add(dependencyType, 'com.facebook.react:react-native:+')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue