2019-02-24 02:52:56 +00:00
|
|
|
|
|
|
|
buildscript {
|
2019-03-03 07:43:30 +00:00
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
jcenter()
|
|
|
|
}
|
2019-02-24 02:52:56 +00:00
|
|
|
|
2019-03-03 07:43:30 +00:00
|
|
|
dependencies {
|
|
|
|
classpath 'com.android.tools.build:gradle:3.2.1'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def getExtOrDefault(name) {
|
|
|
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['ReactNativeCameraRoll_' + name]
|
|
|
|
}
|
|
|
|
|
|
|
|
def getExtOrIntegerDefault(name) {
|
|
|
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['ReactNativeCameraRoll_' + name]).toInteger()
|
2019-02-24 02:52:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
2019-03-03 07:43:30 +00:00
|
|
|
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
|
|
|
|
buildToolsVersion getExtOrDefault('buildToolsVersion')
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
|
|
|
|
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
|
|
|
}
|
2019-02-24 02:52:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2019-03-03 07:43:30 +00:00
|
|
|
google()
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
2019-02-24 02:52:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-03-03 07:43:30 +00:00
|
|
|
//noinspection GradleDynamicVersion
|
|
|
|
api 'com.facebook.react:react-native:+'
|
2019-02-24 02:52:56 +00:00
|
|
|
}
|