File tree Expand file tree Collapse file tree 4 files changed +28
-20
lines changed Expand file tree Collapse file tree 4 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 29
29
** /.idea /libraries
30
30
** /.idea /dictionaries
31
31
** /.idea /runConfigurations.xml
32
+ ** /.idea /caches
32
33
33
34
# layout inspector view captures
34
35
captures
Original file line number Diff line number Diff line change 1
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
1
+ buildscript {
2
+ ext. kotlinVersion = ' 1.2.31'
3
+ repositories {
4
+ google()
5
+ jcenter()
6
+ }
7
+ dependencies {
8
+ classpath ' com.android.tools.build:gradle:3.1.0'
9
+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion "
10
+ }
11
+ }
12
+
13
+ allprojects {
14
+ repositories {
15
+ google()
16
+ jcenter()
17
+ }
18
+ }
19
+
2
20
subprojects { project ->
3
21
group = GROUP
4
22
version = VERSION_NAME
@@ -20,38 +38,25 @@ subprojects { project ->
20
38
check. dependsOn(' checkstyle' )
21
39
}
22
40
}
41
+ }
23
42
24
- buildscript {
25
- repositories {
26
- google()
27
- jcenter()
28
- }
29
- dependencies {
30
- classpath ' com.android.tools.build:gradle:3.1.0'
31
- }
32
- }
33
-
34
- repositories {
35
- google()
36
- jcenter()
37
- }
43
+ task clean (type : Delete ) {
44
+ delete rootProject. buildDir
38
45
}
39
46
40
47
ext {
41
48
minSdkVersion = 8
42
49
targetSdkVersion = 27
43
50
compileSdkVersion = 27
44
51
buildToolsVersion = ' 27.0.3'
45
- sourceCompatibilityVersion = JavaVersion . VERSION_1_7
46
- targetCompatibilityVersion = JavaVersion . VERSION_1_7
47
52
}
48
53
49
54
ext. deps = [
50
- // Test dependencies
51
55
junit : ' junit:junit:4.12' ,
52
56
truth : ' com.google.truth:truth:0.28' ,
53
57
robolectric : ' org.robolectric:robolectric:3.3' ,
54
58
mockito : " org.mockito:mockito-core:1.10.19" ,
55
59
json : " org.json:json:20160810" ,
56
- supportAnnotations : " com.android.support:support-annotations:27.1.0"
57
- ]
60
+ supportAnnotations : " com.android.support:support-annotations:27.1.0" ,
61
+ kotlin : " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion "
62
+ ]
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
+ apply plugin : ' kotlin-android'
2
3
3
4
android {
4
5
compileSdkVersion rootProject. ext. compileSdkVersion
@@ -26,6 +27,7 @@ dependencies {
26
27
testImplementation deps. robolectric
27
28
testImplementation deps. mockito
28
29
testImplementation deps. json
30
+ testImplementation deps. kotlin
29
31
}
30
32
31
33
apply from : rootProject. file(' gradle/maven_push.gradle' )
You can’t perform that action at this time.
0 commit comments