Skip to content

Bump target SDK to 34 #5770

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

Closed
sivaraam opened this issue Jul 14, 2024 · 12 comments · Fixed by #5790
Closed

Bump target SDK to 34 #5770

sivaraam opened this issue Jul 14, 2024 · 12 comments · Fixed by #5790

Comments

@sivaraam
Copy link
Member

Google has started nudging us to bump our target SDK to API level 34. We have until August 31. After that we won't be able to publish updates unless we bump our target SDK.

Volunteers are welcome to help us with this. We would specifically need to do the required changes verify our functionality doesn't break as a result of bumping the target SDK.

@rohit9625
Copy link
Contributor

I would like to take this issue. I will upgrade the targetSDK with required changes.

@nicolas-raoul
Copy link
Member

@rohit9625 It is yours, thanks! 🙂

@rohit9625
Copy link
Contributor

@nicolas-raoul @sivaraam
Are you too have this dependency downloading failed problem:-
image

When I checked on the link, specified in the dependency. There was no version that our project was trying to download. Please let me know if this is happening only with me or they have removed that version.

@kanahia1
Copy link
Contributor

@rohit9625, circular progress bar library was only available on the jCenter which has been shutdown now. Due to which you are getting this.

@rohit9625
Copy link
Contributor

Okay, so should I remove this from the build file?

@kanahia1
Copy link
Contributor

There are few layouts which are dependent on it, I am working on the possible fix.

@rohit9625
Copy link
Contributor

Yeah, removing this is resulting in this error:
image

Without this I cannot proceed further with my task.

@rohit9625
Copy link
Contributor

I guess I have to replace this progress bar at many places, like here in activity_quiz_result.xml:
image

Did you start working on this or do you have some other stuff to do first?

@rohit9625
Copy link
Contributor

Hey @nicolas-raoul and @sivaraam,
While I was exploring the changes in the new API 34, I found that new permission was added, see this and it can affect the permission handling for Photos in the application.

The custom selector functionality requires full access to images but the user might allow partial access. In this situation:-

  1. We can force the user by prompting to allow full access or
  2. We can configure the custom selector to work perfectly with partial access.

I tried approach 2, and it worked fine with the selected images. However, the problem is that when the user chooses any photo to upload from the another selector and that photo is not allowed by the user to use in the application, it again asks to grant full access.
One more thing, we should specify a new UI component in the custom selector or a dialog before launching the custom selector to ask the user if they want to see all pictures or the allowed ones. If we don't do so, then the user can only see the selected images unless they allow full access from the settings manually.

I want to discuss whether should we make use of the new partial access permission or force the user to grant full access to our app(This is easy and does not require significant changes). However, to do this we need to change the implementation of another selector to use Photo Picker.

Apart from that
I didn't find any other changes to make in our to adapt to the new API. I checked all code related to new changes and tried building with the new target SDK and the application is working fine.

@nicolas-raoul
Copy link
Member

Would you mind trying approach 2? Looking forward to test the PR to see concretely what it entails, thanks a lot! 🙂

@nicolas-raoul
Copy link
Member

I want to ask about the Upgrade to SDK 34 PR. Is the current flow of permissions good? At which place does the app require the Location of the photo from the meta-data?
When implementing the photo picker(if required), I have to manage this location stuff also.

Permission request should be shown only when needed, in the case of the upload wizard I guess that means when the user clicks Edit location. In that regard, the current workflow of the app is not too bad I believe, but of course any way to improve it is very welcome. :-)

@DLEI253636863

This comment has been minimized.

@sivaraam sivaraam unpinned this issue Oct 6, 2024
@sivaraam sivaraam modified the milestones: 5.2.0, 5.1.0 Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants