Replies: 4 comments 9 replies
-
Hmmmm, what if I want to generate a project which has |
Beta Was this translation helpful? Give feedback.
-
@luongvo If we separate into 2 templates, it means we have to maintain 2 projects at the same time, when we have a new update on XML (ex: on |
Beta Was this translation helpful? Give feedback.
-
@Tuubz I think we could mark this RFC as resolved because we're in action for it? |
Beta Was this translation helpful? Give feedback.
-
Issue
Currently, we're trying to switch between
XML
andCompose
project structure byscreens
package. From my experience when using this structure for the new Compose project, it's not really a good approach to go:data
anddomain
are the same and could be cloned for both UI methods.From these issues above, I think the way to have 1
template
project for both XML and Compose does not make sense, or we will need quite a much effort to make it usable and clean for each one without separating.This topic is related to the one #214, so we should finalize the approach of having template projects for XML and Compose UI methods before touching on #214.
Solution
Instead of having 1
template
project for both XML and Compose, then separating the UI method byscreens
package, we could have 1 separatedtemplate
project for each. Each template project includes:data
anddomain
modules; sodata
anddomain
modules will be the same for both templates. I think we just need to duplicate the logic for both whenever we have updates on them, we don't need to make any shared config to ease the templatescripting
action.At the end, we will have 3 templates:
template-xml
,template-compose
,template-rxjava
. The next task Update init script to have an option to start with either XML layout or Jetpack Compose #214 will need to build the option to select which one to go (actually almostcloning
,re-packing
, andrenaming
action 🤷♂️ ).Who Benefits?
Developers
What's Next?
template
project into 2template
projects:XML
andCompose
.2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions