Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjoberg committed Mar 5, 2020
1 parent fed3330 commit 9a759c7
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Blixt Lightning Wallet

Blixt Wallet is an open source Lightning first Bitcoin Wallet for Android with focus on usability and user experience,
Blixt Wallet is an open source Lightning Bitcoin Wallet for Android with focus on usability and user experience,
powered by lnd and Neutrino SPV.

<p>
Expand All @@ -21,31 +21,31 @@ powered by lnd and Neutrino SPV.
- [x] Local channel backup
- [x] Thor support/Partial [lnurl](https://github.com/btcontract/lnurl-rfc/blob/master/spec.md) support
- [x] Channel backup to Google Drive
- [ ] [WebLN](https://webln.dev/) support
- [x] [WebLN](https://webln.dev/) browser
- [ ] NFC
- [ ] WatchTower
- [ ] URL Payments
- [ ] Pay to Username

## Known bugs
## Known Bugs

The wallet uses lnd that is young and might have bugs. Check [lnd bug list here](https://github.com/lightningnetwork/lnd/issues?q=is%3Aissue+is%3Aopen+label%3Abug)

## Development

Do you like React Native, Java SE 8 or Lightning? Come and help out!
Do you like React Native, Java or Lightning? Come and help out!

## Build steps
## Build Steps

- Install Go, Node, Yarn, react-native CLI, Android Studio and Android SDK (using npm instead of yarn might work)
- Install [Node](https://nodejs.org), [Yarn](https://classic.yarnpkg.com/), [Android Studio + Android SDK (including NDK)](https://developer.android.com/studio/)
- If needed, install an emulated android device inside Android Studio
- (Optional) Build lnd for Android by following the steps in [build-android-aar.md](build-android-aar.md)
- Install Node packages: `yarn`
- Generate proto files: `yarn gen-proto`
- Run: `yarn start-metro`
- Run: `yarn testnet-debug`

## Commit and code-style
## Commit and Code-Style

Follow the code style of the file you are working in.
For commits, make descriptive and atomic git commits.
Expand Down
7 changes: 4 additions & 3 deletions build-android-aar.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Make sure Go and environment vars are set up before proceeding.
Make sure you have installed [Go](https://golang.org) before proceeding.

* Get lnd: `go get -d github.com/lightningnetwork/lnd`
* `cd src/github.com/lightningnetwork/lnd/`
* Get and init gomobile: `go get golang.org/x/mobile/cmd/gomobile` and `gomobile init`
* Get and init gomobile: `go get golang.org/x/tools/cmd/goimports`, `go get golang.org/x/tools/go/packages`, `go get golang.org/x/mobile/cmd/gomobile` and `gomobile init`
* Add router prefix by editing `mobile/gen_bindings.sh` on line 47
* Compile with `make android`
* Put Lndmobile.aar file inside android/lndmobile
* Put `mobile/build/android/Lndmobile.aar` file inside `android/lndmobile`
5 changes: 3 additions & 2 deletions native-base-theme/variables/commonColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
import color from 'color';
import { Platform, Dimensions, PixelRatio } from 'react-native';

// https://coolors.co/151314-232323-bc6610-f2af13-e5eaea
export const blixtTheme = {
dark: "#151314",
gray: "#232323",
primary: "#bc6610",
secondary: "#f2af13",
dark: "#151314",
light: "#e5eaea",

gray: "#232323",
lightGray: "#878787",
red: "#d0311e",
green: "#1c8c27",
Expand Down
4 changes: 1 addition & 3 deletions src/state/LNURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,10 @@ export const lnUrl: ILNUrlModel = {
const localPubkey = getStoreState().lightning.nodeInfo!.identityPubkey;
const [pubkey, host] = lnUrlObject.uri.split("@");
try {
const connectPeerResult = await connectPeer(pubkey, host);
await connectPeer(pubkey, host);
} catch (e) {}
const request = `${lnUrlObject.callback}?k1=${lnUrlObject.k1}&remoteid=${localPubkey}&private=1`;
log.v(request);
const result = await fetch(request);
log.v(JSON.stringify(result));
const response: ILNUrlChannelRequestResponse = await result.json();
log.v(JSON.stringify(response));

Expand Down
1 change: 1 addition & 0 deletions src/windows/Settings/LightningNodeInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default () => {
<MetaData title="Testnet" data={nodeInfo.testnet!.toString()} />
{nodeInfo.uris && nodeInfo.uris.length > 0 && <MetaData title="Node URIs" data={nodeInfo.uris.join("\n")} />}
<MetaData title="Lnd Version" data={nodeInfo.version!} />
<MetaData title="Node features" data={Object.values(nodeInfo.features!).map((feature) => feature.name).join(", ")} />
</ScrollView>
</Body>
</CardItem>
Expand Down
9 changes: 4 additions & 5 deletions src/windows/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,12 @@ export default ({ navigation }: ISettingsProps) => {
// Clipboard invoice check
const clipboardInvoiceCheckEnabled = useStoreState((store) => store.settings.clipboardInvoiceCheckEnabled);
const changeClipboardInvoiceCheckEnabled = useStoreActions((store) => store.settings.changeClipboardInvoiceCheckEnabled);
const checkInvoice = useStoreActions((store) => store.clipboardManager.checkInvoice);
const onToggleClipBoardInvoiceCheck = async () => {
await changeClipboardInvoiceCheckEnabled(!clipboardInvoiceCheckEnabled);
const clipboardText = await Clipboard.getString();
await checkInvoice(clipboardText);

};

// Copy log
Expand Down Expand Up @@ -516,11 +520,6 @@ export default ({ navigation }: ISettingsProps) => {
<Body><Text>Automatically open channels</Text></Body>
<Right><CheckBox checked={autopilotEnabled} onPress={onToggleAutopilotPress} /></Right>
</ListItem>
{/* <ListItem style={style.listItem} button={true} icon={true} onPress={() => {}}>
<Left><Icon style={style.icon} type="Entypo" name="fingerprint" /></Left>
<Body><Text>Backup channels to Google Drive</Text></Body>
<Right><CheckBox checked={false} /></Right>
</ListItem> */}


{/* <ListItem style={style.itemHeader} itemHeader={true}>
Expand Down

0 comments on commit 9a759c7

Please sign in to comment.