GithubHelp home page GithubHelp logo

c-breez's Introduction

breez

In order to build breez you will need to install gomobile and go 1.19.x. If you install go from homebrew, you will have to ensure the GOPATH environment variable is set yourself.

Prepare your environment

git clone https://github.com/breez/breez.git
go install golang.org/x/mobile/cmd/gomobile
go install golang.org/x/mobile/cmd/gobind
export PATH=$PATH:$GOPATH/bin
gomobile init

Building breez for Android

You need to install the ndk as part of your sdk Tools. If you have a separate ndk installed then make sure to set the ANDROID_NDK_HOME environment variable to your ndk install location.

export ANDROID_HOME=<your android sdk directory>

Or in case you want to use a direct ndk path

export ANDROID_NDK_HOME=<your android ndk directory>

If you are using NDK 24+, install NDK r19 and point ANDROID_NDK_HOME to it's folder due to gomobile incompatibility. Alternatively, you can add -androidapi 19 to gomobile command in build script.

If the library will be run on an emulator target, add -ldflags=-extldflags=-Wl,-soname,libgojni.so to gomobile command in build script.

Then you are ready to run the build:

./build.sh

The file breez.aar will be built in build/android/

Building breez for iOS

./build-ios.sh

The bindings.framework will be built in build/ios/

c-breez's People

Contributors

ademar111190 avatar erdemyerebasmaz avatar kingonly avatar ok300 avatar roeierez avatar ubbabeck avatar yaslama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

22388o eswar0109

c-breez's Issues

UX issues with lnurl pay

I was able to pay to tippin service using lnurl pay, here are some issues I found on the way:

  1. When copied the url and then switched the app I used the "Paste invoice or node id" menu and I experienced a few seconds of delay before I saw the lnurl withdraw form, I think we need a loader during the time we access the service API.
  2. After payment (which was successful) I got error flushbar, see screenshot.
  3. After payment I pressed back (from the Android button) and saw the LNURL Invoice page again, it seems that it was still on the stack.

Implement Home page

Currently the home page is broken due to removed code and outdated files.
We need to take this opportunity and clean it up alongside adding the implementation

Lnurl Withdraw issue

Currently when scanning an lnurl withdraw QR the dialog is not shown and logs indicate layout issue.

Implement outgoing payment result stream

Implement outgoing payment result stream to unify all payment success/failures into one stream (with their contextual data such as lnurlData) and handle them in one central handler for UI operations(showing flusbar, closing/opening dialogs etc.) to ensure there's a valid BuildContext at all times.

Implement payment list item and payment dialog

This is about making sure we render correctly (same as Breez wallet) the various payment items both in list and in the dialog.
We should consider here the various types of transactions (send/receive/lnurl/).
At this stage we still didn't implement swapping funds and still don't have API for closed channels so these specific types shouldn't be included for now.

Add useful node commands to developers screen

For debugging and support purposes it is better to add some commands to be invoked directly on the node API (Not the NodeService):

  1. getNodeInfo
  2. listFunds
  3. listPeers
  4. getPayments
  5. getInvoices

Use loader when creating invoice

Creating invoice is using the greenlight service and during that time we need to show a loader similar to how we are showing in breez wallet.

Theme issues

Some theming issues, see bellow screenshots. Should be like breezmobile.

screenshot1
screenshot2
screenshot3

Implement receive via BTC address SDK functionality

  • create swap address, generate script and persist swap info
  • API for listing swaps
  • Redeem swap (receive via lightning)
  • Refund swap (when swap expires)
  • Onchain/Mempool monitoring swap addresses
  • Automatic redeem
  • Binding API
  • Adjustable refund fees

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.