@dr33m/react-native-litert-lm 0.5.0 → 0.5.1

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.
Files changed (2) hide show
  1. package/app.plugin.js +1 -25
  2. package/package.json +1 -1
package/app.plugin.js CHANGED
@@ -2,11 +2,10 @@
2
2
  * Expo config plugin for react-native-litert-lm.
3
3
  *
4
4
  * Ensures correct build settings for the LiteRT-LM native module:
5
- * - Android: minSdkVersion 26, Kotlin 2.3.0 (required by litertlm-android AAR)
5
+ * - Android: minSdkVersion 26
6
6
  */
7
7
  const {
8
8
  withGradleProperties,
9
- withProjectBuildGradle,
10
9
  } = require('@expo/config-plugins');
11
10
 
12
11
  function withLiteRTLM(config) {
@@ -29,29 +28,6 @@ function withLiteRTLM(config) {
29
28
  return config;
30
29
  });
31
30
 
32
- // Android: Pin Kotlin Gradle plugin to 2.3.0
33
- // The litertlm-android AAR uses Kotlin 2.3.0 metadata (version defined in
34
- // package.json → litertLm.androidMavenVersion).
35
- // React Native's default Kotlin version (2.1.0) cannot read this metadata,
36
- // so we must force the Kotlin Gradle plugin to 2.3.0 in the project-level
37
- // build.gradle. This ensures the fix survives `expo prebuild --clean`.
38
- config = withProjectBuildGradle(config, (config) => {
39
- if (config.modResults.language === 'groovy') {
40
- const contents = config.modResults.contents;
41
-
42
- // Only add if not already pinned
43
- if (!contents.includes("kotlin-gradle-plugin:2.3.0")) {
44
- // Replace the unversioned kotlin-gradle-plugin classpath with a pinned one
45
- config.modResults.contents = contents.replace(
46
- "classpath('org.jetbrains.kotlin:kotlin-gradle-plugin')",
47
- "classpath('org.jetbrains.kotlin:kotlin-gradle-plugin:2.3.0')"
48
- );
49
- }
50
- }
51
-
52
- return config;
53
- });
54
-
55
31
  return config;
56
32
  }
57
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dr33m/react-native-litert-lm",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "litertLm": {
5
5
  "version": "0.12.0",
6
6
  "androidMavenVersion": "0.12.0",