Skip to content

Update MLKit GenAI to latest beta; add genai-schema and genai-speech-recognition#1508

Draft
mattleibow wants to merge 1 commit into
mainfrom
mattleibow/mlkit-genai-beta4
Draft

Update MLKit GenAI to latest beta; add genai-schema and genai-speech-recognition#1508
mattleibow wants to merge 1 commit into
mainfrom
mattleibow/mlkit-genai-beta4

Conversation

@mattleibow

Copy link
Copy Markdown
Member

Summary

Updates the MLKit GenAI family to the latest prerelease and adds two new bindings.

Versions

Maven artifact Old New
com.google.mlkit:genai-prompt 1.0.0-alpha1 1.0.0-beta4
com.google.mlkit:genai-common 1.0.0-beta2 1.0.0-beta4
com.google.mlkit:genai-schema 1.0.0-alpha1 (new; transitive dep of genai-prompt)
com.google.mlkit:genai-speech-recognition 1.0.0-alpha1 (new)

All other transitive dependencies were already present at satisfying versions.

Binding fixes (consistent with existing genai conventions)

  • Enumify new IntDefs and remove the nested annotation interfaces they replace:
    • AudioSourceMode (genai-common)
    • ModelPreference, ModelReleaseStage, TypedCandidateFinishReason (genai-prompt)
    • SpeechRecognizerOptionsMode (genai-speech-recognition)
  • Strip noise from the public API: Kotlin file-facade classes (*Kt), companion objects (their static members are correctly hoisted onto the parent type), obfuscated zz* members, and Kotlin data-class component*/copy synthetics.

Generated / derived files

  • cgmanifest.json, docs/artifact-list*.md, published-namespaces.txt
  • PublicAPI.Unshipped.txt for all affected packages (auto-generated from the built assemblies)

Local validation

  • All four packages build cleanly for net10.0-android36.0 (the net9 / API-35 ref pack is not installed on my machine; binding code is TFM-independent so CI covers net9).
  • metadata-verify, namespace-check pass; config.json is canonically sorted.

Opening as draft to confirm the full CI build (net9 + net10, api-diff, namespace verify).

Generated with GitHub Copilot CLI

…recognition

Bump the MLKit GenAI family to the latest prerelease and add two new
bindings that ship alongside it.

Versions:
- com.google.mlkit:genai-prompt  1.0.0-alpha1 -> 1.0.0-beta4
- com.google.mlkit:genai-common  1.0.0-beta2  -> 1.0.0-beta4
- com.google.mlkit:genai-schema           new: 1.0.0-alpha1 (transitive dep of genai-prompt)
- com.google.mlkit:genai-speech-recognition new: 1.0.0-alpha1

Binding fixes (consistent with existing genai conventions):
- Enumify new IntDefs: AudioSourceMode (genai-common); ModelPreference,
  ModelReleaseStage, TypedCandidateFinishReason (genai-prompt);
  SpeechRecognizerOptionsMode (genai-speech-recognition), removing the
  nested annotation interfaces they replace.
- Strip Kotlin file-facade classes (*Kt), companion objects,
  obfuscated zz* members, and data-class component/copy synthetics
  from the public API.

Also regenerates cgmanifest.json, docs/artifact-list*.md,
published-namespaces.txt, and the PublicAPI files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 418a4307-6325-4810-a01d-cf793cea9f0f
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