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

Android 13 migration update compile and target sdk versions to 33 #728

Merged

Conversation

ravishanker
Copy link
Contributor

@ravishanker ravishanker commented Mar 15, 2023

Updates compileSdkVersion and targetSdkVersion from 31 to 33 (Android 13)

Internal project thread: pbArwn-5IN-p2

Fixes: #18096

To test

  • Checkout this branch
  • Use this branch through WP (uncomment localStoriesAndroidPath in local-builds.gradle)
  • Try out adding a Story post (FAB > Story post) with an image and/or video
  • Ensure, no issues or crashes

@ravishanker ravishanker added the [Type] Task Something that needs be done, but is not necessarily a feature/bugfix itself. label Mar 15, 2023
@ravishanker ravishanker requested review from irfano and ParaskP7 March 15, 2023 01:42
@ravishanker ravishanker self-assigned this Mar 15, 2023
@ravishanker
Copy link
Contributor Author

@ParaskP7 - Looks like stories-android still has CircleCI checks!

@ravishanker ravishanker added the [Status] Nor Ready for Merge PR not ready for merge yet label Mar 15, 2023
@ParaskP7
Copy link
Contributor

👋 @ravishanker !

@ParaskP7 - Looks like stories-android still has CircleCI checks!

You're right, it looks that the CircleCI to Buildkite migration hasn't been completed for this repo, just like it happened for the rest of them, and to be honest, I am not sure why... 🤔 Cc @oguzkocer

@oguzkocer
Copy link
Contributor

@jkmassel was working on these migrations, but we have a lot of repos, so it's most likely an oversight. If this is a blocker, I can try and handle this migration this week.

@ravishanker
Copy link
Contributor Author

@jkmassel was working on these migrations, but we have a lot of repos, so it's most likely an oversight. If this is a blocker, I can try and handle this migration this week.

@oguzkocer Yes, please. Thank you

@ravishanker ravishanker removed the [Status] Nor Ready for Merge PR not ready for merge yet label Mar 15, 2023
@oguzkocer
Copy link
Contributor

@oguzkocer Yes, please. Thank you

I've moved the lint & unit test tasks to Buildkite in #729. I'm waiting some feedback from the App Infrastructure Team about the installable build, but worst case scenario, we can merge #729 tomorrow and open a separate PR for the installable build.

@ravishanker If you can let me know the urgency of this PR, I can take the appropriate action. Thank you!

@irfano
Copy link
Contributor

irfano commented Mar 17, 2023

@oguzkocer Yes, please. Thank you

I've moved the lint & unit test tasks to Buildkite in #729. I'm waiting some feedback from the App Infrastructure Team about the installable build, but worst case scenario, we can merge #729 tomorrow and open a separate PR for the installable build.

@ravishanker If you can let me know the urgency of this PR, I can take the appropriate action. Thank you!

Thank you for handling this, @oguzkocer! This is not too urgent and does not need to be merged this week. It can be merged in our next sprint.

@oguzkocer
Copy link
Contributor

Thanks @irfano! #729 is now ready for review, so it should be merged early next week 🤞

@oguzkocer
Copy link
Contributor

@ravishanker @irfano #729 is merged. You can merge trunk into this branch which should trigger Buildkite to run the jobs instead of CircleCI. Please let me know if you have any issues!

add try, catch around MediaMetadataRetriever release
Update targetSdkVersion from 31 to 33
@ravishanker ravishanker changed the title Android 13 migration update compile sdk version to 33 Android 13 migration update compile and target sdk versions to 33 Mar 20, 2023
Copy link
Contributor

@irfano irfano left a comment

Choose a reason for hiding this comment

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

I have requested a minor change. Once it is resolved, we will be ready to merge.

build.gradle Show resolved Hide resolved
Replace jcenter with mavenCentral and update flipper version with version catalog
@ravishanker ravishanker requested a review from irfano March 21, 2023 05:45
Copy link
Contributor

@irfano irfano left a comment

Choose a reason for hiding this comment

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

I tested the Loop demo app but it isn't going to the next screen after requesting permission. I think the permission code needs to be updated.

build.gradle Show resolved Hide resolved
@ravishanker
Copy link
Contributor Author

I tested the Loop demo app but it isn't going to the next screen after requesting permission. I think the permission code needs to be updated.

It has READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE . Better handle that separately as part of media permissions task

@ravishanker ravishanker requested a review from irfano March 22, 2023 03:15
Remove READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE

Add READ_MEDIA_AUDIO, READ_MEDIA_IMAGES and READ_MEDIA_AUDIO
Copy link
Contributor

@irfano irfano left a comment

Choose a reason for hiding this comment

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

@ravishanker 👋🏻
READ_EXTERNAL_STORAGE permission still exists in photoeditor package. But I'm not sure if it's required or not. If you like to investigate it to ensure it won't break anything, you can do it before merging. Otherwise feel free to merge it. I'm approving the PR. It works on WPAndroid app and also on the example.

Replace READ and WRITE to EXTERNAL STORAGE with READ MEDA permissions
@ravishanker ravishanker merged commit 60c58a6 into trunk Mar 24, 2023
@ravishanker ravishanker deleted the Android-13-migration-update-compile-sdk-version-to-33 branch March 24, 2023 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Task Something that needs be done, but is not necessarily a feature/bugfix itself.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Stories-Android to Android 13
4 participants