-
-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathpackage.json
More file actions
142 lines (142 loc) · 6.38 KB
/
Copy pathpackage.json
File metadata and controls
142 lines (142 loc) · 6.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"name": "@capgo/capacitor-inappbrowser",
"version": "8.10.3",
"description": "Capacitor plugin in app browser",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"unpkg": "dist/plugin.js",
"files": [
"android/src/main/",
"android/build.gradle",
"dist/",
"ios/Sources/",
"Package.swift",
"CapgoCapacitorInappbrowser.podspec"
],
"author": "Martin Donadieu <martin@capgo.app>",
"license": "MPL-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/Cap-go/capacitor-inappbrowser.git"
},
"bugs": {
"url": "https://github.com/Cap-go/capacitor-inappbrowser/issues"
},
"homepage": "https://capgo.app/docs/plugins/inappbrowser/",
"keywords": [
"capacitor",
"plugin",
"browser",
"native"
],
"scripts": {
"verify": "bun run verify:ios && bun run verify:android && bun run verify:web",
"verify:ios": "bun run build:proxy-bridge && xcodebuild -scheme CapgoCapacitorInappbrowser -destination generic/platform=iOS",
"verify:android": "cd android && ./gradlew clean build test && cd ..",
"verify:web": "bun run build && bun run test:web",
"test:web": "bun test src/proxy-bridge-support.test.ts",
"test:maestro:android": "./scripts/test-maestro-android.sh",
"lint": "bun run eslint && bun run prettier -- --check && bun run swiftlint -- lint",
"fmt": "bun run eslint -- --fix && bun run prettier -- --write && bun run swiftlint -- --fix --format",
"eslint": "eslint .",
"prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
"swiftlint": "node-swiftlint",
"docgen": "docgen --api InAppBrowserPlugin --output-readme README.md --output-json dist/docs.json",
"build:proxy-bridge": "esbuild src/proxy-bridge.ts --bundle --outfile=android/src/main/assets/proxy-bridge.js --format=iife --target=es2015 && mkdir -p ios/Sources/InAppBrowserPlugin/Resources && cp android/src/main/assets/proxy-bridge.js ios/Sources/InAppBrowserPlugin/Resources/proxy-bridge.js",
"build": "bun run clean && bun run docgen && tsc && rollup -c rollup.config.mjs && bun run build:proxy-bridge",
"clean": "rimraf ./dist",
"watch": "tsc --watch",
"prepublishOnly": "bun run build",
"example-app:prepare:android": "bun run build && cd example-app && bun install && bun run build && bunx cap sync android && cd android && ./gradlew app:assembleDebug",
"example-app:prepare:ios": "bun run build && cd example-app && bun install && bun run build && bunx cap sync ios",
"maestro:test:android": "export MAESTRO_DRIVER_STARTUP_TIMEOUT=300000 MAESTRO_CLI_NO_ANALYTICS=1 && sh ./scripts/prepare-android-maestro-device.sh && sh ./scripts/install-android-apk-with-retry.sh example-app/android/app/build/outputs/apk/debug/app-debug.apk && sh ./scripts/start-android-maestro-app.sh app.capgo.inappbrowser app.capgo.inappbrowser/.MainActivity && $HOME/.maestro/bin/maestro test -e APP_ID=app.capgo.inappbrowser example-app/.maestro/proxy-regression-android.yaml",
"maestro:test:android:blank-target": "export MAESTRO_DRIVER_STARTUP_TIMEOUT=300000 MAESTRO_CLI_NO_ANALYTICS=1 && sh ./scripts/prepare-android-maestro-device.sh && sh ./scripts/install-android-apk-with-retry.sh example-app/android/app/build/outputs/apk/debug/app-debug.apk && sh ./scripts/start-android-maestro-app.sh app.capgo.inappbrowser app.capgo.inappbrowser/.MainActivity && $HOME/.maestro/bin/maestro test --format junit --output maestro-report.xml --debug-output maestro-artifacts --flatten-debug-output -e APP_ID=app.capgo.inappbrowser example-app/.maestro/blank-target-http-stays-in-webview.yaml",
"maestro:test:android:keyboard": "export MAESTRO_DRIVER_STARTUP_TIMEOUT=300000 MAESTRO_CLI_NO_ANALYTICS=1 && sh ./scripts/prepare-android-maestro-device.sh && sh ./scripts/install-android-apk-with-retry.sh example-app/android/app/build/outputs/apk/debug/app-debug.apk && sh ./scripts/start-android-maestro-app.sh app.capgo.inappbrowser app.capgo.inappbrowser/.MainActivity && $HOME/.maestro/bin/maestro test -e APP_ID=app.capgo.inappbrowser example-app/.maestro/keyboard-regression-android.yaml",
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
"example:install": "cd example-app && bun install --frozen-lockfile",
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
"changelog:ai": "node scripts/generate-ai-changelog.mjs"
},
"devDependencies": {
"@capacitor/android": "^8.0.0",
"@capacitor/cli": "^8.0.0",
"@capacitor/core": "^8.0.0",
"@capacitor/docgen": "^0.3.1",
"@capacitor/ios": "^8.0.0",
"@ionic/eslint-config": "^0.4.0",
"@ionic/prettier-config": "^4.0.0",
"@ionic/swiftlint-config": "^2.0.0",
"@types/node": "^24.10.1",
"esbuild": "^0.27.3",
"eslint": "^8.57.1",
"eslint-plugin-import": "^2.31.0",
"husky": "^9.1.7",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.7",
"rimraf": "^6.1.0",
"rollup": "^4.53.2",
"swiftlint": "^2.0.0",
"typescript": "^5.9.3",
"prettier-pretty-check": "^0.2.0"
},
"peerDependencies": {
"@capacitor/core": ">=8.0.0"
},
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
},
"prettier": "@ionic/prettier-config",
"swiftlint": {
"excluded": [
"**/.build",
"**/node_modules",
"**/ios/Pods",
"**/example-app",
"**/ios/Sources/InAppBrowserPlugin/InAppBrowserPlugin.swift",
"**/ios/Sources/InAppBrowserPlugin/WKWebViewController.swift"
],
"opt_in_rules": [
"implicitly_unwrapped_optional",
"file_name_no_space",
"force_unwrapping",
"function_default_parameter_at_end",
"lower_acl_than_parent",
"modifier_order",
"overridden_super_call",
"unowned_variable_capture",
"unused_import"
],
"line_length": {
"warning": 150,
"ignores_function_declarations": true,
"ignores_comments": true,
"ignores_interpolated_strings": true,
"ignores_urls": true
},
"file_length": {
"warning": 3000,
"error": 4000
},
"function_body_length": {
"warning": 500,
"error": 600
},
"type_body_length": {
"warning": 1500,
"error": 2000
},
"cyclomatic_complexity": {
"warning": 80,
"error": 100
}
},
"capacitor": {
"ios": {
"src": "ios"
},
"android": {
"src": "android"
}
}
}