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 committed Aug 29, 2024
1 parent 46e729e commit a77120f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions android-project/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ if (buildAsApplication) {

android {
ndkVersion '26.1.10909125'
compileSdk 33
compileSdk 35
defaultConfig {
if (buildAsApplication) {
applicationId "org.diasurgical.devilutionx"
}
minSdkVersion 21
targetSdkVersion 33
targetSdkVersion 35
versionCode 29
versionName project.file('../../VERSION').text.trim()
externalNativeBuild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import android.content.pm.PackageManager;
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 @@ -158,7 +159,12 @@ public void sendDownloadRequest(String url, String fileName, String description)

if (mReceiver == null) {
mReceiver = new DownloadReceiver();
registerReceiver(mReceiver, new IntentFilter("android.intent.action.DOWNLOAD_COMPLETE"));
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);
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 a77120f

Please sign in to comment.