Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30" />
<uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30"/>
<uses-feature android:name="android.hardware.nfc.hce" android:required="false" />

<application
Expand Down
72 changes: 70 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
PODS:
- BleUtils (0.1.4):
- boost
- DoubleConversion
- fast_float
- fmt
- glog
- hermes-engine
- RCT-Folly
- RCT-Folly/Fabric
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-jsi
- React-NativeModulesApple
- React-RCTFabric
- React-renderercss
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- boost (1.84.0)
- BVLinearGradient (2.8.3):
- React-Core
Expand Down Expand Up @@ -126,6 +154,7 @@ PODS:
- libwebp/webp (1.5.0):
- libwebp/sharpyuv
- MMKVCore (2.4.0)
- MultiplatformBleAdapter (0.2.0)
- nanopb (3.30910.0):
- nanopb/decode (= 3.30910.0)
- nanopb/encode (= 3.30910.0)
Expand Down Expand Up @@ -2134,6 +2163,35 @@ PODS:
- React-Core
- react-native-biometrics (2.2.0):
- React-Core
- react-native-ble-plx (3.5.0):
- boost
- DoubleConversion
- fast_float
- fmt
- glog
- hermes-engine
- MultiplatformBleAdapter (= 0.2.0)
- RCT-Folly
- RCT-Folly/Fabric
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-jsi
- React-NativeModulesApple
- React-RCTFabric
- React-renderercss
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- react-native-blob-util (0.24.7):
- boost
- DoubleConversion
Expand Down Expand Up @@ -3541,6 +3599,7 @@ PODS:
- ZXingObjC/All (3.6.9)

