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

Offline mode (serverless) & No internet connection mode #757

Merged
merged 31 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
74ed91c
fix: initial work for offline mode
juanky201271 Nov 28, 2024
2c92958
fix: snapshots updated
juanky201271 Nov 29, 2024
c557ce4
fix: kotlin test fixed
juanky201271 Nov 29, 2024
70043c5
fix: working on kotlin test for offline mode
juanky201271 Nov 29, 2024
d2b8db3
fix: working on kotlin test - saving wallet before
juanky201271 Nov 29, 2024
c2b42bd
fix: zingolib updated & hiding components for offline mode
juanky201271 Dec 1, 2024
5abd8b5
fix: hide send icon for zennytips address
juanky201271 Dec 1, 2024
2aa1b0f
fix: initial screen with offline option
juanky201271 Dec 2, 2024
318fd76
fix: snapshots updated
juanky201271 Dec 2, 2024
0ebde0d
fix: hide some options
juanky201271 Dec 2, 2024
d87092c
fix: initial screen adjustments
juanky201271 Dec 2, 2024
21b0960
fix: access recovery info with no internet
juanky201271 Dec 2, 2024
d696236
fix: no internet warning adjusted for Offline mode
juanky201271 Dec 3, 2024
468a92a
fix: header icons padding
juanky201271 Dec 4, 2024
9fc055f
fix: adapting the App when no internet connection
juanky201271 Dec 4, 2024
4e4b3d8
fix: snapshots updated
juanky201271 Dec 4, 2024
7ed84bc
fix: no internet connection fixes
juanky201271 Dec 4, 2024
0acded5
fix: zingolib updated & adjustments
juanky201271 Dec 4, 2024
d4aa780
fix: basic mode fixes
juanky201271 Dec 4, 2024
13135ce
fix: snapshots updated
juanky201271 Dec 4, 2024
25956b1
fix: install app with no internet connection - fixed
juanky201271 Dec 5, 2024
678cd68
fix: install app with no internet connection - fixed message
juanky201271 Dec 5, 2024
6660092
fix: fix for back/foreground & remove unused code & more
juanky201271 Dec 6, 2024
6d52e7c
Merge branch 'zingolabs:dev' into dev_serverless_mode
juanky201271 Dec 6, 2024
d7e547b
ci: pin bindgen-cli version
dorianvp Dec 7, 2024
cda5933
ci: update bindgen-cli for IOS
dorianvp Dec 7, 2024
fbaf20b
fix: adding changeserver command for Offline mode
juanky201271 Dec 7, 2024
c5ae2c9
fix: reverting --version in bindgen-cli - no needed
juanky201271 Dec 9, 2024
02a8f0b
fix: zingolib updated
juanky201271 Dec 9, 2024
8e0cfba
fix: a few adjustments - menu & message
juanky201271 Dec 9, 2024
dd27e98
fix: change to offline with no internet
juanky201271 Dec 9, 2024
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
3 changes: 0 additions & 3 deletions __mocks__/dataMocks/mockAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,18 @@ export const mockAddresses: AddressClass[] = [
uaAddress: 'UA-12345678901234567890',
address: 'UA-12345678901234567890',
addressKind: AddressKindEnum.u,
containsPending: false,
receivers: ReceiverEnum.o + ReceiverEnum.z + ReceiverEnum.t,
},
{
uaAddress: 'UA-12345678901234567890',
address: 'sapling-12345678901234567890',
addressKind: AddressKindEnum.z,
containsPending: false,
receivers: ReceiverEnum.z,
},
{
uaAddress: 'UA-12345678901234567890',
address: 'transparent-12345678901234567890',
addressKind: AddressKindEnum.t,
containsPending: false,
receivers: ReceiverEnum.t,
},
];
4 changes: 4 additions & 0 deletions __tests__/Send.snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ describe('Component Send - test', () => {
setScrollToTop={onFunction}
setScrollToBottom={onFunction}
setServerOption={onFunction}
clearTimers={onFunction}
configure={onFunction}
/>
</ContextAppLoadedProvider>,
);
Expand Down Expand Up @@ -130,6 +132,8 @@ describe('Component Send - test', () => {
setScrollToTop={onFunction}
setScrollToBottom={onFunction}
setServerOption={onFunction}
clearTimers={onFunction}
configure={onFunction}
/>
</ContextAppLoadedProvider>,
);
Expand Down
160 changes: 46 additions & 114 deletions __tests__/__snapshots__/Header.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,139 +32,71 @@ exports[`Component Header - test Header Complex - snapshot 1`] = `
style={
{
"alignItems": "center",
"borderColor": undefined,
"borderRadius": 10,
"borderWidth": 1,
"justifyContent": "center",
"margin": 0,
"marginRight": 5,
"minHeight": 25,
"minWidth": 25,
"padding": 1,
"padding": 0,
}
}
>
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"margin": 0,
"opacity": 1,
"padding": 0,
}
}
>
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
<
color="red"
icon={
{
"opacity": 1,
}
}
>
<
icon={
{
"icon": [
640,
512,
[
"wifi-3",
"wifi-strong",
],
"f1eb",
"M54.2 202.9C123.2 136.7 216.8 96 320 96s196.8 40.7 265.8 106.9c12.8 12.2 33 11.8 45.2-.9s11.8-33-.9-45.2C549.7 79.5 440.4 32 320 32S90.3 79.5 9.8 156.7C-2.9 169-3.3 189.2 8.9 202s32.5 13.2 45.2 .9zM320 256c56.8 0 108.6 21.1 148.2 56c13.3 11.7 33.5 10.4 45.2-2.8s10.4-33.5-2.8-45.2C459.8 219.2 393 192 320 192s-139.8 27.2-190.5 72c-13.3 11.7-14.5 31.9-2.8 45.2s31.9 14.5 45.2 2.8c39.5-34.9 91.3-56 148.2-56zm64 160a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z",
"icon": [
640,
512,
[
62337,
"cloud-download",
"cloud-download-alt",
],
"iconName": "wifi",
"prefix": "fas",
}
}
size={18}
/>
</View>
</View>
</View>
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"opacity": 1,
}
}
>
<
color="red"
icon={
{
"icon": [
640,
512,
[
62337,
"cloud-download",
"cloud-download-alt",
"f0ed",
"M144 480C64.5 480 0 415.5 0 336c0-62.8 40.2-116.2 96.2-135.9c-.1-2.7-.2-5.4-.2-8.1c0-88.4 71.6-160 160-160c59.3 0 111 32.2 138.7 80.2C409.9 102 428.3 96 448 96c53 0 96 43 96 96c0 12.2-2.3 23.8-6.4 34.6C596 238.4 640 290.1 640 352c0 70.7-57.3 128-128 128l-368 0zm79-167l80 80c9.4 9.4 24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-39 39L344 184c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 134.1-39-39c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9z",
],
"f0ed",
"M144 480C64.5 480 0 415.5 0 336c0-62.8 40.2-116.2 96.2-135.9c-.1-2.7-.2-5.4-.2-8.1c0-88.4 71.6-160 160-160c59.3 0 111 32.2 138.7 80.2C409.9 102 428.3 96 448 96c53 0 96 43 96 96c0 12.2-2.3 23.8-6.4 34.6C596 238.4 640 290.1 640 352c0 70.7-57.3 128-128 128l-368 0zm79-167l80 80c9.4 9.4 24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-39 39L344 184c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 134.1-39-39c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9z",
],
"iconName": "cloud-arrow-down",
"prefix": "fas",
"iconName": "cloud-arrow-down",
"prefix": "fas",
}
}
}
size={20}
/>
size={20}
/>
</View>
</View>
</View>
<View
Expand Down Expand Up @@ -231,7 +163,7 @@ exports[`Component Header - test Header Complex - snapshot 1`] = `
"flexDirection": "row",
"justifyContent": "center",
"margin": 0,
"marginHorizontal": 5,
"marginRight": 5,
"minHeight": 25,
"minWidth": 25,
"padding": 0,
Expand Down
Loading
Loading