Denis Oliveira 5629d6560e
Support newest Android Gradle Plugin (#512)
* Update gradle plugin and compliance on dotenv.gradle

* Update gradle plugin from example and minimum gradle support
2020-10-22 10:27:15 -03:00

39 lines
769 B
Groovy

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
}
}
apply plugin: 'com.android.library'
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
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
}