Skip to content

Instantly share code, notes, and snippets.

@andatta
Created November 23, 2020 13:17
Show Gist options
  • Save andatta/5e9c8be395fa8d4a4fc66dcfdc05cca9 to your computer and use it in GitHub Desktop.
Save andatta/5e9c8be395fa8d4a4fc66dcfdc05cca9 to your computer and use it in GitHub Desktop.
Sample build.gradle file for showing Cocopaods integration in a Kotlin multiplatform project
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
plugins {
kotlin("native.cocoapods")
kotlin("multiplatform")
}
version = "1.0.0"
kotlin {
iOSTarget("ios") {}
cocoapods{
summary = "Sample KMP Project"
homepage = "https://github.com/sample/KMP-Project"
frameworkName = "SampleKMP"
pod("FirebaseCore")
pod("FirebaseAnalytics")
pod("FirebaseMessaging")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment