New beta release v0.1.5 - Off-device seed backup

This commit is contained in:
minibits-cash
2023-12-05 12:53:23 +01:00
parent 95811817fa
commit c37b3e5ffe
11 changed files with 27 additions and 18 deletions
+2 -1
View File
@@ -89,7 +89,8 @@ jobs:
echo MINIBITS_SERVER_API_KEY='${{ secrets.MINIBITS_SERVER_API_KEY }}' >> .env
echo MINIBITS_SERVER_API_HOST='https://api.minibits.cash' >> .env
echo MINIBITS_NIP05_DOMAIN='@minibits.cash' >> .env
echo MINIBITS_RELAY_URL='wss://relay.minibits.cash' >> .env
echo MINIBITS_RELAY_URL='wss://relay.minibits.cash' >> .env
echo MINIBITS_MINT_URL='wss://mint.minibits.cash/Bitcoin' >> .env
echo COMMIT='${{ env.COMMIT_HASH }}' >> .env
# Install dependecies from package.json
+2 -1
View File
@@ -89,7 +89,8 @@ jobs:
echo MINIBITS_SERVER_API_KEY='${{ secrets.MINIBITS_SERVER_API_KEY }}' >> .env
echo MINIBITS_SERVER_API_HOST='https://api.minibits.cash' >> .env
echo MINIBITS_NIP05_DOMAIN='@minibits.cash' >> .env
echo MINIBITS_RELAY_URL='wss://relay.minibits.cash/test' >> .env
echo MINIBITS_RELAY_URL='wss://relay.minibits.cash/test' >> .env
echo MINIBITS_MINT_URL='wss://mint.minibits.cash/Bitcoin' >> .env
echo COMMIT='${{ env.COMMIT_HASH }}' >> .env
# Install dependecies from package.json
+2 -2
View File
@@ -102,8 +102,8 @@ android {
applicationId "com.minibits_wallet"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 23
versionName "0.1.4"
versionCode 24
versionName "0.1.5"
ndk {
abiFilters 'arm64-v8a', 'x86_64', 'x86', 'armeabi-v7a'
} // react-native-tor build
+3 -1
View File
@@ -67,6 +67,7 @@ import { faKey } from '@fortawesome/free-solid-svg-icons/faKey'
import { faCircleNodes } from '@fortawesome/free-solid-svg-icons/faCircleNodes'
import { faBullseye } from '@fortawesome/free-solid-svg-icons/faBullseye'
import { faEyeSlash } from '@fortawesome/free-solid-svg-icons/faEyeSlash'
import { faUpRightFromSquare } from '@fortawesome/free-solid-svg-icons/faUpRightFromSquare'
export type IconTypes = keyof typeof iconRegistry
@@ -123,7 +124,8 @@ export const iconRegistry = {
faKey: faKey,
faCircleNodes: faCircleNodes,
faBullseye: faBullseye,
faEyeSlash: faEyeSlash,
faEyeSlash: faEyeSlash,
faUpRightFromSquare: faUpRightFromSquare,
}
+1 -1
View File
@@ -156,7 +156,7 @@ const en = {
backupScreen: {
localBackup: "Local backup",
localBackupDescription: "Local backup stores a copy of all your ecash in the local database. Ecash is never deleted unless you switch off the backup. Please note that this backup is not encrypted.",
remoteBackup: "Remote backup",
remoteBackup: "Off-device backup",
remoteBackupDescription: "Seed phrase allows you to recover your ecash balance in case of device loss.",
recoveryTool: "Recovery tool",
recoveryToolDescription: "Show ecash backed up in the local database and attempt to recover unspent ones into the wallet in case the wallet storage gets corrupted or a transaction fails due to an unexpected error.",
+2 -1
View File
@@ -117,7 +117,7 @@ export const BackupScreen: FC<SettingsStackScreenProps<'Backup'>> = observer(fun
<ListItem
tx="backupScreen.remoteBackup"
subTx="backupScreen.remoteBackupDescription"
leftIcon='faDownload'
leftIcon='faUpRightFromSquare'
leftIconColor={colors.palette.blue200}
leftIconInverse={true}
style={$item}
@@ -159,6 +159,7 @@ export const BackupScreen: FC<SettingsStackScreenProps<'Backup'>> = observer(fun
leftIconInverse={true}
style={$item}
onPress={gotoLocalRecovery}
topSeparator={true}
/>
)}
</>
+8 -6
View File
@@ -2,6 +2,9 @@ import {observer} from 'mobx-react-lite'
import React, {FC, useCallback, useRef, useState} from 'react'
import {Alert, TextInput, TextStyle, View, ViewStyle} from 'react-native'
import Clipboard from '@react-native-clipboard/clipboard'
import {
MINIBITS_MINT_URL
} from '@env'
import {spacing, typography, useThemeColor, colors} from '../theme'
import {AppStackScreenProps, SettingsStackScreenProps} from '../navigation'
import {
@@ -19,13 +22,12 @@ import {
import {Mint} from '../models/Mint'
import {useStores} from '../models'
import {useHeader} from '../utils/useHeader'
import {MintKeys, MintKeySets, MintClient} from '../services'
import {MintKeys, MintClient} from '../services'
import {log} from '../services/logService'
import AppError from '../utils/AppError'
import {translate} from '../i18n'
import {MintListItem} from './Mints/MintListItem'
import { infoMessage } from '../utils/utils'
import { spyReportEnd } from 'mobx/dist/internal'
export const MintsScreen: FC<SettingsStackScreenProps<'Mints'>> = observer(function MintsScreen({route, navigation}) {
@@ -38,7 +40,7 @@ export const MintsScreen: FC<SettingsStackScreenProps<'Mints'>> = observer(funct
const mintInputRef = useRef<TextInput>(null)
const [mintUrl, setMintUrl] = useState('')
const [defaultMintUrl, setDefaultMintUrl] = useState<string>('https://mint.minibits.cash/Bitcoin')
const [defaultMintUrl, setDefaultMintUrl] = useState<string>(MINIBITS_MINT_URL)
const [selectedMint, setSelectedMint] = useState<Mint | undefined>()
const [info, setInfo] = useState('')
const [error, setError] = useState<AppError | undefined>()
@@ -439,8 +441,8 @@ const $actionItem: ViewStyle = {
}
const $card: ViewStyle = {
marginBottom: spacing.small,
paddingTop: 0,
marginBottom: spacing.small,
// paddingTop: 0,
}
const $cardHeading: TextStyle = {
+2 -2
View File
@@ -99,7 +99,7 @@ export const RemoteBackupScreen: FC<SettingsStackScreenProps<'RemoteBackup'>> =
return (
<Screen style={$screen}>
<View style={[$headerContainer, {backgroundColor: headerBg}]}>
<Text preset="heading" text="Remote backup" style={{color: 'white'}} />
<Text preset="heading" text="Off-device backup" style={{color: 'white'}} />
</View>
<View style={$contentContainer}>
<Card
@@ -111,7 +111,7 @@ export const RemoteBackupScreen: FC<SettingsStackScreenProps<'RemoteBackup'>> =
leftIcon='faInfoCircle'
leftIconColor={colors.palette.iconYellow300}
leftIconInverse={true}
style={$item}
style={$item}
/>
}
/>
+1 -1
View File
@@ -193,7 +193,7 @@ export const RemoteRecoveryScreen: FC<AppStackScreenProps<'RemoteRecovery'>> = o
}
// need to move counter by whole interval to avoid duplicate _B!!!
mintsStore.increaseProofsCounter(mint.mintUrl, endIndex)
mintsStore.increaseProofsCounter(mint.mintUrl, Math.abs(endIndex - startIndex))
if(newKeys) {updateMintKeys(mint.mintUrl as string, newKeys)}
+3 -2
View File
@@ -49,7 +49,8 @@ import AppError, { Err } from '../utils/AppError'
import {
APP_ENV,
CODEPUSH_STAGING_DEPLOYMENT_KEY,
CODEPUSH_PRODUCTION_DEPLOYMENT_KEY,
CODEPUSH_PRODUCTION_DEPLOYMENT_KEY,
MINIBITS_MINT_URL
} from '@env'
import { round } from '../utils/number'
import { NotificationService } from '../services/notificationService'
@@ -89,7 +90,7 @@ export const WalletScreen: FC<WalletScreenProps> = observer(
const isInternetReachable = useIsInternetReachable()
const [info, setInfo] = useState<string>('')
const [defaultMintUrl, setDefaultMintUrl] = useState<string>('https://mint.minibits.cash/Bitcoin')
const [defaultMintUrl, setDefaultMintUrl] = useState<string>(MINIBITS_MINT_URL)
const [error, setError] = useState<AppError | undefined>()
const [isLoading, setIsLoading] = useState<boolean>(false)
+1
View File
@@ -8,6 +8,7 @@ declare module '@env' {
export const MINIBITS_SERVER_API_HOST: string
export const MINIBITS_NIP05_DOMAIN: string
export const MINIBITS_RELAY_URL: string
export const MINIBITS_MINT_URL: string
export const JS_BUNDLE_VERSION: string
export const COMMIT: string
}