Skip to content

Commit caca981

Browse files
committed
make icon red in debug build
1 parent ee39e0c commit caca981

16 files changed

Lines changed: 22 additions & 488 deletions

File tree

app/build.gradle.kts

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ android {
3333
versionCode = 1
3434
versionName = "1.0"
3535

36-
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
37-
3836
resourceConfigurations += listOf("en", "nl", "ja")
3937
}
4038

@@ -43,45 +41,16 @@ android {
4341
applicationIdSuffix = ".dev"
4442
isMinifyEnabled = false
4543
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
46-
testProguardFiles(
47-
getDefaultProguardFile("proguard-android.txt"),
48-
"proguardTest-rules.pro"
49-
)
50-
enableUnitTestCoverage = true
51-
enableAndroidTestCoverage = true
5244
}
5345

5446
getByName("release") {
5547
isMinifyEnabled = true
5648
isShrinkResources = true
5749
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
58-
testProguardFiles(
59-
getDefaultProguardFile("proguard-android.txt"),
60-
"proguardTest-rules.pro"
61-
)
6250
signingConfig = signingConfigs.getByName("release")
6351
}
6452
}
6553

66-
// Always show the result of every unit test, even if it passes.
67-
testOptions.unitTests {
68-
isIncludeAndroidResources = true
69-
70-
all { test ->
71-
with(test) {
72-
testLogging {
73-
events = setOf(
74-
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED,
75-
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED,
76-
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
77-
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT,
78-
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR,
79-
)
80-
}
81-
}
82-
}
83-
}
84-
8554
buildFeatures {
8655
compose = true
8756
buildConfig = true
@@ -163,52 +132,4 @@ dependencies {
163132

164133
debugImplementation(composeBom)
165134
debugImplementation(libs.androidx.compose.ui.tooling.core)
166-
debugImplementation(libs.androidx.compose.ui.test.manifest)
167-
168-
// Dependencies for local unit tests
169-
testImplementation(composeBom)
170-
testImplementation(libs.junit4)
171-
testImplementation(libs.androidx.archcore.testing)
172-
testImplementation(libs.kotlinx.coroutines.android)
173-
testImplementation(libs.kotlinx.coroutines.test)
174-
testImplementation(libs.androidx.navigation.testing)
175-
testImplementation(libs.androidx.test.espresso.core)
176-
testImplementation(libs.androidx.test.espresso.contrib)
177-
testImplementation(libs.androidx.test.espresso.intents)
178-
testImplementation(libs.google.truth)
179-
testImplementation(libs.androidx.compose.ui.test.junit)
180-
181-
// JVM tests - Hilt
182-
testImplementation(libs.hilt.android.testing)
183-
kspTest(libs.hilt.compiler)
184-
185-
// Dependencies for Android unit tests
186-
androidTestImplementation(composeBom)
187-
androidTestImplementation(libs.junit4)
188-
androidTestImplementation(libs.kotlinx.coroutines.test)
189-
androidTestImplementation(libs.androidx.compose.ui.test.junit)
190-
191-
// AndroidX Test - JVM testing
192-
testImplementation(libs.androidx.test.core.ktx)
193-
testImplementation(libs.androidx.test.ext)
194-
testImplementation(libs.androidx.test.rules)
195-
testImplementation(project(":shared-test"))
196-
197-
// AndroidX Test - Instrumented testing
198-
androidTestImplementation(libs.androidx.test.core.ktx)
199-
androidTestImplementation(libs.androidx.test.ext)
200-
androidTestImplementation(libs.androidx.test.rules)
201-
androidTestImplementation(libs.room.testing)
202-
androidTestImplementation(libs.androidx.archcore.testing)
203-
androidTestImplementation(libs.androidx.navigation.testing)
204-
androidTestImplementation(libs.androidx.test.espresso.core)
205-
androidTestImplementation(libs.androidx.test.espresso.contrib)
206-
androidTestImplementation(libs.androidx.test.espresso.intents)
207-
androidTestImplementation(libs.androidx.test.espresso.idling.resources)
208-
androidTestImplementation(libs.androidx.test.espresso.idling.concurrent)
209-
androidTestImplementation(project(":shared-test"))
210-
211-
// AndroidX Test - Hilt testing
212-
androidTestImplementation(libs.hilt.android.testing)
213-
kspAndroidTest(libs.hilt.compiler)
214135
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:width="108dp"
4+
android:height="108dp"
5+
android:viewportWidth="108"
6+
android:viewportHeight="108">
7+
<path
8+
android:fillColor="#DC3D3D"
9+
android:pathData="M0,0h108v108h-108z" />
10+
</vector>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background" />
4+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
6+
</adaptive-icon>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background" />
4+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
6+
</adaptive-icon>

app/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker

Lines changed: 0 additions & 1 deletion
This file was deleted.

settings.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ dependencyResolutionManagement {
2020
}
2121

2222
include(":app")
23-
include(":shared-test")

shared-test/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

shared-test/build.gradle.kts

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

shared-test/src/main/AndroidManifest.xml

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

shared-test/src/main/java/com/example/android/architecture/blueprints/todoapp/CustomTestRunner.kt

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

0 commit comments

Comments
 (0)