Skip to content

v4.0.0

Compare
Choose a tag to compare
@mikepenz mikepenz released this 07 Jun 22:30
· 346 commits to develop since this release

WARNING

  • this release is fully migrated to kotlin
  • many breaking changes

MIGRATION core v3.x.x -> 4.x.x

Now libraries is kotlin-first

  • Font files
    • Font's store now based on default way to store fonts. (moved from common assets to font-specific resource assets)
  • Iconics
    • No context from now required. We get the application context via ContentProvider
  • Iconics.IconicsBuilder
    • Renamed to Iconics.Builder
    • Removed ctx(Context) method
  • IconicsDrawable
    • Replaced all *Res(int), *Px(int), *Dp(int) method to use IconicsSize and IconicsColor classes instead
    • Constants TOOLBAR_ICON_SIZE and TOOLBAR_ICON_PADDING moved to IconicsSize
    • All getters now have property-syntax
    • All producer-provided methods from Android-Iconics Kt are included in class and can return nullable value (value will be set only when not null)
    • enableShadowSupport(View) moved to IconicsUtils
  • All utils classes and typeface libraries now can not be instantiated
  • ITypeface
    • Method getTypeface(Context) replaced with field rawTypeface
    • Automatically retrieves raw font from file by provided fontRes (see GenericFont.kt if You wont to use old scheme)
  • Some package names for the icon fonts changes
  • Old icon fonts are no longer compatible, please update to the kotlin versions

Changes

  • Fully migrated to kotlin
  • Adjusted many APIs and cleanup
  • Add various kotlin extensions to simplify
  • New more advanced animation engine
  • ...

Depencencies

The following major dependency versions are required:

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.x.y"
implementation "androidx.core:core-ktx:$versions.ktx.core"
implementation "androidx.appcompat:appcompat:1.x.y"