File tree Expand file tree Collapse file tree 9 files changed +58
-7
lines changed Expand file tree Collapse file tree 9 files changed +58
-7
lines changed Original file line number Diff line number Diff line change 22
22
java-version : 1.8
23
23
- name : Grant execute permission for gradlew
24
24
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
Original file line number Diff line number Diff line change @@ -12,10 +12,14 @@ buildscript {
12
12
jcenter()
13
13
google()
14
14
gradlePluginPortal()
15
+ maven {
16
+ url = uri(" https://plugins.gradle.org/m2/" )
17
+ }
15
18
}
16
19
dependencies {
17
- classpath(" com.android.tools.build:gradle:3.4.2 " )
20
+ classpath(" com.android.tools.build:gradle:3.6.1 " )
18
21
classpath(" de.undercouch:gradle-download-task:4.0.4" )
22
+ classpath(" com.adarshr:gradle-test-logger-plugin:2.0.0" )
19
23
}
20
24
}
21
25
@@ -43,12 +47,14 @@ subprojects {
43
47
44
48
group = " dev.gitlive"
45
49
46
-
50
+ apply (plugin= " com.adarshr.test-logger" )
51
+
47
52
repositories {
48
53
mavenLocal()
49
54
mavenCentral()
50
55
google()
51
56
jcenter()
57
+
52
58
}
53
59
54
60
var shouldSign = true
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ plugins {
13
13
repositories {
14
14
mavenCentral()
15
15
google()
16
+ jcenter()
16
17
}
17
18
18
19
android {
Original file line number Diff line number Diff line change @@ -4,8 +4,20 @@ plugins {
4
4
id(" com.android.library" )
5
5
kotlin(" multiplatform" )
6
6
kotlin(" native.cocoapods" )
7
+ // id("com.quittle.android-emulator") version "0.2.0"
7
8
}
8
9
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
+
9
21
android {
10
22
compileSdkVersion(property(" targetSdkVersion" ) as Int )
11
23
defaultConfig {
@@ -31,6 +43,19 @@ android {
31
43
}
32
44
}
33
45
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
+
34
59
kotlin {
35
60
js {
36
61
val main by compilations.getting {
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ android {
29
29
}
30
30
packagingOptions {
31
31
pickFirst(" META-INF/kotlinx-serialization-runtime.kotlin_module" )
32
+ pickFirst(" META-INF/AL2.0" )
33
+ pickFirst(" META-INF/LGPL2.1" )
32
34
}
33
35
}
34
36
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ android {
24
24
}
25
25
packagingOptions {
26
26
pickFirst(" META-INF/kotlinx-serialization-runtime.kotlin_module" )
27
+ pickFirst(" META-INF/AL2.0" )
28
+ pickFirst(" META-INF/LGPL2.1" )
27
29
}
28
30
}
29
31
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ android {
11
11
defaultConfig {
12
12
minSdkVersion(property(" minSdkVersion" ) as Int )
13
13
targetSdkVersion(property(" targetSdkVersion" ) as Int )
14
+ setMultiDexEnabled(true )
14
15
}
15
16
sourceSets {
16
17
getByName(" main" ) {
@@ -24,6 +25,9 @@ android {
24
25
}
25
26
packagingOptions {
26
27
pickFirst(" META-INF/kotlinx-serialization-runtime.kotlin_module" )
28
+ pickFirst(" META-INF/AL2.0" )
29
+ pickFirst(" META-INF/LGPL2.1" )
30
+ pickFirst(" androidsupportmultidexversion.txt" )
27
31
}
28
32
}
29
33
@@ -59,6 +63,7 @@ kotlin {
59
63
val androidMain by getting {
60
64
dependencies {
61
65
api(" com.google.firebase:firebase-firestore:21.4.3" )
66
+ implementation(" com.android.support:multidex:1.0.3" )
62
67
}
63
68
}
64
69
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ android {
24
24
}
25
25
packagingOptions {
26
26
pickFirst(" META-INF/kotlinx-serialization-runtime.kotlin_module" )
27
+ pickFirst(" META-INF/AL2.0" )
28
+ pickFirst(" META-INF/LGPL2.1" )
27
29
}
28
30
}
29
31
Original file line number Diff line number Diff line change 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
3
2
distributionBase =GRADLE_USER_HOME
4
3
distributionPath =wrapper/dists
5
- zipStorePath =wrapper/dists
6
4
zipStoreBase =GRADLE_USER_HOME
5
+ zipStorePath =wrapper/dists
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
You can’t perform that action at this time.
0 commit comments