用于库开发的 JetPack Compose
我们即将开始 Android 库的绿地开发,并考虑使用 JetPack Compose 来处理其中使用的 UI 元素。 我知道需要考虑的一个限制是 API 21+(并不是真正的问题)。 使用或不使用 Jetpack Compose 进行库开发还有其他原因吗?
We are about to start greenfield development of an Android library and considering using JetPack Compose for UI elements used there.
I know that one restriction to consider is API 21+ (not really a problem).
Are there any other reasons to use or not use Jetpack Compose for library development?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我不确定这是否是一个明确的“不”使用(这是相当主观的),但你必须将对组合的依赖与库一起带来。这将影响库和应用程序的大小
Well I'm not sure if that's a definite "no" for usage (that's rather subjective), but you have to bring the dependency on the compose along with the library. This will affect the library and app size