Add build-time MT_DEBUG_DEFAULT support for Constants.DEBUG#45
Conversation
MT_DEBUG_DEFAULT support for Constants.DEBUG
There was a problem hiding this comment.
Code Review
This pull request introduces a mechanism to dynamically configure the Constants.DEBUG flag at build time using a generated BuildConfig class based on the MT_DEBUG_DEFAULT environment variable, and adds a unit test to verify this behavior. The review feedback suggests several improvements to the Gradle build configuration, including using providers.environmentVariable and declaring task inputs to support Gradle's Configuration Cache, registering the generated directory in Kotlin source sets for better IDE integration, and replacing the JVM assert keyword with assertEquals in tests to prevent assertions from being silently ignored.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@copilot address those #45 (comment) #45 (comment) #45 (comment) |
Addressed in commit 1176b2f.
|
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a dynamic build configuration generation task in build.gradle to set the default debug flag based on the MT_DEBUG_DEFAULT environment variable, which is then used in Constants.kt. The review feedback suggests improving build reproducibility and reliability by cleaning the output directory before generation and explicitly specifying the UTF-8 charset when writing the generated file.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
Addressed in commit b816afa.
|
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a Gradle task to dynamically generate a BuildConfig class containing a DEBUG_DEFAULT flag based on the MT_DEBUG_DEFAULT environment variable, and updates Constants.kt to utilize this generated value. The review feedback suggests replacing project.delete(outputDir) with outputDir.deleteDir() inside the task action to ensure compatibility with Gradle's configuration cache.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons: Improve GTFS input logging with optional CSV-aware previews after archive preparation mtransitapps/commons#805 - commons: Try fixing download timeout issue #Brandon mtransitapps/commons#806 - commons: Add conditional retry for flaky GTFS download step in mt-download-data workflow mtransitapps/commons#807 - commons: Update README Twitter link to x.com - commons: Build(deps): Bump androidx.sqlite:sqlite-ktx from 2.6.2 to 2.7.0 in the androidx group across 1 directory mtransitapps/commons#799 - commons: Build(deps): Bump gradle-wrapper from 9.6.0 to 9.6.1 in /shared mtransitapps/commons#803 - commons: Build(deps): Bump com.gradle.develocity from 4.4.3 to 4.5.0 in /shared mtransitapps/commons#802 - commons: Build(deps): Bump com.google.android.gms:play-services-location from 21.3.0 to 21.4.0 in the gms group across 1 directory mtransitapps/commons#800 - commons: Build(deps): Bump the ads group across 1 directory with 2 updates mtransitapps/commons#801 - commons: Build(deps): Bump mtransitapps/gh-actions from 1.2.1 to 1.3.0 in /shared-overwrite/.github/workflows mtransitapps/commons#798 - commons: Download & prepare GTFS > better error handling mtransitapps/commons#797 - commons: Update workflow paths for mt-store-listing-push - commons: Generated Store listing full/short desc > compat w/ NextBus - commons-android: #isAndroidApp cleanup - commons-android: cleanup - commons-android: Filter `inFocus` cleanup & POI status `validity` (& `useful`) mtransitapps/commons-android#166 - commons-android: Delete `TimeExt.kt` mtransitapps/commons-android#169 - commons-android: Handle Twitter/X ISO-8601 millisecond timestamps in legacy date parsing mtransitapps/commons-android#167 - commons-android: Update GTFS Real-Time proto mtransitapps/commons-android#168 - commons-android: Code cleanup from other PR mtransitapps/commons-android#165 - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - commons-java: cleanup - commons-java: Support for custom LC UC words min
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons: Improve GTFS input logging with optional CSV-aware previews after archive preparation mtransitapps/commons#805 - commons: Try fixing download timeout issue #Brandon mtransitapps/commons#806 - commons: Add conditional retry for flaky GTFS download step in mt-download-data workflow mtransitapps/commons#807 - commons-android: #isAndroidApp cleanup - commons-android: cleanup - commons-android: Filter `inFocus` cleanup & POI status `validity` (& `useful`) mtransitapps/commons-android#166 - commons-android: Delete `TimeExt.kt` mtransitapps/commons-android#169 - commons-android: Handle Twitter/X ISO-8601 millisecond timestamps in legacy date parsing mtransitapps/commons-android#167 - commons-android: Update GTFS Real-Time proto mtransitapps/commons-android#168 - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - commons-java: cleanup - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons: Improve GTFS input logging with optional CSV-aware previews after archive preparation mtransitapps/commons#805 - commons: Try fixing download timeout issue #Brandon mtransitapps/commons#806 - commons: Add conditional retry for flaky GTFS download step in mt-download-data workflow mtransitapps/commons#807 - commons: Update README Twitter link to x.com - commons: Build(deps): Bump androidx.sqlite:sqlite-ktx from 2.6.2 to 2.7.0 in the androidx group across 1 directory mtransitapps/commons#799 - commons: Build(deps): Bump gradle-wrapper from 9.6.0 to 9.6.1 in /shared mtransitapps/commons#803 - commons: Build(deps): Bump com.gradle.develocity from 4.4.3 to 4.5.0 in /shared mtransitapps/commons#802 - commons: Build(deps): Bump com.google.android.gms:play-services-location from 21.3.0 to 21.4.0 in the gms group across 1 directory mtransitapps/commons#800 - commons: Build(deps): Bump the ads group across 1 directory with 2 updates mtransitapps/commons#801 - commons: Build(deps): Bump mtransitapps/gh-actions from 1.2.1 to 1.3.0 in /shared-overwrite/.github/workflows mtransitapps/commons#798 - commons: Download & prepare GTFS > better error handling mtransitapps/commons#797 - commons: Update workflow paths for mt-store-listing-push - commons: Generated Store listing full/short desc > compat w/ NextBus - commons: Fix "archive" script > compat with space in headers "service_id, monday, ..." mtransitapps/commons#796 - commons-android: #isAndroidApp cleanup - commons-android: cleanup - commons-android: Filter `inFocus` cleanup & POI status `validity` (& `useful`) mtransitapps/commons-android#166 - commons-android: Delete `TimeExt.kt` mtransitapps/commons-android#169 - commons-android: Handle Twitter/X ISO-8601 millisecond timestamps in legacy date parsing mtransitapps/commons-android#167 - commons-android: Update GTFS Real-Time proto mtransitapps/commons-android#168 - commons-android: Code cleanup from other PR mtransitapps/commons-android#165 - commons-android: `ProviderContract.Filter` > shared filter params mtransitapps/commons-android#164 - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - commons-java: cleanup - commons-java: Support for custom LC UC words min
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons: Improve GTFS input logging with optional CSV-aware previews after archive preparation mtransitapps/commons#805 - commons: Try fixing download timeout issue #Brandon mtransitapps/commons#806 - commons: Add conditional retry for flaky GTFS download step in mt-download-data workflow mtransitapps/commons#807 - commons-android: #isAndroidApp cleanup - commons-android: cleanup - commons-android: Filter `inFocus` cleanup & POI status `validity` (& `useful`) mtransitapps/commons-android#166 - commons-android: Delete `TimeExt.kt` mtransitapps/commons-android#169 - commons-android: Handle Twitter/X ISO-8601 millisecond timestamps in legacy date parsing mtransitapps/commons-android#167 - commons-android: Update GTFS Real-Time proto mtransitapps/commons-android#168 - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - commons-java: cleanup - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons: Improve GTFS input logging with optional CSV-aware previews after archive preparation mtransitapps/commons#805 - commons: Try fixing download timeout issue #Brandon mtransitapps/commons#806 - commons: Add conditional retry for flaky GTFS download step in mt-download-data workflow mtransitapps/commons#807 - commons: Update README Twitter link to x.com - commons: Build(deps): Bump androidx.sqlite:sqlite-ktx from 2.6.2 to 2.7.0 in the androidx group across 1 directory mtransitapps/commons#799 - commons: Build(deps): Bump gradle-wrapper from 9.6.0 to 9.6.1 in /shared mtransitapps/commons#803 - commons: Build(deps): Bump com.gradle.develocity from 4.4.3 to 4.5.0 in /shared mtransitapps/commons#802 - commons: Build(deps): Bump com.google.android.gms:play-services-location from 21.3.0 to 21.4.0 in the gms group across 1 directory mtransitapps/commons#800 - commons: Build(deps): Bump the ads group across 1 directory with 2 updates mtransitapps/commons#801 - commons: Build(deps): Bump mtransitapps/gh-actions from 1.2.1 to 1.3.0 in /shared-overwrite/.github/workflows mtransitapps/commons#798 - commons: Download & prepare GTFS > better error handling mtransitapps/commons#797 - commons: Update workflow paths for mt-store-listing-push - commons: Generated Store listing full/short desc > compat w/ NextBus - commons: Fix "archive" script > compat with space in headers "service_id, monday, ..." mtransitapps/commons#796 - commons-android: #isAndroidApp cleanup - commons-android: cleanup - commons-android: Filter `inFocus` cleanup & POI status `validity` (& `useful`) mtransitapps/commons-android#166 - commons-android: Delete `TimeExt.kt` mtransitapps/commons-android#169 - commons-android: Handle Twitter/X ISO-8601 millisecond timestamps in legacy date parsing mtransitapps/commons-android#167 - commons-android: Update GTFS Real-Time proto mtransitapps/commons-android#168 - commons-android: Code cleanup from other PR mtransitapps/commons-android#165 - commons-android: `ProviderContract.Filter` > shared filter params mtransitapps/commons-android#164 - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - commons-java: cleanup - commons-java: Support for custom LC UC words min
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
…parser': - commons: runall.sh > print current directory on failure - commons: Build(deps): Bump com.google.android.libraries.places:places from 5.2.0 to 5.3.0 mtransitapps/commons#808 - commons-android: #isAndroidApp cleanup - commons-java: Add build-time `MT_DEBUG_DEFAULT` support for `Constants.DEBUG` mtransitapps/commons-java#45 - commons-java: Replace `(?U)` (no compat /w Android) with Unicode Property Classes like `\p{L}`. - commons-java: CRASH fix created 5 hours ago in 478717d - commons-java: regex scratch++ - commons-java: String cleaner > compat w/ `Les É/Î / Abc` - commons-java: String cleaner > compat w/ `Les / Abc` - commons-java: Regex scratch > + expected result - parser: Use GTFS directions file when provided #lio mtransitapps/parser#77 - parser: `JSON` > + `service_id_avoid_merge`... mtransitapps/parser#76
This change makes
Constants.DEBUGconfigurable from the build environment instead of hardcodedfalse. SettingMT_DEBUG_DEFAULT=trueduring Gradle build now propagates into compiled code as the default debug value.Build-time debug config generation
generateBuildConfigtask that readsMT_DEBUG_DEFAULT(defaults tofalse) and generatesorg.mtransit.commons.BuildConfig.compileKotlinto depend on this task and include the generated sources directory.Runtime constant wiring
Constants.DEBUGto read fromBuildConfig.DEBUG_DEFAULTrather than a literal.Targeted test coverage
ConstantsTeststo assertConstants.DEBUGmatches the expected value derived fromMT_DEBUG_DEFAULT(withfalsefallback when unset).