aws-amplify / amplify-android

The fastest and easiest way to use AWS from your Android app.
https://docs.amplify.aws/lib/q/platform/android/
Apache License 2.0
250 stars 117 forks source link

Does amplify currently support KotlinMultiModule #2382

Closed kingcali3 closed 1 year ago

kingcali3 commented 1 year ago

I am implementing amplify for my kotlinmultimodule application and I am separating my modules from android library modules and java library modules. I am placing the my generated models into a domain module but since these generated models require android dependencies (specifically com.amplifyframework:core:2.2.2 and com.amplifyframework:aws-api:2.2.2 requiring android navigation dependencies), I am forced to make my domain module as an android library. Since java libraries can't have android dependencies is there any way to properly use the generated models in the java library for kmm? If there is something that I am fundamentally missing please excuse me as I am still getting familiar with kmm.

tylerjroach commented 1 year ago

At this time, Amplify for Android is built only for Android. We do not support Kotlin Multiplatform at this time. The lower level apis in the Developer Preview Kotlin SDK (https://github.com/awslabs/aws-sdk-kotlin) do not depend on Android. However, Amplify for Android is build with use cases to specifically enable the best experience for Android developers.

kingcali3 commented 1 year ago

Ok thank you.

github-actions[bot] commented 1 year ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.