DEPENDENCIES:
- "BleUtils (from `../node_modules/@onekeyfe/react-native-ble-utils`)"
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
- BVLinearGradient (from `../node_modules/react-native-linear-gradient`)
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
Expand Down Expand Up @@ -3598,6 +3657,7 @@ DEPENDENCIES:
- React-mutationobservernativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/mutationobserver`)
- react-native-background-timer (from `../node_modules/react-native-background-timer`)
- react-native-biometrics (from `../node_modules/react-native-biometrics`)
- react-native-ble-plx (from `../node_modules/react-native-ble-plx`)
- react-native-blob-util (from `../node_modules/react-native-blob-util`)
- react-native-change-icon (from `../node_modules/react-native-change-icon`)
- react-native-config (from `../node_modules/react-native-config`)
Expand Down Expand Up @@ -3682,6 +3742,7 @@ SPEC REPOS:
- GoogleUtilities
- libwebp
- MMKVCore
- MultiplatformBleAdapter
- nanopb
- PDFGenerator
- PromisesObjC
Expand All @@ -3693,6 +3754,8 @@ SPEC REPOS:
- ZXingObjC

EXTERNAL SOURCES:
BleUtils:
:path: "../node_modules/@onekeyfe/react-native-ble-utils"
boost:
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
BVLinearGradient:
Expand Down Expand Up @@ -3798,6 +3861,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-background-timer"
react-native-biometrics:
:path: "../node_modules/react-native-biometrics"
react-native-ble-plx:
:path: "../node_modules/react-native-ble-plx"
react-native-blob-util:
:path: "../node_modules/react-native-blob-util"
react-native-change-icon:
Expand Down Expand Up @@ -3943,6 +4008,7 @@ CHECKOUT OPTIONS:
:git: https://github.com/bithyve/libportal-ios.git

SPEC CHECKSUMS:
BleUtils: 0fd18e5fd2732c89771dc79941c7320ac9c42015
boost: 7e761d76ca2ce687f7cc98e698152abd03a18f90
BVLinearGradient: cb006ba232a1f3e4f341bb62c42d1098c284da70
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
Expand All @@ -3956,15 +4022,16 @@ SPEC CHECKSUMS:
FirebaseInstallations: 047343aa91fd6a1ebfa3eb374ddecf36a8aaddfd
FirebaseMessaging: ed18fb50634e6e85b5d3e77e628c21e2c928cc53
fmt: 530618a01105dae0fa3a2f27c81ae11fa8f67eac
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
glog: eb93e2f488219332457c3c4eafd2738ddc7e80b8
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1
hermes-engine: aa404dd2f865314cd211641ddff59d06039dbcf1
hermes-engine: d964ee751f070aa0180450bfb8276807f12a2281
HtmlToPdf: 6a9c28f54ec810d1d120a698a9b3c83e2bdb1672
libportal-ios: d9aa55474e2d5be8e38e96345dd37be34fda45b4
libportal-react-native: 91b6bec36f7e92a0bcc4e9d51d6ce3ee7c163728
libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8
MMKVCore: 3d16ce9f7d411e135020915fde98a056859a1efa
MultiplatformBleAdapter: b1fddd0d499b96b607e00f0faa8e60648343dc1d
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
NitroMmkv: 320feb7789986e3ba45582d5c630ebcfeca807ae
NitroModules: ea5dc6c43666f4a75e71e372eaca6d3605856e51
Expand Down Expand Up @@ -4010,6 +4077,7 @@ SPEC CHECKSUMS:
React-mutationobservernativemodule: 867e9c215f21b4308fa98473f3c38585b5897e44
react-native-background-timer: 4638ae3bee00320753647900b21260b10587b6f7
react-native-biometrics: ecca256a9e1c8b430f78c4e3dcb16b57ea1418e0
react-native-ble-plx: effae4e8e465c52768497f87abd2b95791eb2de2
react-native-blob-util: 6dec9023ecc3ee5ac8ad377598e943f9ca63f741
react-native-change-icon: 2abab62ecabf10adf6e03cc9516484a27385b580
react-native-config: 8e425892a531627c52db765be3088185cb871e19
Expand Down
40 changes: 10 additions & 30 deletions ios/hexa_keeper.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions ios/hexa_keeper/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
<key>NSAllowsLocalNetworking</key>
<true/>
</dict>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Allow Keeper to scan and connect to your OneKey hardware wallet over Bluetooth</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Allow Keeper to scan and connect to your OneKey hardware wallet over Bluetooth</string>
<key>NSCameraUsageDescription</key>
<string>Please allow camera access for QR scanner</string>
<key>NSContactsUsageDescription</key>
Expand Down
4 changes: 4 additions & 0 deletions ios/hexa_keeper_dev-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
<true/>
<key>NFCReaderUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to interact with nearby NFC devices</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to scan and connect to your OneKey hardware wallet over Bluetooth</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to scan and connect to your OneKey hardware wallet over Bluetooth</string>
<key>NSAppTransportSecurity</key>
<dict>
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
Expand Down
2 changes: 2 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const config = {
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
// OneKey hd-core uses package.json "exports" field
unstable_enablePackageExports: true,
},
};

Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
"@bitcoinerlab/miniscript": "1.4.0",
"@gluestack-ui/themed-native-base": "0.1.108",
"@ngraveio/bc-ur": "1.1.6",
"@noble/hashes": "^1.3.3",
"@noble/secp256k1": "1.6.3",
"@onekeyfe/hd-ble-sdk": "1.1.16",
"@onekeyfe/hd-core": "1.1.16",
"@onekeyfe/react-native-ble-utils": "^0.1.4",
"@react-native-clipboard/clipboard": "1.16.2",
"@react-native-community/netinfo": "11.4.1",
"@react-native-firebase/app": "24.0.0",
Expand Down Expand Up @@ -75,6 +79,7 @@
"react-localization": "1.0.19",
"react-native": "0.83.9",
"react-native-background-timer": "2.4.1",
"react-native-ble-plx": "3.5.0",
"react-native-biometrics": "2.2.0",
"react-native-blob-util": "0.24.7",
"react-native-change-icon": "5.0.0",
Expand Down Expand Up @@ -122,6 +127,7 @@
"redux-persist": "6.0.0",
"redux-saga": "1.1.3",
"rn-qr-generator": "^1.4.4",
"ripple-keypairs": "^1.3.1",
"satochip-react-native": "git+https://github.com/Toporin/satochip-react-native.git#1076e7c097571d561b5b903f31c6337455def19e",
"semver": "7.3.8",
"socket.io-client": "4.5.4",
Expand Down
12 changes: 12 additions & 0 deletions src/assets/images/flag-hongkong.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/images/flag-japan.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onekey-devices/classic-pure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onekey-devices/classic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onekey-devices/pro-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onekey-devices/touch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/images/onekey-green-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/images/onekey-green-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onekey-shop-device.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/images/onekey_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/images/onekey_icon_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/assets/images/onekey_illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading