Joel Denke
02/14/2024, 9:51 AMjoffrey
02/14/2024, 10:03 AM<somename>.module-template.yaml
anywhere you want, and then use apply: ./relative/path/to/template
in the module file at the top level to use it. That's the equivalent of gradle's convention plugins. If you need to share custom Gradle config that cannot be expressed in Amper, you will have to use Gradle interop and Gradle convention plugins.joffrey
02/14/2024, 10:11 AM.yaml
extension (not .yml
) for module files if you don't get auto-completion.Joel Denke
02/14/2024, 10:21 AMJoel Denke
02/14/2024, 10:21 AMJoel Denke
02/14/2024, 10:23 AMif (pluginManager.hasPlugin(libs.plugins.android.library.get().pluginId)) {
androidTarget()
}
Where check if KMP should add android based on library or application android plugin πJoel Denke
02/14/2024, 10:36 AMjoffrey
02/14/2024, 11:09 AMIs Amper intented to be the new thing scaling up for Kotlin multiplatform and all IDEs? Or does that depend what the community input about Amper? Would like to not try using Amper and then suddenly Jetbrains is deprecate it and abandon it. Havent read about commitment from JetbrainsWe haven't formally committed on anything around Amper, because this is an experimental project right now. The goal is exactly to shape it based on the community's feedback, as you guessed.
joffrey
02/14/2024, 1:18 PMAmper plugin working in all IDEs and using IntelliJ engine or? Amper plugin I cant find for Android StudioThe Amper plugin should be available in Fleet and IntelliJ IDEA. Ultimately Android Studio also gets the plugin through IntelliJ. I'm not 100% sure, but I believe there should already be an Amper plugin in AS, albeit an old one. There should be a 1-major-version delay between IDEA and AS, AFAIK.
Joel Denke
02/14/2024, 1:23 PMjoffrey
02/14/2024, 1:26 PMJoel Denke
02/14/2024, 1:35 PMjoffrey
02/14/2024, 2:30 PMJoel Denke
02/14/2024, 2:32 PMJoel Denke
02/14/2024, 2:32 PMJulianK
02/15/2024, 3:16 PMextensions.configure<ApplicationExtension> {
configureKotlinAndroid(this)
}
...
fun Project.configureKotlinAndroid(extension: CommonExtension<*, *, *, *, *>) { ... }
JulianK
02/15/2024, 3:17 PM