Skip to content

Commit

Permalink
change to publish api of androidlibphonenumber
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjenx committed Oct 8, 2024
1 parent 455f25a commit 8ba9266
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.compose)
alias(libs.plugins.cocoapods)
//alias(libs.plugins.cocoapods)
alias(libs.plugins.maven.publish)
}

kotlin {
cocoapods {
version = "1.0.0"
summary = "Yet Another Kotlin COmpose Validation library"
homepage = "https://github.com/chrisjenx/yakcov"
ios.deploymentTarget = "14.1"
framework {
baseName = "shared"
isStatic = true
pod("libPhoneNumber-iOS")
// @OptIn(ExperimentalKotlinGradlePluginApi::class)
// transitiveExport = true
}
}
// cocoapods {
// version = "1.0.0"
// summary = "Yet Another Kotlin COmpose Validation library"
// homepage = "https://github.com/chrisjenx/yakcov"
// ios.deploymentTarget = "14.1"
// framework {
// baseName = "shared"
// isStatic = true
// pod("libPhoneNumber-iOS")
//// @OptIn(ExperimentalKotlinGradlePluginApi::class)
//// transitiveExport = true
// }
// }

applyDefaultHierarchyTemplate()
androidTarget {
Expand Down Expand Up @@ -75,17 +75,17 @@ kotlin {
}
}

iosX64()
iosArm64()
iosSimulatorArm64()
// listOf(
//
// ).forEach {
// it.binaries.framework {
// baseName = "Yakcov"
// isStatic = true
// }
// }

listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "Yakcov"
isStatic = true
}
}

sourceSets {
commonMain.dependencies {
Expand All @@ -106,7 +106,7 @@ kotlin {
androidMain.dependencies {
compileOnly(compose.uiTooling)
implementation(libs.androidx.activityCompose)
implementation(libs.libphonenumber.android)
api(libs.libphonenumber.android)
}

jvmMain.dependencies {
Expand Down

0 comments on commit 8ba9266

Please sign in to comment.