mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 22:36:01 +00:00
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()`.
|
* [Sync] Added `Session.isConnected()`.
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
* None.
|
* React Native for Android now supports the Android Gradle Plugin 3.0 (#1742).
|
||||||
|
|
||||||
### Internals
|
### Internals
|
||||||
* Updated to Object Store commit: 97fd03819f398b3c81c8b007feaca8636629050b
|
* Updated to Object Store commit: 97fd03819f398b3c81c8b007feaca8636629050b
|
||||||
|
@ -126,11 +126,11 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':react-native-exit-app-no-history')
|
implementation project(':react-native-exit-app-no-history')
|
||||||
compile fileTree(dir: "libs", include: ["*.jar"])
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||||
compile "com.android.support:appcompat-v7:23.0.1"
|
implementation "com.android.support:appcompat-v7:23.0.1"
|
||||||
compile "com.facebook.react:react-native:+" // From node_modules
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
||||||
compile project(":realm")
|
implementation project(":realm")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run this once to be able to run the application with BUCK
|
// Run this once to be able to run the application with BUCK
|
||||||
|
@ -6,7 +6,7 @@ buildscript {
|
|||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
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
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
@ -392,8 +392,15 @@ afterEvaluate { project ->
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
def dependencyType = "implementation"
|
||||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
try {
|
||||||
compile 'org.nanohttpd:nanohttpd:2.2.0'
|
project.getConfigurations().getByName("implementation")
|
||||||
compile 'com.facebook.react:react-native:+' // From node_modules
|
} 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
|
preBuild.dependsOn send
|
||||||
|
|
||||||
dependencies {
|
def dependencyType = "implementation"
|
||||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
try {
|
||||||
compile 'org.nanohttpd:nanohttpd:2.2.0'
|
project.getConfigurations().getByName("implementation")
|
||||||
compile 'com.facebook.react:react-native:+' // From node_modules
|
} 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…
x
Reference in New Issue
Block a user