Giter VIP home page Giter VIP logo

Comments (3)

arkivanov avatar arkivanov commented on May 23, 2024

You definitely don't need to define platform specific dependencies like com.badoo.reaktive:reaktive-iossimulatorarm64:$reaktiveVersion. All you need to do is to specify the dependency in the commonMain source set, and also export it to the framework.

The following should work:

kotlin {

    android()

    iosArm64 {
        binaries {
            framework {
                baseName = "SomeCommon"
                export("com.badoo.reaktive:reaktive:$reaktiveVersion")
            }
        }
    }
    iosSimulatorArm64 {
        binaries {
            framework {
                baseName = "SomeCommon"
                export("com.badoo.reaktive:reaktive:$reaktiveVersion")
            }
        }
    }
    iosX64 {
        binaries {
            framework {
                baseName = "SomeCommon"
                export("com.badoo.reaktive:reaktive:$reaktiveVersion")
            }
        }
    }

    sourceSets {
        val commonMain by getting {
            dependencies {
                api("com.badoo.reaktive:reaktive:$reaktiveVersion")
            }
        }
        val commonTest by getting {
            dependencies {
                implementation(kotlin("test"))
            }
        }
        val androidMain by getting
        val androidTest by getting {
            dependencies {
                implementation("junit:junit:4.13")
            }
        }

        val iosMain by creating { dependsOn(commonMain) }
        val iosArm64Main by getting { dependsOn(iosMain) }
        val iosX64Main by getting { dependsOn(iosMain) }
        val iosSimulatorArm64Main by getting { dependsOn(iosMain) }

        val iosTest by creating { dependsOn(commonTest) }
        val iosArm64Test by getting { dependsOn(iosTest) }
        val iosX64Test by getting { dependsOn(iosTest) }
        val iosSimulatorArm64Test by getting { dependsOn(iosTest) }
    }
}

from reaktive.

Akazm avatar Akazm commented on May 23, 2024

Ah, I see, thanks for responding so quickly!

The description in the documentation is different from what you're describing here, though.

from reaktive.

arkivanov avatar arkivanov commented on May 23, 2024

Let's keep this issue open until I update the Readme.

from reaktive.

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.