chrisbanes / insetter

Insetter is a library to help apps handle WindowInsets more easily
https://chrisbanes.github.io/insetter
Apache License 2.0
1.13k stars 42 forks source link

Set Kotlin module name to fix library conflict #101

Closed kdrag0n closed 3 years ago

kdrag0n commented 3 years ago

By default, the Kotlin compiler creates a kotlin_module file with the name of the Gradle module. The resulting name is library_release.kotlin_module for this library, which conflicts with other libraries that also use the default generic "library" name. This causes builds to fail when multiple such libraries are used in the same project:

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'META-INF/library_release.kotlin_module'.

Set a unique Kotlin module name to fix the issue.

kdrag0n commented 3 years ago

The CI failure doesn't appear to be related to this change.

chrisbanes commented 3 years ago

Interesting, TIL! Thanks for the PR