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>
This commit is contained in:
Jason A. Donenfeld 2018-07-29 16:01:44 +02:00
parent bce5d852e1
commit db7b61ab80
2 changed files with 6 additions and 3 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 28 compileSdkVersion 27
dataBinding.enabled true dataBinding.enabled true
defaultConfig { defaultConfig {
applicationId 'com.wireguard.android' applicationId 'com.wireguard.android'
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 28 targetSdkVersion 27
versionCode 437 versionCode 437
versionName '0.0.20180725' versionName '0.0.20180725'
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel" buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"

View File

@ -58,10 +58,13 @@ 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;
} }