You need mdc (com.google.android.material:material
)
Your theme have to extend from Theme.Material3
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.DerTyp7214:ChangeLogLib:<LATEST_VERSION>'
}
val changelog = Changelog(this) {
addVersion {
versionName = "3"
versionCode = "300"
addChange {
type = add()
change = "Test"
}
addChange {
type = fix()
addLink("Test Link", "https://google.com")
}
}
addVersion {
versionName = "2"
versionCode = "200"
addChange {
type = fix()
change = "Fixed stuff"
}
}
onClose {
Log.d("ButtonId", "$it")
}
}
changelog.show()