Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BLE device onboarding #455

Merged
merged 9 commits into from
Sep 26, 2023
Merged
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 ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native-permissions/scripts/setup'

platform :ios, '13.0'
prepare_react_native_project!
$RNMapboxMapsImpl = 'mapbox'


# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
Expand Down Expand Up @@ -76,6 +78,10 @@ target 'HeliumWallet' do
$RNMapboxMaps.pre_install(installer)
end


permissions_path = '../node_modules/react-native-permissions/ios'
setup_permissions(['BluetoothPeripheral'])

post_install do |installer|
$RNMapboxMaps.post_install(installer)

Expand Down
12 changes: 9 additions & 3 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ PODS:
- ReactCommon/turbomodule/core (= 0.71.5)
- fmt (6.2.1)
- glog (0.3.5)
- helium-react-native-sdk (1.0.0):
- helium-react-native-sdk (2.1.4):
- React-Core
- hermes-engine (0.71.5):
- hermes-engine/Pre-built (= 0.71.5)
Expand Down Expand Up @@ -499,6 +499,8 @@ PODS:
- Turf
- RNOS (1.2.6):
- React
- RNPermissions (3.9.2):
- React-Core
- RNReactNativeSharedGroupPreferences (1.1.23):
- React
- RNReanimated (2.14.4):
Expand Down Expand Up @@ -633,6 +635,7 @@ DEPENDENCIES:
- RNLocalize (from `../node_modules/react-native-localize`)
- "rnmapbox-maps (from `../node_modules/@rnmapbox/maps`)"
- RNOS (from `../node_modules/react-native-os`)
- RNPermissions (from `../node_modules/react-native-permissions`)
- RNReactNativeSharedGroupPreferences (from `../node_modules/react-native-shared-group-preferences`)
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
Expand Down Expand Up @@ -818,6 +821,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/@rnmapbox/maps"
RNOS:
:path: "../node_modules/react-native-os"
RNPermissions:
:path: "../node_modules/react-native-permissions"
RNReactNativeSharedGroupPreferences:
:path: "../node_modules/react-native-shared-group-preferences"
RNReanimated:
Expand Down Expand Up @@ -862,7 +867,7 @@ SPEC CHECKSUMS:
FBReactNativeSpec: 627fd07f1b9d498c9fa572e76d7f1a6b1ee9a444
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 791fe035093b84822da7f0870421a25839ca7870
helium-react-native-sdk: 32c0a7e3abc733a7f3d291013b2db31475fc6980
helium-react-native-sdk: 816b3d02192e23ccb4d0be21780ea7c5ed46de4e
hermes-engine: 7a53ccac09146018a08239c5425625fdb79a6162
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
MapboxCommon: fdf7fd31c90b7b607cd9c63e37797f023c01d860
Expand Down Expand Up @@ -925,6 +930,7 @@ SPEC CHECKSUMS:
RNLocalize: a64514b46a01375fdfae9349036b4dc7130333b5
rnmapbox-maps: 3553325eec9e1501942bbb28702b3a44457961d2
RNOS: 6f2f9a70895bbbfbdad7196abd952e7b01d45027
RNPermissions: 2af759cf053542b2b4b3c4cf9f43874796106f2c
RNReactNativeSharedGroupPreferences: de0121a4224c267bc7e9fb16c398f3f087c8da81
RNReanimated: cc5e3aa479cb9170bcccf8204291a6950a3be128
RNScreens: 218801c16a2782546d30bd2026bb625c0302d70f
Expand All @@ -939,6 +945,6 @@ SPEC CHECKSUMS:
Yoga: cd7d7f509dbfac14ee7f31a6c750acb957cd5022
ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb

PODFILE CHECKSUM: 315053ef8dad0ea72bc8b3d40f59c1020ede650c
PODFILE CHECKSUM: 5b4d3c6d9c5a303c84f0b5427958ba4a25671e76

COCOAPODS: 1.11.3
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@helium/lazy-distributor-sdk": "^0.3.2",
"@helium/onboarding": "4.9.0",
"@helium/proto-ble": "4.0.0",
"@helium/react-native-sdk": "1.0.0",
"@helium/react-native-sdk": "^2.1.4",
"@helium/spl-utils": "^0.3.2",
"@helium/transactions": "4.8.1",
"@helium/treasury-management-sdk": "0.1.2",
Expand Down Expand Up @@ -167,6 +167,7 @@
"react-native-onesignal": "4.4.1",
"react-native-os": "1.2.6",
"react-native-pager-view": "6.1.2",
"react-native-permissions": "^3.9.0",
"react-native-qrcode-svg": "6.1.2",
"react-native-randombytes": "3.6.1",
"react-native-reanimated": "2.14.4",
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet'
import { PortalHost, PortalProvider } from '@gorhom/portal'
import { AccountContext } from '@helium/account-fetch-cache-hooks'
import { OnboardingProvider } from '@helium/react-native-sdk'
import { DarkTheme, NavigationContainer } from '@react-navigation/native'
import MapboxGL from '@rnmapbox/maps'
import { ThemeProvider } from '@shopify/restyle'
Expand All @@ -21,7 +22,6 @@ import NetworkAwareStatusBar from './components/NetworkAwareStatusBar'
import SplashScreen from './components/SplashScreen'
import WalletConnectProvider from './features/dappLogin/WalletConnectProvider'
import LockScreen from './features/lock/LockScreen'
import OnboardingProvider from './features/onboarding/OnboardingProvider'
import SecurityScreen from './features/security/SecurityScreen'
import useMount from './hooks/useMount'
import { navigationRef } from './navigation/NavigationHelper'
Expand Down
3 changes: 3 additions & 0 deletions src/assets/images/bluetooth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/assets/images/collectableIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/assets/images/gem.svg

This file was deleted.

30 changes: 30 additions & 0 deletions src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { ReAnimatedBlurBox, ReAnimatedBox } from '@components/AnimatedBox'
import BackScreen from '@components/BackScreen'
import Box from '@components/Box'
import ButtonPressable from '@components/ButtonPressable'
import CircleLoader from '@components/CircleLoader'
import FabButton from '@components/FabButton'
import FadeInOut, { DelayedFadeIn, FadeInFast } from '@components/FadeInOut'
import ImageBox from '@components/ImageBox'
import SafeAreaBox from '@components/SafeAreaBox'
import SearchInput from '@components/SearchInput'
import Text from '@components/Text'
import TextInput from '@components/TextInput'

export {
ReAnimatedBlurBox,
ReAnimatedBox,
BackScreen,
Box,
ButtonPressable,
CircleLoader,
FabButton,
FadeInOut,
DelayedFadeIn,
FadeInFast,
ImageBox,
SafeAreaBox,
SearchInput,
Text,
TextInput,
}
Loading
Loading