Skip to content

Commit

Permalink
fix iOS composite build
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Jan 15, 2025
1 parent ef2600c commit 84c1d8c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
14 changes: 14 additions & 0 deletions demoapp/composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
alias(libs.plugins.compose.runtime)
alias(libs.plugins.android.application)
alias(libs.plugins.buildConfig)
id("io.github.ttypic.swiftklib") version "0.6.4"
}

kotlin {
Expand All @@ -24,6 +25,11 @@ kotlin {
iosArm64(),
iosSimulatorArm64()
).forEach {
it.compilations{
val main by getting {
cinterops.create("Dummy")
}
}
it.binaries.framework {
baseName = "ComposeApp"
isStatic = true
Expand Down Expand Up @@ -71,6 +77,14 @@ kotlin {
}
}

swiftklib {
create("Dummy") {
minIos=13
path = file("src/iosMain/swift")
packageName("at.asitplus.signum.dummy")
}
}

android {
namespace = "at.asitplus.cryptotest"
compileSdk = 34
Expand Down
7 changes: 7 additions & 0 deletions demoapp/composeApp/src/iosMain/swift/CBC.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

import Foundation

@objc public class Dummy: NSObject {
@objc public class func noop() {
}
}
8 changes: 4 additions & 4 deletions demoapp/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[versions]

biometric = "1.2.0-alpha05"
kotlin = "2.0.20"
compose = "1.6.11"
kotlin = "2.1.0"
compose = "1.7.1"
agp = "8.2.2"
androidx-appcompat = "1.7.0"
androidx-activityCompose = "1.9.1"
compose-uitooling = "1.6.8"
androidx-activityCompose = "1.9.3"
compose-uitooling = "1.7.6"
voyager = "1.0.0"
composeImageLoader = "1.7.1"
napier = "2.7.1"
Expand Down
1 change: 1 addition & 0 deletions supreme/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ kotlin {

swiftklib {
create("AESwift") {
minIos = 13
path = file("src/iosMain/swift")
packageName("at.asitplus.signum.supreme.aes")
}
Expand Down

0 comments on commit 84c1d8c

Please sign in to comment.