File tree 3 files changed +11
-2
lines changed 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ androidx-test-runner = "1.5.2"
4
4
5
5
encoding = " 2.0.0"
6
6
7
- gradle-android = " 8.0 .2"
7
+ gradle-android = " 8.1 .2"
8
8
gradle-binary-compat = " 0.13.2"
9
9
gradle-cklib = " 0.2.4"
10
10
gradle-kmp-configuration = " 0.1.4"
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
**/
16
16
import app.cash.sqldelight.gradle.SqlDelightExtension
17
+ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
17
18
18
19
plugins {
19
20
id(" configuration" )
@@ -58,6 +59,14 @@ kmpConfiguration {
58
59
extensions.configure<SqlDelightExtension >(" sqldelight" ) {
59
60
linkSqlite.set(false )
60
61
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
+
61
70
databases {
62
71
create(" TestDatabase" ) {
63
72
packageName.set(" io.toxicity.sqlite.mc.driver.test" )
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ fun CompileToBitcodeExtension.createSqlite3mc() {
161
161
else -> null
162
162
}?.let { compilerArgs.addAll(it) }
163
163
164
- if (kt.family.isAppleFamily && xcode != null ) {
164
+ if (xcode != null ) {
165
165
when (kt) {
166
166
IOS_ARM64 -> listOf (
167
167
" -mios-version-min=9.0" ,
You can’t perform that action at this time.
0 commit comments