Skip to content

Commit 10f692e

Browse files
authored
Merge pull request #61 from MXCzkEVM/cloud_backup
Cloud backup
2 parents 1a4521f + 4433438 commit 10f692e

File tree

8 files changed

+81
-16
lines changed

8 files changed

+81
-16
lines changed

assets/flutter_i18n/en.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,13 +456,15 @@
456456
"in": "Loading..",
457457
"google_drive_secured_storage": "Google Drive secured storage",
458458
"icloud_secured_storage": "iCloud Secured storage",
459-
"make_sure_you_have_stored_your_keys_correctly_in_your_x": "Make sure you have stored your keys correctly in your {0}",
459+
"ensure_that_your_keys_are_stored_correctly_in_your_x": "Ensure that your keys are stored correctly in your {0}!",
460460
"icloud": "iCloud",
461461
"google_drive": "Google Drive",
462462
"store_in_x": "Store in {0}",
463463
"your_email_address": "Your Email Address",
464464
"invalid_email": "Please enter a valid email address (e.g., name@example.com)",
465465
"email": "Email",
466466
"unable_to_authenticate_with_x": "Unable to authenticate with {0}.",
467-
"unable_to_upload_backup_to_x": "Unable to upload backup to {0}."
467+
"unable_to_upload_backup_to_x": "Unable to upload backup to {0}.",
468+
"google_drive_backup_note": "Important: We save the mnemonic seed phrase in the file named moonchain-key.txt located in the MoonBase folder.",
469+
"tips_for_storing_keys_safely": "Tip for Storing Keys Safely"
468470
}

assets/icons/mxc-icons.ttf

0 Bytes
Binary file not shown.

ios/Runner/Runner.entitlements

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@
88
<array>
99
<string>applinks:mxc1usd.com</string>
1010
</array>
11+
<key>com.apple.developer.icloud-container-identifiers</key>
12+
<array>
13+
<string>iCloud.moonchain.mxc</string>
14+
</array>
15+
<key>com.apple.developer.icloud-services</key>
16+
<array>
17+
<string>CloudDocuments</string>
18+
</array>
1119
<key>com.apple.developer.networking.wifi-info</key>
1220
<true/>
21+
<key>com.apple.developer.ubiquity-container-identifiers</key>
22+
<array>
23+
<string>iCloud.moonchain.mxc</string>
24+
</array>
1325
</dict>
1426
</plist>

ios/Runner/RunnerDebug.entitlements

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>aps-environment</key>
6+
<string>development</string>
7+
<key>com.apple.developer.associated-domains</key>
8+
<array>
9+
<string>applinks:mxc1usd.com</string>
10+
</array>
11+
<key>com.apple.developer.icloud-container-identifiers</key>
12+
<array>
13+
<string>iCloud.moonchain.mxc</string>
14+
</array>
15+
<key>com.apple.developer.icloud-services</key>
16+
<array>
17+
<string>CloudDocuments</string>
18+
</array>
19+
<key>com.apple.developer.networking.wifi-info</key>
20+
<true/>
21+
<key>com.apple.developer.ubiquity-container-identifiers</key>
22+
<array>
23+
<string>iCloud.moonchain.mxc</string>
24+
</array>
25+
</dict>
26+
</plist>

lib/features/splash/create_storage/presentation/create_storage_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class SplashStoragePage extends SplashBasePage {
114114
MxcButton.secondaryWhite(
115115
key: const ValueKey('GoogleDriveButton'),
116116
icon: MxcIcons.google_drive,
117-
iconSize: 24,
117+
iconSize: 32,
118118
titleSize: 18,
119119
title: FlutterI18n.translate(context, 'google_drive_secured_storage'),
120120
onTap: () => Navigator.of(context).push(
@@ -130,7 +130,7 @@ class SplashStoragePage extends SplashBasePage {
130130
? MxcButton.secondaryWhite(
131131
key: const ValueKey('icloudButton'),
132132
icon: MxcIcons.icloud,
133-
iconSize: 18,
133+
iconSize: 32,
134134
titleSize: 18,
135135
title: FlutterI18n.translate(context, 'icloud_secured_storage'),
136136
onTap: () => Navigator.of(context).push(

lib/features/splash/secure_recovery_phrase/presentation/google_drive_recovery_phrase_alert/google_drive_recovery_phrase_page.dart

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,41 @@ class GoogleDriveRecoveryPhrasePage extends RecoveryPhraseBasePage {
5656
),
5757
child: getIcon(context)),
5858
const SizedBox(height: 12),
59-
Text(
60-
FlutterI18n.translate(context,
61-
'make_sure_you_have_stored_your_keys_correctly_in_your_x')
62-
.replaceFirst(
63-
'{0}', FlutterI18n.translate(context, 'google_drive')),
64-
style: FontTheme.of(context).body1().copyWith(
65-
fontWeight: FontWeight.w500,
66-
color: ColorsTheme.of(context).textPrimary,
67-
),
68-
textAlign: TextAlign.center,
59+
Text.rich(
60+
TextSpan(children: [
61+
TextSpan(
62+
text: FlutterI18n.translate(
63+
context, 'tips_for_storing_keys_safely'),
64+
style: FontTheme.of(context).body1().copyWith(
65+
fontWeight: FontWeight.w700,
66+
color: ColorsTheme.of(context).textPrimary,
67+
),
68+
),
69+
const TextSpan(
70+
text: '\n',
71+
),
72+
TextSpan(
73+
text: FlutterI18n.translate(context,
74+
'ensure_that_your_keys_are_stored_correctly_in_your_x')
75+
.replaceFirst(
76+
'{0}', FlutterI18n.translate(context, 'google_drive')),
77+
style: FontTheme.of(context).body1().copyWith(
78+
fontWeight: FontWeight.w500,
79+
color: ColorsTheme.of(context).textPrimary,
80+
),
81+
),
82+
const TextSpan(
83+
text: '\n\n',
84+
),
85+
TextSpan(
86+
text:
87+
FlutterI18n.translate(context, 'google_drive_backup_note'),
88+
style: FontTheme.of(context).body1().copyWith(
89+
fontWeight: FontWeight.w500,
90+
color: ColorsTheme.of(context).textPrimary,
91+
),
92+
),
93+
]),
6994
),
7095
],
7196
),

lib/features/splash/secure_recovery_phrase/presentation/icloud_recovery_phrase_alert/icloud_recovery_phrase_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ICloudRecoveryPhrasePage extends RecoveryPhraseBasePage {
5858
const SizedBox(height: 12),
5959
Text(
6060
FlutterI18n.translate(context,
61-
'make_sure_you_have_stored_your_keys_correctly_in_your_x')
61+
'ensure_that_your_keys_are_stored_correctly_in_your_x')
6262
.replaceFirst('{0}', FlutterI18n.translate(context, 'icloud')),
6363
style: FontTheme.of(context).body1().copyWith(
6464
fontWeight: FontWeight.w500,

0 commit comments

Comments
 (0)