Skip to content

Commit

Permalink
Upgrade the Gradle wrapper to the latest nightly, requiring conventio…
Browse files Browse the repository at this point in the history
…ns to be explicitly enabled in projects
  • Loading branch information
tresat committed Jun 14, 2024
1 parent c24a8ba commit f80bb7e
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 20 deletions.
5 changes: 4 additions & 1 deletion app-nia-catalog/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ androidApplication {
implementation(project(":core:ui"))
}

compose {}
compose {
enabled = true
}

dependencyGuard {
enabled = true
configurationName = "releaseRuntimeClasspath"
}

Expand Down
28 changes: 22 additions & 6 deletions app/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,21 @@ androidApplication {
implementation("io.coil-kt:coil:2.6.0")
}

compose {}
hilt {}
flavors {}
licenses {}
compose {
enabled = true
}
hilt {
enabled = true
}
flavors {
enabled = true
}
licenses {
enabled = true
}

firebase {
enabled = true
version = "32.4.0"

// Disable the Crashlytics mapping file upload. This feature should only be
Expand All @@ -54,6 +63,8 @@ androidApplication {
}

baselineProfile {
enabled = true

// Don't build on every iteration of a full assemble.
// Instead enable generation directly for the release build variant.
automaticGenerationDuringBuild = false
Expand All @@ -64,6 +75,7 @@ androidApplication {
}

dependencyGuard {
enabled = true
configurationName = "prodReleaseRuntimeClasspath"
}

Expand Down Expand Up @@ -144,8 +156,12 @@ androidApplication {
includeAndroidResources = true
}

jacoco {}
roborazzi {}
jacoco {
enabled = true
}
roborazzi {
enabled = true
}
}

// TODO:DG - Packaging
Expand Down
4 changes: 3 additions & 1 deletion core/common/build.gradle.dcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
androidLibrary {
namespace = "com.google.samples.apps.nowinandroid.core.common"

hilt {}
hilt {
enabled = true
}

testing {
dependencies {
Expand Down
4 changes: 3 additions & 1 deletion core/data-test/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ androidLibrary {
implementation("com.google.dagger:hilt-android-testing:2.51")
}

hilt {}
hilt {
enabled = true
}
}
12 changes: 9 additions & 3 deletions core/data/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ androidLibrary {
implementation(project(":core:notifications"))
}

hilt {}
kotlinSerialization {}
hilt {
enabled = true
}
kotlinSerialization {
enabled = true
}

testing {
dependencies {
Expand All @@ -22,7 +26,9 @@ androidLibrary {
implementation(project(":core:network"))
}

jacoco {}
jacoco {
enabled = true
}

testOptions {
includeAndroidResources = true
Expand Down
12 changes: 9 additions & 3 deletions core/database/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,21 @@ androidLibrary {
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.5.0")
}

room {}
hilt {}
room {
enabled = true
}
hilt {
enabled = true
}

testing {
dependencies {
androidImplementation(project(":core:testing"))
}

jacoco {}
jacoco {
enabled = true
}
}
}

1 change: 1 addition & 0 deletions core/datastore-proto/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ androidLibrary {

// Setup protobuf configuration, generating lite Java and Kotlin classes
protobuf {
enabled = true
option = "lite" // TODO: This is modeled in a very limited manner for now
}
}
8 changes: 6 additions & 2 deletions core/datastore/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ androidLibrary {
implementation(project(":core:common"))
}

hilt {}
hilt {
enabled = true
}

testing {
dependencies {
Expand All @@ -24,6 +26,8 @@ androidLibrary {
returnDefaultValues = true
}

jacoco {}
jacoco {
enabled = true
}
}
}
4 changes: 3 additions & 1 deletion core/domain/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ androidLibrary {
implementation(project(":core:testing"))
}

jacoco {}
jacoco {
enabled = true
}
}
}
5 changes: 4 additions & 1 deletion feature/bookmarks/build.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ androidLibrary {
implementation(project(":core:data"))
}

feature {}
feature {
enabled = true
}

compose {
enabled = true
stabilityConfigurationFilePath = "/compose_compiler_config.conf"
experimentalStrongSkipping = true
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-8.9-20240522004149+0000-bin.zip
distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-8.10-20240614182247+0000-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit f80bb7e

Please sign in to comment.