Upgrade kotlin to 1.5.21, upgrade fragment to 1.3.6, add new tools
Added
- Add new functions, new properties, etc;
me.daemon.infrastructure.application.InfrastructureAppor it's subclass should be your custom Application to make it work:dp2px(dp: Float): Floatpx2dp(px: Float): Floatsp2px(sp: Float): Floatpx2sp(px: Float): FloatscreenWidth: IntscreenHeight: IntInt.color(): IntInt.dimen(): FloatInt.drawable(): DrawableInt.string(): StringInt.string(vararg arg: Any): String
Changed
- upgrade
kotlinto1.5.21 - upgrade
fragmentto1.3.6
Removed
添加
- APP的
Application为me.daemon.infrastructure.application.InfrastructureApp或其子类时,可以使用以下不依赖Context的方法、属性、扩展方法:dp2px(dp: Float): Floatpx2dp(px: Float): Floatsp2px(sp: Float): Floatpx2sp(px: Float): FloatscreenWidth: IntscreenHeight: IntInt.color(): IntInt.dimen(): FloatInt.drawable(): DrawableInt.string(): StringInt.string(vararg arg: Any): String
变更
- 升级
kotlin到1.5.21版本 - 升级
fragment到1.3.6版本