@capgo/capacitor-shake 5.0.29 → 6.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/README.md +1 -1
- package/android/build.gradle +3 -3
- package/dist/docs.json +1 -1
- package/dist/esm/definitions.d.ts +1 -1
- package/dist/esm/definitions.js.map +1 -1
- package/package.json +15 -18
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ npx cap sync
|
|
|
30
30
|
### addListener('shake', ...)
|
|
31
31
|
|
|
32
32
|
```typescript
|
|
33
|
-
addListener(eventName: "shake", listenerFunc: () => void) =>
|
|
33
|
+
addListener(eventName: "shake", listenerFunc: () => void) => any
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
| Param | Type |
|
package/android/build.gradle
CHANGED
|
@@ -11,7 +11,7 @@ buildscript {
|
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:8.1
|
|
14
|
+
classpath 'com.android.tools.build:gradle:8.2.1'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,10 +19,10 @@ apply plugin: 'com.android.library'
|
|
|
19
19
|
|
|
20
20
|
android {
|
|
21
21
|
namespace "ee.forgr.capacitor.shake"
|
|
22
|
-
|
|
22
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
|
23
23
|
defaultConfig {
|
|
24
24
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
25
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
25
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
|
26
26
|
versionCode 1
|
|
27
27
|
versionName "1.0"
|
|
28
28
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
package/dist/docs.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"methods": [
|
|
8
8
|
{
|
|
9
9
|
"name": "addListener",
|
|
10
|
-
"signature": "(eventName: \"shake\", listenerFunc: () => void) =>
|
|
10
|
+
"signature": "(eventName: \"shake\", listenerFunc: () => void) => any",
|
|
11
11
|
"parameters": [
|
|
12
12
|
{
|
|
13
13
|
"name": "eventName",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { PluginListenerHandle } from "@capacitor/core";
|
|
2
2
|
export interface CapacitorShakePlugin {
|
|
3
|
-
addListener(eventName: "shake", listenerFunc: () => void): Promise<PluginListenerHandle
|
|
3
|
+
addListener(eventName: "shake", listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from \"@capacitor/core\";\n\nexport interface CapacitorShakePlugin {\n addListener(\n eventName: \"shake\",\n listenerFunc: () => void
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from \"@capacitor/core\";\n\nexport interface CapacitorShakePlugin {\n addListener(\n eventName: \"shake\",\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-shake",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Detect shake gesture in device",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"verify:web": "npm run build",
|
|
40
40
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
41
41
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --autocorrect --format",
|
|
42
|
-
"eslint": "eslint .
|
|
42
|
+
"eslint": "eslint .",
|
|
43
43
|
"prettier": "prettier --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"",
|
|
44
44
|
"swiftlint": "node-swiftlint",
|
|
45
45
|
"docgen": "docgen --api CapacitorShakePlugin --output-readme README.md --output-json dist/docs.json",
|
|
@@ -49,31 +49,28 @@
|
|
|
49
49
|
"prepublishOnly": "npm run build"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@capacitor/android": "^
|
|
53
|
-
"@capacitor/core": "^
|
|
52
|
+
"@capacitor/android": "^6.0.0",
|
|
53
|
+
"@capacitor/core": "^6.0.0",
|
|
54
54
|
"@capacitor/docgen": "^0.2.1",
|
|
55
|
-
"@capacitor/ios": "^
|
|
55
|
+
"@capacitor/ios": "^6.0.0",
|
|
56
56
|
"@ionic/eslint-config": "^0.3.0",
|
|
57
|
-
"@ionic/prettier-config": "^
|
|
57
|
+
"@ionic/prettier-config": "^4.0.0",
|
|
58
58
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
60
|
-
"@typescript-eslint/parser": "^
|
|
61
|
-
"eslint": "^
|
|
62
|
-
"prettier": "~2.
|
|
63
|
-
"prettier-plugin-java": "~
|
|
64
|
-
"rimraf": "^5.0.
|
|
65
|
-
"rollup": "^
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
60
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
61
|
+
"eslint": "^9.1.1",
|
|
62
|
+
"prettier": "~3.2.5",
|
|
63
|
+
"prettier-plugin-java": "~2.6.0",
|
|
64
|
+
"rimraf": "^5.0.5",
|
|
65
|
+
"rollup": "^4.17.1",
|
|
66
66
|
"swiftlint": "^1.0.2",
|
|
67
|
-
"typescript": "~5.
|
|
67
|
+
"typescript": "~5.4.5"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@capacitor/core": "^
|
|
70
|
+
"@capacitor/core": "^6.0.0"
|
|
71
71
|
},
|
|
72
72
|
"prettier": "@ionic/prettier-config",
|
|
73
73
|
"swiftlint": "@ionic/swiftlint-config",
|
|
74
|
-
"eslintConfig": {
|
|
75
|
-
"extends": "@ionic/eslint-config/recommended"
|
|
76
|
-
},
|
|
77
74
|
"capacitor": {
|
|
78
75
|
"ios": {
|
|
79
76
|
"src": "ios"
|