Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Sep 23, 2023
1 parent 4bcdc25 commit d73dce3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
Binary file not shown.
3 changes: 0 additions & 3 deletions Android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
package="com.dergoogler.mmrl">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Expand Down
17 changes: 4 additions & 13 deletions Android/app/src/main/java/com/dergoogler/core/NativeOS.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,16 @@ public String getSchemeParam(String param) {
}
}

@Deprecated
@JavascriptInterface
public boolean hasStoragePermission() {
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
return Environment.isExternalStorageManager();
} else {
return this.ctx.checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_DENIED;
}
return true;
}

@Deprecated
@JavascriptInterface
public void requestStoargePermission() {
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
Intent intent = new Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION);
Uri uri = Uri.fromParts("package", this.ctx.getPackageName(), null);
intent.setData(uri);
this.ctx.startActivity(intent);
} else {
((Activity) this.ctx).requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1000);
}
// do nothing
}

@JavascriptInterface
Expand Down
8 changes: 4 additions & 4 deletions Website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"description": "",
"config": {
"application_id": "com.dergoogler.mmrl",
"min_sdk": 26,
"target_Sdk": 33,
"version_name": "1.7.1",
"version_code": 171
"min_sdk": 33,
"target_Sdk": 34,
"version_name": "1.7.3",
"version_code": 173
},
"main": "index.tsx",
"keywords": [],
Expand Down

0 comments on commit d73dce3

Please sign in to comment.