Skip to content

Commit df1b4f8

Browse files
committed
chore: fix debugging mode detection for new arch
1 parent fe722ef commit df1b4f8

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ FastOpenpgp_kotlinVersion=1.7.0
22
FastOpenpgp_minSdkVersion=21
33
FastOpenpgp_targetSdkVersion=33
44
FastOpenpgp_compileSdkVersion=33
5-
FastOpenpgp_ndkversion=23.1.7779620
5+
FastOpenpgp_ndkversion=28.0.13004108

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-fast-openpgp",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "library for use openPGP",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ import './shim';
3434

3535
const FastOpenPGPNativeModules = (NativeModules as NativeModulesDef)
3636
.FastOpenpgp;
37-
const isDebuggingEnabled = typeof atob !== 'undefined';
37+
const isDebuggingEnabled =
38+
typeof atob !== 'undefined' && typeof HermesInternal === 'undefined';
3839

3940
typeof global.FastOpenPGPCallPromise === 'undefined' &&
4041
!isDebuggingEnabled &&

src/utils/text-decoder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { NativeModules } from 'react-native';
22

33
const FastOpenPGPNativeModules = (NativeModules as NativeModulesDef)
44
.FastOpenpgp;
5-
const isDebuggingEnabled = typeof atob !== 'undefined';
5+
const isDebuggingEnabled =
6+
typeof atob !== 'undefined' && typeof HermesInternal === 'undefined';
67

78
typeof global.FastOpenPGPDecodeText === 'undefined' &&
89
!isDebuggingEnabled &&

src/utils/text-encoder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { NativeModules } from 'react-native';
22

33
const FastOpenPGPNativeModules = (NativeModules as NativeModulesDef)
44
.FastOpenpgp;
5-
const isDebuggingEnabled = typeof atob !== 'undefined';
5+
const isDebuggingEnabled =
6+
typeof atob !== 'undefined' && typeof HermesInternal === 'undefined';
67

78
typeof global.FastOpenPGPEncodeText === 'undefined' &&
89
!isDebuggingEnabled &&

0 commit comments

Comments
 (0)