Skip to content

Commit 893a476

Browse files
authored
Multiplatform deploy (#3)
* adapted for 16kb * corrected ios build * changed version * implemented llamabridge for ios targets (not complete)
1 parent 8308503 commit 893a476

File tree

16 files changed

+214
-176
lines changed

16 files changed

+214
-176
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencyResolutionManagement {
7373

7474
```Kotlin
7575
commonMain.dependencies {
76-
implementation("com.llamatik.library:llamatik:0.1.0")
76+
implementation("com.llamatik.library:llamatik:0.2.0")
7777
}
7878
```
7979

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.llamatik.models
22

3-
import io.ktor.server.auth.Principal
43
import java.io.Serializable
54

65
@Suppress("SerialVersionUIDInSerializableClass")
@@ -9,4 +8,4 @@ data class DatabaseUser(
98
val email: String,
109
val name: String,
1110
val passwordHash: String
12-
) : Serializable, Principal
11+
) : Serializable

backend/src/main/kotlin/com/llamatik/repository/embeddings/EmbeddingRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package com.llamatik.repository.embeddings
22

33
interface EmbeddingRepository {
44
suspend fun getEmbedding(input: String): Result<FloatArray>
5-
}
5+
}

backend/src/main/kotlin/com/llamatik/repository/embeddings/EmbeddingRepositoryImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ class EmbeddingRepositoryImpl : EmbeddingRepository {
44
override suspend fun getEmbedding(input: String): Result<FloatArray> {
55
TODO("Not yet implemented")
66
}
7-
}
7+
}

backend/src/main/kotlin/com/llamatik/repository/generation/GenerationRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package com.llamatik.repository.generation
22

33
interface GenerationRepository {
44
suspend fun generate(prompt: String): Result<String>
5-
}
5+
}

backend/src/main/kotlin/com/llamatik/repository/generation/GenerationRepositoryImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ class GenerationRepositoryImpl : GenerationRepository {
44
override suspend fun generate(prompt: String): Result<String> {
55
TODO("Not yet implemented")
66
}
7-
}
7+
}

gradle/libs.versions.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ android-compileSdk = "36"
33
android-minSdk = "26"
44
android-targetSdk = "36"
55
koalaplotCore = "0.9.0"
6-
kotlin = "2.1.21"
6+
kotlin = "2.2.0"
77
ktor-client = "3.2.2"
88
ktor-server = "3.2.2"
99
multiplatform-settings = "1.3.0"
@@ -12,7 +12,7 @@ voyager = "1.1.0-beta03"
1212
koin = "4.1.0"
1313
koin-compose = "4.1.0"
1414
junit = "4.13.2"
15-
androidGradlePlugin = "8.11.0"
15+
androidGradlePlugin = "8.11.1"
1616
composeMultiplatform = "1.8.2"
1717
exposed = "0.61.0"
1818
skiko = "0.8.18"
@@ -32,8 +32,8 @@ filekit = "0.10.0-beta04"
3232
mediaPlayerKMP = "2.0.9"
3333
urlencoder = "1.6.0"
3434
kotlinx-io = "0.8.0"
35-
kotlinStdlib = "2.1.21"
36-
kotlinTest = "2.1.21"
35+
kotlinStdlib = "2.2.0"
36+
kotlinTest = "2.2.0"
3737
runner = "1.6.2"
3838
core = "1.6.1"
3939

@@ -82,7 +82,7 @@ urlencoder = { module = "net.thauvin.erik.urlencoder:urlencoder-lib", version.re
8282

8383

8484
# Android
85-
compose-bom = "androidx.compose:compose-bom:2025.06.01"
85+
compose-bom = "androidx.compose:compose-bom:2025.07.00"
8686
koin-android = { module = "io.insert-koin:koin-android", version.ref = "koin" }
8787

8888
androidx-core-ktx = "androidx.core:core-ktx:1.16.0"
@@ -151,11 +151,11 @@ hikariCP = "com.zaxxer:HikariCP:6.3.1"
151151
swagger-codegen = "io.swagger.codegen.v3:swagger-codegen-generators:1.0.57"
152152

153153
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
154-
androidx-navigation-common-ktx = { group = "androidx.navigation", name = "navigation-common-ktx", version.ref = "navigationCommonKtx" }
154+
#androidx-navigation-common-ktx = { group = "androidx.navigation", name = "navigation-common-ktx", version.ref = "navigationCommonKtx" }
155155
kotlin-stdlib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlinStdlib" }
156156
kotlin-test = { group = "org.jetbrains.kotlin", name = "kotlin-test", version.ref = "kotlinTest" }
157-
androidx-runner = { group = "androidx.test", name = "runner", version.ref = "runner" }
158-
androidx-core = { group = "androidx.test", name = "core", version.ref = "core" }
157+
#androidx-runner = { group = "androidx.test", name = "runner", version.ref = "runner" }
158+
#androidx-core = { group = "androidx.test", name = "core", version.ref = "core" }
159159

160160
[plugins]
161161
#Common
@@ -169,7 +169,7 @@ compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "
169169
korge = { id = "com.soywiz.korge", version = "6.0.0" }
170170

171171
#Backend
172-
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version = "kotlin" }
172+
#kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version = "kotlin" }
173173
shadow = { id = "com.github.johnrengelman.shadow", version = "8.1.1" }
174174

