Skip to content

Commit

Permalink
Merge pull request #22 from syxc/dev
Browse files Browse the repository at this point in the history
Update build config
  • Loading branch information
syxc authored May 16, 2024
2 parents dcb0633 + 6377036 commit 21be1b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ android {
}
}

androidComponents {
onVariants(selector().withBuildType("release")) {
// Only exclude *.version files in release mode as debug mode requires
// these files for layout inspector to work.
it.packaging.resources.excludes.add("META-INF/*.version")
}
}

dependencies {
implementation(projects.shared)
// implementation(projects.sharedCompose)
Expand Down
8 changes: 5 additions & 3 deletions build-logic/convention/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ object Versions {
// packaging-resources-excludes
object Resources {
val excludes = listOf(
"/META-INF/{AL2.0,LGPL2.1}",
"DebugProbesKt.bin",
"kotlin-tooling-metadata.json",
"kotlin/**",
"META-INF/*.version",
// Only exclude *.version files in release mode as debug mode requires these files for layout inspector to work.
// "META-INF/*.version",
"META-INF/{AL2.0,LGPL2.1}",
"META-INF/DEPENDENCIES",
"META-INF/DEPENDENCIES.txt",
"META-INF/NOTICE",
Expand All @@ -37,6 +38,7 @@ object Resources {
"META-INF/LICENSE.txt",
"META-INF/INDEX.LIST",
"META-INF/*.kotlin_module",
"**/sentry-external-modules.txt" // assets/sentry-external-modules.txt
// assets/sentry-external-modules.txt
"**/sentry-external-modules.txt"
)
}

0 comments on commit 21be1b8

Please sign in to comment.