Skip to content

Commit 5b0d0bb

Browse files
committed
(General) Add unique module ids #69
1 parent e8253bc commit 5b0d0bb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fun PluginContainer.applyBaseConfig(project: Project) {
8181
project.extensions
8282
.getByType<LibraryExtension>()
8383
.apply {
84-
baselibraryConfig()
84+
baseLibraryConfig()
8585
}
8686
}
8787
}
@@ -91,14 +91,20 @@ fun PluginContainer.applyBaseConfig(project: Project) {
9191
/**
9292
* Apply base library configurations to the subprojects that include the plugin [LibraryModulePlugin].
9393
*/
94-
fun com.android.build.gradle.BaseExtension.baselibraryConfig() {
94+
fun com.android.build.gradle.BaseExtension.baseLibraryConfig() {
9595

9696
compileSdkVersion(App.COMPILE_SDK)
9797

9898
defaultConfig {
9999
minSdk = App.MIN_SDK
100100
targetSdk = App.TARGET_SDK
101101
testInstrumentationRunner = App.TEST_INSTRUMENTATION_RUNNER
102+
103+
javaCompileOptions {
104+
annotationProcessorOptions {
105+
arguments += mapOf("module" to "${App.ID}-$name")
106+
}
107+
}
102108
}
103109

104110
compileOptions.apply {

0 commit comments

Comments
 (0)