forked from BlueWallet/BlueWallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
240 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
arguments=--init-script /var/folders/wp/mctylz615p727_90j3yv0vnc0000gn/T/d146c9752a26f79b52047fb6dc6ed385d064e120494f96f08ca63a317c41f94c.gradle --init-script /var/folders/wp/mctylz615p727_90j3yv0vnc0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle | ||
auto.sync=false | ||
build.scans.enabled=false | ||
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) | ||
connection.project.dir= | ||
eclipse.preferences.version=1 | ||
gradle.user.home= | ||
java.home=/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home | ||
jvm.arguments= | ||
offline.mode=false | ||
override.workspace.settings=true | ||
show.console.view=true | ||
show.executions.view=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21/"/> | ||
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/> | ||
<classpathentry kind="output" path="bin/default"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 | ||
org.eclipse.jdt.core.compiler.compliance=21 | ||
org.eclipse.jdt.core.compiler.source=21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import React from 'react'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
import { | ||
AddComponent, | ||
ImportCustomDerivationPathComponent, | ||
ImportSpeedComponent, | ||
PleaseBackupComponent, | ||
PleaseBackupLNDHubComponent, | ||
PleaseBackupLdkComponent, | ||
ProvideEntropyComponent, | ||
WalletsAddMultisigComponent, | ||
WalletsAddMultisigStep2Component, | ||
WalletsAddMultisigHelpComponent, | ||
} from './LazyLoadAddWalletStack'; | ||
import { AddWalletStackParamList } from '../typings/NavigationTypes'; | ||
import navigationStyle from '../components/navigationStyle'; | ||
import { useTheme } from '../components/themes'; | ||
import loc from '../loc'; | ||
|
||
const Stack = createNativeStackNavigator<AddWalletStackParamList>(); | ||
|
||
const AddWalletStack = () => { | ||
const theme = useTheme(); | ||
return ( | ||
<Stack.Navigator initialRouteName="AddWallet"> | ||
<Stack.Screen | ||
name="AddWallet" | ||
component={AddComponent} | ||
options={navigationStyle({ | ||
closeButton: true, | ||
headerBackVisible: false, | ||
title: loc.wallets.add_title, | ||
})(theme)} | ||
/> | ||
<Stack.Screen name="ImportCustomDerivationPath" component={ImportCustomDerivationPathComponent} /> | ||
<Stack.Screen | ||
name="ImportSpeed" | ||
component={ImportSpeedComponent} | ||
options={navigationStyle({ title: loc.wallets.import_title })(theme)} | ||
/> | ||
<Stack.Screen | ||
name="PleaseBackup" | ||
component={PleaseBackupComponent} | ||
options={navigationStyle({ | ||
gestureEnabled: false, | ||
headerBackVisible: false, | ||
title: loc.pleasebackup.title, | ||
})(theme)} | ||
/> | ||
<Stack.Screen | ||
name="PleaseBackupLNDHub" | ||
component={PleaseBackupLNDHubComponent} | ||
options={navigationStyle({ gestureEnabled: false, headerBackVisible: false, title: loc.pleasebackup.title })(theme)} | ||
/> | ||
<Stack.Screen | ||
name="PleaseBackupLdk" | ||
component={PleaseBackupLdkComponent} | ||
options={navigationStyle({ | ||
title: loc.pleasebackup.title, | ||
gestureEnabled: false, | ||
headerBackVisible: false, | ||
})(theme)} | ||
/> | ||
<Stack.Screen | ||
name="ProvideEntropy" | ||
component={ProvideEntropyComponent} | ||
options={navigationStyle({ title: loc.entropy.title })(theme)} | ||
/> | ||
<Stack.Screen name="WalletsAddMultisig" component={WalletsAddMultisigComponent} options={navigationStyle({ title: '' })(theme)} /> | ||
<Stack.Screen | ||
name="WalletsAddMultisigStep2" | ||
component={WalletsAddMultisigStep2Component} | ||
options={navigationStyle({ title: '', gestureEnabled: false })(theme)} | ||
/> | ||
<Stack.Screen | ||
name="WalletsAddMultisigHelp" | ||
component={WalletsAddMultisigHelpComponent} | ||
options={navigationStyle({ | ||
title: '', | ||
gestureEnabled: false, | ||
headerStyle: { | ||
backgroundColor: '#0070FF', | ||
}, | ||
headerTintColor: '#FFFFFF', | ||
headerBackTitleVisible: false, | ||
statusBarStyle: 'light', | ||
headerShadowVisible: false, | ||
})(theme)} | ||
/> | ||
</Stack.Navigator> | ||
); | ||
}; | ||
|
||
export default AddWalletStack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import React, { lazy, Suspense } from 'react'; | ||
import { View, ActivityIndicator, StyleSheet } from 'react-native'; | ||
|
||
// Define lazy imports | ||
const WalletsAdd = lazy(() => import('../screen/wallets/Add')); | ||
const ImportCustomDerivationPath = lazy(() => import('../screen/wallets/importCustomDerivationPath')); | ||
const ImportSpeed = lazy(() => import('../screen/wallets/import')); | ||
const PleaseBackup = lazy(() => import('../screen/wallets/PleaseBackup')); | ||
const PleaseBackupLNDHub = lazy(() => import('../screen/wallets/pleaseBackupLNDHub')); | ||
const PleaseBackupLdk = lazy(() => import('../screen/wallets/pleaseBackupLdk')); | ||
const ProvideEntropy = lazy(() => import('../screen/wallets/provideEntropy')); | ||
const WalletsAddMultisig = lazy(() => import('../screen/wallets/addMultisig')); | ||
const WalletsAddMultisigStep2 = lazy(() => import('../screen/wallets/addMultisigStep2')); | ||
const WalletsAddMultisigHelp = lazy(() => import('../screen/wallets/addMultisigHelp')); | ||
|
||
const LoadingIndicator = () => ( | ||
<View style={styles.root}> | ||
<ActivityIndicator size="large" /> | ||
</View> | ||
); | ||
|
||
export const AddComponent = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<WalletsAdd /> | ||
</Suspense> | ||
); | ||
|
||
export const ImportCustomDerivationPathComponent = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<ImportCustomDerivationPath /> | ||
</Suspense> | ||
); | ||
|
||
export const ImportSpeedComponent = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<ImportSpeed /> | ||
</Suspense> | ||
); | ||
|
||
export const PleaseBackupComponent = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<PleaseBackup /> | ||
</Suspense> | ||
); | ||
|
||
export const PleaseBackupLNDHubComponent = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<PleaseBackupLNDHub /> | ||
</Suspense> | ||
); | ||
|
||
export const PleaseBackupLdkComponent = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<PleaseBackupLdk /> | ||
</Suspense> | ||
); | ||
|
||
export const ProvideEntropyComponent = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<ProvideEntropy /> | ||
</Suspense> | ||
); | ||
|
||
export const WalletsAddMultisigComponent = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<WalletsAddMultisig /> | ||
</Suspense> | ||
); | ||
|
||
export const WalletsAddMultisigStep2Component = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<WalletsAddMultisigStep2 /> | ||
</Suspense> | ||
); | ||
|
||
export const WalletsAddMultisigHelpComponent = () => ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<WalletsAddMultisigHelp /> | ||
</Suspense> | ||
); | ||
|
||
const styles = StyleSheet.create({ | ||
root: { flex: 1, justifyContent: 'center', alignItems: 'center' }, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.