Skip to content

Commit ac36c49

Browse files
authored
Merge pull request #35 from GitLiveApp/exclude_iostests
Exclude the iosTests
2 parents 9a9e697 + 80f279f commit ac36c49

File tree

9 files changed

+58
-7
lines changed

9 files changed

+58
-7
lines changed

.github/workflows/gradle.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ jobs:
2222
java-version: 1.8
2323
- name: Grant execute permission for gradlew
2424
run: chmod +x gradlew
25-
- name: Build with Gradle
26-
run: ./gradlew allTests
25+
- name: All tests excluding iosTest
26+
run: ./gradlew cleanTest test -x compileDebugUnitTestKotlinAndroid -x compileReleaseUnitTestKotlinAndroid -x iosTest
27+
- name: Run Android Instrumented Tests
28+
uses: reactivecircus/android-emulator-runner@v2
29+
with:
30+
api-level: 29
31+
target: google_apis
32+
arch: x86_64
33+
profile: Nexus 6
34+
script: ./gradlew connectedAndroidTest

build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ buildscript {
1212
jcenter()
1313
google()
1414
gradlePluginPortal()
15+
maven {
16+
url = uri("https://plugins.gradle.org/m2/")
17+
}
1518
}
1619
dependencies {
17-
classpath("com.android.tools.build:gradle:3.4.2")
20+
classpath("com.android.tools.build:gradle:3.6.1")
1821
classpath("de.undercouch:gradle-download-task:4.0.4")
22+
classpath("com.adarshr:gradle-test-logger-plugin:2.0.0")
1923
}
2024
}
2125

@@ -43,12 +47,14 @@ subprojects {
4347

4448
group = "dev.gitlive"
4549

46-
50+
apply(plugin="com.adarshr.test-logger")
51+
4752
repositories {
4853
mavenLocal()
4954
mavenCentral()
5055
google()
5156
jcenter()
57+
5258
}
5359

5460
var shouldSign = true

firebase-app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ plugins {
1313
repositories {
1414
mavenCentral()
1515
google()
16+
jcenter()
1617
}
1718

1819
android {

firebase-auth/build.gradle.kts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,20 @@ plugins {
44
id("com.android.library")
55
kotlin("multiplatform")
66
kotlin("native.cocoapods")
7+
//id("com.quittle.android-emulator") version "0.2.0"
78
}
89

10+
//buildscript {
11+
// repositories {
12+
// jcenter()
13+
// google()
14+
// gradlePluginPortal()
15+
// }
16+
// dependencies {
17+
// classpath("com.android.tools.build:gradle:3.6.1")
18+
// }
19+
//}
20+
921
android {
1022
compileSdkVersion(property("targetSdkVersion") as Int)
1123
defaultConfig {
@@ -31,6 +43,19 @@ android {
3143
}
3244
}
3345

46+
// Optional configuration
47+
//androidEmulator {
48+
// emulator {
49+
// name("givlive_emulator")
50+
// sdkVersion(28)
51+
// abi("x86_64")
52+
// includeGoogleApis(true) // Defaults to false
53+
//
54+
// }
55+
// headless(false)
56+
// logEmulatorOutput(false)
57+
//}
58+
3459
kotlin {
3560
js {
3661
val main by compilations.getting {

firebase-common/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ android {
2929
}
3030
packagingOptions {
3131
pickFirst("META-INF/kotlinx-serialization-runtime.kotlin_module")
32+
pickFirst("META-INF/AL2.0")
33+
pickFirst("META-INF/LGPL2.1")
3234
}
3335
}
3436

firebase-database/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ android {
2424
}
2525
packagingOptions {
2626
pickFirst("META-INF/kotlinx-serialization-runtime.kotlin_module")
27+
pickFirst("META-INF/AL2.0")
28+
pickFirst("META-INF/LGPL2.1")
2729
}
2830
}
2931

firebase-firestore/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ android {
1111
defaultConfig {
1212
minSdkVersion(property("minSdkVersion") as Int)
1313
targetSdkVersion(property("targetSdkVersion") as Int)
14+
setMultiDexEnabled(true)
1415
}
1516
sourceSets {
1617
getByName("main") {
@@ -24,6 +25,9 @@ android {
2425
}
2526
packagingOptions {
2627
pickFirst("META-INF/kotlinx-serialization-runtime.kotlin_module")
28+
pickFirst("META-INF/AL2.0")
29+
pickFirst("META-INF/LGPL2.1")
30+
pickFirst("androidsupportmultidexversion.txt")
2731
}
2832
}
2933

@@ -59,6 +63,7 @@ kotlin {
5963
val androidMain by getting {
6064
dependencies {
6165
api("com.google.firebase:firebase-firestore:21.4.3")
66+
implementation("com.android.support:multidex:1.0.3")
6267
}
6368
}
6469

firebase-functions/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ android {
2424
}
2525
packagingOptions {
2626
pickFirst("META-INF/kotlinx-serialization-runtime.kotlin_module")
27+
pickFirst("META-INF/AL2.0")
28+
pickFirst("META-INF/LGPL2.1")
2729
}
2830
}
2931

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Oct 04 15:43:21 BST 2019
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
1+
#Wed May 20 18:31:34 BST 2020
32
distributionBase=GRADLE_USER_HOME
43
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
64
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

0 commit comments

Comments
 (0)