aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarsh Shandilya <harsh@prjkt.io>2018-08-12 16:39:20 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2018-08-26 11:04:01 -0600
commit0b8620e1273dd739c844cfa8586d1ef89bb141f4 (patch)
treece8da78965e8388af391e29021f38333efad222c
parentFragmentUtils: Make final and prevent instantiation (diff)
downloadwireguard-android-0b8620e1273dd739c844cfa8586d1ef89bb141f4.tar.xz
wireguard-android-0b8620e1273dd739c844cfa8586d1ef89bb141f4.zip
Target SDK 28
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
-rw-r--r--app/build.gradle4
-rw-r--r--app/src/main/java/com/wireguard/android/QuickTileService.java5
-rw-r--r--build.gradle2
3 files changed, 4 insertions, 7 deletions
diff --git a/app/build.gradle b/app/build.gradle
index e8b5ce8..fede1f0 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 27
+ compileSdkVersion 28
dataBinding.enabled true
defaultConfig {
applicationId 'com.wireguard.android'
minSdkVersion 21
- targetSdkVersion 27
+ targetSdkVersion 28
versionCode 438
versionName '0.0.20180729'
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 55d3528..15b0667 100644
--- a/app/src/main/java/com/wireguard/android/QuickTileService.java
+++ b/app/src/main/java/com/wireguard/android/QuickTileService.java
@@ -58,13 +58,10 @@ 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;
}
diff --git a/build.gradle b/build.gradle
index a0bc296..9ae48b2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,7 +7,7 @@ allprojects {
buildscript {
dependencies {
- classpath 'com.android.tools.build:gradle:3.1.3'
+ classpath 'com.android.tools.build:gradle:3.1.4'
}
repositories {
google()