Merge pull request #63 from joreilly/github_workflow
github build updates
This commit is contained in:
commit
7f54fa26a5
3 changed files with 14 additions and 15 deletions
13
.github/workflows/android.yml
vendored
13
.github/workflows/android.yml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: set up JDK 11
|
- name: set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
|
@ -39,10 +39,17 @@ jobs:
|
||||||
androidTest:
|
androidTest:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
|
||||||
- name: Instrumentation Tests
|
- name: Instrumentation Tests
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
with:
|
with:
|
||||||
api-level: 28
|
api-level: 29
|
||||||
target: google_apis
|
target: google_apis
|
||||||
script: ./gradlew connectedAndroidTest
|
script: ./gradlew connectedAndroidTest
|
|
@ -53,18 +53,6 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
||||||
freeCompilerArgs = listOf(
|
|
||||||
"-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check",
|
|
||||||
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
|
||||||
"-P",
|
|
||||||
"plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
with(Deps.Android) {
|
with(Deps.Android) {
|
||||||
implementation(material)
|
implementation(material)
|
||||||
|
|
|
@ -19,4 +19,8 @@ class PeopleInSpaceRepositoryFake: PeopleInSpaceRepositoryInterface {
|
||||||
override fun pollISSPosition(): Flow<IssPosition> {
|
override fun pollISSPosition(): Flow<IssPosition> {
|
||||||
return flowOf(issPosition)
|
return flowOf(issPosition)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override suspend fun fetchPeople(): List<Assignment> {
|
||||||
|
return emptyList()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue