Skip to content

Commit

Permalink
Adjusted build gradle to use cocoapods framework instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reedyuk committed Jun 29, 2023
1 parent f7b29af commit 2aa02da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
1 change: 1 addition & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ POM_DEVELOPER_EMAIL=app.team@myunidays.com

kotlin.native.binary.memoryModel=experimental

kotlin.native.cacheKind.iosArm64=none
kotlin.native.cacheKind.iosArm64=none

kotlin.mpp.enableCInteropCommonization=true
22 changes: 6 additions & 16 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework

val MODULE_PACKAGE_NAME: String by project
val MODULE_NAME: String by project
val MODULE_VERSION_NUMBER: String by project
Expand Down Expand Up @@ -50,23 +48,15 @@ kotlin {
publishAllLibraryVariants()
publishLibraryVariantsGroupedByFlavor = true
}
val xcf = XCFramework(MODULE_NAME)
ios {
binaries.framework {
baseName = MODULE_NAME
xcf.add(this)
}
}
iosSimulatorArm64 {
binaries.framework {
baseName = MODULE_NAME
xcf.add(this)
}
}
ios()
iosSimulatorArm64()
cocoapods {
ios.deploymentTarget = "11.0"
noPodspec()
framework { isStatic = true }
framework {
baseName = MODULE_NAME
isStatic = true
}
pod("Analytics") {
moduleName = "Segment"
source = git("https://github.com/Reedyuk/analytics-ios.git") {
Expand Down

0 comments on commit 2aa02da

Please sign in to comment.