Skip to content

Commit 0f63e61

Browse files
committed
Add emulator plugin - want to see what happens on git before refactoring it
1 parent ce16fea commit 0f63e61

File tree

6 files changed

+149
-0
lines changed

6 files changed

+149
-0
lines changed

firebase-app/build.gradle.kts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,22 @@ plugins {
88
id("com.android.library")
99
kotlin("multiplatform")
1010
kotlin("native.cocoapods")
11+
id("com.quittle.android-emulator") version "0.2.0"
12+
}
13+
14+
buildscript {
15+
repositories {
16+
google()
17+
}
18+
dependencies {
19+
classpath("com.android.tools.build:gradle:3.6.1")
20+
}
1121
}
1222

1323
repositories {
1424
mavenCentral()
1525
google()
26+
jcenter()
1627
}
1728

1829
android {
@@ -38,6 +49,19 @@ android {
3849
}
3950
}
4051

52+
// Optional configuration
53+
androidEmulator {
54+
emulator {
55+
name("givlive_emulator")
56+
sdkVersion(28)
57+
abi("x86_64")
58+
includeGoogleApis(true) // Defaults to false
59+
}
60+
61+
headless(true) // Defaults to false but should be set to true for most CI systems
62+
logEmulatorOutput(true) // Defaults to false but can be enabled to have emulator output logged for debugging.
63+
}
64+
4165
kotlin {
4266
js {
4367
val main by compilations.getting {

firebase-auth/build.gradle.kts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ plugins {
44
id("com.android.library")
55
kotlin("multiplatform")
66
kotlin("native.cocoapods")
7+
id("com.quittle.android-emulator") version "0.2.0"
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+
}
719
}
820

921
android {
@@ -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(true) // Defaults to false but should be set to true for most CI systems
56+
logEmulatorOutput(true) // Defaults to false but can be enabled to have emulator output logged for debugging.
57+
}
58+
3459
kotlin {
3560
js {
3661
val main by compilations.getting {

firebase-common/build.gradle.kts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ plugins {
99
kotlin("multiplatform")
1010
kotlin("native.cocoapods")
1111
kotlin("plugin.serialization") version "1.3.71"
12+
id("com.quittle.android-emulator") version "0.2.0"
13+
}
14+
15+
buildscript {
16+
repositories {
17+
jcenter()
18+
google()
19+
gradlePluginPortal()
20+
}
21+
dependencies {
22+
classpath("com.android.tools.build:gradle:3.6.1")
23+
}
1224
}
1325

1426
android {
@@ -34,6 +46,19 @@ android {
3446
}
3547
}
3648

49+
// Optional configuration
50+
androidEmulator {
51+
emulator {
52+
name("givlive_emulator")
53+
sdkVersion(28)
54+
abi("x86_64")
55+
includeGoogleApis(true) // Defaults to false
56+
}
57+
58+
headless(true) // Defaults to false but should be set to true for most CI systems
59+
logEmulatorOutput(true) // Defaults to false but can be enabled to have emulator output logged for debugging.
60+
}
61+
3762
kotlin {
3863
js {
3964
val main by compilations.getting {

firebase-database/build.gradle.kts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ plugins {
44
id("com.android.library")
55
kotlin("multiplatform")
66
kotlin("native.cocoapods")
7+
id("com.quittle.android-emulator") version "0.2.0"
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+
}
719
}
820

921
android {
@@ -29,6 +41,19 @@ android {
2941
}
3042
}
3143

44+
// Optional configuration
45+
androidEmulator {
46+
emulator {
47+
name("givlive_emulator")
48+
sdkVersion(28)
49+
abi("x86_64")
50+
includeGoogleApis(true) // Defaults to false
51+
}
52+
53+
headless(true) // Defaults to false but should be set to true for most CI systems
54+
logEmulatorOutput(true) // Defaults to false but can be enabled to have emulator output logged for debugging.
55+
}
56+
3257
kotlin {
3358
js {
3459
val main by compilations.getting {

firebase-firestore/build.gradle.kts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ plugins {
44
id("com.android.library")
55
kotlin("multiplatform")
66
kotlin("native.cocoapods")
7+
id("com.quittle.android-emulator") version "0.2.0"
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+
}
719
}
820

921
android {
@@ -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(true) // Defaults to false but should be set to true for most CI systems
56+
logEmulatorOutput(true) // Defaults to false but can be enabled to have emulator output logged for debugging.
57+
}
58+
3459
kotlin {
3560
js {
3661
val main by compilations.getting {

firebase-functions/build.gradle.kts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ plugins {
44
id("com.android.library")
55
kotlin("multiplatform")
66
kotlin("native.cocoapods")
7+
id("com.quittle.android-emulator") version "0.2.0"
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+
}
719
}
820

921
android {
@@ -29,6 +41,19 @@ android {
2941
}
3042
}
3143

44+
// Optional configuration
45+
androidEmulator {
46+
emulator {
47+
name("givlive_emulator")
48+
sdkVersion(28)
49+
abi("x86_64")
50+
includeGoogleApis(true) // Defaults to false
51+
}
52+
53+
headless(true) // Defaults to false but should be set to true for most CI systems
54+
logEmulatorOutput(true) // Defaults to false but can be enabled to have emulator output logged for debugging.
55+
}
56+
3257
kotlin {
3358
js {
3459
val main by compilations.getting {

0 commit comments

Comments
 (0)