-
-
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
Fix build on Apple Silicon macs #7782
Conversation
Required for newer versions of some dependencies
@@ -101,7 +101,7 @@ ext { | |||
checkstyleVersion = '9.2.1' | |||
|
|||
androidxLifecycleVersion = '2.3.1' | |||
androidxRoomVersion = '2.3.0' | |||
androidxRoomVersion = '2.4.1' |
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.
Changelog: https://developer.android.com/jetpack/androidx/releases/room
Before merging, we should review the changelog carefully, and test these changes in the app.
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.
I'll be running this patch backported to master in the coming days.
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.
@Atemu
Thank you for the PR.
Fixes the build on M1 macs.
That's not enough.
Please describe how your changes fix the problem.
This version of Room includes a fix for building dependant apps such as NewPipe on Apple Silicon devices (aarch64-darwin)
Kudos, SonarCloud Quality Gate passed! |
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.
Not sure why my review is requested but the situation since
#7782 (review)
hasn't changed...
@litetex it somewhat did, read the commit messages. |
Thanks for the hint, however 2 problems:
|
@litetex ah, you meant the PR comment! I thought you meant the commit messages. You did not mention anything regarding compileSdk 31 in your review though, I'm a bit confused. |
Well you updated the compileSdk to 31. |
From the commit message:
So I guess it's needed for the dependency update in the other commit. |
Should I be more specific about it or even put it in the same commit? |
Simply answer my questions in a comment next time. The commit messages are great too but they are easily overlooked in a conversation here. I also still don't know
It would be great too have things like stacktraces, bug reports, links, etc which we can refer to? |
@litetex It's a problem that earlier versions of Android Room can't be used on Arm64 (M1) Macs. AFAIK, It can be fixed either by updating the Room dependency, or by adding kapt "org.xerial:sqlite-jdbc:3.34.0" to the dependencies. If you don't want to update to room 2.4.0, then I recommend using the |
@litetex Here's where it's mentioned in the Android Room Changelogs: https://developer.android.com/jetpack/androidx/releases/room#2.4.0-alpha03 (first bullet point under the
|
Should I really include a link to commit/patchnotes? That seems a bit overkill for a simple dependency bump that includes a fix.
Neat, didn't know that. I'd still prefer upgrading room over injecting just the updated jdbc. We should update room at some point anyways and it's been working perfectly for me the past week (with the caveat that I backported it to master). |
Thx @ktprograms for clarifying that.
👉
|
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.
LGTM
Did a quick test and couldn't find any problems
Warning: the bump to |
This will allow newer libraries to be used, see TeamNewPipe#7782 and TeamNewPipe#2335. This should have no changes on the app since the targetSdk stayed the same.
Thanks! |
What is it?
Description of the changes in your PR
Fixes the build on M1 macs.
For more information see this comment
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