Skip to content

hypha-dao/hashed-wallet

Repository files navigation

Hashed Wallet

Polkadot Wallet With Social Recovery

by Hypha Hashed Partners

Getting Started

Prerequisites

Install Flutter

There is three ways to run the app: Native on device, on iOS Simulator, or on Android Emulator.

1 - Native on Phone

Provide email and I will add you to Google Play Store Testing Track, and iOS Testflight, to install the app natively through the respective app stores.

2 - MacOS

On MacOS, install XCode

This will install an app called "Simluator" - run Simulator

3 - Other platforms

On other platforms, install the Android Emulator and Android Studio

Run the app (Milestone 1)

git clone [email protected]:hypha-dao/hashed-wallet.git
cd hashed-wallet
git checkout v1.0.0_M1_00 
flutter pub get
flutter run

Testing with docker

Prerequisites: Docker is installed.

cd docker
docker build --progress=plain -t flutterdocker .

Note: The docker build also runs the unit tests, and fails if the unit tests fail.

The docker build can be run repeatedly - the results are cached, but the cache is invalidated any time there's an update to the code repository so if there is new code, the tests run again.

Build

Build for Android

Create an app bundle and upload to Google Play

flutter build appbundle

Build for iOS

For iOS App store release, we build with XCode - but before running the XCode build, we need to run the flutter build for iOS.

1 - Build for iOS flutter flutter build ios

2 - Build with XCode for App store distrubution as usual

Minimum iOS version is 14

There are two dependencies on iOS 14.

1 - iOS versions before 14 do not support WASM in JavaScriptCore. Polkadot JS requires WASM support.

2 - flutter_inapp_webview has bugs in iOS versions < 14