SolutiLyon 74ae697443
using root properties for versions (latest rn) (#305)
Co-authored-by: bberthelemy <>
Co-authored-by: Luan Curti <luancurti@gmail.com>
2020-05-19 23:36:57 -03:00

40 lines
825 B
Groovy

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
}
}
apply plugin: 'com.android.library'
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
}
dependencies {
implementation "com.facebook.react:react-native:${safeExtGet("reactNative", "+")}" // from node_modules
}