Skip to content

Commit

Permalink
fix build error "more than one files found with path 'META-INF/main.k…
Browse files Browse the repository at this point in the history
…otlin_module'" (#33648)
  • Loading branch information
nicelyjust authored and pull[bot] committed Nov 11, 2024
1 parent 8489eba commit 76f384a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
3 changes: 0 additions & 3 deletions examples/android/CHIPTool/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

packagingOptions {
exclude 'META-INF/main.kotlin_module'
}

buildFeatures {
viewBinding = true
Expand Down
22 changes: 19 additions & 3 deletions src/controller/java/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ kotlin_library("tlv") {
"src/matter/tlv/values.kt",
]

kotlinc_flags = [ "-Xlint:deprecation" ]
kotlinc_flags = [
"-Xlint:deprecation",
"-module-name",
"com.matter.tlv",
]
}

kotlin_library("tlv_reader_test") {
Expand Down Expand Up @@ -323,7 +327,11 @@ kotlin_library("jsontlv") {
"src/matter/jsontlv/types.kt",
]

kotlinc_flags = [ "-Xlint:deprecation" ]
kotlinc_flags = [
"-Xlint:deprecation",
"-module-name",
"com.matter.matterjson",
]
}

kotlin_library("json_to_tlv_to_json_test") {
Expand Down Expand Up @@ -363,6 +371,10 @@ kotlin_library("onboarding_payload") {
"src/matter/onboardingpayload/Verhoeff.kt",
"src/matter/onboardingpayload/Verhoeff10.kt",
]
kotlinc_flags = [
"-module-name",
"com.matter.onboarding",
]
}

kotlin_library("onboardingpayload_manual_code_test") {
Expand Down Expand Up @@ -404,7 +416,11 @@ kotlin_library("chipcluster") {
sources = structs_sources
sources += eventstructs_sources

kotlinc_flags = [ "-Xlint:deprecation" ]
kotlinc_flags = [
"-Xlint:deprecation",
"-module-name",
"com.matter.chipcluster",
]
}

kotlin_library("chipcluster_test") {
Expand Down

0 comments on commit 76f384a

Please sign in to comment.