Skip to content

Commit 44da2ee

Browse files
authored
Bug Fixes (mazurio#70)
1 parent a0af819 commit 44da2ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+235
-553
lines changed

app/build.gradle

+36-68
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
apply plugin: 'com.android.application'
2-
32
apply plugin: 'kotlin-android'
43
apply plugin: 'kotlin-android-extensions'
5-
64
apply plugin: 'realm-android'
75
apply plugin: 'io.fabric'
86

97
android {
8+
defaultConfig {
9+
vectorDrawables.useSupportLibrary = true
10+
}
11+
flavorDimensions "default"
1012
configurations.all {
1113
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
1214
}
13-
1415
dexOptions {
1516
maxProcessCount 4
1617
}
17-
18-
compileSdkVersion 25
19-
buildToolsVersion '23.0.3'
18+
compileSdkVersion 26
2019
defaultConfig {
2120
applicationId 'com.bodyweight.fitness'
22-
minSdkVersion 16
23-
targetSdkVersion 25
21+
minSdkVersion 21
22+
targetSdkVersion 26
2423
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
2524
}
2625
compileOptions {
@@ -43,15 +42,12 @@ android {
4342
productFlavors {
4443
pro {
4544
resValue "string", "file_provider", "com.bodyweight.fitness.pro.fileprovider"
46-
4745
applicationId 'com.bodyweight.fitness.pro'
4846
versionCode 141
4947
versionName "1.4.1"
5048
}
51-
5249
free {
5350
resValue "string", "file_provider", "com.bodyweight.fitness.free.fileprovider"
54-
5551
applicationId 'com.bodyweight.fitness.free'
5652
versionCode 141
5753
versionName "1.4.1"
@@ -61,17 +57,14 @@ android {
6157
release {
6258
minifyEnabled false
6359
}
64-
6560
debug {
6661
minifyEnabled false
6762
ext.enableCrashlytics = false
6863
}
6964
}
70-
7165
sourceSets {
7266
main.java.srcDirs += 'src/main/java'
7367
main.java.srcDirs += 'src/main/kotlin'
74-
androidTest.java.srcDirs += 'src/androidTest/kotlin'
7568
test.java.srcDirs += 'src/test/kotlin'
7669
}
7770
}
@@ -85,70 +78,45 @@ configurations {
8578
}
8679

8780
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'])
9282

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"
9784

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'
10287

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"
10492

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"
10797

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'
11199

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'
115102

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'
117106

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'
123110

124-
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
125-
transitive = true;
126-
}
111+
implementation 'com.robinhood.spark:spark:1.2.0'
127112

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'
131118

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
145121
}
146122
}
147-
148-
repositories {
149-
mavenCentral()
150-
maven {
151-
url "http://repository.jetbrains.com/all"
152-
}
153-
maven { url 'https://maven.fabric.io/public' }
154-
}

app/src/androidTest/kotlin/com/bodyweight/fitness/MainActivityTest.kt

-58
This file was deleted.

app/src/main/java/com/bodyweight/fitness/exception/CacheDirectoryCreationException.java

-7
This file was deleted.

app/src/main/java/com/bodyweight/fitness/persistence/Duration.java

-20
This file was deleted.

app/src/main/java/com/bodyweight/fitness/persistence/Glacier.java

-113
This file was deleted.

0 commit comments

Comments
 (0)