Giter Site home page Giter Site logo

Comments (4)

Vaibhav2002 avatar Vaibhav2002 commented on May 29, 2024 1

@ASalavei Here is the minimal reproducer https://github.com/Medial-Tech/Medial-App-Reproducer/tree/main
It builds fine on 1.5.11 but as soon as i upgrade to 1.6.2 it throws "Duplicate symbols" when built from Android Studio

from compose-multiplatform.

ASalavei avatar ASalavei commented on May 29, 2024

Hi!
We're using CMPUIKit static library in compose framework. You're importing 2 frameworks both have own copy of it.
I would recommend to use only one top-level dependency of Multiplatform framework. In your case if shared-ui-screens uses shared-ui as dependency, I would include only the first one into iOS App, and propagate symbols from dependent shared-ui.

Also, you can provide minimum viable repro application sample to let us make close look into it.

from compose-multiplatform.

Vaibhav2002 avatar Vaibhav2002 commented on May 29, 2024

Hi,
shared-ui module uses shared-ui-screens as an implementation dependency
Same, shared uses shared-ui as an implementation dependency

shared-ui

kotlin {
    
    sourceSets {
        commonMain.dependencies {
            implementation(project(":shared:core"))
            implementation(project(":shared:ui:core"))
            implementation(project(":shared:ui:components"))
            implementation(project(":shared:ui:screens"))
            implementation(project(":shared:domain"))

            implementation(libs.bundles.decompose)
            implementation(libs.moko.permissions)
        }
    }
}

shared

kotlin {

    cocoapods {
        podfile = project.file("../iosApp/Podfile")
    }

    sourceSets {
        commonMain.dependencies {
            implementation(project(":shared:core"))
            implementation(project(":shared:ui"))
            implementation(project(":shared:domain"))
            implementation(libs.decompose.core)
            implementation(libs.moko.permissions)
        }

        androidMain.dependencies {
            implementation(androidLibs.activity.compose)
        }
    }
}

from compose-multiplatform.

ASalavei avatar ASalavei commented on May 29, 2024

Could you please remove everything valuable from your project and upload minimal sources set that reproduces your issue on GitHub to do proper investigation?

from compose-multiplatform.

Related Issues (20)

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.