Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@daemon369 daemon369 released this 05 Sep 03:05
· 20 commits to master since this release

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.InfrastructureApp or it's subclass should be your custom Application to make it work:
    • dp2px(dp: Float): Float
    • px2dp(px: Float): Float
    • sp2px(sp: Float): Float
    • px2sp(px: Float): Float
    • screenWidth: Int
    • screenHeight: Int
    • Int.color(): Int
    • Int.dimen(): Float
    • Int.drawable(): Drawable
    • Int.string(): String
    • Int.string(vararg arg: Any): String

Changed

  • upgrade kotlin to 1.5.21
  • upgrade fragment to 1.3.6

Removed

添加

  • APP的Applicationme.daemon.infrastructure.application.InfrastructureApp或其子类时,可以使用以下不依赖Context的方法、属性、扩展方法:
    • dp2px(dp: Float): Float
    • px2dp(px: Float): Float
    • sp2px(sp: Float): Float
    • px2sp(px: Float): Float
    • screenWidth: Int
    • screenHeight: Int
    • Int.color(): Int
    • Int.dimen(): Float
    • Int.drawable(): Drawable
    • Int.string(): String
    • Int.string(vararg arg: Any): String

变更

  • 升级kotlin1.5.21版本
  • 升级fragment1.3.6版本

删除