Skip to content

Commit

Permalink
Migrate to target SDK 34 (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
frimtec authored Oct 7, 2023
1 parent a9f9c2a commit fddd9a6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ The use of PAssist is at your own risk. The author assumes no liability for malf
Any warranty claims are excluded.

## Development
PAssist is developed with [Android-Studio][android-studio] with Java 11. The current Android target
SDK is 33 (Android 13-Tiramisu) and the minimal SDK is 26 (Android 8.0-Oreo).
PAssist is developed with [Android-Studio][android-studio] with Java 17. The current Android target
SDK is 34 (Android 14-UpsideDownCake) and the minimal SDK is 26 (Android 8.0-Oreo).

## Used libraries
* [SlideToAct][slide-to-act]
Expand Down
11 changes: 5 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jacoco {
}

android {
compileSdk 33
compileSdk 34
defaultConfig {
applicationId "com.github.frimtec.android.pikettassist"
minSdkVersion 26
targetSdkVersion 33
targetSdkVersion 34
versionCode vcode
versionName vname
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -49,8 +49,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
testOptions {
unitTests.returnDefaultValues = true
Expand All @@ -62,7 +62,7 @@ dependencies {
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'lib')
implementation "androidx.work:work-runtime:$work_version"
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.material:material:1.9.0'
implementation 'com.google.android.material:material:1.10.0'
implementation 'com.vdurmont:semver4j:3.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.code.gson:gson:2.10.1'
Expand All @@ -79,5 +79,4 @@ dependencies {
testImplementation "org.mockito:mockito-core:5.5.0"
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
import android.util.Log;
Expand Down Expand Up @@ -363,7 +364,11 @@ public void onReceive(Context context, Intent intent) {
filter.addAction(Intent.ACTION_BATTERY_CHANGED);
filter.addAction(Intent.ACTION_AIRPLANE_MODE_CHANGED);
filter.addAction(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED);
registerReceiver(broadcastReceiver, filter);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
registerReceiver(broadcastReceiver, filter, RECEIVER_EXPORTED);
} else {
registerReceiver(broadcastReceiver, filter);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/version.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION_NAME=$version-Optima
VERSION_NAME=$version-Pegasus

0 comments on commit fddd9a6

Please sign in to comment.