Skip to content

F-098: project-global core library desugaring#212

Merged
stepango merged 1 commit into
v2from
forma/F-098-core-library-desugaring
Jul 25, 2026
Merged

F-098: project-global core library desugaring#212
stepango merged 1 commit into
v2from
forma/F-098-core-library-desugaring

Conversation

@stepango

Copy link
Copy Markdown
Collaborator

Summary

F-098 / GH #103 — single project-global path for AGP core library desugaring (Java 8+ library APIs on lower minSdk).

  • androidProjectConfiguration(coreLibraryDesugaring=, coreLibraryDesugaringDependency=)AndroidProjectSettings
  • Default off; pin com.android.tools:desugar_jdk_libs:2.1.5
  • CompileOptions.applyFrom sets isCoreLibraryDesugaringEnabled
  • Shared applyCoreLibraryDesugaring on library / binary / native
  • Not a call-site flag (one global way)
  • Docs: PROJECT-CONFIGURATION, CALL-SITE-SURFACE, GETTING-STARTED
  • Unit tests: :config + :android

Verify (host)

  • plugins/: ./gradlew :config:test :android:test test jacocoHappyPathCoverageVerification → BUILD SUCCESSFUL
  • application/: ./gradlew :binary:assembleDebug → BUILD SUCCESSFUL (desugar default off)

Ticket

Closes #103

Single fleet path on androidProjectConfiguration / AndroidProjectSettings
for AGP coreLibraryDesugaring (GH #103). When enabled, library/binary/native
targets get isCoreLibraryDesugaringEnabled plus the desugar_jdk_libs dep;
default remains off. Docs, unit tests, sample commented enable example.
@stepango
stepango merged commit 331b0f7 into v2 Jul 25, 2026
8 checks passed
@stepango
stepango deleted the forma/F-098-core-library-desugaring branch July 25, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant