diff --git a/app/build.gradle b/app/build.gradle index 5a54d0e..c097057 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,9 +10,10 @@ android { defaultConfig { applicationId "net.crystalyx.setaswallpaper" minSdkVersion 5 + //noinspection OldTargetApi targetSdkVersion 32 - versionCode 7 - versionName "3.0" + versionCode 8 + versionName "3.1" } signingConfigs { @@ -30,7 +31,9 @@ android { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - signingConfig signingConfigs.release + if (System.env.STORE_FILE) { + signingConfig signingConfigs.release + } } } diff --git a/app/src/main/java/net/crystalyx/setaswallpaper/SetWallpaperActivity.java b/app/src/main/java/net/crystalyx/setaswallpaper/SetWallpaperActivity.java index eb17526..f9a4a64 100644 --- a/app/src/main/java/net/crystalyx/setaswallpaper/SetWallpaperActivity.java +++ b/app/src/main/java/net/crystalyx/setaswallpaper/SetWallpaperActivity.java @@ -78,6 +78,8 @@ public class SetWallpaperActivity extends Activity { } Toast.makeText(this, "Wallpaper set!", Toast.LENGTH_SHORT).show(); + + finish(); } } diff --git a/build.gradle b/build.gradle index e470766..63ea1c4 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,10 @@ allprojects { google() mavenCentral() } + + tasks.withType(JavaCompile) { + options.deprecation = true + } } task clean(type: Delete) {