WARNING
- this release is the first release of
MaterialDrawer
migrated to kotlin.
Changes
- this release contains a big amount of changes, including many breaking API changes to make its implementation easier, and make the APIs better compatible with kotlin.
- please note that the interface for items changed in the
FastAdapter
as such migrating to the new version will require more effort.
Depencencies
The following major dependency versions are required:
implementation "com.mikepenz:iconics-core:4.x.y"
implementation "com.mikepenz:fastadapter:4.x.y"
implementation "com.mikepenz:fastadapter-extensions-expandable:4.x.y"
implementation 'com.mikepenz:materialize:1.x.y'
implementation "androidx.constraintlayout:constraintlayout:2.x.y"
implementation "androidx.drawerlayout:drawerlayout:1.x.y"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.x.y"
implementation "androidx.appcompat:appcompat:1.x.y"
implementation "androidx.cardview:cardview:1.x.y"
implementation "androidx.recyclerview:recyclerview:1.x.y"
implementation "com.google.android.material:material:1.1.y" // v1.1.x is important!
Migration
- Update
FastAdapter
to v4 and make all relevant adjustments to the providedDrawerItem
s- Check the
FastAdapter
changelog and migration guide
- Check the
- Update
Android-Iconics
to v4- Ensure to update
Android-Iconics
for your project, and use the updated kotlin icon dependencies - See the migration notes for
Android-Iconics
if you run into problems
- Ensure to update
- The general interfaces and everything stayed the same, and mainly everything was migrated to kotlin