@bubble-labs/capacitor-plugin-siri-shorts 7.0.0
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/CapacitorPluginSiriShorts.podspec +17 -0
- package/LICENSE +21 -0
- package/README.md +251 -0
- package/android/build.gradle +58 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/android/gradle.properties +23 -0
- package/android/gradlew +248 -0
- package/android/gradlew.bat +92 -0
- package/android/proguard-rules.pro +21 -0
- package/android/settings.gradle +2 -0
- package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +26 -0
- package/android/src/main/AndroidManifest.xml +5 -0
- package/android/src/main/java/com/timozacherl/plugins/CapSiriShortcuts/SiriShortcuts.java +38 -0
- package/android/src/main/res/layout/bridge_layout_main.xml +15 -0
- package/android/src/main/res/values/colors.xml +3 -0
- package/android/src/main/res/values/strings.xml +3 -0
- package/android/src/main/res/values/styles.xml +3 -0
- package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +18 -0
- package/dist/docs.json +279 -0
- package/dist/esm/definitions.d.ts +112 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/plugin.cjs.js +10 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +13 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/Info.plist +24 -0
- package/ios/Plugin/Plugin.h +10 -0
- package/ios/Plugin/Plugin.m +11 -0
- package/ios/Plugin/Plugin.swift +169 -0
- package/ios/Plugin.xcodeproj/project.pbxproj +554 -0
- package/ios/Plugin.xcodeproj/xcshareddata/xcschemes/Plugin.xcscheme +77 -0
- package/ios/Plugin.xcworkspace/contents.xcworkspacedata +10 -0
- package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/PluginTests/Info.plist +22 -0
- package/ios/PluginTests/PluginTests.swift +35 -0
- package/ios/Podfile +16 -0
- package/ios/Podfile.lock +22 -0
- package/package.json +80 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import XCTest
|
|
2
|
+
import Capacitor
|
|
3
|
+
@testable import Plugin
|
|
4
|
+
|
|
5
|
+
class PluginTests: XCTestCase {
|
|
6
|
+
|
|
7
|
+
override func setUp() {
|
|
8
|
+
super.setUp()
|
|
9
|
+
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
override func tearDown() {
|
|
13
|
+
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
14
|
+
super.tearDown()
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
func testEcho() {
|
|
18
|
+
// This is an example of a functional test case for a plugin.
|
|
19
|
+
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
|
20
|
+
|
|
21
|
+
let value = "Hello, World!"
|
|
22
|
+
let plugin = MyPlugin()
|
|
23
|
+
|
|
24
|
+
let call = CAPPluginCall(callbackId: "test", options: [
|
|
25
|
+
"value": value
|
|
26
|
+
], success: { (result, _) in
|
|
27
|
+
let resultValue = result!.data["value"] as? String
|
|
28
|
+
XCTAssertEqual(value, resultValue)
|
|
29
|
+
}, error: { (_) in
|
|
30
|
+
XCTFail("Error shouldn't have been called")
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
plugin.echo(call!)
|
|
34
|
+
}
|
|
35
|
+
}
|
package/ios/Podfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
platform :ios, '18.0'
|
|
2
|
+
|
|
3
|
+
def capacitor_pods
|
|
4
|
+
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
|
|
5
|
+
use_frameworks!
|
|
6
|
+
pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
|
|
7
|
+
pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
target 'Plugin' do
|
|
11
|
+
capacitor_pods
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
target 'PluginTests' do
|
|
15
|
+
capacitor_pods
|
|
16
|
+
end
|
package/ios/Podfile.lock
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
PODS:
|
|
2
|
+
- Capacitor (7.2.0):
|
|
3
|
+
- CapacitorCordova
|
|
4
|
+
- CapacitorCordova (7.2.0)
|
|
5
|
+
|
|
6
|
+
DEPENDENCIES:
|
|
7
|
+
- "Capacitor (from `../node_modules/@capacitor/ios`)"
|
|
8
|
+
- "CapacitorCordova (from `../node_modules/@capacitor/ios`)"
|
|
9
|
+
|
|
10
|
+
EXTERNAL SOURCES:
|
|
11
|
+
Capacitor:
|
|
12
|
+
:path: "../node_modules/@capacitor/ios"
|
|
13
|
+
CapacitorCordova:
|
|
14
|
+
:path: "../node_modules/@capacitor/ios"
|
|
15
|
+
|
|
16
|
+
SPEC CHECKSUMS:
|
|
17
|
+
Capacitor: 03bc7cbdde6a629a8b910a9d7d78c3cc7ed09ea7
|
|
18
|
+
CapacitorCordova: 5967b9ba03915ef1d585469d6e31f31dc49be96f
|
|
19
|
+
|
|
20
|
+
PODFILE CHECKSUM: 520251d2ae378ad040cf83d688d85978d597dd7a
|
|
21
|
+
|
|
22
|
+
COCOAPODS: 1.16.2
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bubble-labs/capacitor-plugin-siri-shorts",
|
|
3
|
+
"version": "7.0.0",
|
|
4
|
+
"description": "Capacitor Plugin for Siri Shortcuts",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"main": "dist/plugin.cjs.js",
|
|
9
|
+
"module": "dist/esm/index.js",
|
|
10
|
+
"types": "dist/esm/index.d.ts",
|
|
11
|
+
"unpkg": "dist/plugin.js",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"verify": "npm run verify:ios && npm run verify:web",
|
|
14
|
+
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
|
|
15
|
+
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
16
|
+
"verify:web": "npm run build",
|
|
17
|
+
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
18
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- autocorrect --format",
|
|
19
|
+
"eslint": "eslint . --ext ts",
|
|
20
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
21
|
+
"swiftlint": "node-swiftlint",
|
|
22
|
+
"docgen": "docgen --api SiriShortcutsPlugin --output-readme README.md --output-json dist/docs.json",
|
|
23
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
|
|
24
|
+
"clean": "rimraf ./dist",
|
|
25
|
+
"watch": "tsc --watch",
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
27
|
+
},
|
|
28
|
+
"author": "Dale Myszkowski, Timo Zacherl",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@capacitor/android": "^7.0.0",
|
|
32
|
+
"@capacitor/core": "^7.0.0",
|
|
33
|
+
"@capacitor/docgen": "0.2.0",
|
|
34
|
+
"@capacitor/ios": "^7.0.0",
|
|
35
|
+
"@ionic/eslint-config": "0.3.0",
|
|
36
|
+
"@ionic/prettier-config": "2.0.0",
|
|
37
|
+
"@ionic/swiftlint-config": "1.1.2",
|
|
38
|
+
"eslint": "8.25.0",
|
|
39
|
+
"prettier": "2.7.1",
|
|
40
|
+
"prettier-plugin-java": "1.6.2",
|
|
41
|
+
"rimraf": "3.0.2",
|
|
42
|
+
"rollup": "2.79.1",
|
|
43
|
+
"swiftlint": "1.0.1",
|
|
44
|
+
"typescript": "4.7.4"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@capacitor/core": "^7.0.0"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist/",
|
|
51
|
+
"ios/",
|
|
52
|
+
"android/",
|
|
53
|
+
"CapacitorPluginSiriShorts.podspec"
|
|
54
|
+
],
|
|
55
|
+
"keywords": [
|
|
56
|
+
"capacitor",
|
|
57
|
+
"plugin",
|
|
58
|
+
"native"
|
|
59
|
+
],
|
|
60
|
+
"capacitor": {
|
|
61
|
+
"ios": {
|
|
62
|
+
"src": "ios"
|
|
63
|
+
},
|
|
64
|
+
"android": {
|
|
65
|
+
"src": "android"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"prettier": "@ionic/prettier-config",
|
|
69
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
70
|
+
"eslintConfig": {
|
|
71
|
+
"extends": "@ionic/eslint-config/recommended"
|
|
72
|
+
},
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "https://github.com/greenygh0st/capacitor-plugin-siri-shortcuts"
|
|
76
|
+
},
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/greenygh0st/capacitor-plugin-siri-shortcuts/issues"
|
|
79
|
+
}
|
|
80
|
+
}
|