Skip to content

Commit

Permalink
Add Ledger support (#18)
Browse files Browse the repository at this point in the history
* Connect Ledger

* Sign tx on Ledger

* Login to ledger at startup

* Sign wallet connect with Ledger

* Remove console.log

* Fix WalletConnect signature

* Remove unused imports

* Warning with path != 0
  • Loading branch information
alecande11 authored Mar 11, 2022
1 parent 6c5d887 commit 3ec15b9
Show file tree
Hide file tree
Showing 44 changed files with 1,696 additions and 256 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { AppRegistry } from 'react-native'
import 'node-libs-react-native/globals'
import './shim.js'
import 'react-native-get-random-values'
import './polyfill'
import App from './src/App'
import { name as appName } from './app.json'

Expand Down
14 changes: 12 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ PODS:
- libwebp/mux (1.2.1):
- libwebp/demux
- libwebp/webp (1.2.1)
- MultiplatformBleAdapter (0.1.9)
- OpenSSL-Universal (1.1.180)
- Permission-Camera (3.1.0):
- RNPermissions
Expand Down Expand Up @@ -324,6 +325,9 @@ PODS:
- React-jsinspector (0.66.0)
- React-logger (0.66.0):
- glog
- react-native-ble-plx (2.0.3):
- MultiplatformBleAdapter (= 0.1.9)
- React-Core
- react-native-camera (3.44.3):
- React-Core
- react-native-camera/RCT (= 3.44.3)
Expand All @@ -334,7 +338,7 @@ PODS:
- React-Core
- react-native-get-random-values (1.7.0):
- React-Core
- react-native-netinfo (6.1.0):
- react-native-netinfo (6.2.0):
- React-Core
- react-native-randombytes (3.6.1):
- React-Core
Expand Down Expand Up @@ -544,6 +548,7 @@ DEPENDENCIES:
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- react-native-ble-plx (from `../node_modules/react-native-ble-plx`)
- react-native-camera (from `../node_modules/react-native-camera`)
- react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
Expand Down Expand Up @@ -603,6 +608,7 @@ SPEC REPOS:
- IOSSecuritySuite
- libevent
- libwebp
- MultiplatformBleAdapter
- OpenSSL-Universal
- SDWebImage
- SDWebImageWebPCoder
Expand Down Expand Up @@ -661,6 +667,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/jsinspector"
React-logger:
:path: "../node_modules/react-native/ReactCommon/logger"
react-native-ble-plx:
:path: "../node_modules/react-native-ble-plx"
react-native-camera:
:path: "../node_modules/react-native-camera"
react-native-get-random-values:
Expand Down Expand Up @@ -767,6 +775,7 @@ SPEC CHECKSUMS:
IOSSecuritySuite: 0dbc01c68ce296c390ccf0443bf68cb40077abe8
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
libwebp: 98a37e597e40bfdb4c911fc98f2c53d0b12d05fc
MultiplatformBleAdapter: 5a6a897b006764392f9cef785e4360f54fb9477d
OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
Permission-Camera: 0db4fd6e1c556c1cf47f38b989a8084cea3ec3dd
Permission-FaceID: 34794093f5de6410b373f9245b29632630beab6e
Expand All @@ -783,9 +792,10 @@ SPEC CHECKSUMS:
React-jsiexecutor: 6a05173dc0142abc582bd4edd2d23146b8cc218a
React-jsinspector: be95ad424ba9f7b817aff22732eb9b1b810a000a
React-logger: 9a9cd87d4ea681ae929b32ef580638ff1b50fb24
react-native-ble-plx: f10240444452dfb2d2a13a0e4f58d7783e92d76e
react-native-camera: b8cc03e2feec0c04403d0998e37cf519d8fd4c6f
react-native-get-random-values: 237bffb1c7e05fb142092681531810a29ba53015
react-native-netinfo: 5a001e406317eaaf1e4846906650e107dadcaa72
react-native-netinfo: de0d4343f8d5ec9b92653b17a0ef47091317986a
react-native-randombytes: 421f1c7d48c0af8dbcd471b0324393ebf8fe7846
react-native-safe-area-context: 584dc04881deb49474363f3be89e4ca0e854c057
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
Expand Down
59 changes: 45 additions & 14 deletions ios/TerraStation.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions ios/TerraStation/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
</dict>
</dict>
</dict>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Connect with Ledger</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Connect with Ledger</string>
<key>NSCameraUsageDescription</key>
<string>QR Scan</string>
<key>NSFaceIDUsageDescription</key>
Expand Down
Loading

0 comments on commit 3ec15b9

Please sign in to comment.