Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

[Migrate] Kotlin Android Extensions to ViewBinding #3057

Merged
merged 68 commits into from
Jul 22, 2024

Conversation

ParaskP7
Copy link
Contributor

@ParaskP7 ParaskP7 commented Jul 22, 2024

Depends On:

Description

This PR is about migrating from the deprecated kotlin-android-extensions plugin, replacing Kotlin synthetics with ViewBinding and using kotlin-parcelize instead.

FYI: The kotlin-android-extensions plugin has been deprecated for years now and it is now preventing us from updating to a newer Kotlin version (ie. Kotlin 1.9.25).

To Test

  • Smoke test the FluxC Example app, try out all available screens and functionality. Verify everything is working as expected.
  • Also, if you want to be thorough about reviewing the kotlinx.parcelize.Parcelize import change, you could quickly smoke test, either the JP/WPAndroid and/or WCAndroid, with this version of FluxC, or via composite builds, and see if it works as expected.

ParaskP7 added 30 commits July 22, 2024 14:26
FYI: This refactor also fixes a few bugs where a view id from
'fragment_woo_batch_update_variations' was used instead of using the
correct with, with the same view id, from the actual targeted
'fragment_woo_batch_generate_variations' fragment.
ParaskP7 added 14 commits July 22, 2024 14:26
As part of this, the deprecated parcelize import got also replaced.
As part of this, the deprecated parcelize import got also replaced.
FYI: This change was done for testing purposes and until the below
'Android Dependency Catalog' #32 PR gets merged to 'trunk'. When that's
done, the 'catalogVersion' will be updated to '1.17.0' instead.

------------------------------------------------------------------------

Android Dependency Catalog PR: [Migrate] Kotlin Android Extensions to
Kotlin Parcelize #32
- Automattic/android-dependency-catalog#32
Copy link
Contributor

@wzieba wzieba left a comment

Choose a reason for hiding this comment

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

Looks good, great work @ParaskP7 🙌 . Thanks for improving some log messages along the way.

btw: during the review, I started to wonder how often the example app in FluxC is used nowadays. Maybe it's something we could discuss internally what's the future for this module.

Not merging as I understand we need to update versions catalog 👍

@ParaskP7
Copy link
Contributor Author

Looks good, great work @ParaskP7 🙌 . Thanks for improving some log messages along the way.

Awesome, thanks for the quick review @wzieba ! 🙇 ❤️

btw: during the review, I started to wonder how often the example app in FluxC is used nowadays.

Hmmm, to my understanding, to some extend, but to be honest, I am actually not sure. I bet sometimes it might help to use this example app, to speed-up development and testing, while other times, using included builds might be preferred... 🤷

We could ask JP/WPAndroid and WCAndroid devs this question directly and get a quick feedback on it. 🤔

Maybe it's something we could discuss internally what's the future for this module.

👍 💯

Not merging as I understand we need to update versions catalog 👍

Yes, thanks you, I am in the process of creating the new 1.17.0 release, will then push an update commit and merge it myself. 👍

@ParaskP7 ParaskP7 merged commit 53b346d into trunk Jul 22, 2024
13 checks passed
@ParaskP7 ParaskP7 deleted the migrate/kotlin-android-extensions-to-view-binding branch July 22, 2024 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants