@@ -424,6 +424,14 @@ import static com.reactnativekeysjsi.KeysModule.getSecureFor;
424
424
String secureValue = getSecureFor(" BRANCH_KEY" ); // key_test_omQ7YYKiq57vOqEJsdcsdfeEsiWkwxE
425
425
```
426
426
427
+ #### Android troubleshoot
428
+
429
+ - [ Problems with Proguard] ( #problems-with-proguard )
430
+ - [ 2 files found with path '\*\* /libcrypto.so] ( #2-files-found-with-path-libcryptoso )
431
+ - [ Advanced Android Setup for applicationIdSuffix] ( #advanced-android-setup-1 )
432
+
433
+ ````
434
+
427
435
### iOS
428
436
429
437
#### Public Keys
@@ -439,7 +447,7 @@ NSString *value = [Keys publicFor:@"API_URL"]; // https://example.com
439
447
440
448
// or just fetch all keys
441
449
NSDictionary *allKeys = [Keys public_keys];
442
- ```
450
+ ````
443
451
444
452
#### Secure Keys
445
453
@@ -544,6 +552,22 @@ If using Dexguard, the shrinking phase will remove resources it thinks are unuse
544
552
545
553
-keepresources string/build_config_package
546
554
555
+ ### 2 files found with path '\*\* /libcrypto.so
556
+
557
+ if you face ` 2 files found with path '**/libcrypto.so' ` then
558
+ inside android/app/build.gradle just add this:
559
+
560
+ ```
561
+ android {
562
+ ...
563
+ packagingOptions {
564
+ pickFirst 'lib/x86/libcrypto.so'
565
+ pickFirst 'lib/x86_64/libcrypto.so'
566
+ pickFirst 'lib/armeabi-v7a/libcrypto.so'
567
+ pickFirst 'lib/arm64-v8a/libcrypto.so'
568
+ }
569
+ }
570
+
547
571
### Using node with nvm, fnm or notion
548
572
549
573
Build failure in Xcode looks something like:
@@ -553,35 +577,41 @@ Build failure in Xcode looks something like:
553
577
Change the **Pre-actions script** scripts in Xcode to:
554
578
555
579
```
580
+
556
581
# Setup nvm and set node
582
+
557
583
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
558
584
559
- if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
585
+ if [[ -s "$HOME/.nvm/nvm.sh"]] ; then
560
586
. "$HOME/.nvm/nvm.sh"
561
587
elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]] ; then
562
588
. "$(brew --prefix nvm)/nvm.sh"
563
589
fi
564
590
565
591
# Set up the nodenv node version manager if present
566
- if [[ -x "$HOME/.nodenv/bin/nodenv" ]]; then
592
+
593
+ if [[ -x "$HOME/.nodenv/bin/nodenv"]] ; then
567
594
eval "$("$HOME/.nodenv/bin/nodenv" init -)"
568
595
fi
569
596
570
597
# Set up the fnm node version manager if present
571
- if [[ -s "$HOME/.fnm/fnm" ]]; then
572
- eval "`$HOME/.fnm/fnm env --multi`"
598
+
599
+ if [[ -s "$HOME/.fnm/fnm"]] ; then
600
+ eval "` $HOME/.fnm/fnm env --multi ` "
573
601
fi
574
602
575
603
# Trying notion
604
+
576
605
if [ -z "$NODE_BINARY" ] ; then
577
- if [[ -s "$HOME/.notion/bin/node" ]]; then
606
+ if [[ -s "$HOME/.notion/bin/node"]] ; then
578
607
export NODE_BINARY="$HOME/.notion/bin/node"
579
608
fi
580
609
fi
581
610
582
611
[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"
583
612
584
613
$NODE_BINARY "${SRCROOT}/../node_modules/react-native-keys/keysIOS.js"
614
+
585
615
```
586
616
587
617
# Alternative Package
@@ -597,3 +627,4 @@ If you are using the library in one of your projects, consider supporting it wit
597
627
## Meta
598
628
599
629
Created by [Numan.dev](https://numan.dev/).
630
+ ```
0 commit comments