-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.gradle
76 lines (72 loc) · 2.04 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
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
jcenter()
google()
maven {
url 'https://jitpack.io'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.6'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'com.github.cliqz-oss:minibloomfilter:1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
ext {
compileSdkVersion = 29
targetSdkVersion = 29
minSdkVersion = 21
buildToolsVersion = "29.0.2"
supportLibVersion = "28.0.0"
reactNativeVersion = "0.59.8"
butterKnifeVersion = "10.1.0"
}
subprojects { subproject ->
afterEvaluate{
if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
}
}
}
}
}
allprojects {
buildscript {
repositories {
google()
}
}
repositories {
jcenter()
google()
maven {
url 'https://jitpack.io'
}
maven {
url "http://dl.bintray.com/cliqz/cliqz-oss"
}
maven {
url 'https://dl.bintray.com/guardian/android'
}
maven {
url "${rootProject.projectDir}/node_modules/react-native/android"
}
maven {
// Local Maven repo containing AARs with JSC library built for Android
url "${rootProject.projectDir}/node_modules/jsc-android/dist"
}
}
configurations.all {
resolutionStrategy {
force "com.facebook.react:react-native:${reactNativeVersion}"
}
}
}