@capgo/capacitor-screen-recorder 7.1.17 → 7.1.22
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/android/src/main/java/ee/forgr/plugin/screenrecorder/ScreenRecorderPlugin.java +17 -17
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +2 -2
- package/dist/esm/web.js +3 -3
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +3 -3
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +3 -3
- package/dist/plugin.js.map +1 -1
- package/package.json +9 -13
|
@@ -10,24 +10,24 @@ import dev.bmcreations.scrcast.config.Options;
|
|
|
10
10
|
@CapacitorPlugin(name = "ScreenRecorder")
|
|
11
11
|
public class ScreenRecorderPlugin extends Plugin {
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
private ScrCast recorder;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
@Override
|
|
16
|
+
public void load() {
|
|
17
|
+
recorder = ScrCast.use(this.bridge.getActivity());
|
|
18
|
+
Options options = new Options();
|
|
19
|
+
recorder.updateOptions(options);
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
@PluginMethod
|
|
23
|
+
public void start(PluginCall call) {
|
|
24
|
+
recorder.record();
|
|
25
|
+
call.resolve();
|
|
26
|
+
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
@PluginMethod
|
|
29
|
+
public void stop(PluginCall call) {
|
|
30
|
+
recorder.stopRecording();
|
|
31
|
+
call.resolve();
|
|
32
|
+
}
|
|
33
33
|
}
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { registerPlugin } from
|
|
2
|
-
const ScreenRecorder = registerPlugin(
|
|
3
|
-
web: () => import(
|
|
1
|
+
import { registerPlugin } from '@capacitor/core';
|
|
2
|
+
const ScreenRecorder = registerPlugin('ScreenRecorder', {
|
|
3
|
+
web: () => import('./web').then((m) => new m.ScreenRecorderWeb()),
|
|
4
4
|
});
|
|
5
|
-
export * from
|
|
5
|
+
export * from './definitions';
|
|
6
6
|
export { ScreenRecorder };
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,cAAc,GAAG,cAAc,CAAuB,gBAAgB,EAAE;IAC5E,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;CAClE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import { registerPlugin } from
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,cAAc,GAAG,cAAc,CAAuB,gBAAgB,EAAE;IAC5E,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;CAClE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { ScreenRecorderPlugin } from './definitions';\n\nconst ScreenRecorder = registerPlugin<ScreenRecorderPlugin>('ScreenRecorder', {\n web: () => import('./web').then((m) => new m.ScreenRecorderWeb()),\n});\n\nexport * from './definitions';\nexport { ScreenRecorder };\n"]}
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WebPlugin } from
|
|
2
|
-
import type { ScreenRecorderPlugin } from
|
|
1
|
+
import { WebPlugin } from '@capacitor/core';
|
|
2
|
+
import type { ScreenRecorderPlugin } from './definitions';
|
|
3
3
|
export declare class ScreenRecorderWeb extends WebPlugin implements ScreenRecorderPlugin {
|
|
4
4
|
start(): Promise<void>;
|
|
5
5
|
stop(): Promise<void>;
|
package/dist/esm/web.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { WebPlugin } from
|
|
1
|
+
import { WebPlugin } from '@capacitor/core';
|
|
2
2
|
export class ScreenRecorderWeb extends WebPlugin {
|
|
3
3
|
async start() {
|
|
4
|
-
throw new Error(
|
|
4
|
+
throw new Error('Method not implemented.');
|
|
5
5
|
}
|
|
6
6
|
async stop() {
|
|
7
|
-
throw new Error(
|
|
7
|
+
throw new Error('Method not implemented.');
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=web.js.map
|
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,KAAK,CAAC,IAAI;QACR,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { ScreenRecorderPlugin } from './definitions';\n\nexport class ScreenRecorderWeb extends WebPlugin implements ScreenRecorderPlugin {\n async start(): Promise<void> {\n throw new Error('Method not implemented.');\n }\n async stop(): Promise<void> {\n throw new Error('Method not implemented.');\n }\n}\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var core = require('@capacitor/core');
|
|
4
4
|
|
|
5
|
-
const ScreenRecorder = core.registerPlugin(
|
|
5
|
+
const ScreenRecorder = core.registerPlugin('ScreenRecorder', {
|
|
6
6
|
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.ScreenRecorderWeb()),
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
class ScreenRecorderWeb extends core.WebPlugin {
|
|
10
10
|
async start() {
|
|
11
|
-
throw new Error(
|
|
11
|
+
throw new Error('Method not implemented.');
|
|
12
12
|
}
|
|
13
13
|
async stop() {
|
|
14
|
-
throw new Error(
|
|
14
|
+
throw new Error('Method not implemented.');
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenRecorder = registerPlugin('ScreenRecorder', {\n web: () => import('./web').then((m) => new m.ScreenRecorderWeb()),\n});\nexport * from './definitions';\nexport { ScreenRecorder };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenRecorderWeb extends WebPlugin {\n async start() {\n throw new Error('Method not implemented.');\n }\n async stop() {\n throw new Error('Method not implemented.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,cAAc,GAAGA,mBAAc,CAAC,gBAAgB,EAAE;AACxD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;AACrE,CAAC;;ACFM,MAAM,iBAAiB,SAASC,cAAS,CAAC;AACjD,IAAI,MAAM,KAAK,GAAG;AAClB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD,IAAI;AACJ,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;AAClD,IAAI;AACJ;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var capacitorScreenRecorder = (function (exports, core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
const ScreenRecorder = core.registerPlugin(
|
|
4
|
+
const ScreenRecorder = core.registerPlugin('ScreenRecorder', {
|
|
5
5
|
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.ScreenRecorderWeb()),
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
class ScreenRecorderWeb extends core.WebPlugin {
|
|
9
9
|
async start() {
|
|
10
|
-
throw new Error(
|
|
10
|
+
throw new Error('Method not implemented.');
|
|
11
11
|
}
|
|
12
12
|
async stop() {
|
|
13
|
-
throw new Error(
|
|
13
|
+
throw new Error('Method not implemented.');
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst ScreenRecorder = registerPlugin('ScreenRecorder', {\n web: () => import('./web').then((m) => new m.ScreenRecorderWeb()),\n});\nexport * from './definitions';\nexport { ScreenRecorder };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class ScreenRecorderWeb extends WebPlugin {\n async start() {\n throw new Error('Method not implemented.');\n }\n async stop() {\n throw new Error('Method not implemented.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,cAAc,GAAGA,mBAAc,CAAC,gBAAgB,EAAE;IACxD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACrE,CAAC;;ICFM,MAAM,iBAAiB,SAASC,cAAS,CAAC;IACjD,IAAI,MAAM,KAAK,GAAG;IAClB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD,IAAI;IACJ,IAAI,MAAM,IAAI,GAAG;IACjB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC;IAClD,IAAI;IACJ;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-screen-recorder",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.22",
|
|
4
4
|
"description": "Record device's screen",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
36
36
|
"verify:web": "npm run build",
|
|
37
37
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
38
|
-
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --
|
|
39
|
-
"eslint": "eslint .",
|
|
40
|
-
"prettier": "prettier
|
|
38
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
39
|
+
"eslint": "eslint . --ext ts",
|
|
40
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
41
41
|
"swiftlint": "node-swiftlint",
|
|
42
42
|
"docgen": "docgen --api ScreenRecorderPlugin --output-readme README.md --output-json dist/docs.json",
|
|
43
43
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
@@ -47,32 +47,28 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@capacitor/android": "^7.0.0",
|
|
50
|
-
"@capacitor/cli": "^7.0.0",
|
|
51
50
|
"@capacitor/core": "^7.0.0",
|
|
52
51
|
"@capacitor/docgen": "^0.3.0",
|
|
53
52
|
"@capacitor/ios": "^7.0.0",
|
|
54
53
|
"@ionic/eslint-config": "^0.4.0",
|
|
55
54
|
"@ionic/prettier-config": "^4.0.0",
|
|
56
55
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
57
|
-
"@types/node": "^24.0.0",
|
|
58
56
|
"eslint": "^8.57.0",
|
|
59
|
-
"eslint-plugin-import": "^2.31.0",
|
|
60
|
-
"husky": "^9.1.7",
|
|
61
57
|
"prettier": "^3.4.2",
|
|
62
|
-
"prettier-plugin-java": "^2.6.
|
|
58
|
+
"prettier-plugin-java": "^2.6.6",
|
|
63
59
|
"rimraf": "^6.0.1",
|
|
64
|
-
"rollup": "^4.
|
|
60
|
+
"rollup": "^4.30.1",
|
|
65
61
|
"swiftlint": "^2.0.0",
|
|
66
|
-
"typescript": "
|
|
62
|
+
"typescript": "~4.1.5"
|
|
67
63
|
},
|
|
68
64
|
"peerDependencies": {
|
|
69
65
|
"@capacitor/core": ">=7.0.0"
|
|
70
66
|
},
|
|
67
|
+
"prettier": "@ionic/prettier-config",
|
|
68
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
71
69
|
"eslintConfig": {
|
|
72
70
|
"extends": "@ionic/eslint-config/recommended"
|
|
73
71
|
},
|
|
74
|
-
"prettier": "@ionic/prettier-config",
|
|
75
|
-
"swiftlint": "@ionic/swiftlint-config",
|
|
76
72
|
"capacitor": {
|
|
77
73
|
"ios": {
|
|
78
74
|
"src": "ios"
|