diff --git a/ios-app/Podfile.lock b/ios-app/Podfile.lock deleted file mode 100644 index c79ac6e5f..000000000 --- a/ios-app/Podfile.lock +++ /dev/null @@ -1,16 +0,0 @@ -PODS: - - shared (1.0.0) - -DEPENDENCIES: - - shared (from `../shared`) - -EXTERNAL SOURCES: - shared: - :path: "../shared" - -SPEC CHECKSUMS: - shared: 0a618a8378b5481136071c0e49421be7d3e856d9 - -PODFILE CHECKSUM: 885759b9ea004080beb3d965efff653c51b35352 - -COCOAPODS: 1.12.1 diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index c56c2b239..c3bef1fcd 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -4,7 +4,6 @@ import extension.commonTestDependencies plugins { id("com.escodro.multiplatform") alias(libs.plugins.compose) - kotlin("native.cocoapods") } kotlin { @@ -12,13 +11,12 @@ kotlin { iosArm64() iosSimulatorArm64() - cocoapods { - version = "1.0.0" - summary = "Alkaa Multiplatform Module" - homepage = "https://github.com/igorescodro/alkaa" - ios.deploymentTarget = "14.1" - podfile = project.file("../ios-app/Podfile") - framework { + listOf( + iosX64(), + iosArm64(), + iosSimulatorArm64() + ).forEach { + it.binaries.framework { baseName = "shared" isStatic = true } diff --git a/shared/shared.podspec b/shared/shared.podspec deleted file mode 100644 index ed3d7f253..000000000 --- a/shared/shared.podspec +++ /dev/null @@ -1,39 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = 'shared' - spec.version = '1.0.0' - spec.homepage = 'https://github.com/igorescodro/alkaa' - spec.source = { :http=> ''} - spec.authors = '' - spec.license = '' - spec.summary = 'Alkaa Multiplatform Module' - spec.vendored_frameworks = 'build/cocoapods/framework/shared.framework' - spec.libraries = 'c++' - spec.ios.deployment_target = '14.1' - - - spec.pod_target_xcconfig = { - 'KOTLIN_PROJECT_PATH' => ':shared', - 'PRODUCT_MODULE_NAME' => 'shared', - } - - spec.script_phases = [ - { - :name => 'Build shared', - :execution_position => :before_compile, - :shell_path => '/bin/sh', - :script => <<-SCRIPT - if [ "YES" = "$OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED" ]; then - echo "Skipping Gradle build task invocation due to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED environment variable set to \"YES\"" - exit 0 - fi - set -ev - REPO_ROOT="$PODS_TARGET_SRCROOT" - "$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework \ - -Pkotlin.native.cocoapods.platform=$PLATFORM_NAME \ - -Pkotlin.native.cocoapods.archs="$ARCHS" \ - -Pkotlin.native.cocoapods.configuration="$CONFIGURATION" - SCRIPT - } - ] - spec.resources = ['build/compose/ios/shared/compose-resources'] -end \ No newline at end of file