Skip to content

Commit 8194fd2

Browse files
committed
[Smoke-tests] Remove combined flavor.
This change places all of the tests in the default flavor instead of the custom flavor, "combined". There isn't any particular reason for this flavor to exist anymore.
1 parent aae1542 commit 8194fd2

File tree

12 files changed

+26
-43
lines changed

12 files changed

+26
-43
lines changed

smoke-tests/build.gradle

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,40 +52,30 @@ android {
5252
if (project.hasProperty("testBuildType")) {
5353
testBuildType project.getProperty("testBuildType")
5454
}
55-
56-
flavorDimensions "systemUnderTest"
57-
58-
// TODO(allisonbm92): Switch to the default flavor.
59-
productFlavors {
60-
combined {
61-
dimension "systemUnderTest"
62-
applicationId "com.google.firebase.testing.combined"
63-
}
64-
}
65-
6655
}
6756

6857
apply from: "configure.gradle"
6958

7059
dependencies {
71-
// Common
60+
// Firebase
61+
implementation "com.google.firebase:firebase-analytics"
62+
implementation "com.google.firebase:firebase-auth"
63+
implementation "com.google.firebase:firebase-common"
64+
implementation "com.google.firebase:firebase-database"
65+
implementation "com.google.firebase:firebase-dynamic-links"
66+
implementation "com.google.firebase:firebase-firestore"
67+
implementation "com.google.firebase:firebase-functions"
68+
implementation "com.google.firebase:firebase-inappmessaging"
69+
implementation "com.google.firebase:firebase-config"
70+
implementation "com.google.firebase:firebase-storage"
71+
72+
// Common utilities (application side)
7273
implementation "androidx.test:rules:1.2.0"
7374
implementation "androidx.test:runner:1.2.0"
74-
implementation "com.google.firebase:firebase-common"
7575
implementation "com.google.truth:truth:0.44"
7676
implementation "junit:junit:4.12"
7777

78-
// All
79-
combinedImplementation "com.google.firebase:firebase-analytics"
80-
combinedImplementation "com.google.firebase:firebase-auth"
81-
combinedImplementation "com.google.firebase:firebase-database"
82-
combinedImplementation "com.google.firebase:firebase-dynamic-links"
83-
combinedImplementation "com.google.firebase:firebase-firestore"
84-
combinedImplementation "com.google.firebase:firebase-functions"
85-
combinedImplementation "com.google.firebase:firebase-inappmessaging"
86-
combinedImplementation "com.google.firebase:firebase-config"
87-
combinedImplementation "com.google.firebase:firebase-storage"
88-
78+
// Common utilities (instrumentation side)
8979
androidTestImplementation "androidx.test:core:1.2.0"
9080
androidTestImplementation "androidx.test:runner:1.2.0"
9181
androidTestImplementation "junit:junit:4.12"

smoke-tests/runner.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ smokeTest {
4242
# flavors
4343
## This option specifies the Android flavors of the test to build for testing.
4444
## It may be omitted if there are no flavors.
45-
flavors combined
4645

4746
# googleServices
4847
## This option is the path to the Google Services file. If provided, the

smoke-tests/src/combined/AndroidManifest.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

smoke-tests/src/main/AndroidManifest.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,15 @@
33

44
<uses-permission android:name="android.permission.INTERNET" />
55

6+
<application>
7+
<activity android:name="android.app.Activity">
8+
<intent-filter>
9+
<action android:name="android.intent.action.MAIN" />
10+
<category android:name="android.intent.category.LAUNCHER" />
11+
</intent-filter>
12+
</activity>
13+
14+
<meta-data android:name="com.google.firebase.testing.classes"
15+
android:value="com.google.firebase.testing.combined.AllTests" />
16+
</application>
617
</manifest>

smoke-tests/src/combined/java/com/google/firebase/testing/dynamiclinks/DynamicLinksTest.java renamed to smoke-tests/src/main/java/com/google/firebase/testing/dynamiclinks/DynamicLinksTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void buildDynamicLink_UriContainsCorrectComponents() throws Exception {
5151
assertThat(actual.getHost()).isEqualTo("example.page.link");
5252
assertThat(query)
5353
.asList()
54-
.containsAtLeast("apn=com.google.firebase.testing.combined", "link=http://www.example.com");
54+
.containsAtLeast("apn=com.google.firebase.testing", "link=http://www.example.com");
5555
}
5656

5757
@Test

0 commit comments

Comments
 (0)