12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- buildscript {
- repositories {
- google()
- jcenter()
- }
-
- dependencies {
- //noinspection GradleDependency
- classpath 'com.android.tools.build:gradle:3.2.1'
- }
- }
-
- def getExtOrDefault(name) {
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['ReactNativeSafeAreaView_' + name]
- }
-
- def getExtOrIntegerDefault(name) {
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['ReactNativeSafeAreaView_' + name]).toInteger()
- }
-
- apply plugin: 'com.android.library'
-
- android {
- compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
- buildToolsVersion getExtOrDefault('buildToolsVersion')
-
- defaultConfig {
- minSdkVersion getExtOrIntegerDefault('minSdkVersion')
- targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
- }
- lintOptions{
- abortOnError false
- }
- }
-
- repositories {
- google()
- jcenter()
- mavenCentral()
- }
-
- dependencies {
- //noinspection GradleDynamicVersion
- api 'com.facebook.react:react-native:+'
- }
|