1
1
apply plugin : ' com.android.application'
2
-
3
2
apply plugin : ' kotlin-android'
4
3
apply plugin : ' kotlin-android-extensions'
5
-
6
4
apply plugin : ' realm-android'
7
5
apply plugin : ' io.fabric'
8
6
9
7
android {
8
+ defaultConfig {
9
+ vectorDrawables. useSupportLibrary = true
10
+ }
11
+ flavorDimensions " default"
10
12
configurations. all {
11
13
resolutionStrategy. force ' com.google.code.findbugs:jsr305:1.3.9'
12
14
}
13
-
14
15
dexOptions {
15
16
maxProcessCount 4
16
17
}
17
-
18
- compileSdkVersion 25
19
- buildToolsVersion ' 23.0.3'
18
+ compileSdkVersion 26
20
19
defaultConfig {
21
20
applicationId ' com.bodyweight.fitness'
22
- minSdkVersion 16
23
- targetSdkVersion 25
21
+ minSdkVersion 21
22
+ targetSdkVersion 26
24
23
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
25
24
}
26
25
compileOptions {
@@ -43,15 +42,12 @@ android {
43
42
productFlavors {
44
43
pro {
45
44
resValue " string" , " file_provider" , " com.bodyweight.fitness.pro.fileprovider"
46
-
47
45
applicationId ' com.bodyweight.fitness.pro'
48
46
versionCode 141
49
47
versionName " 1.4.1"
50
48
}
51
-
52
49
free {
53
50
resValue " string" , " file_provider" , " com.bodyweight.fitness.free.fileprovider"
54
-
55
51
applicationId ' com.bodyweight.fitness.free'
56
52
versionCode 141
57
53
versionName " 1.4.1"
@@ -61,17 +57,14 @@ android {
61
57
release {
62
58
minifyEnabled false
63
59
}
64
-
65
60
debug {
66
61
minifyEnabled false
67
62
ext. enableCrashlytics = false
68
63
}
69
64
}
70
-
71
65
sourceSets {
72
66
main. java. srcDirs + = ' src/main/java'
73
67
main. java. srcDirs + = ' src/main/kotlin'
74
- androidTest. java. srcDirs + = ' src/androidTest/kotlin'
75
68
test. java. srcDirs + = ' src/test/kotlin'
76
69
}
77
70
}
@@ -85,70 +78,45 @@ configurations {
85
78
}
86
79
87
80
dependencies {
88
- compile fileTree(include : [' *.jar' ], dir : ' libs' )
89
-
90
- testCompile ' org.jetbrains.spek:spek:1.0.9'
91
- testCompile ' org.mockito:mockito-all:2.0.2-beta'
81
+ implementation fileTree(dir : ' libs' , include : [' *.jar' ])
92
82
93
- androidTestCompile " com.android.support:support-annotations:$support_version "
94
- androidTestCompile ' com.android.support.test:runner:0.5'
95
- androidTestCompile ' com.android.support.test:rules:0.5'
96
- androidTestCompile " com.android.support.test.espresso:espresso-core:2.2.2"
83
+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version "
97
84
98
- compile " com.android.support:support-v4:$support_version "
99
- compile " com.android.support:recyclerview-v7:$support_version "
100
- compile " com.android.support:cardview-v7:$support_version "
101
- compile " com.android.support:design:$support_version "
85
+ testImplementation ' org.jetbrains.spek:spek:1.0.9'
86
+ testImplementation ' org.mockito:mockito-all:2.0.2-beta'
102
87
103
- compile ' com.google.code.gson:gson:2.4'
88
+ androidTestImplementation " com.android.support:support-annotations:$support_version "
89
+ androidTestImplementation ' com.android.support.test:runner:0.5'
90
+ androidTestImplementation ' com.android.support.test:rules:0.5'
91
+ androidTestImplementation " com.android.support.test.espresso:espresso-core:2.2.2"
104
92
105
- compile ' commons-io:commons-io:2.4'
106
- compile ' net.danlew:android.joda:2.9.3'
93
+ implementation " com.android.support:support-v4:$support_version "
94
+ implementation " com.android.support:recyclerview-v7:$support_version "
95
+ implementation " com.android.support:cardview-v7:$support_version "
96
+ implementation " com.android.support:design:$support_version "
107
97
108
- compile ' com.netflix.rxjava:rxjava-core:0.20.7'
109
- compile ' io.reactivex:rxandroid:1.2.1'
110
- compile ' io.reactivex:rxjava:1.2.1'
98
+ implementation ' com.google.code.gson:gson:2.4'
111
99
112
- compile ' com.trello:rxlifecycle:0.8.0'
113
- compile ' com.trello:rxlifecycle-components:0.8.0'
114
- compile ' com.trello:rxlifecycle-kotlin:0.8.0'
100
+ implementation ' commons-io:commons-io:2.4'
101
+ implementation ' net.danlew:android.joda:2.9.3'
115
102
116
- compile ' com.robinhood.spark:spark:1.1.2'
103
+ implementation ' com.netflix.rxjava:rxjava-core:0.20.7'
104
+ implementation ' io.reactivex:rxandroid:1.2.1'
105
+ implementation ' io.reactivex:rxjava:1.2.1'
117
106
118
- compile ' com.roughike:bottom-bar:2.0.2'
119
- compile ' com.github.johnkil.android-robototextview:robototextview:2.5.1'
120
- compile ' com.gordonwong:material-sheet-fab:1.2.1'
121
- compile ' io.github.kobakei:ratethisapp:1.0.3'
122
- compile ' com.github.paolorotolo:appintro:4.1.0'
107
+ implementation ' com.trello:rxlifecycle:0.8.0'
108
+ implementation ' com.trello:rxlifecycle-components:0.8.0'
109
+ implementation ' com.trello:rxlifecycle-kotlin:0.8.0'
123
110
124
- compile(' com.crashlytics.sdk.android:crashlytics:2.5.5@aar' ) {
125
- transitive = true ;
126
- }
111
+ implementation ' com.robinhood.spark:spark:1.2.0'
127
112
128
- compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
129
- testCompile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
130
- }
113
+ implementation ' com.roughike:bottom-bar:2.0.2'
114
+ implementation ' com.github.johnkil.android-robototextview:robototextview:4.0.0'
115
+ implementation ' com.gordonwong:material-sheet-fab:1.2.1'
116
+ implementation ' io.github.kobakei:ratethisapp:1.0.3'
117
+ implementation ' com.github.paolorotolo:appintro:4.1.0'
131
118
132
- buildscript {
133
- ext. support_version = ' 25.1.0'
134
- ext. kotlin_version = ' 1.0.4'
135
- repositories {
136
- mavenCentral()
137
- maven {
138
- url " http://repository.jetbrains.com/all"
139
- }
140
- maven { url ' https://maven.fabric.io/public' }
141
- }
142
- dependencies {
143
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
144
- classpath ' io.fabric.tools:gradle:1.+'
119
+ implementation(' com.crashlytics.sdk.android:crashlytics:2.5.5@aar' ) {
120
+ transitive = true
145
121
}
146
122
}
147
-
148
- repositories {
149
- mavenCentral()
150
- maven {
151
- url " http://repository.jetbrains.com/all"
152
- }
153
- maven { url ' https://maven.fabric.io/public' }
154
- }
0 commit comments