Skip to content

Commit

Permalink
Merge branch 'release/1.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
erodriguezh86 committed Apr 14, 2020
2 parents fbcad7e + 4d36a0b commit 8e6db0b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ The plugin will request more or less permission items depending on the Android v
| simSerialNumber | android | 5.1 (Api: 22) | - | string | Returns SIM unique serial number (ICCID). |
| networkType | android | 7 (Api: 24) | - | number - null | Returns a constant indicating the radio technology (network type) currently in use on the device for data transmission. |
| deviceImei | android | 8 (Api: 26) | - | string | returns IMEI for GSM. |
| simId | android | 10 (Api: 29) | - | number - null | Returns the card ID of the SIM. |
| carrierId | android | 10 (Api: 29) | - | number - null | Returns the carrier ID of the SIM. |
| isDefaultSim | android | - | - | boolean - null | Returns true if the sim is considered the default. |
| allowsVOIP | ios | - | 1 | boolean - null | Indicates if the carrier allows making VoIP calls on its network. | |

Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-sim-info",
"version": "1.1.1",
"version": "1.1.2",
"description": "A Nativescript plugin for getting info from the sim card.",
"main": "sim-info",
"typings": "index.d.ts",
Expand Down
9 changes: 0 additions & 9 deletions src/sim-info.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,6 @@ export class SimInfo {
simSerialNumber: subscriber.getIccId() || '',
isDefaultSim: false,
};

if (this.apiLevel >= 29) {
data = Object.assign({}, data, {
simId: subscriber.getCardId() || null,
carrierId: subscriber.getCarrierId() || null,
mcc: subscriber.getMccString() || '',
mnc: subscriber.getMncString() || '',
});
}
return data;
}

Expand Down
2 changes: 0 additions & 2 deletions src/sim-info.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ export interface SimData {
mnc?: string | number | null;
allowsVOIP?: boolean | null;
isDefaultSim?: boolean | null;
simId?: number | null;
carrierId?: number | null;
}

0 comments on commit 8e6db0b

Please sign in to comment.