Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o authored Mar 25, 2024
2 parents a3e38ad + 64569fd commit fcf095d
Show file tree
Hide file tree
Showing 16 changed files with 144 additions and 7 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/objective-c-xcode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Xcode - Build and Analyze

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
name: Build and analyse default scheme using xcodebuild command
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Build
env:
scheme: ${{ 'default' }}
run: |
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}
28 changes: 28 additions & 0 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: NodeJS with Webpack

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npx webpack
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Area Layer⚡️

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
## Firebolt Wallet - React Native Version ⚡

⚠️**Wallet in WIP and development**

[![Bitcoin-only](https://img.shields.io/badge/bitcoin-only-FF9900?logo=bitcoin)](https://twentyone.world)
[![LN](https://img.shields.io/badge/lightning-792EE5?logo=lightning)](https://mempool.space/lightning)

React native version for Firebolt wallet with Bitcoin, Lightning Network (Breez), LSP , Coinjoin, Nostr, Payjoin

# Getting Started

Expand Down Expand Up @@ -77,3 +84,13 @@ To learn more about React Native, take a look at the following resources:
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.

## Core functions

The main functions are [here](https://github.com/AreaLayer/FireBolt/tree/main/app)

## Roadmap

- [ ] Core functions
- [ ] Breez
- [ ] Beta App (Android - via APK)
12 changes: 12 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 1.0.0-alpha | :white_check_mark: |
| 1.0.1-alpha | :white_check_mark: |

23 changes: 19 additions & 4 deletions android/app/src/main/java/com/fireboltnew/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
package com.fireboltnew
import android.os.Bundle;

import java.net.HttpURLConnection
import java.net.URL
import java.security.MessageDigest
import java.security.SecureRandom
import java.util.Date
import java.util.Random
import java.util.UUID
import java.util.concurrent.locks.ReentrantLock
import javax.crypto.Cipher
import javax.crypto.spec.GCMParameterSpec
import javax.crypto.spec.SecretKeySpec
import javax.crypto.spec.CoinjoinSpec
import javax.crypto.spec.Bip39Spec

import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate

class MainActivity : ReactActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Expand All @@ -23,4 +32,10 @@ class MainActivity : ReactActivity() {
*/
override fun createReactActivityDelegate(): ReactActivityDelegate =
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
}
override fun createBreezeactActivityDelegate():
(mainComponentName, fabricEnabled)
}
override fn createCoinjoinReactActivityDeledate():
(mainCompoenetName, fabriEnabled)
}
3 changes: 3 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ buildscript {
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
dependencies {
implementation files("../../node_modules/@synonymdev/react-native-ldk/android/libs/LDK-0.0.129")
}}
}

apply plugin: "com.facebook.react.rootproject"
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fireboltNew",
"version": "0.0.1",
"version": "1.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down Expand Up @@ -35,6 +35,8 @@
"readable-stream": "^4.5.2",
"stream-browserify": "^1.0.0",
"vm-browserify": "^0.0.4"
"react-native-svg": "12.1.1",
"react-native-breez-sdk":"0.3.2",
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand All @@ -46,6 +48,7 @@
"@react-native/typescript-config": "0.73.1",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"@breeztech/react-native-breez-sdk":"0.3.2",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
Expand Down
1 change: 1 addition & 0 deletions src/app/coinjoin/main_function.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/app/coinjoin/wallet.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/app/lightning/bolt11.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import
1 change: 1 addition & 0 deletions src/app/lightning/lsp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import
1 change: 1 addition & 0 deletions src/app/lightning/networks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import {Network, Mainnet, Testnet} from ('bitcoinjs-lib');
1 change: 1 addition & 0 deletions src/app/lightning/receive.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import
1 change: 1 addition & 0 deletions src/app/lightning/send.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const {Balance, PaymentFee}

0 comments on commit fcf095d

Please sign in to comment.