-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Set compileSdk and targetSdk to 33 (Android 13) #9306
Conversation
Opening any video crashes the app. Exception
Crash log
|
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I recommend reading Android version differences (API 30 - changes when targeting this version, API 31 - changes when targeting this version, API 32 and API 33 - changes when targeting this version) and changelog of Jetpack libraries updates, to give us an idea about what changes are required. |
I second @AudricV's suggestion. |
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is crashing when attempting to view videos. There have already been several comments made in the conversations about it, so you're probably already aware. Once that is fixed, I'll take another look.
You may also want to update |
That's done here: #9285 |
android:exported in now required in the manifest on all activities/services/receivers/providers. It was set to true for those that need to interact with outside apps or the OS, while others have exported=false. This also required updating LeakCanary to the latest version as the older version being used was not using android:exported in AndroidManifest.xml.
7a891d4
to
048b097
Compare
I pushed two commits making sure that NewPipe now requests the notification permission, as explained here. On Android 13+ we need to specify player notification actions with the |
SonarCloud Quality Gate failed. |
The code smells are unrelated |
No, they are: see https://developer.android.com/reference/android/app/Activity.html?hl=en#onBackPressed() and https://developer.android.com/reference/android/content/Intent?hl=en#getSerializableExtra(java.lang.String) These methods are deprecated since API 33 and used in |
I don't think I am going to fix those deprecations here. For example, As for the |
I took a deeper look into the |
What is it?
Description of the changes in your PR
android:exported
in now required in the manifest on all activities/services/receivers/providers. It was set totrue
for those that need to interact with outside apps or the OS, while others haveexported=false
. Changing the target sdk also required updating LeakCanary to the latest version as the older version being used was not usingandroid:exported
inAndroidManifest.xml
.I don't know whether problems could arise just because of this number increase, maybe @TacoTheDank can shed some light on it?
Fixes the following issue(s)
Relies on the following changes
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence