Coder Social home page Coder Social logo

Comments (13)

ismai117 avatar ismai117 commented on May 29, 2024 3

its sorted now, I just had to upload my public GPG key to the keyserver.

I appreciate your work on the library template!, I've finally released my first ever library which you can check out on my repo. it's called Kottie. thanks for the help!!

from compose-multiplatform-library-template.

ismai117 avatar ismai117 commented on May 29, 2024 1

It's working now. I used publishAllPublicationsToMaven, but I had to change the version to 1.2.0. thanks for the help!!

from compose-multiplatform-library-template.

KevinnZou avatar KevinnZou commented on May 29, 2024 1

Hi @ismai117, I encountered that issue in my project before and it turned out to be the problem with the Kotlin Multiplatform plugin. It does not allow the same class name for different modules. However, I believe this issue has been fixed and it is now working well for me.

One difference is that you are encountering the problem after importing two libraries. This issue should not occur unless the two libraries have the same package name. If that is the case, try to differentiate them by renaming one of the packages.

Please note that this template only defines the project structure and applies necessary plugins. It does not perform any additional tasks. Therefore, it should not be the primary cause of any errors.

from compose-multiplatform-library-template.

ismai117 avatar ismai117 commented on May 29, 2024 1

its fixed now, the error occurred because both libraries had the same filename "getPlatformName.kt"

one last question, if I rename the artifactid, will it replace the other versions on maven?

from: coordinates("io.github.ismai117", "KSend", "1.0.2")
to: coordinates("io.github.ismai117", "ksend", "1.0.3")

from compose-multiplatform-library-template.

KevinnZou avatar KevinnZou commented on May 29, 2024

@ismai117 Thanks for your feedback! I am wondering which gradle tasks are you running, or just syncing.

from compose-multiplatform-library-template.

KevinnZou avatar KevinnZou commented on May 29, 2024

@ismai117 Great job!

from compose-multiplatform-library-template.

ismai117 avatar ismai117 commented on May 29, 2024

hi @KevinnZou, I just released a new version "1.1.0", it was successful but when I search the dependency in nexus repo manager. it hasn't updated for all targets

Screenshot 2024-01-07 at 01 48 47

from compose-multiplatform-library-template.

KevinnZou avatar KevinnZou commented on May 29, 2024

@ismai117 It seems that kottie-android has version 1.1.0. Did you publish all the artifacts?

from compose-multiplatform-library-template.

ismai117 avatar ismai117 commented on May 29, 2024

Screenshot 2024-01-07 at 01 57 08
this is what I have in the configuration. I'm not 100% sure.

I followed the instruction like the first release which worked

"Automatic releaseΒΆ

Run the following task to let the plugin handle all steps automatically:

./gradlew publishAndReleaseToMavenCentral --no-configuration-cache",

I tried this again but this time it hasn't updated all targets

from compose-multiplatform-library-template.

KevinnZou avatar KevinnZou commented on May 29, 2024

@ismai117 You should run publishAllPublicationsToMaven*.

from compose-multiplatform-library-template.

ismai117 avatar ismai117 commented on May 29, 2024

I've tried that but for some reason its not releasing the new version which is odd

from compose-multiplatform-library-template.

ismai117 avatar ismai117 commented on May 29, 2024

Hi @KevinnZou, I'm trying to use 2 libraries together which I created and pushed to maven using your template.

Deps

implementation("io.github.ismai117:kottie:1.4.1")
implementation("io.github.ismai117:KSend:1.0.1")

Error Message

Duplicate class GetPlatformNameKt found in modules jetified-lib-release-runtime (io.github.ismai117:KSend-android:1.0.1) and jetified-lib-release-runtime (io.github.ismai117:kottie-android:1.4.1)

from compose-multiplatform-library-template.

KevinnZou avatar KevinnZou commented on May 29, 2024

@ismai117 No, it will only take effect from the current version.

from compose-multiplatform-library-template.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.