react-native-cameraroll/android/build.gradle

43 lines
929 B
Groovy
Raw Permalink Normal View History

buildscript {
2019-03-03 07:43:30 +00:00
repositories {
google()
jcenter()
}
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()
}
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')
}
}
repositories {
2019-03-03 07:43:30 +00:00
google()
jcenter()
mavenCentral()
}
dependencies {
2019-03-03 07:43:30 +00:00
//noinspection GradleDynamicVersion
api 'com.facebook.react:react-native:+'
}