-
Notifications
You must be signed in to change notification settings - Fork 767
/
Copy pathbuild.gradle
51 lines (48 loc) · 1.44 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Top-level build file where you can add configuration options common to all sub-projects/modules.
import groovy.json.JsonSlurper
buildscript {
ext{
androidGradlePluginVersion = '4.0.0'
kotlinVersion = "1.3.61"
googleServices = "4.3.3"
androidSdkVersion = 33
}
repositories {
mavenLocal()
mavenCentral()
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidGradlePluginVersion"
classpath "com.google.gms:google-services:$googleServices"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
google()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../../node_modules/react-native/android"
}
}
}
subprojects {
afterEvaluate { project ->
if ((project.plugins.hasPlugin('android') || project.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion rootProject.ext.androidSdkVersion
}
}
if (project.hasProperty('defaultConfig')) {
defaultConfig {
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidSdkVersion
}
}
}
}