Skip to content

Commit 05f6a1e

Browse files
committed
Splitting into pre and post proguard tests
1 parent 9bda0fa commit 05f6a1e

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

test-apps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ This experimental directory contains apps that are used to smoke test Firebase A
2929
- From the /test-apps dir, run the tests
3030

3131
```
32-
./gradlew connectedReleaseAndroidTest -PfirebaseProjectId=<your_project_id> -PfirebaseToken=<your_firebase_token> -Pm2Repository=${PWD}/../build/m2repository/
32+
./gradlew connectedCheck -PtestBuildType=<release|debug> -PfirebaseProjectId=<your_project_id> -PfirebaseToken=<your_firebase_token> -Pm2Repository=${PWD}/../build/m2repository/
3333
```

test-apps/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ buildscript {
1919
jcenter()
2020
mavenLocal()
2121
google()
22-
maven { url 'https://maven.fabric.io/public' }
2322
}
2423
dependencies {
2524
classpath 'com.android.tools.build:gradle:3.1.4'
@@ -33,6 +32,8 @@ plugins {
3332
}
3433

3534
allprojects {
35+
ext.testBuildType = project.getProperties().get("testBuildType", "debug")
36+
3637
apply plugin: 'com.github.sherter.google-java-format'
3738
googleJavaFormat {
3839
toolVersion = '1.6'
@@ -108,7 +109,7 @@ allprojects {
108109
}
109110
}
110111
tasks.whenTaskAdded {
111-
if ( it.name == 'connectedReleaseAndroidTest') {
112+
if ( it.name == 'connectedCheck') {
112113
it.dependsOn setupSmokeTest
113114
it.dependsOn rootProject.tasks.findByName("dependencyUpdates")
114115
}

test-apps/database-test-app/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
apply plugin: 'com.android.application'
1818

1919
android {
20-
testBuildType "release"
20+
testBuildType = project.testBuildType
2121
compileSdkVersion 27
2222

2323
defaultConfig {
@@ -53,7 +53,8 @@ configurations.all {
5353
dependencies {
5454
// We intentionally use an open ended version to pick up any SNAPSHOT
5555
// versions published to the root project' s build/ directory.
56-
implementation 'com.google.firebase:firebase-database:+'
56+
implementation 'com.google.firebase:firebase-database:16.0.2'
57+
implementation 'com.google.firebase:firebase-database:16.0.2:javadoc'
5758
implementation 'com.google.firebase:firebase-core:16+'
5859
implementation 'com.google.firebase:firebase-auth:16+'
5960

test-apps/firestore-test-app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
apply plugin: 'com.android.application'
1818

1919
android {
20-
testBuildType "release"
20+
testBuildType = project.testBuildType
2121
compileSdkVersion 27
2222

2323
defaultConfig {

test-apps/functions-test-app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
apply plugin: 'com.android.application'
1818

1919
android {
20-
// Changes the test build type for instrumented tests to "stage".
21-
testBuildType "release"
20+
testBuildType = project.testBuildType
2221
compileSdkVersion 27
2322

2423
defaultConfig {

test-apps/storage-test-app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
apply plugin: 'com.android.application'
1818

1919
android {
20-
testBuildType "release"
20+
testBuildType = project.testBuildType
2121
compileSdkVersion 27
2222

2323
defaultConfig {

0 commit comments

Comments
 (0)