File tree Expand file tree Collapse file tree 3 files changed +67
-0
lines changed
composeApp/src/iosMain/kotlin/dev/johnoreilly/vertexai/di Expand file tree Collapse file tree 3 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Android CI
2+
3+ on : pull_request
4+
5+ jobs :
6+ build :
7+
8+ runs-on : macos-latest
9+
10+ steps :
11+ - uses : actions/checkout@v4
12+ - name : set up JDK 21
13+ uses : actions/setup-java@v4
14+ with :
15+ distribution : ' zulu'
16+ java-version : 21
17+ - name : Build android app
18+ run : ./gradlew assembleDebug
19+ - name : Run Unit Tests
20+ run : ./gradlew allTests
21+
Original file line number Diff line number Diff line change 1+ name : iOS CI
2+
3+ on : pull_request
4+
5+ # Cancel any current or previous job from the same PR
6+ concurrency :
7+ group : ios-${{ github.head_ref }}
8+ cancel-in-progress : true
9+
10+
11+ jobs :
12+ build :
13+ runs-on : macos-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-java@v4
17+ with :
18+ distribution : ' zulu'
19+ java-version : 21
20+
21+ - name : Set Xcode Version 16.4
22+ shell : bash
23+ run : |
24+ xcodes select 16.4
25+
26+ - name : Build iOS app
27+ run : xcodebuild -allowProvisioningUpdates -allowProvisioningUpdates -workspace iosApp/iosApp.xcodeproj/project.xcworkspace -configuration Debug -scheme iosApp -sdk iphoneos -destination name='iPhone 16'
28+
29+
30+
Original file line number Diff line number Diff line change 1+ package dev.johnoreilly.vertexai.di
2+
3+ import dev.johnoreilly.vertexai.GenerativeModel
4+ import org.koin.core.context.startKoin
5+ import org.koin.dsl.module
6+
7+
8+ fun initialiseKoin (generativeModel : GenerativeModel ) {
9+ startKoin {
10+ modules(
11+ commonModule,
12+ module { single<GenerativeModel > { generativeModel } }
13+ )
14+ }
15+
16+ }
You can’t perform that action at this time.
0 commit comments