Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDPMS-2257 Allow intents to modify external files on lib #6

Merged
merged 9 commits into from
Sep 11, 2024

Conversation

vitordmoraes
Copy link
Collaborator

@vitordmoraes vitordmoraes commented Sep 5, 2024

Description ✍️

This PR does the following:

  1. Update gradle version to 8.7
  2. Update target sdk version to 34
  3. Update permission on DEMO mode to be user to API 29 or above.
  4. Update file save mode to use MediaStore, a new api to save files on external storage that was available above API 29 and required for API 33 or higher.

Evidences 📱

aaa.mp4

Copy link
Collaborator

@pedroccrp pedroccrp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor comments, but it can be merged if it's urgent. Otherwise, it would be good to make these adjustments.

@@ -1,10 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.xinlan.imageeditandroid"
<manifest xmlns:tools="http://schemas.android.com/tools"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if that’s needed?

Comment on lines +7 to +19
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />
<uses-permission
android:name="android.permission.READ_MEDIA_AUDIO"
android:minSdkVersion="33" />
<uses-permission
android:name="android.permission.READ_MEDIA_IMAGES"
android:minSdkVersion="33" />
<uses-permission
android:name="android.permission.READ_MEDIA_VIDEO"
android:minSdkVersion="33" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very nice!

Comment on lines +74 to +80
int id = v.getId();
if (id == R.id.take_photo) {
takePhotoClick();
} else if (id == R.id.edit_image) {
editImageClick();
} else if (id == R.id.select_ablum) {
selectFromAblum();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this the same thing as before?

Comment on lines +451 to +455
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
albumUpdate(this, saveFilePath);
} else {
FileUtil.albumUpdate(this, saveFilePath);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both having the same name makes it really hard to understand the difference

@pedroccrp pedroccrp merged commit d80223c into oxeanbits:master Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants