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

Transitive onlyLink support #29

Open
Alex009 opened this issue Dec 22, 2020 · 0 comments
Open

Transitive onlyLink support #29

Alex009 opened this issue Dec 22, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Alex009
Copy link
Member

Alex009 commented Dec 22, 2020

If we add onlyLink = true cocoapod, but nowhere not add cinterop variant of cocoapod - we will not link with this cocoapod. and because of it in moko-crash-reporting we can't use pod("GoogleUtilities", onlyLink = true)

but for now we can use:

cocoaPods {
    pod("GoogleUtilities", onlyLink = true)
}

kotlin.targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget::class.java).all {
    binaries.withType(org.jetbrains.kotlin.gradle.plugin.mpp.Framework::class.java).all {
        linkerOpts("-framework", "GoogleUtilities")
    }
}

need to add linker opts in onlyLink case.

@Alex009 Alex009 added the enhancement New feature or request label Dec 22, 2020
@Alex009 Alex009 self-assigned this Dec 22, 2020
@Alex009 Alex009 added this to the 0.10.0 milestone Dec 22, 2020
@Alex009 Alex009 modified the milestones: 0.10.0, 0.11.0 Jun 14, 2021
@Alex009 Alex009 removed this from the 0.11.0 milestone Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant