Upgrade Gradle to 7.4 & AGP to 7.1.1 (& Disable Jetifier)#12
Upgrade Gradle to 7.4 & AGP to 7.1.1 (& Disable Jetifier)#12
Conversation
The 'com.dipien.byebyejetifier' plugin was used to determine whether Jetifier can be disable for this project. After configuring 'Bye Bye Jetifier' and running the below command: ./gradlew canISayByeByeJetifier -Pandroid.enableJetifier=false The output was clear, Jetifier can be now safely disabled for this project: > Task :canISayByeByeJetifier ========================================= Project: : ========================================= * No legacy android support usages found ========================================= Project: :lib ========================================= * No legacy android support usages found ===================================================== ... * No dependencies with legacy android support usages! ... ===================================================== ... ... =============================== ... You can say Bye Bye Jetifier. * ... ===============================
# Conflicts: # react-native-gesture-handler-1.10.1-wp-5.tgz
…sture-handler into update/gradle-to-7.3.3-agp-to-7.0.4 � Conflicts: � android/gradle.properties � package.json
You will notice that I cc'ed you on the description because I want you to be aware of this change since it might revert the change you did by creating PS: This change was done because the |
|
@ParaskP7 I've added plugin DSL support to this project as well as many other @fluiddot The merge conflict was a very easy one to address, so I was wondering why you have opted to make this change. Is it at all possible you weren't familiar with the plugin DSL? If so, we can fix that easily in this PR. However, if it was intentional, I hope we can discuss it before we commit to the version in this PR. |
Just to clarify, do you refer to the change in the Before: After: If so, it was probably a mistake from my side. I'm still getting familiar with Gradle DSL, so please let me know if there's anything else incorrect in the configurations 🙇 . |
|
@fluiddot That's part of it, but in short, we shouldn't have a Hope that clarifies it and if you'd like to learn more about the plugin DSL, you might find this documentation useful. |
|
👋 @oguzkocer !
Can you please take a look at this a00be91 commit, which resolves the above, and verify that I am not missing anything? 🙇 Cc @fluiddot |
|
👋 @oguzkocer !
Thanks for your input, I only chose this way in order to minimize changes from upstream. To be honest I am also preferring if we passed the Kotlin version directly. But yes, it does work as expected. 👍 @fluiddot wdyt, should I do this change or do you prefer us staying as close to the upstream as possible? 🤔 |
@ParaskP7 Both options work for me, as we're already applying several modifications to the project, making more shouldn't be a problem. If I understand correctly, the change would be to remove |
|
👋 @fluiddot !
Thanks for your input! 👍
Exactly! 👍
On it! 👍 |
# Conflicts: # react-native-gesture-handler-2.2.0-wp-4.tgz
|
@ParaskP7 Heads up that I've updated this branch with the recent changes incorporated in |
|
👋 @fluiddot !
Thanks for this update! 👍 Btw, I just triggered a Jitpack build based on the latest commit and I got a build failure (see here).
|
|
UPDATE: @fluiddot after your latest merge commit the build is now successful (see here). PS: Should we also generate a new tarball as well? 🤔 |
Yep, sorry for that, I forgot to add Jitpack repository, which was required for the latest changes.
Right, I've just updated the tarball in aa2bbc9. |
|
Since we removed the source code for these projects from PS: Eventually, we might upgrade |
This PR is part of Upgrade Gradle to 7.4 & AGP to 7.1.1 (& Disable Jetifier) PR. There are
13libraries that are upgraded toGradle 7.4&AGP 7.1.1(&Disable Jetifier).All those PRs follow the general outline below:
Gradleversion upgraded to7.3.3with the./gradlew wrapper --gradle-version=7.3.3 --distribution-type=allcommand.AGPversion upgrade to7.0.4(seeandroid/settings.gradle.ktschange).Gradle 7.4&AGP 7.1.1.android/gradle.propertieschange).1.10.1-wp-5(seepackage.json).1.10.1-wp-5(seereact-native-gesture-handler-1.10.1-wp-5.tgz).AGPversion upgrade to7.1.1(from4.1.0) (withinandroid/build.gradle). Cc @oguzkocer2.2.0-wp-4(seepackage.json).2.2.0-wp-4(seereact-native-gesture-handler-2.2.0-wp-4.tgz).2.2.0-wp-5(seepackage.json).2.2.0-wp-5(seereact-native-gesture-handler-2.2.0-wp-5.tgz).To test - Now
These changes can be tested as part of the gutenberg PR which is updated to use the temporarily non-tagged node module project dependencies generated with these changes.
To test - Later ⚙️
These changes can be tested as part of the gutenberg-mobile PR ⚙️ or WordPress-Android PR ⚙️ which is updated to use the bundle ⚙️ generated with these changes.
FYI: It's best to leave the testing step to the gutenberg PR review since even if these PRs are merged, they won't impact anything until the package.json file is updated. Worst case scenario, a follow up PR will get opened to fix any issues that are found during testing.
Follow up
Once these PRs are merged in, a new tag will get created for each library and the package.json file will be again updated accordingly.