-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Dependency updates for v2026.4 #7302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
grzesiek2010
wants to merge
27
commits into
getodk:master
Choose a base branch
from
grzesiek2010:dependencies_v2026.4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,130
−391
Open
Changes from 24 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
816c726
Add dependencyUpdates task
grzesiek2010 8c7f5d4
Update gradle
grzesiek2010 95f4f15
Update dependencies
grzesiek2010 cba7fa1
Update pmd
grzesiek2010 46aa4b6
Update compileSdk
grzesiek2010 e4afd21
Update CircleCI image
grzesiek2010 9851c88
Remove duplicated material-icons-extended entry from version catalog
grzesiek2010 2dfaa1c
Remove redundant kotlin-stdlib dependency declarations
grzesiek2010 83a3208
Remove dead fileTree dependencies
grzesiek2010 72553ff
Remove duplicated mlkit-barcodescanning dependency
grzesiek2010 0383d1c
Remove unused dependencies
grzesiek2010 956efc6
Remove redundant transitive = true configuration
grzesiek2010 d0e0e8d
Remove unused KSP plugin declarations
grzesiek2010 9f6f57a
Remove redundant repositories block
grzesiek2010 fb0ff80
Remove redundant test dependencies
grzesiek2010 23e09b5
Fix typo and use val instead of var in build scripts
grzesiek2010 3677adf
Remove obsolete dependency force rules
grzesiek2010 31a0fa7
Update bikram sambat
grzesiek2010 a56b72c
Update checkstyle
grzesiek2010 53ef689
Convert root build script to Kotlin DSL
grzesiek2010 23bbab5
Pin Robolectric SDK for modules missing robolectric.properties
grzesiek2010 8fdff40
Fix ktlint violations
grzesiek2010 4281443
Add dependency locking
grzesiek2010 fb26935
Fix location request test for play-services-location 21.4.0
grzesiek2010 a095230
Simplify dependencyUpdates task setup
grzesiek2010 f6a4b80
Bump Robolectric SDK to 36
grzesiek2010 a28e8c3
Document dependencyUpdates task in README
grzesiek2010 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,3 +54,6 @@ robolectric-deps/ | |
|
|
||
| .local-m2 | ||
| apks | ||
|
|
||
| # Empty side effect of writing dependency locks | ||
| settings-gradle.lockfile | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,4 +29,4 @@ object TamperDetector { | |
| return false | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sdk=33 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,120 @@ | ||
| import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
| import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
|
||
| apply(from = "secrets.gradle") | ||
|
|
||
| @Suppress("UNCHECKED_CAST") | ||
| fun getSecrets(): java.util.Properties = | ||
| (extra["getSecrets"] as groovy.lang.Closure<*>).call() as java.util.Properties | ||
|
|
||
| buildscript { | ||
| repositories { | ||
| google() | ||
|
|
||
| mavenCentral() | ||
| maven { | ||
| url = uri("https://plugins.gradle.org/m2/") | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| classpath(libs.gradle) | ||
| classpath(libs.googleServices) | ||
| classpath(libs.firebaseCrashlyticsGradle) | ||
| classpath(libs.kotlinGradlePlugin) | ||
| classpath(libs.ktlintGradle) | ||
| classpath(libs.gradleVersionsPlugin) | ||
| classpath(libs.navigationSafeArgsGradlePlugin) | ||
| classpath(libs.ossLicensesPlugin) | ||
| } | ||
| } | ||
|
|
||
| allprojects { | ||
| repositories { | ||
| maven { | ||
| url = uri("$rootDir/.local-m2/") | ||
| metadataSources { | ||
| mavenPom() | ||
| artifact() // Supports artifact only dependencies like those from medicmobile repo | ||
| } | ||
| } | ||
|
|
||
| // Needs to go first to get specialty libraries https://stackoverflow.com/a/48438866/137744 | ||
| google() | ||
|
|
||
| mavenLocal() // Only used for javarosa_local dependency | ||
| mavenCentral() | ||
|
|
||
| maven { url = uri("https://central.sonatype.com/repository/maven-snapshots") } | ||
| maven { url = uri("https://jitpack.io") } | ||
| maven { | ||
| url = uri("https://staging.dev.medicmobile.org/_couch/maven-repo") | ||
| metadataSources { artifact() } | ||
| } | ||
|
|
||
| maven { | ||
| url = uri("https://api.mapbox.com/downloads/v2/releases/maven") | ||
| authentication { | ||
| create<BasicAuthentication>("basic") | ||
| } | ||
| credentials { | ||
| username = "mapbox" | ||
| password = getSecrets().getProperty("MAPBOX_DOWNLOADS_TOKEN", "") | ||
| } | ||
| } | ||
| } | ||
|
|
||
| tasks.withType<KotlinCompile>().configureEach { | ||
| compilerOptions { | ||
| freeCompilerArgs.set(listOf("-Xjvm-default=all")) | ||
| jvmTarget.set(JvmTarget.JVM_17) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| apply(from = "config/dependency_updates.gradle") | ||
|
|
||
| tasks.register<GradleBuild>("checkCode") { | ||
| tasks = listOf("pmd", "ktlintCheck", "checkstyle", "lintDebug") | ||
| } | ||
|
|
||
| // Create local Maven repo from cached Gradle dependencies | ||
| tasks.register<Sync>("cacheToMavenLocal") { | ||
| from(File(gradle.gradleUserHomeDir, "caches/modules-2/files-2.1")) | ||
| into("$rootDir/.local-m2") | ||
|
|
||
| duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
|
|
||
| // Convert from Gradle cache to Maven format | ||
| eachFile { | ||
| val parts = path.split("/") | ||
| path = parts[0].replace(".", "/") + | ||
| "/" + parts[1] + | ||
| "/" + parts[2] + | ||
| "/" + parts[4] | ||
| } | ||
|
|
||
| includeEmptyDirs = false | ||
| } | ||
|
|
||
| tasks.register<Exec>("testLab") { | ||
| dependsOn("collect_app:assembleDebug", "collect_app:assembleDebugAndroidTest") | ||
|
|
||
| executable = "gcloud" | ||
| args = listOf( | ||
| "beta", "firebase", "test", "android", "run", | ||
| "--type", "instrumentation", | ||
| "--num-uniform-shards=25", | ||
| "--app", "collect_app/build/outputs/apk/debug/ODK-Collect-debug.apk", | ||
| "--test", "collect_app/build/outputs/apk/androidTest/debug/ODK-Collect-debug-androidTest.apk", | ||
| "--device", "model=MediumPhone.arm,version=34,locale=en,orientation=portrait", | ||
| "--timeout", "15m", | ||
| "--directories-to-pull", "/sdcard", | ||
| "--test-targets", "notPackage org.odk.collect.android.regression", | ||
| "--test-targets", "notPackage org.odk.collect.android.benchmark" | ||
| ) | ||
| } | ||
|
|
||
| tasks.register("releaseCheck") { | ||
| dependsOn("testLab", "collect_app:assembleOdkCollectRelease") | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably bump the Robolectric target SDK up right?