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

#75: fat framework gradle task #83

Merged
merged 2 commits into from
Jun 2, 2020

Conversation

Tetraquark
Copy link
Collaborator

How to use the task in gradle .kts scripts with mobile-multiplatform-gradle-plugin:

kotlin {
    tasks.register("debugFatFramework", dev.icerock.gradle.generator.FatFrameworkWithResourcesTask::class) {
        baseName = "multiplatform"

        val targets = mapOf(
            "iosX64" to kotlin.targets.getByName<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget>("iosX64"),
            "iosArm64" to kotlin.targets.getByName<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget>("iosArm64")
        )

        from(
            targets.toList().map {
                it.second.binaries.getFramework("MultiPlatformLibrary", org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.DEBUG)
            }
        )
    }
}

@Tetraquark Tetraquark added the enhancement New feature or request label Jun 2, 2020
@Tetraquark Tetraquark added this to the 0.10.1 milestone Jun 2, 2020
@Tetraquark Tetraquark requested a review from Alex009 June 2, 2020 08:53
@Tetraquark Tetraquark requested a review from Alex009 June 2, 2020 09:04
@Alex009 Alex009 merged commit 85ca1d8 into develop Jun 2, 2020
@Alex009 Alex009 deleted the #75-fat-framework-with-resources-task branch June 2, 2020 09:23
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

Successfully merging this pull request may close these issues.

Localized strings is not available on iOS if iOS-framework was compiled by Gradle FatFramework task
2 participants