@capgo/capacitor-sim 8.0.40 → 8.0.42

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 CHANGED
@@ -1,11 +1,27 @@
1
1
  # @capgo/capacitor-sim
2
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-sim" alt="Capgo - Instant updates for Capacitor" /></a>
2
+
3
+ Read SIM card details in your Capacitor app, including carrier, country and network codes, with multiple active subscriptions on Android.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_sim"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-sim" alt="Capgo - Instant updates for Capacitor" /></a>
3
6
 
4
7
  <div align="center">
5
- <h2><a href="https://capgo.app/?ref=plugin_sim"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
- <h2><a href="https://capgo.app/consulting/?ref=plugin_sim"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
8
+ <p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
9
+ <h2><a href="https://capgo.app/register/?ref=plugin_sim">➡️ Get started for free</a></h2>
10
+ <p>14-day unlimited free trial. No credit card required</p>
11
+ <p><a href="https://capgo.app/consulting/?ref=plugin_sim">Missing a feature? We'll build the plugin for you 💪</a></p>
7
12
  </div>
8
- Capacitor plugin to get information from device's sim cards
13
+
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-sim/main/assets/github-social-preview.png" alt="@capgo/capacitor-sim for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
19
+
20
+ - **SIM info**: `getSimCards()` returns the available SIM records with carrier name, ISO country code, MCC and MNC.
21
+ - **Android subscriptions**: one entry per active subscription with its slot index and, when available, the phone number.
22
+ - **Permissions**: `checkPermissions()` and `requestPermissions()` for phone state access on Android.
23
+ - **iOS**: carrier data from Core Telephony. On iOS 16.4 and later the system may return `65535`, `--` or empty strings instead of real values.
24
+ - **Platforms**: iOS and Android. Not available on web.
9
25
 
10
26
  ## Documentation
11
27
 
@@ -28,7 +28,7 @@ import java.util.List;
28
28
  )
29
29
  public class SimPlugin extends Plugin {
30
30
 
31
- private final String pluginVersion = "8.0.40";
31
+ private final String pluginVersion = "8.0.42";
32
32
 
33
33
  static final String READ_PHONE_STATE = "readPhoneState";
34
34
  static final String READ_PHONE_NUMBERS = "readPhoneNumbers";
@@ -4,7 +4,7 @@ import Foundation
4
4
 
5
5
  @objc(SimPlugin)
6
6
  public class SimPlugin: CAPPlugin, CAPBridgedPlugin {
7
- private let pluginVersion: String = "8.0.40"
7
+ private let pluginVersion: String = "8.0.42"
8
8
  public let identifier = "SimPlugin"
9
9
  public let jsName = "Sim"
10
10
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-sim",
3
- "version": "8.0.40",
3
+ "version": "8.0.42",
4
4
  "description": "Capacitor plugin to get information from device's sim cards",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",