@capgo/capacitor-mute 2.0.13 → 6.0.1

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.
@@ -11,7 +11,7 @@ buildscript {
11
11
  google()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:8.0.0'
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.plugin.mute"
22
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
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 : 33
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/esm/web.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { WebPlugin } from "@capacitor/core";
2
2
  export class MuteWeb extends WebPlugin {
3
3
  async isMuted() {
4
- console.log("isMuted");
5
4
  throw new Error("Method not implemented.");
6
5
  }
7
6
  }
@@ -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,OAAQ,SAAQ,SAAS;IACpC,KAAK,CAAC,OAAO;QACX,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF"}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF"}
@@ -8,7 +8,6 @@ const Mute = core.registerPlugin("Mute", {
8
8
 
9
9
  class MuteWeb extends core.WebPlugin {
10
10
  async isMuted() {
11
- console.log("isMuted");
12
11
  throw new Error("Method not implemented.");
13
12
  }
14
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst Mute = registerPlugin(\"Mute\", {\n web: () => import(\"./web\").then((m) => new m.MuteWeb()),\n});\nexport * from \"./definitions\";\nexport { Mute };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class MuteWeb extends WebPlugin {\n async isMuted() {\n console.log(\"isMuted\");\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,IAAI,GAAGA,mBAAc,CAAC,MAAM,EAAE;AACpC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;AAC3D,CAAC;;ACFM,MAAM,OAAO,SAASC,cAAS,CAAC;AACvC,IAAI,MAAM,OAAO,GAAG;AACpB,QAAQ,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAC/B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst Mute = registerPlugin(\"Mute\", {\n web: () => import(\"./web\").then((m) => new m.MuteWeb()),\n});\nexport * from \"./definitions\";\nexport { Mute };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class MuteWeb extends WebPlugin {\n async isMuted() {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,IAAI,GAAGA,mBAAc,CAAC,MAAM,EAAE;AACpC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;AAC3D,CAAC;;ACFM,MAAM,OAAO,SAASC,cAAS,CAAC;AACvC,IAAI,MAAM,OAAO,GAAG;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AACnD,KAAK;AACL;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -7,7 +7,6 @@ var capacitorMute = (function (exports, core) {
7
7
 
8
8
  class MuteWeb extends core.WebPlugin {
9
9
  async isMuted() {
10
- console.log("isMuted");
11
10
  throw new Error("Method not implemented.");
12
11
  }
13
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst Mute = registerPlugin(\"Mute\", {\n web: () => import(\"./web\").then((m) => new m.MuteWeb()),\n});\nexport * from \"./definitions\";\nexport { Mute };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class MuteWeb extends WebPlugin {\n async isMuted() {\n console.log(\"isMuted\");\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,IAAI,GAAGA,mBAAc,CAAC,MAAM,EAAE;IACpC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;IAC3D,CAAC;;ICFM,MAAM,OAAO,SAASC,cAAS,CAAC;IACvC,IAAI,MAAM,OAAO,GAAG;IACpB,QAAQ,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC/B,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst Mute = registerPlugin(\"Mute\", {\n web: () => import(\"./web\").then((m) => new m.MuteWeb()),\n});\nexport * from \"./definitions\";\nexport { Mute };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class MuteWeb extends WebPlugin {\n async isMuted() {\n throw new Error(\"Method not implemented.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,IAAI,GAAGA,mBAAc,CAAC,MAAM,EAAE;IACpC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;IAC3D,CAAC;;ICFM,MAAM,OAAO,SAASC,cAAS,CAAC;IACvC,IAAI,MAAM,OAAO,GAAG;IACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,KAAK;IACL;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-mute",
3
- "version": "2.0.13",
3
+ "version": "6.0.1",
4
4
  "description": "Detect if the mute switch is enabled/disabled on a device",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -34,7 +34,7 @@
34
34
  "verify:web": "npm run build",
35
35
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
36
36
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
37
- "eslint": "eslint . --ext ts",
37
+ "eslint": "eslint .",
38
38
  "prettier": "prettier --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"",
39
39
  "swiftlint": "node-swiftlint",
40
40
  "docgen": "docgen --api MutePlugin --output-readme README.md --output-json dist/docs.json",
@@ -44,34 +44,31 @@
44
44
  "prepublishOnly": "npm run build"
45
45
  },
46
46
  "devDependencies": {
47
- "@capacitor/android": "^5.0.3",
48
- "@capacitor/cli": "^5.0.3",
49
- "@capacitor/core": "^5.0.0",
50
- "@capacitor/docgen": "^0.2.1",
51
- "@capacitor/ios": "^5.0.3",
47
+ "@capacitor/android": "^6.0.0",
48
+ "@capacitor/cli": "^6.0.0",
49
+ "@capacitor/core": "^6.0.0",
50
+ "@capacitor/docgen": "^0.2.2",
51
+ "@capacitor/ios": "^6.0.0",
52
52
  "@ionic/eslint-config": "^0.3.0",
53
- "@ionic/prettier-config": "^3.0.0",
53
+ "@ionic/prettier-config": "^4.0.0",
54
54
  "@ionic/swiftlint-config": "^1.1.2",
55
- "@typescript-eslint/eslint-plugin": "^5.59.2",
56
- "@typescript-eslint/parser": "^5.59.6",
57
- "eslint": "^8.41.0",
58
- "eslint-plugin-import": "^2.27.5",
59
- "husky": "^8.0.3",
60
- "prettier": "^2.8.8",
61
- "prettier-plugin-java": "^2.1.0",
62
- "rimraf": "^5.0.1",
63
- "rollup": "^3.23.0",
55
+ "@typescript-eslint/eslint-plugin": "^7.8.0",
56
+ "@typescript-eslint/parser": "^7.8.0",
57
+ "eslint": "^9.1.1",
58
+ "eslint-plugin-import": "^2.29.1",
59
+ "husky": "^9.0.11",
60
+ "prettier": "^3.2.5",
61
+ "prettier-plugin-java": "^2.6.0",
62
+ "rimraf": "^5.0.5",
63
+ "rollup": "^4.17.1",
64
64
  "swiftlint": "^1.0.2",
65
- "typescript": "^5.0.4"
65
+ "typescript": "^5.4.5"
66
66
  },
67
67
  "peerDependencies": {
68
- "@capacitor/core": "^5.0.0"
68
+ "@capacitor/core": "^6.0.0"
69
69
  },
70
70
  "prettier": "@ionic/prettier-config",
71
71
  "swiftlint": "@ionic/swiftlint-config",
72
- "eslintConfig": {
73
- "extends": "@ionic/eslint-config/recommended"
74
- },
75
72
  "capacitor": {
76
73
  "ios": {
77
74
  "src": "ios"