jscrambler-metro-plugin 9.1.0 → 9.1.1
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 +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# 
|
|
2
|
-
# Jscrambler Code Integrity for React-Native and Vega
|
|
2
|
+
# Jscrambler Code Integrity for React-Native and Vega OS
|
|
3
3
|
|
|
4
4
|
Jscrambler [Code Integrity](https://jscrambler.com/code-integrity) is a JavaScript protection technology for Web and Mobile Applications. Its main purpose is to enable JavaScript applications to become self-defensive and resilient to tampering and reverse engineering.
|
|
5
5
|
|
|
@@ -19,7 +19,7 @@ Please make sure you install the right version, otherwise some functionalities m
|
|
|
19
19
|
|
|
20
20
|
# Usage
|
|
21
21
|
|
|
22
|
-
This
|
|
22
|
+
This plugin uses Jscrambler to protect your [React Native](https://reactnative.dev/) bundles built with Expo or the Community CLI, as well as your [Vega OS](https://developer.amazon.com/apps-and-games/vega) bundles.
|
|
23
23
|
|
|
24
24
|
First install the **jscrambler-metro-plugin** as a development dependency
|
|
25
25
|
|
|
@@ -30,7 +30,14 @@ npm install -D jscrambler-metro.plugin
|
|
|
30
30
|
Then, set up the plugin in your `metro.config.js` by adding the following code:
|
|
31
31
|
|
|
32
32
|
```js
|
|
33
|
+
// For React-Native Community CLI or Vega OS, import getDefaultConfig and mergeConfig from @react-native/metro-config
|
|
33
34
|
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
|
35
|
+
|
|
36
|
+
// For Expo, import getDefaultConfig from expo/metro-config and mergeConfig from @react-native/metro-config
|
|
37
|
+
const { getDefaultConfig } = require("expo/metro-config");
|
|
38
|
+
const { mergeConfig } = require('@react-native/metro-config');
|
|
39
|
+
|
|
40
|
+
// Import Jscrambler Metro Plugin
|
|
34
41
|
const jscramblerMetroPlugin = require('jscrambler-metro-plugin')();
|
|
35
42
|
|
|
36
43
|
/**
|