-
Notifications
You must be signed in to change notification settings - Fork 34
Multiple modules
Alexey Ershov edited this page Mar 6, 2020
·
4 revisions
Multi-modular apps require almost no additional setup.
-
Follow the Getting started guide for your main app module.
-
In each library module that has Moxy-powered screens, add
moxy-compiler
dependency as described in the guide:
dependencies {
// ...
annotationProcessor "com.github.moxy-community:moxy-compiler:$moxyVersion"
}
apply plugin: 'kotlin-kapt'
// ...
dependencies {
// ...
kapt "com.github.moxy-community:moxy-compiler:$moxyVersion"
}
Don't forget about Java 8:
android {
// ...
// For Java-only projects use only this
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// For Kotlin and mixed projects also add this
kotlinOptions {
jvmTarget = "1.8"
}
}
That's it, you're all set!