1 | buildscript {
|
2 |
|
3 |
|
4 |
|
5 | if (project == rootProject) {
|
6 | repositories {
|
7 | google()
|
8 | jcenter()
|
9 | }
|
10 |
|
11 | dependencies {
|
12 | classpath("com.android.tools.build:gradle:3.5.3")
|
13 | }
|
14 | }
|
15 | }
|
16 |
|
17 | apply plugin: 'com.android.library'
|
18 |
|
19 | def safeExtGet(prop, fallback) {
|
20 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
21 | }
|
22 |
|
23 |
|
24 | android {
|
25 | compileSdkVersion safeExtGet('compileSdkVersion', 28)
|
26 |
|
27 | defaultConfig {
|
28 | minSdkVersion safeExtGet('minSdkVersion', 16)
|
29 | targetSdkVersion safeExtGet('targetSdkVersion', 28)
|
30 | versionCode 1
|
31 | versionName "1.0"
|
32 | }
|
33 | lintOptions {
|
34 | abortOnError false
|
35 | }
|
36 | }
|
37 |
|
38 | repositories {
|
39 | mavenLocal()
|
40 | google()
|
41 | jcenter()
|
42 | maven {
|
43 |
|
44 | url "$rootDir/../node_modules/react-native/android"
|
45 | }
|
46 | }
|
47 |
|
48 | dependencies {
|
49 | implementation "com.facebook.react:react-native:+"
|
50 | }
|