Skip to content

Commit 8b20dd3

Browse files
authored
Merge pull request #86310 from software-mansion-labs/mrejdak/integrate-new-biometry-lib-PoC
Integrate new native biometrics library
2 parents d5ba722 + 7f32516 commit 8b20dd3

42 files changed

Lines changed: 2057 additions & 81 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@
653653
"Salagatan",
654654
"samltool",
655655
"Saqbd",
656+
"sbaiahmed",
656657
"SBFJ",
657658
"Scaleway",
658659
"Scaleway's",

ios/Podfile.lock

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3515,6 +3515,34 @@ PODS:
35153515
- React-perflogger (= 0.83.1)
35163516
- React-utils (= 0.83.1)
35173517
- SocketRocket
3518+
- ReactNativeBiometrics (0.14.0):
3519+
- boost
3520+
- DoubleConversion
3521+
- fast_float
3522+
- fmt
3523+
- glog
3524+
- hermes-engine
3525+
- RCT-Folly
3526+
- RCT-Folly/Fabric
3527+
- RCTRequired
3528+
- RCTTypeSafety
3529+
- React-Core
3530+
- React-debug
3531+
- React-Fabric
3532+
- React-featureflags
3533+
- React-graphics
3534+
- React-ImageManager
3535+
- React-jsi
3536+
- React-NativeModulesApple
3537+
- React-RCTFabric
3538+
- React-renderercss
3539+
- React-rendererdebug
3540+
- React-utils
3541+
- ReactCodegen
3542+
- ReactCommon/turbomodule/bridging
3543+
- ReactCommon/turbomodule/core
3544+
- SocketRocket
3545+
- Yoga
35183546
- ReactNativeHybridApp (0.0.0):
35193547
- boost
35203548
- DoubleConversion
@@ -4356,6 +4384,7 @@ DEPENDENCIES:
43564384
- ReactAppDependencyProvider (from `build/generated/ios/ReactAppDependencyProvider`)
43574385
- ReactCodegen (from `build/generated/ios/ReactCodegen`)
43584386
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
4387+
- "ReactNativeBiometrics (from `../node_modules/@sbaiahmed1/react-native-biometrics`)"
43594388
- "ReactNativeHybridApp (from `../node_modules/@expensify/react-native-hybrid-app`)"
43604389
- "RNAppleAuthentication (from `../node_modules/@invertase/react-native-apple-authentication`)"
43614390
- "RNCClipboard (from `../node_modules/@react-native-clipboard/clipboard`)"
@@ -4676,6 +4705,8 @@ EXTERNAL SOURCES:
46764705
:path: build/generated/ios/ReactCodegen
46774706
ReactCommon:
46784707
:path: "../node_modules/react-native/ReactCommon"
4708+
ReactNativeBiometrics:
4709+
:path: "../node_modules/@sbaiahmed1/react-native-biometrics"
46794710
ReactNativeHybridApp:
46804711
:path: "../node_modules/@expensify/react-native-hybrid-app"
46814712
RNAppleAuthentication:
@@ -4887,6 +4918,7 @@ SPEC CHECKSUMS:
48874918
ReactAppDependencyProvider: 0eb286cc274abb059ee601b862ebddac2e681d01
48884919
ReactCodegen: d663254bf59e57e5ed7c65638bd45f358a373bba
48894920
ReactCommon: 15e1e727fa34f760beb7dd52928687fda8edf8dc
4921+
ReactNativeBiometrics: f2356e3e148ff77f0e4763b4b79183eaa044a0dd
48904922
ReactNativeHybridApp: 16ebccf5382436fcb9303ab5f4b50d9942bccf5c
48914923
RNAppleAuthentication: 9027af8aa92b4719ef1b6030a8e954d37079473a
48924924
RNCClipboard: e560338bf6cc4656a09ff90610b62ddc0dbdad65

jest/setup.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,16 @@ jest.mock('@shopify/react-native-skia', () => ({
322322
listFontFamilies: jest.fn(() => []),
323323
}));
324324

325+
jest.mock('@sbaiahmed1/react-native-biometrics', () => ({
326+
isSensorAvailable: jest.fn(() => Promise.resolve({available: false})),
327+
createKeys: jest.fn(() => Promise.resolve({publicKey: ''})),
328+
deleteKeys: jest.fn(() => Promise.resolve({success: true})),
329+
getAllKeys: jest.fn(() => Promise.resolve({keys: []})),
330+
signWithOptions: jest.fn(() => Promise.resolve({success: false})),
331+
sha256: jest.fn(() => Promise.resolve({hash: ''})),
332+
InputEncoding: {Base64: 'base64', Utf8: 'utf8'},
333+
}));
334+
325335
jest.mock('victory-native', () => ({
326336
Bar: jest.fn(() => null),
327337
CartesianChart: jest.fn(

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"@react-navigation/stack": "7.8.5",
112112
"@react-ng/bounds-observer": "^0.2.1",
113113
"@rnmapbox/maps": "10.1.44",
114+
"@sbaiahmed1/react-native-biometrics": "0.14.0",
114115
"@sentry/react-native": "8.2.0",
115116
"@shopify/flash-list": "2.3.0",
116117
"@shopify/react-native-skia": "^2.4.14",

0 commit comments

Comments
 (0)