1
- // determines the location of the Android SDK, using a key from
2
- // local.properties. If this file does not exist, an attempt is made to
3
- // infer the location and stored in the local.properties file for future use
4
- // (and easy modification, if the inferred value is wrong).
5
- def androidSdkDir = {
6
- def localPropertiesFile = file(new File (projectDir, " local.properties" ))
7
-
8
- if (! localPropertiesFile. exists()) {
9
- throw new GradleException (" local.properties file missing" )
10
- }
11
-
12
- def props = new Properties ()
13
- localPropertiesFile. withInputStream { props. load(it) }
14
- def sdkDir = props. get(" sdk.dir" )
15
- if (sdkDir == null ) {
16
- throw new GradleException (" sdk.dir not defined in local.properties" )
17
- }
18
- return sdkDir
19
- }
20
-
21
1
buildscript {
22
2
repositories {
23
3
jcenter()
4
+ google()
24
5
}
25
6
26
7
dependencies {
27
- classpath ' com.android.tools.build:gradle:2.3.1 '
28
- classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5 '
8
+ classpath ' com.android.tools.build:gradle:3.0.0-rc2 '
9
+ classpath ' com.github.dcendents:android-maven-gradle-plugin:2.0 '
29
10
}
30
11
}
31
12
32
13
allprojects {
33
14
repositories {
34
15
jcenter()
35
-
36
- maven {
37
- url " ${ androidSdkDir()} /extras/android/m2repository"
38
- }
16
+ google()
39
17
}
40
18
}
41
19
42
20
apply plugin : ' com.android.application'
43
21
44
22
dependencies {
45
- compile ' com.android.support:appcompat-v7:25.3.1'
46
- compile ' com.android.support:design:25.3.1'
47
- compile ' com.squareup.picasso:picasso:2.5.2'
48
- compile ' org.apmem.tools:layouts:1.10@aar'
49
- compile ' net.openid:appauth:0.7.0'
23
+ implementation ' com.android.support:appcompat-v7:26.1.0'
24
+ implementation ' com.android.support:customtabs:26.1.0'
25
+ implementation ' com.android.support:design:26.1.0'
26
+ implementation ' com.squareup.picasso:picasso:2.5.2'
27
+ implementation ' org.apmem.tools:layouts:1.10@aar'
28
+ implementation ' net.openid:appauth:0.7.0'
50
29
}
51
30
52
31
android {
@@ -55,6 +34,7 @@ android {
55
34
' appAuthRedirectScheme' : ' com.googleusercontent.apps.533526602309-6g5u7a7gk5gaevtei81mt8c5aokbeklv'
56
35
]
57
36
}
37
+
58
38
signingConfigs {
59
39
debugAndRelease {
60
40
keyAlias ' appauth'
@@ -63,8 +43,10 @@ android {
63
43
storePassword ' appauth'
64
44
}
65
45
}
66
- compileSdkVersion 25
67
- buildToolsVersion ' 25.0.2'
46
+
47
+ compileSdkVersion 26
48
+ buildToolsVersion ' 26.0.2'
49
+
68
50
sourceSets {
69
51
main. manifest. srcFile ' AndroidManifest.xml'
70
52
main. java. srcDirs = [' src' ]
@@ -73,6 +55,12 @@ android {
73
55
main. assets. srcDir ' assets'
74
56
main. resources. srcDir ' src'
75
57
}
58
+
59
+ compileOptions {
60
+ sourceCompatibility = JavaVersion . VERSION_1_8
61
+ targetCompatibility = JavaVersion . VERSION_1_8
62
+ }
63
+
76
64
buildTypes {
77
65
release {
78
66
minifyEnabled false
@@ -83,10 +71,12 @@ android {
83
71
signingConfig signingConfigs. debugAndRelease
84
72
}
85
73
}
74
+
86
75
packagingOptions {
87
76
exclude ' META-INF/LICENSE.txt'
88
77
exclude ' META-INF/NOTICE.txt'
89
78
}
79
+
90
80
lintOptions {
91
81
warningsAsErrors true
92
82
disable ' PrivateResource'
0 commit comments