Skip to content

Commit

Permalink
Merge pull request #7 from andremion/mobile-ci
Browse files Browse the repository at this point in the history
Setup iOS CI alongside Android
  • Loading branch information
andremion committed Mar 14, 2024
2 parents 13511b2 + 0d64075 commit fd4627b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/android.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Android CI
name: CI

on:
push:
Expand All @@ -8,19 +8,22 @@ on:

jobs:
build:

runs-on: macos-latest
runs-on: macos-14

steps:
- uses: actions/checkout@v4
- name: set up JDK 17
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle

- name: Build androidApp
run: ./gradlew androidApp:build

- name: Build iosApp
run: xcodebuild build -project iosApp/iosApp.xcodeproj -configuration Debug -scheme iosApp -sdk iphoneos -destination name='iPhone 15 Pro' -verbose
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import org.koin.core.KoinApplication
import org.koin.core.context.startKoin
import org.koin.dsl.KoinAppDeclaration

fun initDI(appDeclaration: KoinAppDeclaration): KoinApplication =
fun initDI(appDeclaration: KoinAppDeclaration? = null): KoinApplication =
startKoin {
appDeclaration()
appDeclaration?.invoke(this)
modules(
PlayerModule.module,
DataModule.module,
Expand Down

0 comments on commit fd4627b

Please sign in to comment.