Skip to content

Commit

Permalink
Update to latest Android SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo authored and pionere committed Aug 30, 2024
1 parent 3d75c66 commit 2dd25e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android-project/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (buildAsApplication) {
android {
// ndkVersion '26.1.10909125' - asio is not ready for this
ndkVersion '25.2.9519653'
compileSdk 34
compileSdk 35
aaptOptions { // probably does not matter...
noCompress 'mpq'
}
Expand All @@ -21,7 +21,7 @@ android {
applicationId "org.diasurgical.devilx"
}
minSdkVersion 21
targetSdkVersion 34
targetSdkVersion 35
versionCode 666
versionName "1.0.0"
externalNativeBuild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import android.content.IntentFilter;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.method.LinkMovementMethod;
Expand Down Expand Up @@ -66,6 +67,16 @@ protected void onDestroy() {
request.setDestinationInExternalFilesDir(this, null, fileName);
if (mReceiver == null) {
mReceiver = new DownloadReceiver();
IntentFilter filter = new IntentFilter("android.intent.action.DOWNLOAD_COMPLETE");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
registerReceiver(mReceiver, filter, Context.RECEIVER_EXPORTED);
} else {
registerReceiver(mReceiver, filter);
}
}
DownloadManager downloadManager = (DownloadManager)this.getSystemService(Context.DOWNLOAD_SERVICE);
downloadManager.enqueue(request);
Expand Down
2 changes: 1 addition & 1 deletion android-project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.2'
classpath 'com.android.tools.build:gradle:8.5.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 2dd25e4

Please sign in to comment.