Skip to content

Commit f61c246

Browse files
authored
Local copy (#413)
* Added support to be able to add blox details to other apps * handle already paired box
1 parent 292ddf3 commit f61c246

15 files changed

Lines changed: 206 additions & 14 deletions

File tree

apps/box/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ android {
8686
applicationId "land.fx.blox"
8787
minSdkVersion rootProject.ext.minSdkVersion
8888
targetSdkVersion rootProject.ext.targetSdkVersion
89-
versionCode 255
90-
versionName "2.4.1"
89+
versionCode 256
90+
versionName "2.5.0"
9191

9292
testBuildType System.getProperty('testBuildType', 'debug')
9393
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

apps/box/ios/Box.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@
589589
"$(inherited)",
590590
"@executable_path/Frameworks",
591591
);
592-
MARKETING_VERSION = 2.4.0;
592+
MARKETING_VERSION = 2.5.0;
593593
OTHER_LDFLAGS = (
594594
"$(inherited)",
595595
"-ObjC",
@@ -627,7 +627,7 @@
627627
"$(inherited)",
628628
"@executable_path/Frameworks",
629629
);
630-
MARKETING_VERSION = 2.4.0;
630+
MARKETING_VERSION = 2.5.0;
631631
OTHER_LDFLAGS = (
632632
"$(inherited)",
633633
"-ObjC",

apps/box/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ PODS:
4141
- nanopb (~> 3.30910.0)
4242
- PromisesSwift (~> 2.1)
4343
- fmt (11.0.2)
44-
- Fula (1.57.7)
44+
- Fula (1.58.0)
4545
- glog (0.3.5)
4646
- GoogleDataTransport (10.1.0):
4747
- nanopb (~> 3.30910.0)
@@ -2016,12 +2016,12 @@ PODS:
20162016
- react-native-config/App (= 1.5.1)
20172017
- react-native-config/App (1.5.1):
20182018
- React-Core
2019-
- react-native-fula (1.57.7):
2019+
- react-native-fula (1.58.0):
20202020
- boost
20212021
- DoubleConversion
20222022
- fast_float
20232023
- fmt
2024-
- Fula (~> 1.57.7)
2024+
- Fula (~> 1.58.0)
20252025
- glog
20262026
- hermes-engine
20272027
- RCT-Folly

apps/box/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "box",
3-
"version": "2.4.1",
3+
"version": "2.5.0",
44
"private": true,
55
"dependencies": {
66
"@babel/core": "*",

apps/box/src/components/Cards/ConnectedDevicesCard.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ export const DeviceCard = ({
8888
{convertByteToCapacityUnit(parseInt(folderInfo?.chain, 10))}
8989
</FxCard.Row.Data>
9090
</FxCard.Row>
91+
<FxCard.Row>
92+
<FxCard.Row.Title>{t('connectedDevicesCard.userOwnData')}</FxCard.Row.Title>
93+
<FxCard.Row.Data>
94+
{convertByteToCapacityUnit(parseInt(folderInfo?.userOwnData, 10))}
95+
</FxCard.Row.Data>
96+
</FxCard.Row>
9197
{used != undefined && (
9298
<FxCard.Row>
9399
<FxCard.Row.Title>{t('connectedDevicesCard.used')}</FxCard.Row.Title>

apps/box/src/i18n/locales/en/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
"capacity": "Capacity",
194194
"storedFiles": "Stored Files",
195195
"otherData": "Other Data",
196+
"userOwnData": "User Own Data",
196197
"used": "Used",
197198
"free": "Free",
198199
"status": "Status",

apps/box/src/i18n/locales/zh/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
"capacity": "容量",
187187
"storedFiles": "存储文件",
188188
"otherData": "其他数据",
189+
"userOwnData": "用户自有数据",
189190
"used": "已使用",
190191
"free": "可用",
191192
"status": "状态",

apps/box/src/models/blox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export interface TBloxFolderSize {
1414
fula: string;
1515
chain: string;
1616
fulaCount: string;
17+
userOwnData: string;
1718
}
1819
export type TBloxConectionStatus =
1920
| 'CONNECTED'

apps/box/src/navigation/MainTabs.navigator.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import { useUserProfileStore } from '../stores/useUserProfileStore';
4444
import { useLogger } from '../hooks';
4545
import { useBloxsStore } from '../stores';
4646
import { BluetoothCommandsScreen } from '../screens/Settings/Bluetooth/BluetoothCommands.screen';
47+
import { AutoPinPairingScreen } from '../screens/Settings/AutoPinPairing/AutoPinPairing.screen';
4748
import Zeroconf from 'react-native-zeroconf';
4849
import { MDNSBloxService } from '../models';
4950

@@ -343,6 +344,10 @@ const SettingsNavigator = () => {
343344
name={Routes.BluetoothCommands}
344345
component={BluetoothCommandsScreen}
345346
/>
347+
<SettingsStack.Screen
348+
name={Routes.AutoPinPairing}
349+
component={AutoPinPairingScreen}
350+
/>
346351

347352
<SettingsStack.Screen
348353
options={() => ({

apps/box/src/navigation/NavContainer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const linking: LinkingOptions<unknown> = {
2121
screens: {
2222
[Routes.ConnectedDApps]:
2323
'/connectdapp/:appName/:bundleId/:peerId/:returnDeepLink/:accountId',
24+
[Routes.AutoPinPairing]:
25+
'/autopin-pair',
2426
},
2527
},
2628
},

0 commit comments

Comments
 (0)