Files
Meshtastic-Android/core
James Rich 501c81ecde build: drop compiler flags and opt-ins made redundant by Kotlin 2.4
Kotlin 2.4.0 (#5760) stabilized several features this build still
configured manually:

- kotlin.uuid.Uuid (incl. Uuid.random/parse) is stable: remove the
  global -opt-in and the per-file @OptIn(ExperimentalUuidApi) usages.
  Only the generateV4/V7 variants remain experimental and nothing in
  the repo uses them.
- kotlin.time Clock/Instant have been stable since 2.3 and no
  still-experimental kotlin.time API is used: remove the global
  -opt-in=kotlin.time.ExperimentalTime.
- Context parameters are stable: remove -Xcontext-parameters.
- Annotation use-site defaulting (param-property) is the language
  default now; the compiler reported -Xannotation-default-target as
  redundant: remove it.
- OptimizeNonSkippingGroups is default Compose compiler behavior and
  the feature flag is deprecated (removal slated for Kotlin 2.6):
  drop it from ComposeCompilerConfiguration.

Verified: spotlessApply spotlessCheck detekt assembleDebug test
allTests kmpSmokeCompile all pass (2756 tests, 0 failures), with no
remaining warnings about the removed flags.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 20:45:40 -05:00
..