Skip to content

Commit e60cd3c

Browse files
authored
Merge pull request #58 from joreilly/missing_file
add missing koin file
2 parents 0a35df6 + ebf54a6 commit e60cd3c

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

.github/workflows/android.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+

.github/workflows/ios.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

0 commit comments

Comments
 (0)