Commit efb1eab3 authored by topjohnwu's avatar topjohnwu

Silence some warnings

parent 49d4785d
...@@ -74,6 +74,13 @@ val copyUtils = tasks.register("copyUtils", Copy::class) { ...@@ -74,6 +74,13 @@ val copyUtils = tasks.register("copyUtils", Copy::class) {
tasks["preBuild"]?.dependsOn(copyUtils) tasks["preBuild"]?.dependsOn(copyUtils)
configurations.all {
resolutionStrategy {
force("org.antlr:antlr4-runtime:4.7.1")
force("org.antlr:antlr4-tool:4.7.1")
}
}
dependencies { dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation(kotlin("stdlib")) implementation(kotlin("stdlib"))
......
...@@ -200,12 +200,12 @@ fun RecyclerView.setDividers(dividerVertical: Drawable?, dividerHorizontal: Draw ...@@ -200,12 +200,12 @@ fun RecyclerView.setDividers(dividerVertical: Drawable?, dividerHorizontal: Draw
} }
} }
@BindingAdapter("app:icon") @BindingAdapter("icon")
fun Button.setIconRes(res: Int) { fun Button.setIconRes(res: Int) {
(this as MaterialButton).setIconResource(res) (this as MaterialButton).setIconResource(res)
} }
@BindingAdapter("app:icon") @BindingAdapter("icon")
fun Button.setIcon(drawable: Drawable) { fun Button.setIcon(drawable: Drawable) {
(this as MaterialButton).icon = drawable (this as MaterialButton).icon = drawable
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment