2017-08-01 18:44:14 +02:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
2018-09-06 15:58:44 +02:00
|
|
|
def safeExtGet(prop, fallback) {
|
|
|
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
|
|
}
|
|
|
|
|
2017-08-01 18:44:14 +02:00
|
|
|
android {
|
2018-09-06 15:58:44 +02:00
|
|
|
compileSdkVersion safeExtGet('compileSdkVersion', 26)
|
|
|
|
buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
|
2017-08-01 18:44:14 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
2018-09-06 15:58:44 +02:00
|
|
|
minSdkVersion safeExtGet('minSdkVersion', 16)
|
|
|
|
targetSdkVersion safeExtGet('targetSdkVersion', 26)
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
2017-08-01 18:44:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-09-06 15:58:44 +02:00
|
|
|
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" // From node_modules
|
2017-08-01 18:44:14 +02:00
|
|
|
}
|