capacitor-swipe-gestures-plugin 4.1.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.
@@ -0,0 +1,17 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = 'CapacitorSwipeGesturesPlugin'
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license']
10
+ s.homepage = package['repository']['url']
11
+ s.author = package['author']
12
+ s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
+ s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
+ s.ios.deployment_target = '13.0'
15
+ s.dependency 'Capacitor'
16
+ s.swift_version = '5.1'
17
+ end
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # capacitor-swipe-back
2
+
3
+ Capacitor swipe back plugin. For Capacitor v3, v4 (0.0.3), v5 (1.0.0) and v6 (2.0.0). For v2 use original plugin: https://github.com/diiiary/capacitor-plugin-ios-swipe-back
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install capacitor-swipe-back-plugin
9
+ npx cap sync
10
+ ```
11
+
12
+ ## API
13
+
14
+ <docgen-index>
15
+
16
+ * [`enable()`](#enable)
17
+ * [`disable()`](#disable)
18
+
19
+ </docgen-index>
20
+
21
+ <docgen-api>
22
+ <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
23
+
24
+ ### enable()
25
+
26
+ ```typescript
27
+ enable() => Promise<{ status: 'enable'; }>
28
+ ```
29
+
30
+ **Returns:** <code>Promise&lt;{ status: 'enable'; }&gt;</code>
31
+
32
+ --------------------
33
+
34
+
35
+ ### disable()
36
+
37
+ ```typescript
38
+ disable() => Promise<{ status: 'disable'; }>
39
+ ```
40
+
41
+ **Returns:** <code>Promise&lt;{ status: 'disable'; }&gt;</code>
42
+
43
+ --------------------
44
+
45
+ </docgen-api>
@@ -0,0 +1,58 @@
1
+ ext {
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
6
+ }
7
+
8
+ buildscript {
9
+ repositories {
10
+ google()
11
+ mavenCentral()
12
+ }
13
+ dependencies {
14
+ classpath 'com.android.tools.build:gradle:8.2.1'
15
+ }
16
+ }
17
+
18
+ apply plugin: 'com.android.library'
19
+
20
+ android {
21
+ namespace "com.swipeback"
22
+ compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
23
+ defaultConfig {
24
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
25
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
26
+ versionCode 1
27
+ versionName "1.0"
28
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
29
+ }
30
+ buildTypes {
31
+ release {
32
+ minifyEnabled false
33
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
34
+ }
35
+ }
36
+ lintOptions {
37
+ abortOnError false
38
+ }
39
+ compileOptions {
40
+ sourceCompatibility JavaVersion.VERSION_17
41
+ targetCompatibility JavaVersion.VERSION_17
42
+ }
43
+ }
44
+
45
+ repositories {
46
+ google()
47
+ mavenCentral()
48
+ }
49
+
50
+
51
+ dependencies {
52
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
53
+ implementation project(':capacitor-android')
54
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
55
+ testImplementation "junit:junit:$junitVersion"
56
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
57
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
58
+ }
@@ -0,0 +1,3 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ >
3
+ </manifest>
@@ -0,0 +1,27 @@
1
+ package com.swipeback;
2
+
3
+ import com.getcapacitor.JSObject;
4
+ import com.getcapacitor.Plugin;
5
+ import com.getcapacitor.PluginCall;
6
+ import com.getcapacitor.PluginMethod;
7
+ import com.getcapacitor.annotation.CapacitorPlugin;
8
+
9
+ @CapacitorPlugin(name = "CapacitorSwipeGesturesPlugin")
10
+ public class CapacitorSwipeGesturesPlugin extends Plugin {
11
+
12
+ @PluginMethod
13
+ public void enable(PluginCall call) {
14
+ String value = call.getString("value");
15
+
16
+ JSObject ret = new JSObject();
17
+ ret.put("status", "enable");
18
+ call.resolve(ret);
19
+ }
20
+
21
+ @PluginMethod
22
+ public void disable(PluginCall call) {
23
+ JSObject ret = new JSObject();
24
+ ret.put("status", "disable");
25
+ call.resolve(ret);
26
+ }
27
+ }
File without changes
package/dist/docs.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "api": {
3
+ "name": "CapacitorSwipeGesturesPlugin",
4
+ "slug": "capacitorswipegesturesplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "enable",
10
+ "signature": "() => Promise<{ status: 'enable'; }>",
11
+ "parameters": [],
12
+ "returns": "Promise<{ status: 'enable'; }>",
13
+ "tags": [],
14
+ "docs": "",
15
+ "complexTypes": [],
16
+ "slug": "enable"
17
+ },
18
+ {
19
+ "name": "disable",
20
+ "signature": "() => Promise<{ status: 'disable'; }>",
21
+ "parameters": [],
22
+ "returns": "Promise<{ status: 'disable'; }>",
23
+ "tags": [],
24
+ "docs": "",
25
+ "complexTypes": [],
26
+ "slug": "disable"
27
+ }
28
+ ],
29
+ "properties": []
30
+ },
31
+ "interfaces": [],
32
+ "enums": [],
33
+ "typeAliases": [],
34
+ "pluginConfigs": []
35
+ }
@@ -0,0 +1,8 @@
1
+ export interface CapacitorSwipeGesturesPlugin {
2
+ enable(): Promise<{
3
+ status: 'enable';
4
+ }>;
5
+ disable(): Promise<{
6
+ status: 'disable';
7
+ }>;
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface CapacitorSwipeGesturesPlugin {\n enable(): Promise<{ status: 'enable' }>;\n disable(): Promise<{ status: 'disable' }>;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { CapacitorSwipeGesturesPlugin as CapacitorSwipeGesturesPluginDef } from './definitions';
2
+ declare const CapacitorSwipeGesturesPlugin: CapacitorSwipeGesturesPluginDef;
3
+ export * from './definitions';
4
+ export { CapacitorSwipeGesturesPlugin };
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const CapacitorSwipeGesturesPlugin = registerPlugin('CapacitorSwipeGesturesPlugin', {
3
+ web: () => import('./web').then(m => new m.CapacitorSwipeGesturesWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { CapacitorSwipeGesturesPlugin };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,4BAA4B,GAAG,cAAc,CACjD,8BAA8B,EAC9B;IACE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,yBAAyB,EAAE,CAAC;CACxE,CACF,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,4BAA4B,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorSwipeGesturesPlugin as CapacitorSwipeGesturesPluginDef } from './definitions';\n\nconst CapacitorSwipeGesturesPlugin = registerPlugin<CapacitorSwipeGesturesPluginDef>(\n 'CapacitorSwipeGesturesPlugin',\n {\n web: () => import('./web').then(m => new m.CapacitorSwipeGesturesWeb()),\n },\n);\n\nexport * from './definitions';\nexport { CapacitorSwipeGesturesPlugin };\n"]}
@@ -0,0 +1,10 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { CapacitorSwipeGesturesPlugin } from './definitions';
3
+ export declare class CapacitorSwipeGesturesWeb extends WebPlugin implements CapacitorSwipeGesturesPlugin {
4
+ enable(): Promise<{
5
+ status: 'enable';
6
+ }>;
7
+ disable(): Promise<{
8
+ status: 'disable';
9
+ }>;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class CapacitorSwipeGesturesWeb extends WebPlugin {
3
+ async enable() {
4
+ return new Promise(resolve => {
5
+ resolve({ status: 'enable' });
6
+ });
7
+ }
8
+ async disable() {
9
+ return new Promise(resolve => {
10
+ resolve({ status: 'disable' });
11
+ });
12
+ }
13
+ }
14
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,yBACX,SAAQ,SAAS;IAGjB,KAAK,CAAC,MAAM;QACV,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC;IACD,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { CapacitorSwipeGesturesPlugin } from './definitions';\n\nexport class CapacitorSwipeGesturesWeb\n extends WebPlugin\n implements CapacitorSwipeGesturesPlugin\n{\n async enable(): Promise<{ status: 'enable' }> {\n return new Promise(resolve => {\n resolve({ status: 'enable' });\n });\n }\n async disable(): Promise<{ status: 'disable' }> {\n return new Promise(resolve => {\n resolve({ status: 'disable' });\n });\n }\n}\n"]}
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var core = require('@capacitor/core');
6
+
7
+ const CapacitorSwipeGesturesPlugin = core.registerPlugin('CapacitorSwipeGesturesPlugin', {
8
+ web: () => Promise.resolve().then(function () { return web; }).then(m => new m.CapacitorSwipeGesturesWeb()),
9
+ });
10
+
11
+ class CapacitorSwipeGesturesWeb extends core.WebPlugin {
12
+ async enable() {
13
+ return new Promise(resolve => {
14
+ resolve({ status: 'enable' });
15
+ });
16
+ }
17
+ async disable() {
18
+ return new Promise(resolve => {
19
+ resolve({ status: 'disable' });
20
+ });
21
+ }
22
+ }
23
+
24
+ var web = /*#__PURE__*/Object.freeze({
25
+ __proto__: null,
26
+ CapacitorSwipeGesturesWeb: CapacitorSwipeGesturesWeb
27
+ });
28
+
29
+ exports.CapacitorSwipeGesturesPlugin = CapacitorSwipeGesturesPlugin;
30
+ //# sourceMappingURL=plugin.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorSwipeGesturesPlugin = registerPlugin('CapacitorSwipeGesturesPlugin', {\n web: () => import('./web').then(m => new m.CapacitorSwipeGesturesWeb()),\n});\nexport * from './definitions';\nexport { CapacitorSwipeGesturesPlugin };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorSwipeGesturesWeb extends WebPlugin {\n async enable() {\n return new Promise(resolve => {\n resolve({ status: 'enable' });\n });\n }\n async disable() {\n return new Promise(resolve => {\n resolve({ status: 'disable' });\n });\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,4BAA4B,GAAGA,mBAAc,CAAC,8BAA8B,EAAE;AACpF,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,yBAAyB,EAAE,CAAC;AAC3E,CAAC;;ACFM,MAAM,yBAAyB,SAASC,cAAS,CAAC;AACzD,IAAI,MAAM,MAAM,GAAG;AACnB,QAAQ,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI;AACtC,YAAY,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC1C,SAAS,CAAC,CAAC;AACX,KAAK;AACL,IAAI,MAAM,OAAO,GAAG;AACpB,QAAQ,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI;AACtC,YAAY,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,CAAC;AACX,KAAK;AACL;;;;;;;;;"}
package/dist/plugin.js ADDED
@@ -0,0 +1,33 @@
1
+ var capacitorCapacitorSwipeGesturesPlugin = (function (exports, core) {
2
+ 'use strict';
3
+
4
+ const CapacitorSwipeGesturesPlugin = core.registerPlugin('CapacitorSwipeGesturesPlugin', {
5
+ web: () => Promise.resolve().then(function () { return web; }).then(m => new m.CapacitorSwipeGesturesWeb()),
6
+ });
7
+
8
+ class CapacitorSwipeGesturesWeb extends core.WebPlugin {
9
+ async enable() {
10
+ return new Promise(resolve => {
11
+ resolve({ status: 'enable' });
12
+ });
13
+ }
14
+ async disable() {
15
+ return new Promise(resolve => {
16
+ resolve({ status: 'disable' });
17
+ });
18
+ }
19
+ }
20
+
21
+ var web = /*#__PURE__*/Object.freeze({
22
+ __proto__: null,
23
+ CapacitorSwipeGesturesWeb: CapacitorSwipeGesturesWeb
24
+ });
25
+
26
+ exports.CapacitorSwipeGesturesPlugin = CapacitorSwipeGesturesPlugin;
27
+
28
+ Object.defineProperty(exports, '__esModule', { value: true });
29
+
30
+ return exports;
31
+
32
+ })({}, capacitorExports);
33
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst CapacitorSwipeGesturesPlugin = registerPlugin('CapacitorSwipeGesturesPlugin', {\n web: () => import('./web').then(m => new m.CapacitorSwipeGesturesWeb()),\n});\nexport * from './definitions';\nexport { CapacitorSwipeGesturesPlugin };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class CapacitorSwipeGesturesWeb extends WebPlugin {\n async enable() {\n return new Promise(resolve => {\n resolve({ status: 'enable' });\n });\n }\n async disable() {\n return new Promise(resolve => {\n resolve({ status: 'disable' });\n });\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,4BAA4B,GAAGA,mBAAc,CAAC,8BAA8B,EAAE;IACpF,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,yBAAyB,EAAE,CAAC;IAC3E,CAAC;;ICFM,MAAM,yBAAyB,SAASC,cAAS,CAAC;IACzD,IAAI,MAAM,MAAM,GAAG;IACnB,QAAQ,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI;IACtC,YAAY,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC1C,SAAS,CAAC,CAAC;IACX,KAAK;IACL,IAAI,MAAM,OAAO,GAAG;IACpB,QAAQ,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI;IACtC,YAAY,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3C,SAAS,CAAC,CAAC;IACX,KAAK;IACL;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ import Foundation
2
+
3
+ @objc public class CapacitorSwipeGestures: NSObject {
4
+ @objc public func echo(_ value: String) -> String {
5
+ print(value)
6
+ return value
7
+ }
8
+ }
@@ -0,0 +1,10 @@
1
+ #import <UIKit/UIKit.h>
2
+
3
+ //! Project version number for Plugin.
4
+ FOUNDATION_EXPORT double PluginVersionNumber;
5
+
6
+ //! Project version string for Plugin.
7
+ FOUNDATION_EXPORT const unsigned char PluginVersionString[];
8
+
9
+ // In this header, you should import all the public headers of your framework using statements like #import <Plugin/PublicHeader.h>
10
+
@@ -0,0 +1,9 @@
1
+ #import <Foundation/Foundation.h>
2
+ #import <Capacitor/Capacitor.h>
3
+
4
+ // Define the plugin using the CAP_PLUGIN Macro, and
5
+ // each method the plugin supports using the CAP_PLUGIN_METHOD macro.
6
+ CAP_PLUGIN(CapacitorSwipeGesturesPlugin, "CapacitorSwipeGesturesPlugin",
7
+ CAP_PLUGIN_METHOD(enable, CAPPluginReturnPromise);
8
+ CAP_PLUGIN_METHOD(disable, CAPPluginReturnPromise);
9
+ )
@@ -0,0 +1,19 @@
1
+ import Foundation
2
+ import Capacitor
3
+
4
+ @objc(CapacitorSwipeGesturesPlugin)
5
+ public class CapacitorSwipeGesturesPlugin: CAPPlugin {
6
+ @objc func enable(_ call: CAPPluginCall) {
7
+ webView?.allowsBackForwardNavigationGestures = true;
8
+ call.resolve([
9
+ "status": "enable"
10
+ ])
11
+ }
12
+
13
+ @objc func disable(_ call: CAPPluginCall) {
14
+ webView?.allowsBackForwardNavigationGestures = false;
15
+ call.resolve([
16
+ "status": "disable"
17
+ ])
18
+ }
19
+ }
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>FMWK</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>$(CURRENT_PROJECT_VERSION)</string>
21
+ <key>NSPrincipalClass</key>
22
+ <string></string>
23
+ </dict>
24
+ </plist>
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "capacitor-swipe-gestures-plugin",
3
+ "version": "4.1.0",
4
+ "description": "Capacitor swipe gestures plugin.",
5
+ "main": "dist/plugin.cjs.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "unpkg": "dist/plugin.js",
9
+ "files": [
10
+ "android/src/main/",
11
+ "android/build.gradle",
12
+ "dist/",
13
+ "ios/Plugin/",
14
+ "CapacitorSwipeGesturesPlugin.podspec"
15
+ ],
16
+ "author": "Ales Mraz",
17
+ "license": "MIT",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/krzysztofkostecki/capacitor-plugin-swipe-gestures.git"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/krzysztofkostecki/capacitor-plugin-swipe-gestures/issues"
24
+ },
25
+ "keywords": [
26
+ "capacitor",
27
+ "plugin",
28
+ "native"
29
+ ],
30
+ "scripts": {
31
+ "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
32
+ "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
33
+ "verify:android": "cd android && ./gradlew clean build test && cd ..",
34
+ "verify:web": "npm run build",
35
+ "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
36
+ "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
37
+ "eslint": "eslint . --ext ts",
38
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
39
+ "swiftlint": "node-swiftlint",
40
+ "docgen": "docgen --api CapacitorSwipeGesturesPlugin --output-readme README.md --output-json dist/docs.json",
41
+ "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
42
+ "clean": "rimraf ./dist",
43
+ "watch": "tsc --watch",
44
+ "prepublishOnly": "npm run build"
45
+ },
46
+ "devDependencies": {
47
+ "@capacitor/android": "^6.0.0",
48
+ "@capacitor/core": "^6.0.0",
49
+ "@capacitor/docgen": "^0.0.18",
50
+ "@capacitor/ios": "^6.0.0",
51
+ "@ionic/eslint-config": "^0.4.0",
52
+ "@ionic/prettier-config": "^1.0.1",
53
+ "@ionic/swiftlint-config": "^1.1.2",
54
+ "eslint": "^8.57.0",
55
+ "prettier": "~2.3.0",
56
+ "prettier-plugin-java": "~1.0.2",
57
+ "rimraf": "^3.0.2",
58
+ "rollup": "^2.32.0",
59
+ "swiftlint": "^1.0.1",
60
+ "typescript": "~4.1.5"
61
+ },
62
+ "peerDependencies": {
63
+ "@capacitor/core": "^6.0.0"
64
+ },
65
+ "prettier": "@ionic/prettier-config",
66
+ "swiftlint": "@ionic/swiftlint-config",
67
+ "eslintConfig": {
68
+ "extends": "@ionic/eslint-config/recommended"
69
+ },
70
+ "capacitor": {
71
+ "ios": {
72
+ "src": "ios"
73
+ },
74
+ "android": {
75
+ "src": "android"
76
+ }
77
+ }
78
+ }