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: 'kotlin-android'
|
||||
apply plugin: 'com.neenbedankt.android-apt'
|
||||
|
||||
android {
|
||||
compileSdkVersion 24
|
||||
|
@ -32,9 +31,14 @@ dependencies {
|
|||
|
||||
// https://github.com/hotchemi/PermissionsDispatcher
|
||||
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"
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
kapt {
|
||||
generateStubs = true
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ class MainActivity : AppCompatActivity() {
|
|||
if (phone.isNullOrBlank()) {
|
||||
Snackbar.make(view, "Please enter a phone number", Snackbar.LENGTH_LONG).setAction("Action", null).show()
|
||||
} else {
|
||||
MainActivityPermissionsDispatcher.callWithCheck(this@MainActivity, phone)
|
||||
MainActivityPermissionsDispatcher.`call$app_compileDebugKotlinWithCheck`(this@MainActivity, phone)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue