@gachlab/capacitor-dnd-plugin 1.1.0 → 1.2.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 +2 -2
- package/android/src/main/AndroidManifest.xml +1 -18
- package/android/src/main/java/com/gachlab/capacitor/dnd/DoNotDisturb.java +34 -5
- package/android/src/main/java/com/gachlab/capacitor/dnd/DoNotDisturbPlugin.java +20 -5
- package/android/src/main/res/values/strings.xml +4 -0
- package/dist/esm/definitions.d.ts +3 -1
- package/dist/esm/index.js +7 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +3 -1
- package/dist/plugin.cjs.js +1 -20
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +1 -23
- package/dist/plugin.js.map +1 -1
- package/dist/web-BMdZ0HQI.js +2 -0
- package/dist/web-BMdZ0HQI.js.map +1 -0
- package/dist/web-DRkBjitQ.mjs +10 -0
- package/dist/web-DRkBjitQ.mjs.map +1 -0
- package/ios/Plugin/DoNotDisturb.swift +23 -3
- package/ios/Plugin/DoNotDisturbPlugin.swift +14 -7
- package/package.json +10 -9
- package/dist/docs.json +0 -25
- package/dist/esm/definitions.js +0 -2
- package/dist/esm/definitions.js.map +0 -1
- package/dist/esm/web.js +0 -7
- package/dist/esm/web.js.map +0 -1
package/README.md
CHANGED
|
@@ -23,10 +23,10 @@ npx cap sync
|
|
|
23
23
|
### monitor()
|
|
24
24
|
|
|
25
25
|
```typescript
|
|
26
|
-
monitor() => Promise<
|
|
26
|
+
monitor() => Promise<{ enabled: boolean; }>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
**Returns:** <code>Promise<
|
|
29
|
+
**Returns:** <code>Promise<{ enabled: boolean; }></code>
|
|
30
30
|
|
|
31
31
|
--------------------
|
|
32
32
|
|
|
@@ -1,20 +1,3 @@
|
|
|
1
1
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
-
<
|
|
3
|
-
<service android:name="NotificationListener"
|
|
4
|
-
android:label="@string/service_name"
|
|
5
|
-
android:exported="false"
|
|
6
|
-
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
|
|
7
|
-
<intent-filter>
|
|
8
|
-
<action android:name="android.service.notification.NotificationListenerService" />
|
|
9
|
-
</intent-filter>
|
|
10
|
-
<meta-data
|
|
11
|
-
android:name="android.service.notification.default_filter_types"
|
|
12
|
-
android:value="conversations|alerting">
|
|
13
|
-
</meta-data>
|
|
14
|
-
<meta-data
|
|
15
|
-
android:name="android.service.notification.disabled_filter_types"
|
|
16
|
-
android:value="ongoing|silent">
|
|
17
|
-
</meta-data>
|
|
18
|
-
</service>
|
|
19
|
-
</application>
|
|
2
|
+
<uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY" />
|
|
20
3
|
</manifest>
|
|
@@ -1,11 +1,40 @@
|
|
|
1
1
|
package com.gachlab.capacitor.dnd;
|
|
2
2
|
|
|
3
|
-
import android.
|
|
3
|
+
import android.app.NotificationManager;
|
|
4
|
+
import android.content.BroadcastReceiver;
|
|
5
|
+
import android.content.Context;
|
|
6
|
+
import android.content.Intent;
|
|
7
|
+
import android.content.IntentFilter;
|
|
4
8
|
|
|
5
9
|
public class DoNotDisturb {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
private Context context;
|
|
11
|
+
private BroadcastReceiver receiver;
|
|
12
|
+
private Runnable callback;
|
|
13
|
+
|
|
14
|
+
public DoNotDisturb(Context context) {
|
|
15
|
+
this.context = context;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
public boolean isEnabled() {
|
|
19
|
+
NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
|
20
|
+
return nm.getCurrentInterruptionFilter() != NotificationManager.INTERRUPTION_FILTER_ALL;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public void startListening(Runnable callback) {
|
|
24
|
+
this.callback = callback;
|
|
25
|
+
receiver = new BroadcastReceiver() {
|
|
26
|
+
@Override
|
|
27
|
+
public void onReceive(Context context, Intent intent) {
|
|
28
|
+
if (callback != null) callback.run();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
context.registerReceiver(receiver, new IntentFilter(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public void stopListening() {
|
|
35
|
+
if (receiver != null) {
|
|
36
|
+
context.unregisterReceiver(receiver);
|
|
37
|
+
receiver = null;
|
|
38
|
+
}
|
|
10
39
|
}
|
|
11
40
|
}
|
|
@@ -14,14 +14,29 @@ import com.getcapacitor.annotation.Permission;
|
|
|
14
14
|
})
|
|
15
15
|
public class DoNotDisturbPlugin extends Plugin {
|
|
16
16
|
|
|
17
|
-
private DoNotDisturb implementation
|
|
17
|
+
private DoNotDisturb implementation;
|
|
18
18
|
|
|
19
|
-
@
|
|
20
|
-
public void
|
|
21
|
-
|
|
19
|
+
@Override
|
|
20
|
+
public void load() {
|
|
21
|
+
implementation = new DoNotDisturb(getContext());
|
|
22
|
+
implementation.startListening(() -> {
|
|
23
|
+
JSObject ret = new JSObject();
|
|
24
|
+
ret.put("enabled", implementation.isEnabled());
|
|
25
|
+
notifyListeners("monitor", ret);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
22
28
|
|
|
29
|
+
@PluginMethod
|
|
30
|
+
public void monitor(PluginCall call) {
|
|
23
31
|
JSObject ret = new JSObject();
|
|
24
|
-
ret.put("
|
|
32
|
+
ret.put("enabled", implementation.isEnabled());
|
|
25
33
|
call.resolve(ret);
|
|
26
34
|
}
|
|
35
|
+
|
|
36
|
+
@Override
|
|
37
|
+
protected void handleOnDestroy() {
|
|
38
|
+
if (implementation != null) {
|
|
39
|
+
implementation.stopListening();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
27
42
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { registerPlugin } from
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
import { registerPlugin as o } from "@capacitor/core";
|
|
2
|
+
const e = o("DoNotDisturb", {
|
|
3
|
+
web: () => import("../web-DRkBjitQ.mjs").then((t) => new t.DoNotDisturbWeb())
|
|
4
4
|
});
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export {
|
|
6
|
+
e as DoNotDisturb
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { DoNotDisturbPlugin } from './definitions';\n\nconst DoNotDisturb = registerPlugin<DoNotDisturbPlugin>('DoNotDisturb', {\n web: () => import('./web').then(m => new m.DoNotDisturbWeb()),\n});\n\nexport * from './definitions';\nexport { DoNotDisturb };\n"],"names":["DoNotDisturb","registerPlugin","m"],"mappings":";AAIM,MAAAA,IAAeC,EAAmC,gBAAgB;AAAA,EACtE,KAAK,MAAM,OAAO,qBAAO,EAAE,KAAK,CAAKC,MAAA,IAAIA,EAAE,gBAAiB,CAAA;AAC9D,CAAC;"}
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { WebPlugin } from "@capacitor/core";
|
|
2
2
|
import type { DoNotDisturbPlugin } from "./definitions";
|
|
3
3
|
export declare class DoNotDisturbWeb extends WebPlugin implements DoNotDisturbPlugin {
|
|
4
|
-
monitor(): Promise<
|
|
4
|
+
monitor(): Promise<{
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
}>;
|
|
5
7
|
}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var core = require('@capacitor/core');
|
|
4
|
-
|
|
5
|
-
const DoNotDisturb = core.registerPlugin('DoNotDisturb', {
|
|
6
|
-
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.DoNotDisturbWeb()),
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
class DoNotDisturbWeb extends core.WebPlugin {
|
|
10
|
-
monitor() {
|
|
11
|
-
throw new Error("Method not implemented in web.");
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
var web = /*#__PURE__*/Object.freeze({
|
|
16
|
-
__proto__: null,
|
|
17
|
-
DoNotDisturbWeb: DoNotDisturbWeb
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
exports.DoNotDisturb = DoNotDisturb;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@capacitor/core"),o=t.registerPlugin("DoNotDisturb",{web:()=>Promise.resolve().then(()=>require("./web-BMdZ0HQI.js")).then(e=>new e.DoNotDisturbWeb)});exports.DoNotDisturb=o;
|
|
21
2
|
//# sourceMappingURL=plugin.cjs.js.map
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { DoNotDisturbPlugin } from './definitions';\n\nconst DoNotDisturb = registerPlugin<DoNotDisturbPlugin>('DoNotDisturb', {\n web: () => import('./web').then(m => new m.DoNotDisturbWeb()),\n});\n\nexport * from './definitions';\nexport { DoNotDisturb };\n"],"names":["DoNotDisturb","registerPlugin","m"],"mappings":"mHAIMA,EAAeC,iBAAmC,eAAgB,CACtE,IAAK,IAAM,QAAO,QAAA,EAAA,KAAA,IAAA,QAAA,mBAAO,GAAE,KAAUC,GAAA,IAAIA,EAAE,eAAiB,CAC9D,CAAC"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
var capacitorDoNotDisturb = (
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
const DoNotDisturb = core.registerPlugin('DoNotDisturb', {
|
|
5
|
-
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.DoNotDisturbWeb()),
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
class DoNotDisturbWeb extends core.WebPlugin {
|
|
9
|
-
monitor() {
|
|
10
|
-
throw new Error("Method not implemented in web.");
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
var web = /*#__PURE__*/Object.freeze({
|
|
15
|
-
__proto__: null,
|
|
16
|
-
DoNotDisturbWeb: DoNotDisturbWeb
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
exports.DoNotDisturb = DoNotDisturb;
|
|
20
|
-
|
|
21
|
-
return exports;
|
|
22
|
-
|
|
23
|
-
})({}, capacitorExports);
|
|
1
|
+
var capacitorDoNotDisturb=function(t,e){"use strict";const r=e.registerPlugin("DoNotDisturb",{web:()=>Promise.resolve().then(()=>i).then(o=>new o.DoNotDisturbWeb)});class n extends e.WebPlugin{async monitor(){return{enabled:!1}}}const i=Object.freeze(Object.defineProperty({__proto__:null,DoNotDisturbWeb:n},Symbol.toStringTag,{value:"Module"}));return t.DoNotDisturb=r,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({},capacitorExports);
|
|
24
2
|
//# sourceMappingURL=plugin.js.map
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../src/index.ts","../src/web.ts"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { DoNotDisturbPlugin } from './definitions';\n\nconst DoNotDisturb = registerPlugin<DoNotDisturbPlugin>('DoNotDisturb', {\n web: () => import('./web').then(m => new m.DoNotDisturbWeb()),\n});\n\nexport * from './definitions';\nexport { DoNotDisturb };\n","import { WebPlugin } from \"@capacitor/core\";\n\nimport type { DoNotDisturbPlugin } from \"./definitions\";\n\nexport class DoNotDisturbWeb extends WebPlugin implements DoNotDisturbPlugin {\n async monitor(): Promise<{ enabled: boolean }> {\n return { enabled: false };\n }\n}\n"],"names":["DoNotDisturb","registerPlugin","web","m","DoNotDisturbWeb","WebPlugin"],"mappings":"qDAIM,MAAAA,EAAeC,iBAAmC,eAAgB,CACtE,IAAK,IAAM,QAAA,QAAA,EAAA,KAAA,IAAAC,CAAA,EAAgB,KAAUC,GAAA,IAAIA,EAAE,eAAiB,CAC9D,CAAC,ECFM,MAAMC,UAAwBC,EAAAA,SAAwC,CAC3E,MAAM,SAAyC,CACtC,MAAA,CAAE,QAAS,EAAM,CAAA,CAE5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-BMdZ0HQI.js","sources":["../src/web.ts"],"sourcesContent":["import { WebPlugin } from \"@capacitor/core\";\n\nimport type { DoNotDisturbPlugin } from \"./definitions\";\n\nexport class DoNotDisturbWeb extends WebPlugin implements DoNotDisturbPlugin {\n async monitor(): Promise<{ enabled: boolean }> {\n return { enabled: false };\n }\n}\n"],"names":["DoNotDisturbWeb","WebPlugin"],"mappings":"mHAIO,MAAMA,UAAwBC,EAAAA,SAAwC,CAC3E,MAAM,SAAyC,CACtC,MAAA,CAAE,QAAS,EAAM,CAAA,CAE5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-DRkBjitQ.mjs","sources":["../src/web.ts"],"sourcesContent":["import { WebPlugin } from \"@capacitor/core\";\n\nimport type { DoNotDisturbPlugin } from \"./definitions\";\n\nexport class DoNotDisturbWeb extends WebPlugin implements DoNotDisturbPlugin {\n async monitor(): Promise<{ enabled: boolean }> {\n return { enabled: false };\n }\n}\n"],"names":["DoNotDisturbWeb","WebPlugin"],"mappings":";AAIO,MAAMA,UAAwBC,EAAwC;AAAA,EAC3E,MAAM,UAAyC;AACtC,WAAA,EAAE,SAAS,GAAM;AAAA,EAAA;AAE5B;"}
|
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
import Foundation
|
|
2
2
|
|
|
3
3
|
@objc public class DoNotDisturb: NSObject {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
private var callback: (() -> Void)?
|
|
5
|
+
private var timer: Timer?
|
|
6
|
+
private var lastState: Bool = false
|
|
7
|
+
|
|
8
|
+
@objc public func isEnabled() -> Bool {
|
|
9
|
+
return false
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@objc public func startListening(callback: @escaping () -> Void) {
|
|
13
|
+
self.callback = callback
|
|
14
|
+
lastState = isEnabled()
|
|
15
|
+
timer = Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { _ in
|
|
16
|
+
let currentState = self.isEnabled()
|
|
17
|
+
if currentState != self.lastState {
|
|
18
|
+
self.lastState = currentState
|
|
19
|
+
callback()
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@objc public func stopListening() {
|
|
25
|
+
timer?.invalidate()
|
|
26
|
+
timer = nil
|
|
7
27
|
}
|
|
8
28
|
}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import Foundation
|
|
2
2
|
import Capacitor
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Please read the Capacitor iOS Plugin Development Guide
|
|
6
|
-
* here: https://capacitorjs.com/docs/plugins/ios
|
|
7
|
-
*/
|
|
8
4
|
@objc(DoNotDisturbPlugin)
|
|
9
5
|
public class DoNotDisturbPlugin: CAPPlugin {
|
|
10
6
|
private let implementation = DoNotDisturb()
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
public override func load() {
|
|
9
|
+
implementation.startListening {
|
|
10
|
+
self.notifyListeners("monitor", data: [
|
|
11
|
+
"enabled": self.implementation.isEnabled()
|
|
12
|
+
])
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@objc func monitor(_ call: CAPPluginCall) {
|
|
14
17
|
call.resolve([
|
|
15
|
-
"
|
|
18
|
+
"enabled": implementation.isEnabled()
|
|
16
19
|
])
|
|
17
20
|
}
|
|
21
|
+
|
|
22
|
+
deinit {
|
|
23
|
+
implementation.stopListening()
|
|
24
|
+
}
|
|
18
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gachlab/capacitor-dnd-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A plugin to set and monitor the Do Not Disturb state",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -38,16 +38,17 @@
|
|
|
38
38
|
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
39
39
|
"swiftlint": "node-swiftlint",
|
|
40
40
|
"docgen": "docgen --api DoNotDisturbPlugin --output-readme README.md --output-json dist/docs.json",
|
|
41
|
-
"build": "npm run clean && npm run docgen &&
|
|
41
|
+
"build": "npm run clean && npm run docgen && vite build && npm run build:types",
|
|
42
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
42
43
|
"clean": "rimraf ./dist",
|
|
43
|
-
"watch": "
|
|
44
|
+
"watch": "vite build --watch",
|
|
44
45
|
"prepublishOnly": "npm run build"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@capacitor/android": "
|
|
48
|
-
"@capacitor/core": "
|
|
48
|
+
"@capacitor/android": "7.4.2",
|
|
49
|
+
"@capacitor/core": "7.4.2",
|
|
49
50
|
"@capacitor/docgen": "^0.3.0",
|
|
50
|
-
"@capacitor/ios": "
|
|
51
|
+
"@capacitor/ios": "7.4.2",
|
|
51
52
|
"@ionic/eslint-config": "^0.4.0",
|
|
52
53
|
"@ionic/prettier-config": "^4.0.0",
|
|
53
54
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
@@ -55,12 +56,12 @@
|
|
|
55
56
|
"prettier": "^3.4.2",
|
|
56
57
|
"prettier-plugin-java": "^2.6.6",
|
|
57
58
|
"rimraf": "^6.0.1",
|
|
58
|
-
"rollup": "^4.30.1",
|
|
59
59
|
"swiftlint": "^2.0.0",
|
|
60
|
-
"typescript": "~5.3.3"
|
|
60
|
+
"typescript": "~5.3.3",
|
|
61
|
+
"vite": "^5.0.0"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
|
-
"@capacitor/core": ">=7.
|
|
64
|
+
"@capacitor/core": ">=7.4.2"
|
|
64
65
|
},
|
|
65
66
|
"prettier": "@ionic/prettier-config",
|
|
66
67
|
"swiftlint": "@ionic/swiftlint-config",
|
package/dist/docs.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"api": {
|
|
3
|
-
"name": "DoNotDisturbPlugin",
|
|
4
|
-
"slug": "donotdisturbplugin",
|
|
5
|
-
"docs": "",
|
|
6
|
-
"tags": [],
|
|
7
|
-
"methods": [
|
|
8
|
-
{
|
|
9
|
-
"name": "monitor",
|
|
10
|
-
"signature": "() => Promise<any>",
|
|
11
|
-
"parameters": [],
|
|
12
|
-
"returns": "Promise<any>",
|
|
13
|
-
"tags": [],
|
|
14
|
-
"docs": "",
|
|
15
|
-
"complexTypes": [],
|
|
16
|
-
"slug": "monitor"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"properties": []
|
|
20
|
-
},
|
|
21
|
-
"interfaces": [],
|
|
22
|
-
"enums": [],
|
|
23
|
-
"typeAliases": [],
|
|
24
|
-
"pluginConfigs": []
|
|
25
|
-
}
|
package/dist/esm/definitions.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface DoNotDisturbPlugin {\n monitor(): Promise<any>;\n}\n"]}
|
package/dist/esm/web.js
DELETED
package/dist/esm/web.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,OAAO;QACL,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACpD,CAAC;CACF","sourcesContent":["import { WebPlugin } from \"@capacitor/core\";\n\nimport type { DoNotDisturbPlugin } from \"./definitions\";\n\nexport class DoNotDisturbWeb extends WebPlugin implements DoNotDisturbPlugin {\n monitor(): Promise<any> {\n throw new Error(\"Method not implemented in web.\");\n }\n}\n"]}
|