Skip to content

Comments

Add ProGuard rules for LiteRT-LM (#185)#186

Merged
DenisovAV merged 1 commit intomainfrom
fix/proguard-litertlm
Feb 14, 2026
Merged

Add ProGuard rules for LiteRT-LM (#185)#186
DenisovAV merged 1 commit intomainfrom
fix/proguard-litertlm

Conversation

@DenisovAV
Copy link
Owner

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds ProGuard rules for the LiteRT-LM inference engine that was introduced in version 0.12.3. Without these rules, ProGuard would strip the necessary LiteRT-LM classes when building Android apps in release mode, causing runtime failures when using .litertlm model files.

Changes:

  • Added ProGuard rules to preserve com.google.ai.edge.litertlm classes and suppress warnings
  • Bumped version from 0.12.3 to 0.12.4 across all platform configuration files
  • Updated CHANGELOG.md with the fix description

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
android/consumer-proguard-rules.pro Added ProGuard rules to preserve LiteRT-LM classes with -keep, -keepclassmembers, and -dontwarn directives
pubspec.yaml Version bumped to 0.12.4
ios/flutter_gemma.podspec Version bumped to 0.12.4 for consistency
CHANGELOG.md Added entry for version 0.12.4 describing the ProGuard fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DenisovAV DenisovAV merged commit 96b881f into main Feb 14, 2026
9 checks passed
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