File tree Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ This experimental directory contains apps that are used to smoke test Firebase A
29
29
- From the /test-apps dir, run the tests
30
30
31
31
```
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/
33
33
```
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ buildscript {
19
19
jcenter()
20
20
mavenLocal()
21
21
google()
22
- maven { url ' https://maven.fabric.io/public' }
23
22
}
24
23
dependencies {
25
24
classpath ' com.android.tools.build:gradle:3.1.4'
@@ -33,6 +32,8 @@ plugins {
33
32
}
34
33
35
34
allprojects {
35
+ ext. testBuildType = project. getProperties(). get(" testBuildType" , " debug" )
36
+
36
37
apply plugin : ' com.github.sherter.google-java-format'
37
38
googleJavaFormat {
38
39
toolVersion = ' 1.6'
@@ -108,7 +109,7 @@ allprojects {
108
109
}
109
110
}
110
111
tasks. whenTaskAdded {
111
- if ( it. name == ' connectedReleaseAndroidTest ' ) {
112
+ if ( it. name == ' connectedCheck ' ) {
112
113
it. dependsOn setupSmokeTest
113
114
it. dependsOn rootProject. tasks. findByName(" dependencyUpdates" )
114
115
}
Original file line number Diff line number Diff line change 17
17
apply plugin : ' com.android.application'
18
18
19
19
android {
20
- testBuildType " release "
20
+ testBuildType = project . testBuildType
21
21
compileSdkVersion 27
22
22
23
23
defaultConfig {
@@ -53,7 +53,8 @@ configurations.all {
53
53
dependencies {
54
54
// We intentionally use an open ended version to pick up any SNAPSHOT
55
55
// 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'
57
58
implementation ' com.google.firebase:firebase-core:16+'
58
59
implementation ' com.google.firebase:firebase-auth:16+'
59
60
Original file line number Diff line number Diff line change 17
17
apply plugin : ' com.android.application'
18
18
19
19
android {
20
- testBuildType " release "
20
+ testBuildType = project . testBuildType
21
21
compileSdkVersion 27
22
22
23
23
defaultConfig {
Original file line number Diff line number Diff line change 17
17
apply plugin : ' com.android.application'
18
18
19
19
android {
20
- // Changes the test build type for instrumented tests to "stage".
21
- testBuildType " release"
20
+ testBuildType = project. testBuildType
22
21
compileSdkVersion 27
23
22
24
23
defaultConfig {
Original file line number Diff line number Diff line change 17
17
apply plugin : ' com.android.application'
18
18
19
19
android {
20
- testBuildType " release "
20
+ testBuildType = project . testBuildType
21
21
compileSdkVersion 27
22
22
23
23
defaultConfig {
You can’t perform that action at this time.
0 commit comments