Switched to kapt.
This commit is contained in:
parent
404b23416a
commit
44938d654b
2 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
apply plugin: 'com.neenbedankt.android-apt'
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 24
|
compileSdkVersion 24
|
||||||
|
@ -32,9 +31,14 @@ dependencies {
|
||||||
|
|
||||||
// https://github.com/hotchemi/PermissionsDispatcher
|
// https://github.com/hotchemi/PermissionsDispatcher
|
||||||
compile 'com.github.hotchemi:permissionsdispatcher:2.1.3'
|
compile 'com.github.hotchemi:permissionsdispatcher:2.1.3'
|
||||||
apt 'com.github.hotchemi:permissionsdispatcher-processor:2.1.3'
|
kapt 'com.github.hotchemi:permissionsdispatcher-processor:2.1.3'
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kapt {
|
||||||
|
generateStubs = true
|
||||||
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
if (phone.isNullOrBlank()) {
|
if (phone.isNullOrBlank()) {
|
||||||
Snackbar.make(view, "Please enter a phone number", Snackbar.LENGTH_LONG).setAction("Action", null).show()
|
Snackbar.make(view, "Please enter a phone number", Snackbar.LENGTH_LONG).setAction("Action", null).show()
|
||||||
} else {
|
} else {
|
||||||
MainActivityPermissionsDispatcher.callWithCheck(this@MainActivity, phone)
|
MainActivityPermissionsDispatcher.`call$app_compileDebugKotlinWithCheck`(this@MainActivity, phone)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue