-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
build.gradle
84 lines (78 loc) 路 3.51 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
buildscript {
ext.buildToolsVersion = "30.0.2"
ext.minSdkVersion = 21
ext.compileSdkVersion = 30
ext.targetSdkVersion = 30
ext.ndkVersion = "20.1.5948944"
ext.kotlinVersion = '1.4.32' // https://kotlinlang.org/releases.html
ext.supportLibVersion = "1.3.2" // this maps to androidx.core https://developer.android.com/jetpack/androidx/releases/core
ext.appCompatVersion = "1.2.0" // this maps to androidx.appcompat https://developer.android.com/jetpack/androidx/releases/appcompat
ext.supportVersion = ext.supportLibVersion
//noinspection GradleDependency https://github.com/facebook/react-native/pull/30061
// We will be able to bump to 2.3.0 with react-native 0.65.0+, fresco 2.4.0 is out maybe possible
ext.frescoVersion = "2.2.0" // https://github.com/facebook/fresco/releases
ext.fragmentVersion = "1.3.2" // https://developer.android.com/jetpack/androidx/releases/fragment
ext.vectordrawableVersion = "1.1.0" // https://developer.android.com/jetpack/androidx/releases/vectordrawable
ext.androidxAnnotationVersion = "1.2.0" // https://developer.android.com/jetpack/androidx/releases/annotation
ext.googlePlayServicesLocationVersion = "18.0.0" // https://developers.google.com/android/guides/setup
ext.googlePlayServicesVersion = "17.6.0" // play-services-base
ext.googlePlayServicesAuthVersion = "19.0.0" // play-services-auth
ext.googlePlayServicesVisionVersion = "20.1.3" // play-services-vision
ext.mediaCompatVersion = "1.3.0" // https://developer.android.com/jetpack/androidx/releases/media
ext.supportV4Version = "1.0.0" // https://developer.android.com/jetpack/androidx/releases/legacy androidx.legacy:legacy-support-v4
ext.swiperefreshlayoutVersion = "1.1.0" // https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.google.gms:google-services:4.3.5' // https://developers.google.com/android/guides/google-services-plugin
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.google.firebase:perf-plugin:1.3.5'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.2'
}
}
allprojects {
println "${project.name} ${projectDir} ${rootDir}"
repositories {
google()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
// maven {
// // Detox as an .aar file (we're going to use it as a compile dependency though, to patch it)
// url "$rootDir/../node_modules/detox/Detox-android"
// }
mavenCentral()
jcenter() // com.facebook.yoa:proguard-annotations not published elsewhere yet, and react-native needs new flipper+fbjni-java-only
}
}
subprojects {
task listAllDependencies(type: DependencyReportTask) {}
ext {
compileSdk = rootProject.ext.compileSdkVersion
buildTools = rootProject.ext.buildToolsVersion
minSdk = rootProject.ext.minSdkVersion
targetSdk = rootProject.ext.targetSdkVersion
}
afterEvaluate { project ->
if (!project.name.equalsIgnoreCase("app")
&& project.hasProperty("android")) {
android {
compileSdkVersion compileSdk
buildToolsVersion buildTools
defaultConfig {
minSdkVersion minSdk
targetSdkVersion targetSdk
}
}
}
}
}