Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/runConfigurations/Run_all_unit_tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ A full narrative of *why* these look the way they do — the engineering decisio
./gradlew :feature-home:test

# Run unit tests
./gradlew testDebugUnitTest
./gradlew test

# Formatting
./gradlew ktlintCheck # Check formatting
Expand Down Expand Up @@ -523,7 +523,10 @@ Place `.graphql` files in module's `src/main/graphql/`. Apollo generates type-sa
./gradlew :data-contract:test

# Run unit tests only
./gradlew testDebugUnitTest
./gradlew test

# Filter to specific tests (works on Android library modules too)
./gradlew :feature-home:test --tests "*HomePresenterTest*"
```

**Test patterns:**
Expand Down
2 changes: 2 additions & 0 deletions app/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ android {
applicationIdSuffix = ".app"
manifestPlaceholders["firebaseCrashlyticsCollectionEnabled"] = true
isMinifyEnabled = true
// Libraries only publish `release`. DeDebug maps the `debug` build type onto it automatically,
// but a custom build type has to declare the fallback itself.
matchingFallbacks += "release"
setProguardFiles(
listOf(
Expand Down
1 change: 1 addition & 0 deletions build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies {
implementation(libs.apollo.gradlePlugin)
implementation(libs.kotlinter.gradlePlugin)
implementation(libs.room.gradlePlugin)
implementation(libs.dedebug.gradlePlugin)
implementation(libs.gradleDevelocity.gradlePlugin)
implementation(libs.ksp.gradlePlugin)
implementation(libs.metro.gradlePlugin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ class ApplicationConventionPlugin : Plugin<Project> {
extensions.configure<ApplicationExtension> {
configureKotlinAndroid(this)
defaultConfig.targetSdk = libs.versions.targetSdkVersion.get().toInt()
// Libraries don't build debug so fall back to release.
buildTypes.getByName("debug") {
matchingFallbacks += "release"
}
}
extensions.configure<ApplicationAndroidComponentsExtension> {
@Suppress("UnstableApiUsage")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
// version-catalog accessors and accepts only literals, which would mean duplicating every version.
//
// Only plugins that operate on Settings belong in the block below; everything else is applied by the
// projects that need it.
// projects that need it. DeDebug is one of them: it removes the `debug` build type from every Android
// library, and it needs AGP on this classloader to do so.
plugins {
id("com.gradle.develocity")
id("com.autonomousapps.dedebug")
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ apolloEngineKtor = "1.0.0-alpha.0"
cacheFix = "3.0.3"
crashlytics = "3.0.7"
datadogPlugin = "1.29.0"
dedebug = "0.1"
doctor = "0.12.1"
easylauncher = "6.4.1"
googleServices = "4.5.0"
Expand Down Expand Up @@ -260,6 +261,7 @@ compose-compilerGradlePlugin = { module = "org.jetbrains.kotlin:compose-compiler
compose-gradlePlugin = { module = "org.jetbrains.compose:compose-gradle-plugin", version.ref = "jetbrains-compose" }
crashlytics-gradlePlugin = { module = "com.google.firebase.crashlytics:com.google.firebase.crashlytics.gradle.plugin", version.ref = "crashlytics" }
datadog-gradlePlugin = { module = "com.datadoghq.dd-sdk-android-gradle-plugin:com.datadoghq.dd-sdk-android-gradle-plugin.gradle.plugin", version.ref = "datadogPlugin" }
dedebug-gradlePlugin = { module = "com.autonomousapps.dedebug:com.autonomousapps.dedebug.gradle.plugin", version.ref = "dedebug" }
googleServices-gradlePlugin = { module = "com.google.gms.google-services:com.google.gms.google-services.gradle.plugin", version.ref = "googleServices" }
gradleDevelocity-gradlePlugin = { module = "com.gradle.develocity:com.gradle.develocity.gradle.plugin", version.ref = "gradleDevelocity" }
kmpNativeCoroutines-gradlePlugin = { module = "com.rickclephas.kmp.nativecoroutines:com.rickclephas.kmp.nativecoroutines.gradle.plugin", version.ref = "kmpNativeCoroutines" }
Expand Down
Loading