Skip to content

Commit

Permalink
Merge pull request #61 from MXCzkEVM/cloud_backup
Browse files Browse the repository at this point in the history
Cloud backup
  • Loading branch information
reasje authored Oct 9, 2024
2 parents 1a4521f + 4433438 commit 10f692e
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 16 deletions.
6 changes: 4 additions & 2 deletions assets/flutter_i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,15 @@
"in": "Loading..",
"google_drive_secured_storage": "Google Drive secured storage",
"icloud_secured_storage": "iCloud Secured storage",
"make_sure_you_have_stored_your_keys_correctly_in_your_x": "Make sure you have stored your keys correctly in your {0}",
"ensure_that_your_keys_are_stored_correctly_in_your_x": "Ensure that your keys are stored correctly in your {0}!",
"icloud": "iCloud",
"google_drive": "Google Drive",
"store_in_x": "Store in {0}",
"your_email_address": "Your Email Address",
"invalid_email": "Please enter a valid email address (e.g., [email protected])",
"email": "Email",
"unable_to_authenticate_with_x": "Unable to authenticate with {0}.",
"unable_to_upload_backup_to_x": "Unable to upload backup to {0}."
"unable_to_upload_backup_to_x": "Unable to upload backup to {0}.",
"google_drive_backup_note": "Important: We save the mnemonic seed phrase in the file named moonchain-key.txt located in the MoonBase folder.",
"tips_for_storing_keys_safely": "Tip for Storing Keys Safely"
}
Binary file modified assets/icons/mxc-icons.ttf
Binary file not shown.
12 changes: 12 additions & 0 deletions ios/Runner/Runner.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,19 @@
<array>
<string>applinks:mxc1usd.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.moonchain.mxc</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudDocuments</string>
</array>
<key>com.apple.developer.networking.wifi-info</key>
<true/>
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>iCloud.moonchain.mxc</string>
</array>
</dict>
</plist>
26 changes: 26 additions & 0 deletions ios/Runner/RunnerDebug.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:mxc1usd.com</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.moonchain.mxc</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudDocuments</string>
</array>
<key>com.apple.developer.networking.wifi-info</key>
<true/>
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>iCloud.moonchain.mxc</string>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class SplashStoragePage extends SplashBasePage {
MxcButton.secondaryWhite(
key: const ValueKey('GoogleDriveButton'),
icon: MxcIcons.google_drive,
iconSize: 24,
iconSize: 32,
titleSize: 18,
title: FlutterI18n.translate(context, 'google_drive_secured_storage'),
onTap: () => Navigator.of(context).push(
Expand All @@ -130,7 +130,7 @@ class SplashStoragePage extends SplashBasePage {
? MxcButton.secondaryWhite(
key: const ValueKey('icloudButton'),
icon: MxcIcons.icloud,
iconSize: 18,
iconSize: 32,
titleSize: 18,
title: FlutterI18n.translate(context, 'icloud_secured_storage'),
onTap: () => Navigator.of(context).push(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,41 @@ class GoogleDriveRecoveryPhrasePage extends RecoveryPhraseBasePage {
),
child: getIcon(context)),
const SizedBox(height: 12),
Text(
FlutterI18n.translate(context,
'make_sure_you_have_stored_your_keys_correctly_in_your_x')
.replaceFirst(
'{0}', FlutterI18n.translate(context, 'google_drive')),
style: FontTheme.of(context).body1().copyWith(
fontWeight: FontWeight.w500,
color: ColorsTheme.of(context).textPrimary,
),
textAlign: TextAlign.center,
Text.rich(
TextSpan(children: [
TextSpan(
text: FlutterI18n.translate(
context, 'tips_for_storing_keys_safely'),
style: FontTheme.of(context).body1().copyWith(
fontWeight: FontWeight.w700,
color: ColorsTheme.of(context).textPrimary,
),
),
const TextSpan(
text: '\n',
),
TextSpan(
text: FlutterI18n.translate(context,
'ensure_that_your_keys_are_stored_correctly_in_your_x')
.replaceFirst(
'{0}', FlutterI18n.translate(context, 'google_drive')),
style: FontTheme.of(context).body1().copyWith(
fontWeight: FontWeight.w500,
color: ColorsTheme.of(context).textPrimary,
),
),
const TextSpan(
text: '\n\n',
),
TextSpan(
text:
FlutterI18n.translate(context, 'google_drive_backup_note'),
style: FontTheme.of(context).body1().copyWith(
fontWeight: FontWeight.w500,
color: ColorsTheme.of(context).textPrimary,
),
),
]),
),
],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ICloudRecoveryPhrasePage extends RecoveryPhraseBasePage {
const SizedBox(height: 12),
Text(
FlutterI18n.translate(context,
'make_sure_you_have_stored_your_keys_correctly_in_your_x')
'ensure_that_your_keys_are_stored_correctly_in_your_x')
.replaceFirst('{0}', FlutterI18n.translate(context, 'icloud')),
style: FontTheme.of(context).body1().copyWith(
fontWeight: FontWeight.w500,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared

0 comments on commit 10f692e

Please sign in to comment.