Hey, is it correct that the `com.android.library` ...
# multiplatform
s
Hey, is it correct that the
com.android.library
Plugin got replaced by `com.android.kotlin.multiplatform.library`or did I get the docs wrong?
t
Yes, usage of
com.android.library
(and
com.android.application
) is being deprecated. With AGP 9.0 it even will not work by default and you have to enable old AGP APIs.
s
Thanks alot! But are the configuration options from `com.android.library`now included in the
om.android.kotlin.multiplatform.library
or how do I configurate android specific options like
defaultConfig
, `signingConfigs`and so on? I simply tried to replace the plugin and rename `androidTarget`to
android
but gradle can no longer resolve these references.
d
This link can help you with some troubleshooting https://developer.android.com/kotlin/multiplatform/plugin
s
Hey, thanks for the link. I checked googles resources for that as well but I couldn't find anything related to the application plugin, only for the library variant. The only thing regarding the application plugin was the note that there isn't a direct replacement for configuring the application plugin.
d
Note: There isn't a direct replacement for configuring a Kotlin Multiplatform module using com.android.application plugin. To migrate, extract your Android application to a separate Gradle module.
1
s
Ye, thats the Note I mean. But theres no way I have to create a seperate gradle module just for configuring these settings
t
you just create another Gradle subproject with
com.android.application
plugin applied in it. And also add a dependency on KMP library project - then you should be able to assemble the app
s
Alright. Thanks for the support!