diff --git a/app/build.gradle b/app/build.gradle index a509c78..25cd588 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,18 +7,18 @@ android { applicationId "eu.aero2x.andromedab" minSdkVersion 19 targetSdkVersion 25 - versionCode 2 - versionName "1.2.1" + versionCode 4 + versionName "1.2.0.1" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - buildConfigField "double", "MIN_SERVER_VERSION", "1.2" + buildConfigField "String", "MIN_SERVER_VERSION", '"1.2.0"' } debug{ - buildConfigField "double", "MIN_SERVER_VERSION", "1.2" + buildConfigField "String", "MIN_SERVER_VERSION", '"1.2.0"' } } diff --git a/app/src/main/java/eu/aero2x/andromedab/ContactSelect.java b/app/src/main/java/eu/aero2x/andromedab/ContactSelect.java index f068d26..b4f2ac9 100644 --- a/app/src/main/java/eu/aero2x/andromedab/ContactSelect.java +++ b/app/src/main/java/eu/aero2x/andromedab/ContactSelect.java @@ -264,7 +264,7 @@ public void onResponse(String response) { //Check if our server version is below the app's required - if (serverVersion.compareTo(new Version("" + BuildConfig.MIN_SERVER_VERSION)) < 0) { + if (serverVersion.compareTo(new Version(BuildConfig.MIN_SERVER_VERSION)) < 0) { AlertDialog alertDialog = new AlertDialog.Builder(ContactSelect.this).create(); alertDialog.setTitle("Server version too old"); alertDialog.setMessage("Your server is running version " + serverVersion.get() + " but the BUILDCONFIG for the application demands that you be running at least " + BuildConfig.MIN_SERVER_VERSION + "\n\nYou can continue to use the application however behavior is entirely undocumented.");