@brucewayne1939/sword-security 0.0.8 → 0.0.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 (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,13 +7,13 @@ this plugin enables the app to use security features
7
7
  To use npm
8
8
 
9
9
  ```bash
10
- npm install sword-security
10
+ npm install @brucewayne1939/sword-security
11
11
  ````
12
12
 
13
13
  To use yarn
14
14
 
15
15
  ```bash
16
- yarn add sword-security
16
+ yarn add @brucewayne1939/sword-security
17
17
  ```
18
18
 
19
19
  Sync native files
@@ -27,7 +27,7 @@ npx cap sync
27
27
  Add the following to your `app.component.ts`:
28
28
 
29
29
  ```typescript
30
- import { Security } from 'sword-security';
30
+ import { SwordSecurityPlugin } from '@brucewayne1939/sword-security';
31
31
 
32
32
  @Component({
33
33
  // ...
@@ -50,8 +50,8 @@ export class AppComponent implements OnInit {
50
50
 
51
51
  async checkDeviceSecurity() {
52
52
  try {
53
- const rootResult = await Security.isRooted();
54
- const devResult = await Security.isDeveloperModeEnabled();
53
+ const rootResult = await SwordSecurityPlugin.isRooted();
54
+ const devResult = await SwordSecurityPlugin.isDeveloperModeEnabled();
55
55
  console.log('Rooted:', rootResult.rooted);
56
56
  console.log('Developer Mode:', devResult.enabled);
57
57
 
@@ -69,7 +69,7 @@ export class AppComponent implements OnInit {
69
69
  text: 'Open Settings',
70
70
  handler: async () => {
71
71
  this.securityPopupOpen = false;
72
- await Security.openDeveloperSettings();
72
+ await SwordSecurityPlugin.openDeveloperSettings();
73
73
  }
74
74
  }
75
75
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brucewayne1939/sword-security",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "this plugin enables the app to use security features",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",