Skip to content

Commit

Permalink
fix build number check, bump version to 0.2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyjhuang committed Sep 1, 2016
1 parent 8de596f commit 52e5022
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ android {
applicationId "com.tonyjhuang.cheddar"
minSdkVersion 15
targetSdkVersion 23
versionCode 9
versionName "0.2.0.3"
versionCode 10
versionName "0.2.0.4"
multiDexEnabled true
}

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/tonyjhuang/cheddar/api/CheddarApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.content.Context;

import com.crashlytics.android.Crashlytics;
import com.tonyjhuang.cheddar.BuildConfig;
import com.tonyjhuang.cheddar.CheddarPrefs_;
import com.tonyjhuang.cheddar.api.cache.CacheApi;
import com.tonyjhuang.cheddar.api.message.MessageApi;
Expand Down Expand Up @@ -370,7 +371,7 @@ public Observable<String> sendFeedback(String feedback) {
*/
public Observable<Boolean> checkVersionUpgrade() {
return parseApi.getMinimumBuildNumber()
.map(minBuildNumber -> true)//BuildConfig.VERSION_CODE < minBuildNumber)
.map(minBuildNumber -> BuildConfig.VERSION_CODE < minBuildNumber)
.doOnError(Crashlytics::logException);
}

Expand Down

0 comments on commit 52e5022

Please sign in to comment.