@novastera-oss/nitro-metamask 0.4.4 → 0.4.5
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/android/build.gradle +4 -0
- package/android/proguard-rules.pro +14 -0
- package/package.json +2 -1
package/android/build.gradle
CHANGED
|
@@ -45,6 +45,10 @@ android {
|
|
|
45
45
|
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
46
46
|
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
47
47
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
48
|
+
|
|
49
|
+
// Automatically include ProGuard rules for consumers of this library
|
|
50
|
+
// This ensures NitroMetamask classes are not stripped in release builds
|
|
51
|
+
consumerProguardFiles "proguard-rules.pro"
|
|
48
52
|
|
|
49
53
|
externalNativeBuild {
|
|
50
54
|
cmake {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# ProGuard rules for @novastera-oss/nitro-metamask
|
|
2
|
+
# These rules are automatically included when the library is used in release builds
|
|
3
|
+
|
|
4
|
+
# NitroModules - Required to prevent classes from being stripped
|
|
5
|
+
-keep class com.margelo.nitro.** { *; }
|
|
6
|
+
-keepclassmembers class com.margelo.nitro.** { *; }
|
|
7
|
+
|
|
8
|
+
# NitroMetamask - Required to prevent HybridNitroMetamask from being stripped
|
|
9
|
+
-keep class com.margelo.nitro.nitrometamask.** { *; }
|
|
10
|
+
-keepclassmembers class com.margelo.nitro.nitrometamask.** { *; }
|
|
11
|
+
|
|
12
|
+
# MetaMask Android SDK - Keep MetaMask SDK classes
|
|
13
|
+
-keep class io.metamask.androidsdk.** { *; }
|
|
14
|
+
-keepclassmembers class io.metamask.androidsdk.** { *; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novastera-oss/nitro-metamask",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Native mobile MetaMask wallet integration for React Native. Part of Novastera CRM/ERP platform ecosystem. Provides secure authentication and message signing for Web3 mobile applications.",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"android/fix-prefab.gradle",
|
|
45
45
|
"android/gradle.properties",
|
|
46
46
|
"android/CMakeLists.txt",
|
|
47
|
+
"android/proguard-rules.pro",
|
|
47
48
|
"android/src",
|
|
48
49
|
"ios/**/*.h",
|
|
49
50
|
"ios/**/*.m",
|