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:
parent
bce5d852e1
commit
db7b61ab80
@ -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"
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user