Skip to content

Commit c6b917e

Browse files
committed
Add Security framework link
1 parent 8611b1c commit c6b917e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ androidx-test-runner = "1.5.2"
44

55
encoding = "2.0.0"
66

7-
gradle-android = "8.0.2"
7+
gradle-android = "8.1.2"
88
gradle-binary-compat = "0.13.2"
99
gradle-cklib = "0.2.4"
1010
gradle-kmp-configuration = "0.1.4"

library/driver-test/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
**/
1616
import app.cash.sqldelight.gradle.SqlDelightExtension
17+
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
1718

1819
plugins {
1920
id("configuration")
@@ -58,6 +59,14 @@ kmpConfiguration {
5859
extensions.configure<SqlDelightExtension>("sqldelight") {
5960
linkSqlite.set(false)
6061

62+
// TODO: Gradle Plugin (Issue #18)
63+
targets.filterIsInstance<KotlinNativeTarget>()
64+
.filter { it.konanTarget.family.isAppleFamily }
65+
.flatMap { it.binaries }
66+
.forEach { compilationUnit ->
67+
compilationUnit.linkerOpts("-framework", "Security")
68+
}
69+
6170
databases {
6271
create("TestDatabase") {
6372
packageName.set("io.toxicity.sqlite.mc.driver.test")

library/driver/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fun CompileToBitcodeExtension.createSqlite3mc() {
161161
else -> null
162162
}?.let { compilerArgs.addAll(it) }
163163

164-
if (kt.family.isAppleFamily && xcode != null) {
164+
if (xcode != null) {
165165
when (kt) {
166166
IOS_ARM64 -> listOf(
167167
"-mios-version-min=9.0",

0 commit comments

Comments
 (0)