Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Android platform support #63

Open
Tetraquark opened this issue Dec 22, 2022 · 1 comment
Open

Enable Android platform support #63

Tetraquark opened this issue Dec 22, 2022 · 1 comment
Assignees

Comments

@Tetraquark
Copy link

To use the library in Android projects, 'android()' platform support must be enabled. To do so, it need to apply Android Gradle Plugin for the configuration phase, apply android library plugin com.android.library for each multiplatofrm module, setup android configuration with fresh verisons of the android SDK (compileSdk = 33, targetSdk = 33, minSdk = 21 or older), create androidMain sourcesets and place manifest androidMain/AndroidManifest.xml to each sourceset with different packages.

And as I beleive, there are some problems with the current project configuration for multiplatform. jvmMain and androidMain - is different sourcests for KMM (because some differents with API in Java, as I understand). So, it will need to either copypaste the code of actual implementations, or rework structure of sourcesets.
And it is impossible to enable two plugins at the same time in the same module - com.android.library and java. At now java plugin applied in ton-kotlin-fift module.

Some links on the topic:

@Tetraquark
Copy link
Author

And some projects with KMM in which android and jvm are enabled:

@andreypfau andreypfau self-assigned this Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants