Repository navigation
Open
Labels
good first issueGood for newcomersseverity: minorImpairs non-critical functionality or suitable workarounds existstate: help wantedI looked into this issue but couldn't solve it quicklytype: enhancementNew feature or request
Description
Catima uses a lot of "legacy" tech. Java, Android XML. It's become very obvious Google is no longer committed to these technologies and is definitely not giving them the love they need anymore.
To ensure we can use Jetpack Compose, we will have to first migrate things to Kotlin and then Compose them slowly. We can, however, do this per-activity.
Help is very much appreciated here! If there's any part you are willing to do, please help! This is a huge undertaking!
Global changes
- Get rid of custom colour support in Catima (this feature is rarely used and will add to the load of creating themes for the Compose code)
- Create a Compose theme as similar as possible to the current theme (so the Compose and non-compose parts feel similar)
Per activity changes
MainActivity
- Convert to Kotlin (Convert MainActivity to Kotlin #2830)
- Convert to Compose
AboutActivity
- Convert to Kotlin (Kotlin conversion of AboutActivity with tests also in Kotlin #2360)
- Convert to Compose (claimed by @TheLastProject in AboutActivity to Jetpack Compose #2489)
ManageGroupsActivity
- Convert to Kotlin (Convert ManageGroupsActivity to Kotlin #2763)
- Convert to Compose
ManageGroupActivity
- Convert to Kotlin (Convert ManageGroupActivity to Kotlin #2760)
- Convert to Compose
LoyaltyCardViewActivity
- Split into LoyaltyCardViewActivity and LoyaltyCardFullscreenViewActivity (to simplify the UI and card code)
- Convert each of the new activities to Kotlin
- Convert each of the new activities to Compose
LoyaltyCardEditActivity
- Convert to Kotlin (Migrate LoyaltyCardEditActivity to kotlin for issue #2483 #3229)
- Convert to Compose
ScanActivity
- Convert to Kotlin (Refactor ScanActivity.java to kotlin #2779)
- Convert to Compose
(May be quite a challenge with the zxing code)
BarcodeSelectorActivity
- Convert to Kotlin (Migrate 2 actvities to kotlin #2585)
- Convert to Compose
preferences.SettingsActivity
- Convert to Kotlin (Convert SettingsActivity to Kotlin #2744)
- Convert to Compose
(This settings activity works strangely, do we need anything else to make this work?)
ImportExportActivity
- Convert to Kotlin (Convert ImportExportActivity to Kotlin #2755)
- Convert to Compose (Task: compose migration import export activity #3021)
CardShortcutConfigure
- Convert to Kotlin (Migrate 2 actvities to kotlin #2585)
- Convert to Compose
UCropWrapper
- Convert to Kotlin (Convert UcropWrapper to kotlin #2782)
- Convert to Compose
(Is this viable? Consider switching library)
Reacted by Nosnahc
Reacted by Héctor Mañas García, Michael Pfaff and David Frickert
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersseverity: minorImpairs non-critical functionality or suitable workarounds existstate: help wantedI looked into this issue but couldn't solve it quicklytype: enhancementNew feature or request
Activity
TheLastProject commentedon Jun 24, 2025
Marking this as good first issue because at least the Kotlin rewrites should be fairly straightforward to anyone with Kotlin knowledge.
For Compose, maybe someone can help with the testing for #2489, but compose is step 2 anyway :)
I do not recommend new contributors try to rewrite to Compose at this time (we first want to finish #2489 so we have the baseline for that).
realjoni17 commentedon Jul 18, 2025
hi i want to contribute to this
TheLastProject commentedon Jul 18, 2025
Feel free to do any of the Kotlin rewrites. Or, if you know Compose, setting up Compose tests for #2489 would be very helpful (then that can finally be finished 😃)
davkenn commentedon Aug 10, 2025
Could I work on converting LoyaltyCardEditActivity to Kotlin? I've been playing around with it and so far I've been fixing nullability, moving state to LoyaltyCardEditActivityViewModel and adding tests to more fully cover LoyaltyCardEditActivity. ETA: probably about a week.
TheLastProject commentedon Aug 10, 2025
Sure @davkenn, thanks a lot for taking that on. That activity is quite a beast so looking forward to seeing the result (will probably take me a while to review though) :)
PrathameshBhagat commentedon Sep 14, 2025
I'm new to kotlin ( may be a bit too new ) can I try migrating small individual files ?
Like this class here:-
https://github.com/CatimaLoyalty/Android/blob/main/app/src/main/java/protect/card_locker/ThirdPartyInfo.java
TheLastProject commentedon Sep 14, 2025
@PrathameshBhagat Sure! The activities are the most important part as Google is caring less and less for Android XML and we need Kotlin to use Jetpack Compose, but the end goal is 100% Kotlin. So rewriting other Java files is helpful too!
PrathameshBhagat commentedon Sep 14, 2025
TheLastProject commentedon Sep 14, 2025
6 remaining items
TheLastProject commentedon Oct 4, 2025
@0spol sorry, I missed your message, my mailbox kinda exploded the day Hacktoberfest started, I am still not done with all the notifications I got 😅
Changing the tests is not required, but would be nice. The main priority is the app itself, as the Kotlin rewrite is needed for Jetpack compose :)
0spol commentedon Oct 4, 2025
@TheLastProject Np, hope you had fun in Hacktoberfest. I will try to help with the migration 👍🏻
amlwin commentedon Oct 6, 2025
@TheLastProject , thz for last PR.
Here i create a new PR(#2755) for
Convert ImportExportActivity to Kotlinu7683648 commentedon Oct 7, 2025
@TheLastProject Would it be okay if my group and I work on converting the
ManageGroupActivityclasses to Kotlin?Henry-ANU commentedon Oct 7, 2025
Hello. Would we be able to work on converting
ManageGroupsActivity?TheLastProject commentedon Oct 9, 2025
@u7683648 @Henry-ANU Sorry for the late responses, very busy days (so I'm quite behind on messages). It seems someone else already picked those up (still need to review), so I guess those aren't really helpful anymore. But feel free to work on any Java file you find, no need to really ask permission (I understand wanting to announce it, but I guess it doesn't really stop others from working on the same files anyway)
VeryUsual commentedon Nov 9, 2025
@TheLastProject #2830
pejfat08-rgb commentedon Nov 11, 2025
amlwin commentedon Feb 12, 2026
@TheLastProject . add a PR for compose migration import export activity
NightShiftNexus commentedon Mar 3, 2026
Can I start refactoring LoyaltyCardViewActivity? I have experience in mobile as a Flutter, Kotlin, and Swift developer, and I would like to help with the development of the application. Also I want to start participating in open source applications :)
TheLastProject commentedon Mar 3, 2026
@NightShiftNexus Sure, though keep in mind that that activity is very complex. So it may be worth it to first split it into the View and FullscreenView activities to simplify the code :) Though I guess not a hard requirement :)
NightShiftNexus commentedon Mar 24, 2026
Can u give me permission to push branches? I would like to push new branch and make pull requestSorry about permissions, my first PR in opensource project. Thanks for guide
TheLastProject commentedon Mar 24, 2026
I'm not giving anyone permission to push branches directly on Catima for security reasons. You can create a fork and create a merge request from a branch pushed to your fork :)
MohammedHazemDawood commentedon Jul 23, 2026
can i contribute in this??
TheLastProject commentedon Jul 23, 2026
@MohammedHazemDawood Sure! If you translate something to Kotlin, I'd like to request you do it in multiple commits with the first commit being a file rename (from .java to .kt) and the commit(s) after being your changes. That creates more readable diffs on GitHub