@capgo/capacitor-llm 8.0.8 → 8.0.10
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: "
|
|
5
|
+
name: "CapgoCapacitorLlm",
|
|
6
6
|
platforms: [.iOS(.v15)],
|
|
7
7
|
products: [
|
|
8
8
|
.library(
|
|
9
|
-
name: "
|
|
9
|
+
name: "CapgoCapacitorLlm",
|
|
10
10
|
targets: ["LLMPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ MediaPipe GenAI does not officially support SPM yet (see [MediaPipe issue #5464]
|
|
|
78
78
|
1. Open your app project in Xcode
|
|
79
79
|
2. Go to **File > Add Package Dependencies...**
|
|
80
80
|
3. Enter the URL: `https://github.com/paescebu/SwiftTasksGenAI.git`
|
|
81
|
-
4. Select your desired version (e.g., 0.10.
|
|
81
|
+
4. Select your desired version (e.g., 0.10.27)
|
|
82
82
|
5. Add the `SwiftTasksGenAI` product to your app target
|
|
83
83
|
|
|
84
84
|
**Note:** SwiftTasksGenAI uses unsafe build flags, which means it cannot be added directly in Package.swift files, but works fine when added through Xcode's UI. This is the same approach used by SwiftTasksVision.
|
package/android/build.gradle
CHANGED
|
@@ -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 {
|
|
@@ -52,7 +52,7 @@ dependencies {
|
|
|
52
52
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
53
53
|
implementation project(':capacitor-android')
|
|
54
54
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
55
|
-
implementation 'com.google.mediapipe:tasks-genai:0.10.
|
|
55
|
+
implementation 'com.google.mediapipe:tasks-genai:0.10.27'
|
|
56
56
|
testImplementation "junit:junit:$junitVersion"
|
|
57
57
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
58
58
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
@@ -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.
|
|
19
|
+
private let pluginVersion: String = "8.0.10"
|
|
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.
|
|
3
|
+
"version": "8.0.10",
|
|
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": "
|
|
43
|
-
"verify:ios": "xcodebuild -scheme
|
|
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": "
|
|
46
|
-
"lint": "
|
|
47
|
-
"fmt": "
|
|
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": "
|
|
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": "
|
|
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",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
},
|
|
78
79
|
"peerDependencies": {
|
|
79
80
|
"@capacitor/core": ">=8.0.0",
|
|
80
|
-
"@mediapipe/tasks-genai": "^0.10.
|
|
81
|
+
"@mediapipe/tasks-genai": "^0.10.27"
|
|
81
82
|
},
|
|
82
83
|
"prettier": "@ionic/prettier-config",
|
|
83
84
|
"swiftlint": "@ionic/swiftlint-config",
|