forked from qpython-android/qpython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
118 lines (91 loc) · 4.17 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
def supportVersion = "28.0.0" // equals to line60
def retrofitVersion = '2.9.0'
def rxVersion = '1.3.8'
def okhttpVersion = '5.0.0-alpha.10'
def butterknifeVersion = '9.0.0' //eqals to line 26
buildscript {
repositories {
jcenter()
google()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://maven.google.com" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
// A gradle plugin for getting java lambda support in java 6, 7 and android
// https://github.com/evant/gradle-retrolambda
classpath 'me.tatarka:gradle-retrolambda:3.7.0'
// Gradle plugin which downloads and manages your Android SDK.
//classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
// Field and method binding for Android views which uses annotation processing to generate boilerplate code for you.
// https://github.com/JakeWharton/butterknife
classpath "com.jakewharton:butterknife-gradle-plugin:9.0.0-rc2"
// Realm is a mobile database: a replacement for SQLite & ORMs
// https://github.com/realm/realm-java
classpath "io.realm:realm-gradle-plugin:3.5.0"
classpath 'com.google.gms:google-services:4.3.10'
}
}
allprojects {
repositories {
jcenter()
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'https://dl.bintray.com/azeesoft/maven' }
//maven { url "http://mvn.leancloud.cn/nexus/content/repositories/public" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
def androidHome
if ((androidHome = System.env.'ANDROID_HOME')
&& (androidHome = androidHome as File).exists()
&& androidHome.canWrite()) {
//apply plugin: 'android-sdk-manager'
}
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion "${supportVersion}"
}
}
}
}
ext {
libOkHttp3 = "com.squareup.okhttp3:okhttp:${okhttpVersion}"
libRxJava = "io.reactivex:rxandroid:${rxVersion}"
libRxAndroid = "io.reactivex:rxjava:${rxVersion}"
libFileDownloaderLib = 'com.liulishuo.filedownloader:library:0.3.5'
libSupportV4 = "com.android.support:support-v4:${supportVersion}"
libSupportV4Design = 'com.android.support:design:${supportVersion}'
libSupportV7 = "com.android.support:appcompat-v7:${supportVersion}"
libSupportCardView = "com.android.support:cardview-v7:${supportVersion}"
libSupportPreference = "com.android.support:preference-v14:${supportVersion}"
libSupportAnnotation = "com.android.support:support-annotations:${supportVersion}"
libSupportDesign = "com.android.support:design:${supportVersion}"
libOkHttp3Log = "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
minSdkVersion = 14
targetSdkVersion = 28
compileSdkVersion = 28
buildToolsVersion = '28.0.3'
// firebase related https://firebase.google.com/docs/android/setup
firebaseCore = "com.google.firebase:firebase-core:16.0.6"
firebaseMsg = "com.google.firebase:firebase-messaging:17.3.4"
firebaseAuth = "com.google.firebase:firebase-auth:16.1.0"
firebaseDatabase = "com.google.firebase:firebase-database:16.0.5"
// https://developers.google.com/android/guides/setup
googlePlayServiceAuth = "com.google.android.gms:play-services-auth:16.0.1"
leakcanaryDebug = 'com.squareup.leakcanary:leakcanary-android:1.5.4'
leakcanaryRelease = 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
libGoogleGuava = 'com.google.guava:guava:18.0'
retrofit = "com.squareup.retrofit2:retrofit:${retrofitVersion}"
retrofitCoverterGson = "com.squareup.retrofit2:converter-gson:${retrofitVersion}"
retrofitAdapterRxjava = "com.squareup.retrofit2:adapter-rxjava:${retrofitVersion}"
libButterknife = "com.jakewharton:butterknife:${butterknifeVersion}"
libButterknifeCompiler ="com.jakewharton:butterknife-compiler:${butterknifeVersion}"
}