File tree Expand file tree Collapse file tree 9 files changed +107
-14
lines changed Expand file tree Collapse file tree 9 files changed +107
-14
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ jobs:
130
130
cores : 4
131
131
disk-size : 6000M
132
132
heap-size : 600M
133
- script : ./gradlew connectedDebugAndroidTest --daemon --info
133
+ script : ./gradlew connectedDebugAndroidTest --daemon
134
134
135
135
136
136
- name : Upload test reports
Original file line number Diff line number Diff line change @@ -50,6 +50,13 @@ android {
50
50
}
51
51
}
52
52
53
+ // Explicitly disable the connectedAndroidTest task for this module
54
+ androidComponents {
55
+ beforeVariants(selector().all()) { variant ->
56
+ variant.enableAndroidTest = false
57
+ }
58
+ }
59
+
53
60
dependencies {
54
61
implementation(libs.androidx.app.startup)
55
62
implementation(libs.kotlinx.serialization.json)
Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ android {
39
39
}
40
40
}
41
41
42
+ // Explicitly disable the connectedAndroidTest task for this module
43
+ androidComponents {
44
+ beforeVariants(selector().all()) { variant ->
45
+ variant.enableAndroidTest = false
46
+ }
47
+ }
48
+
42
49
dependencies {
43
50
api(libs.kotlinx.coroutines.test)
44
51
implementation(platform(libs.androidx.compose.bom))
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ android {
27
27
28
28
defaultConfig {
29
29
minSdk = libs.versions.minSdk.get().toInt()
30
- testInstrumentationRunner = " com.android.developers.testing.AndroidifyTestRunner"
31
30
}
32
31
33
32
compileOptions {
@@ -38,6 +37,12 @@ android {
38
37
jvmTarget = libs.versions.jvmTarget.get()
39
38
}
40
39
}
40
+ // Explicitly disable the connectedAndroidTest task for this module
41
+ androidComponents {
42
+ beforeVariants(selector().all()) { variant ->
43
+ variant.enableAndroidTest = false
44
+ }
45
+ }
41
46
42
47
dependencies {
43
48
implementation(platform(libs.androidx.compose.bom))
@@ -51,12 +56,6 @@ dependencies {
51
56
implementation(libs.androidx.window.core)
52
57
ksp(libs.hilt.compiler)
53
58
54
- androidTestImplementation(platform(libs.androidx.compose.bom))
55
- androidTestImplementation(libs.androidx.ui.test.junit4)
56
- androidTestImplementation(libs.hilt.android.testing)
57
- androidTestImplementation(project(" :core:testing" )) // Add dependency
58
- kspAndroidTest(libs.hilt.compiler)
59
-
60
59
// debugImplementation(libs.androidx.ui.tooling)
61
60
// debugImplementation(libs.androidx.ui.test.manifest)
62
61
}
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ android {
27
27
28
28
defaultConfig {
29
29
minSdk = libs.versions.minSdk.get().toInt()
30
- testInstrumentationRunner = " com.android.developers.testing.AndroidifyTestRunner"
31
30
}
32
31
33
32
compileOptions {
@@ -38,6 +37,12 @@ android {
38
37
jvmTarget = libs.versions.jvmTarget.get()
39
38
}
40
39
}
40
+ // Explicitly disable the connectedAndroidTest task for this module
41
+ androidComponents {
42
+ beforeVariants(selector().all()) { variant ->
43
+ variant.enableAndroidTest = false
44
+ }
45
+ }
41
46
42
47
dependencies {
43
48
implementation(project(" :core:network" ))
@@ -55,9 +60,4 @@ dependencies {
55
60
exclude(group = " com.google.guava" )
56
61
}
57
62
ksp(libs.hilt.compiler)
58
-
59
- androidTestImplementation(libs.androidx.ui.test.junit4)
60
- androidTestImplementation(libs.hilt.android.testing)
61
- androidTestImplementation(project(" :core:testing" ))
62
- kspAndroidTest(libs.hilt.compiler)
63
63
}
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : tools =" http://schemas.android.com/tools" >
4
+ <application >
5
+ <provider
6
+ android : name =" androidx.startup.InitializationProvider"
7
+ android : authorities =" ${applicationId}.androidx-startup"
8
+ android : exported =" false"
9
+ tools : node =" merge" >
10
+ <!-- Remove Firebase App Initialization for tests -->
11
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseAppInitializer"
12
+ tools : node =" remove" />
13
+ <!-- Remove Other Firebase Initializers for tests -->
14
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseAppCheckInitializer"
15
+ tools : node =" remove" />
16
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseRemoteConfigInitializer"
17
+ tools : node =" remove" />
18
+ </provider >
19
+ </application >
20
+ </manifest >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : tools =" http://schemas.android.com/tools" >
4
+ <application >
5
+ <provider
6
+ android : name =" androidx.startup.InitializationProvider"
7
+ android : authorities =" ${applicationId}.androidx-startup"
8
+ android : exported =" false"
9
+ tools : node =" merge" >
10
+ <!-- Remove Firebase App Initialization for tests -->
11
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseAppInitializer"
12
+ tools : node =" remove" />
13
+ <!-- Remove Other Firebase Initializers for tests -->
14
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseAppCheckInitializer"
15
+ tools : node =" remove" />
16
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseRemoteConfigInitializer"
17
+ tools : node =" remove" />
18
+ </provider >
19
+ </application >
20
+ </manifest >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : tools =" http://schemas.android.com/tools" >
4
+ <application >
5
+ <provider
6
+ android : name =" androidx.startup.InitializationProvider"
7
+ android : authorities =" ${applicationId}.androidx-startup"
8
+ android : exported =" false"
9
+ tools : node =" merge" >
10
+ <!-- Remove Firebase App Initialization for tests -->
11
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseAppInitializer"
12
+ tools : node =" remove" />
13
+ <!-- Remove Other Firebase Initializers for tests -->
14
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseAppCheckInitializer"
15
+ tools : node =" remove" />
16
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseRemoteConfigInitializer"
17
+ tools : node =" remove" />
18
+ </provider >
19
+ </application >
20
+ </manifest >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : tools =" http://schemas.android.com/tools" >
4
+ <application >
5
+ <provider
6
+ android : name =" androidx.startup.InitializationProvider"
7
+ android : authorities =" ${applicationId}.androidx-startup"
8
+ android : exported =" false"
9
+ tools : node =" merge" >
10
+ <!-- Remove Firebase App Initialization for tests -->
11
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseAppInitializer"
12
+ tools : node =" remove" />
13
+ <!-- Remove Other Firebase Initializers for tests -->
14
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseAppCheckInitializer"
15
+ tools : node =" remove" />
16
+ <meta-data android : name =" com.android.developers.androidify.startup.FirebaseRemoteConfigInitializer"
17
+ tools : node =" remove" />
18
+ </provider >
19
+ </application >
20
+ </manifest >
You can’t perform that action at this time.
0 commit comments