expo-ai-kit 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  On-device AI for Expo apps. Run language models locally—no API keys, no cloud, just native intelligence.
4
4
 
5
- **Now with Gemma 4 support** — Download and run Google's [Gemma 4](https://blog.google/technology/developers/gemma-4/) E2B (2.3B) and E4B (4.5B) models directly on Android devices via [LiteRT-LM](https://ai.google.dev/edge/litert-lm). Full on-device inference with GPU acceleration, streaming, and zero cloud dependency.
5
+ **Now with Gemma 4 support** — Download and run Google's [Gemma 4](https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/) E2B (2.3B) and E4B (4.5B) models directly on Android devices via [LiteRT-LM](https://ai.google.dev/edge/litert-lm). Full on-device inference with GPU acceleration, streaming, and zero cloud dependency.
6
6
 
7
7
  [![npm version](https://img.shields.io/npm/v/expo-ai-kit.svg)](https://www.npmjs.com/package/expo-ai-kit)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -44,5 +44,5 @@ android {
44
44
 
45
45
  dependencies {
46
46
  implementation "com.google.mlkit:genai-prompt:1.0.0-beta2"
47
- implementation "com.google.ai.edge.litertlm:litertlm-android:+"
47
+ implementation "com.google.ai.edge.litertlm:litertlm-android:0.8.0"
48
48
  }
@@ -208,7 +208,7 @@ class ExpoAiKitModule : Module() {
208
208
  activeModelId
209
209
  }
210
210
 
211
- AsyncFunction("unloadModel") Coroutine {
211
+ AsyncFunction("unloadModel") Coroutine { ->
212
212
  if (activeModelId != "mlkit" && gemmaClient.isModelLoaded()) {
213
213
  val previousId = activeModelId
214
214
  gemmaClient.unloadModel()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-ai-kit",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "On-device AI for Expo apps — run Gemma 4, Apple Foundation Models, and ML Kit locally with zero API keys",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",