Target SDK 28

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2018-08-12 16:39:20 +05:30 committed by Jason A. Donenfeld
parent abb121224d
commit 6efbf65405
3 changed files with 4 additions and 7 deletions

View File

@ -11,12 +11,12 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
compileSdkVersion 27 compileSdkVersion 28
dataBinding.enabled true dataBinding.enabled true
defaultConfig { defaultConfig {
applicationId 'com.wireguard.android' applicationId 'com.wireguard.android'
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 27 targetSdkVersion 28
versionCode 438 versionCode 438
versionName '0.0.20180729' versionName '0.0.20180729'
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel" buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"

View File

@ -58,13 +58,10 @@ public class QuickTileService extends TileService {
return ret; return ret;
} }
/* TODO: for Android P: Build.VERSION_CODES.P */
private static final int BUILD_VERSION_CODES_P = 28;
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@Override @Override
public void onCreate() { 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); iconOff = iconOn = Icon.createWithResource(this, R.drawable.ic_tile);
return; return;
} }

View File

@ -7,7 +7,7 @@ allprojects {
buildscript { buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.1.3' classpath 'com.android.tools.build:gradle:3.1.4'
} }
repositories { repositories {
google() google()