Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: ./.github/actions/setup

- name: Run unit tests
run: pnpm test --maxWorkers=2 --coverage
run: pnpm test -- --maxWorkers=2 --coverage

build-library:
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
## Installation

```sh
npm install react-native-shield
npm install @thinkgrid-labs/react-native-shield
# or
yarn add react-native-shield
yarn add @thinkgrid-labs/react-native-shield
# or
pnpm add react-native-shield
pnpm add @thinkgrid-labs/react-native-shield
```

### iOS Setup
Expand All @@ -37,7 +37,7 @@ cd ios && pod install
Import the library in your component:

```tsx
import { isRooted, addSSLPinning, preventScreenshot } from 'react-native-shield';
import { isRooted, addSSLPinning, preventScreenshot } from '@thinkgrid-labs/react-native-shield';
```

### 1. Device Integrity (Root/Jailbreak Detection)
Expand Down Expand Up @@ -116,7 +116,7 @@ preventScreenshot(false);
Store sensitive data (like auth tokens, API keys) securely.

```tsx
import { setSecureString, getSecureString, removeSecureString } from 'react-native-shield';
import { setSecureString, getSecureString, removeSecureString } from '@thinkgrid-labs/react-native-shield';

const manageSecrets = async () => {
// 1. Save a secret
Expand Down
2 changes: 1 addition & 1 deletion Shield.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Pod::Spec.new do |s|
s.authors = package["author"]

s.platforms = { :ios => min_ios_version_supported }
s.source = { :git => "https://github.com/akosidencio/react-native-shield.git.git", :tag => "#{s.version}" }
s.source = { :git => "https://github.com/ThinkGrid-Labs/react-native-shield.git", :tag => "#{s.version}" }

s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
s.private_header_files = "ios/**/*.h"
Expand Down
3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
"@react-native/metro-config": "0.83.0",
"@react-native/typescript-config": "0.83.0",
"@types/react": "^19.2.0",
"@react-native/gradle-plugin": "0.83.0",
"react-native-builder-bob": "^0.40.17",
"react-native-monorepo-config": "^0.3.1"
},
"engines": {
"node": ">=20"
}
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@akosidencio/react-native-shield",
"version": "0.2.0",
"name": "@thinkgrid-labs/react-native-shield",
"version": "0.1.0",
"description": "All-in-one security suite",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down Expand Up @@ -47,14 +47,14 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/akosidencio/react-native-shield.git.git"
"url": "git+https://github.com/ThinkGrid-Labs/react-native-shield.git"
},
"author": "AkosiDencio <dtpaler@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/akosidencio/react-native-shield.git/issues"
"url": "https://github.com/ThinkGrid-Labs/react-native-shield/issues"
},
"homepage": "https://github.com/akosidencio/react-native-shield.git#readme",
"homepage": "https://github.com/ThinkGrid-Labs/react-native-shield#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
Expand Down