summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-07-29 16:01:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-29 16:01:44 +0200
commitdb7b61ab8008bce451a887b5f013203a05c2feca (patch)
tree4faf0488bc6364030fa0f90cafdb0116c75b45e9
parentbce5d852e12a0f22c4746cb64dd2d7237a4b7c01 (diff)
Roll back to API 27 for now
There's no source available for API 28, which is a pain. But this commit should be reverted whenever source is released. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--app/build.gradle4
-rw-r--r--app/src/main/java/com/wireguard/android/QuickTileService.java5
2 files changed, 6 insertions, 3 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 0e1cdd07..da77da48 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -11,12 +11,12 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
- compileSdkVersion 28
+ compileSdkVersion 27
dataBinding.enabled true
defaultConfig {
applicationId 'com.wireguard.android'
minSdkVersion 21
- targetSdkVersion 28
+ targetSdkVersion 27
versionCode 437
versionName '0.0.20180725'
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
diff --git a/app/src/main/java/com/wireguard/android/QuickTileService.java b/app/src/main/java/com/wireguard/android/QuickTileService.java
index 15b06670..55d3528f 100644
--- a/app/src/main/java/com/wireguard/android/QuickTileService.java
+++ b/app/src/main/java/com/wireguard/android/QuickTileService.java
@@ -58,10 +58,13 @@ public class QuickTileService extends TileService {
return ret;
}
+ /* TODO: for Android P: Build.VERSION_CODES.P */
+ private static final int BUILD_VERSION_CODES_P = 28;
+
@SuppressWarnings("deprecation")
@Override
public void onCreate() {
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
+ if (Build.VERSION.SDK_INT >= BUILD_VERSION_CODES_P) {
iconOff = iconOn = Icon.createWithResource(this, R.drawable.ic_tile);
return;
}