Skip to content

Commit

Permalink
(General) Add unique module ids #69
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkeppeler committed Oct 14, 2023
1 parent e8253bc commit 5b0d0bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fun PluginContainer.applyBaseConfig(project: Project) {
project.extensions
.getByType<LibraryExtension>()
.apply {
baselibraryConfig()
baseLibraryConfig()
}
}
}
Expand All @@ -91,14 +91,20 @@ fun PluginContainer.applyBaseConfig(project: Project) {
/**
* Apply base library configurations to the subprojects that include the plugin [LibraryModulePlugin].
*/
fun com.android.build.gradle.BaseExtension.baselibraryConfig() {
fun com.android.build.gradle.BaseExtension.baseLibraryConfig() {

compileSdkVersion(App.COMPILE_SDK)

defaultConfig {
minSdk = App.MIN_SDK
targetSdk = App.TARGET_SDK
testInstrumentationRunner = App.TEST_INSTRUMENTATION_RUNNER

javaCompileOptions {
annotationProcessorOptions {
arguments += mapOf("module" to "${App.ID}-$name")
}
}
}

compileOptions.apply {
Expand Down

0 comments on commit 5b0d0bb

Please sign in to comment.