@capgo/capacitor-mute 1.1.7 → 1.1.9

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.
Files changed (3) hide show
  1. package/README.md +31 -0
  2. package/package.json +2 -3
  3. package/Podfile +0 -10
package/README.md CHANGED
@@ -14,6 +14,37 @@ npm install @capgo/capacitor-mute
14
14
  npx cap sync
15
15
  ```
16
16
 
17
+ ## Know issue
18
+
19
+ On IOS with Xcode 14 the lib use under the hood `Mute` is not configured as Apple expect anymore, it's not the only one having the issue as you can see here :
20
+ https://github.com/CocoaPods/CocoaPods/issues/8891
21
+
22
+ Solution:
23
+ Replace this to your Podfile:
24
+ ```ruby
25
+ post_install do |installer|
26
+ assertDeploymentTarget(installer)
27
+ end
28
+ ```
29
+ By
30
+ ```ruby
31
+ post_install do |installer|
32
+ assertDeploymentTarget(installer)
33
+ installer.pods_project.targets.each do |target|
34
+ if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
35
+ target.build_configurations.each do |config|
36
+ config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
37
+ end
38
+ end
39
+ end
40
+ end
41
+ ```
42
+ That should solve your issue.
43
+ I did open issue in the original repo to see if they can fix it:
44
+ https://github.com/akramhussein/Mute/issues/16
45
+ If no answer I will add the code directly to capacitor-mute
46
+
47
+
17
48
  ## API
18
49
 
19
50
  <docgen-index>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-mute",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
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",
@@ -11,8 +11,7 @@
11
11
  "android/build.gradle",
12
12
  "dist/",
13
13
  "ios/Plugin/",
14
- "CapgoCapacitorMute.podspec",
15
- "Podfile"
14
+ "CapgoCapacitorMute.podspec"
16
15
  ],
17
16
  "author": "Martin donadieu",
18
17
  "license": "MIT",
package/Podfile DELETED
@@ -1,10 +0,0 @@
1
-
2
- post_install do |installer|
3
- installer.pods_project.targets.each do |target|
4
- if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
5
- target.build_configurations.each do |config|
6
- config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
7
- end
8
- end
9
- end
10
- end