apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

Enhancement: Migrate from Views to Compose

Open JohnMatthiasWabwire opened this issue 1 year ago • 2 comments

What is the user problem or growth opportunity you want to see solved?

There are Views in this application. Users of Views should migrate to Compose.

How do you know that this problem exists today? Why is this important?

There are Views that I would like to migrate to Compose. Migration to KSP complete.

Who will benefit from it?

The entire team and application.

Anything else you would like to add?

Jetpack Compose is the migration that is recommended by the Android and Kotlin teams.

JohnMatthiasWabwire avatar Mar 02 '24 03:03 JohnMatthiasWabwire

Compose is really nice, but I think we need to get through the current migration away from Butterknife and synthetic imports before taking on a large refactor like that. Also, how well do those tools play with a (mostly) Java codebase like this app has?

psh avatar Mar 03 '24 04:03 psh

All Kotlin tools are interoperable with Java. Migrating from Views to compose can be done 1 View at a time. Also Compose will allow us to remove:

  • Dagger/Hilt
  • KAPT/KSP (I have completed the migration from KAPT to KSP)
  • RX

Replacing them with:

  • Coroutines
  • Inheritance/Struct Embedding
  • State Hoisting
  • Manual Injection/Interfaces.

Update: I am working on implementing this. I am preoccupied with other applications but I am planning a pivot.

JohnMatthiasWabwire avatar Mar 03 '24 04:03 JohnMatthiasWabwire

I see the Jetpack Compose Migration has begun.

JohnMatthiasWabwire avatar Sep 25 '24 10:09 JohnMatthiasWabwire