175175
[bundles]

iosApp/Llamatik.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/* Begin PBXBuildFile section */
1010
058557BB273AAA24004C7B11 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 058557BA273AAA24004C7B11 /* Assets.xcassets */; };
1111
058557D9273AAEEB004C7B11 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 058557D8273AAEEB004C7B11 /* Preview Assets.xcassets */; };
12-
0BCA50502C74D0A600ADD6E7 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 0BCA504F2C74D0A600ADD6E7 /* GoogleService-Info.plist */; };
1312
0BCA50532C74D1E200ADD6E7 /* FirebaseAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = 0BCA50522C74D1E200ADD6E7 /* FirebaseAnalytics */; };
1413
0BCA50552C74D1E200ADD6E7 /* FirebaseAnalyticsWithoutAdIdSupport in Frameworks */ = {isa = PBXBuildFile; productRef = 0BCA50542C74D1E200ADD6E7 /* FirebaseAnalyticsWithoutAdIdSupport */; };
1514
0BCA50572C74D1E200ADD6E7 /* FirebaseAppDistribution-Beta in Frameworks */ = {isa = PBXBuildFile; productRef = 0BCA50562C74D1E200ADD6E7 /* FirebaseAppDistribution-Beta */; };
@@ -35,7 +34,6 @@
3534
/* Begin PBXFileReference section */
3635
058557BA273AAA24004C7B11 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
3736
058557D8273AAEEB004C7B11 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
38-
0BCA504F2C74D0A600ADD6E7 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
3937
0BCA505A2C74D8A100ADD6E7 /* LlamatikDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = LlamatikDebug.entitlements; sourceTree = "<group>"; };
4038
0BFB35BC2A86655F0092DF61 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
4139
2152FB032600AC8F00CF470E /* iOSApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSApp.swift; sourceTree = "<group>"; };
@@ -88,7 +86,6 @@
8886
7555FF7D242A565900829871 /* iosApp */ = {
8987
isa = PBXGroup;
9088
children = (
91-
0BCA504F2C74D0A600ADD6E7 /* GoogleService-Info.plist */,
9289
058557BA273AAA24004C7B11 /* Assets.xcassets */,
9390
7555FF82242A565900829871 /* ContentView.swift */,
9491
0BFB35BC2A86655F0092DF61 /* LaunchScreen.storyboard */,
@@ -185,7 +182,6 @@
185182
buildActionMask = 2147483647;
186183
files = (
187184
0BFB35BD2A86655F0092DF61 /* LaunchScreen.storyboard in Resources */,
188-
0BCA50502C74D0A600ADD6E7 /* GoogleService-Info.plist in Resources */,
189185
058557D9273AAEEB004C7B11 /* Preview Assets.xcassets in Resources */,
190186
058557BB273AAA24004C7B11 /* Assets.xcassets in Resources */,
191187
);

iosApp/Llamatik.xcodeproj/xcshareddata/xcschemes/iosApp.xcscheme

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
ReferencedContainer = "container:Llamatik.xcodeproj">
5050
</BuildableReference>
5151
</BuildableProductRunnable>
52+
<LocationScenarioReference
53+
identifier = "com.apple.dt.IDEFoundation.CurrentLocationScenarioIdentifier"
54+
referenceType = "1">
55+
</LocationScenarioReference>
5256
</LaunchAction>
5357
<ProfileAction
5458
buildConfiguration = "Release"

0 commit comments

Comments
 (0)