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

Start with Kotlin Multiplatform (android only for now) #780

Merged
merged 1 commit into from
May 24, 2022

Conversation

vanniktech
Copy link
Owner

No description provided.

@vanniktech
Copy link
Owner Author

@gabrielittner Is there anything that's missing? I'm trying to test things out by publishing to my local repository using ./gradlew publishToMavenLocal and then using mavenLocal() with 0.11.0-SNAPSHOT in a project of mine, however I'm getting:

> No matching variant of com.vanniktech:emoji:0.11.0-SNAPSHOT was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.0', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
    - Variant 'metadataApiElements' capability com.vanniktech:emoji:0.11.0-SNAPSHOT:
        - Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a runtime of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'
        - Other compatible attributes:
            - Doesn't say anything about com.android.build.api.attributes.AgpVersionAttr (required '7.2.0')
            - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
            - Doesn't say anything about its target Java environment (preferred optimized for Android)

There are 2 commits here, one with the new base plugin and one without it (deprecated one). Neither one are working. Is there something obvious I'm doing wrong?

@vanniktech vanniktech changed the title Try deprecated plugin. WIP: Kotlin Multiplatform. May 11, 2022
@gabrielittner
Copy link

What version of AGP/Kotlin is that other project where you try to use the snapshot using?

@vanniktech
Copy link
Owner Author

AGP 7.2.0 + Kotlin 1.6.21

@vanniktech vanniktech changed the title WIP: Kotlin Multiplatform. Start with Kotlin Multiplatform (android only for now) May 24, 2022
@vanniktech
Copy link
Owner Author

@gabrielittner publishing this with AGP 7.2.0 does not work, downgraded to 7.0.4 and it does now

@vanniktech vanniktech marked this pull request as ready for review May 24, 2022 18:34
@vanniktech vanniktech merged commit 586df36 into master May 24, 2022
@vanniktech vanniktech deleted the multiplatform branch May 24, 2022 19:12
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

Successfully merging this pull request may close these issues.

None yet

2 participants