Zhelyazko Atanasov
05/06/2021, 2:07 PMOneButton
with a single method in it (no classes or objects):
@Composable
fun OneButton(
modifier: Modifier = Modifier
...
If I try to call it from my other project, Android Studio does not recognize the function.
Then I decided to experiment and created a dummy Kotlin class with a single @Composable
method in it. Published the .aar to Maven Local and used it in the other project. I created an instance of the dummy class and successfully called the @Composable
function. What am I missing - my setup is more or less the same as in Accompanist (I'm not using Metalava and/or API file), I'm using the same Gradle plugin for publishing the artefacts... Any idea what may be wrong?louiscad
05/06/2021, 2:08 PMpackagingOptions
in the library build.gradle(.kts)
file?Zhelyazko Atanasov
05/06/2021, 2:16 PMMETA-INF
directory:
packagingOptions {
resources.excludes.add("META-INF/DEPENDENCIES")
resources.excludes.add("META-INF/LICENSE")
resources.excludes.add("META-INF/LICENSE.txt")
resources.excludes.add("META-INF/license.txt")
resources.excludes.add("META-INF/NOTICE")
resources.excludes.add("META-INF/NOTICE.txt")
resources.excludes.add("META-INF/notice.txt")
resources.excludes.add("META-INF/AL2.0")
resources.excludes.add("META-INF/ASL2.0")
resources.excludes.add("META-INF/LGPL2.1")
resources.excludes.add("META-INF/*.kotlin_module")
}
louiscad
05/06/2021, 2:16 PMlouiscad
05/06/2021, 2:17 PMlouiscad
05/06/2021, 2:17 PMZhelyazko Atanasov
05/06/2021, 2:24 PM*.kotlin_module
files 🙂Zhelyazko Atanasov
05/06/2021, 2:36 PM*.kotlin_module
files and their purpose