@capgo/capacitor-llm 8.0.7 → 8.0.9

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/Package.swift CHANGED
@@ -2,11 +2,11 @@
2
2
  import PackageDescription
3
3
 
4
4
  let package = Package(
5
- name: "CapgoLLM",
5
+ name: "CapgoCapacitorLlm",
6
6
  platforms: [.iOS(.v15)],
7
7
  products: [
8
8
  .library(
9
- name: "CapgoLLM",
9
+ name: "CapgoCapacitorLlm",
10
10
  targets: ["LLMPlugin"])
11
11
  ],
12
12
  dependencies: [
@@ -30,7 +30,7 @@ android {
30
30
  buildTypes {
31
31
  release {
32
32
  minifyEnabled false
33
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
33
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
34
34
  }
35
35
  }
36
36
  lintOptions {
@@ -9,7 +9,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
9
9
  @CapacitorPlugin(name = "CapgoLLM")
10
10
  public class LLMPlugin extends Plugin {
11
11
 
12
- private final String pluginVersion = "8.0.7";
12
+ private final String pluginVersion = "8.0.9";
13
13
 
14
14
  private LLM llm;
15
15
 
@@ -16,7 +16,7 @@ import MediaPipeTasksGenAI
16
16
 
17
17
  @objc(LLMPlugin)
18
18
  public class LLMPlugin: CAPPlugin, CAPBridgedPlugin {
19
- private let pluginVersion: String = "8.0.7"
19
+ private let pluginVersion: String = "8.0.9"
20
20
  public let identifier = "LLMPlugin"
21
21
  public let jsName = "CapgoLLM"
22
22
  public var pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-llm",
3
- "version": "8.0.7",
3
+ "version": "8.0.9",
4
4
  "description": "Adds support for LLM locally runned for Capacitor",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -39,20 +39,21 @@
39
39
  "gpt"
40
40
  ],
41
41
  "scripts": {
42
- "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
43
- "verify:ios": "xcodebuild -scheme CapgoLLM -destination generic/platform=iOS",
42
+ "verify": "bun run verify:ios && bun run verify:android && bun run verify:web",
43
+ "verify:ios": "xcodebuild -scheme CapgoCapacitorLlm -destination generic/platform=iOS",
44
44
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
45
- "verify:web": "npm run build",
46
- "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
47
- "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
45
+ "verify:web": "bun run build",
46
+ "lint": "bun run eslint && bun run prettier -- --check && bun run swiftlint -- lint",
47
+ "fmt": "bun run eslint -- --fix && bun run prettier -- --write && bun run swiftlint -- --fix --format",
48
48
  "eslint": "eslint . --ext ts",
49
49
  "prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
50
50
  "swiftlint": "node-swiftlint",
51
51
  "docgen": "docgen --api LLMPlugin --output-readme README.md --output-json dist/docs.json",
52
- "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
52
+ "build": "bun run clean && bun run docgen && tsc && rollup -c rollup.config.mjs",
53
53
  "clean": "rimraf ./dist",
54
54
  "watch": "tsc --watch",
55
- "prepublishOnly": "npm run build"
55
+ "prepublishOnly": "bun run build",
56
+ "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@capacitor/android": "^8.0.0",