-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* LNDHub: transactions call fix * Add missing `BITCOIN:` url scheme for iOS * Updated versions in bug template * Taproot: send and receive * Taproot: add new locale strings * Linking fixes * Spark fixes * handle LNURL-auth when node doesn't support it * Lint: Security * Spark: fix address generation * Main pane: fix display of Tor onion * Make sure max parts options only appear for implentations that support MPP/AMP * Version bump: v0.6.5 * Taproot: new style for Address type selection * LND: handle commas when setting channel fees * Make sure Taproot support can be assessed when setting Address types * Remove default LNDHub host * v0.6.5: bump iOS build to 2 * CLN: createInvoice: expiry fix * ErrorUtils: user friendly error messages * Address select modal QA. * Lint fix. * Added quality assurance to PR template * Android: NFC intent * handleAnything: don't throw alert when filling out Send form * Update React: 18.1.0, React Native: 0.68.2 * Remove unused react-native-animated * OpenChannel: Remove private var as it is restricted * OpenChannel: don't announce channels by default * Android: set up NFC app linking * AndroidManifest: Remove redundant NFC config * PaymentRequest: enhance UI * MobileTools: add credit to source * PaymentRequest: clear store values on navigation back * AddEditNode: add Spark QR scanner * Locales: v0.6.5 * bump version to v0.6.5-rc1 * v0.6.5: bump iOS build to 3 * Roll back RN to 0.67.2 * v0.6.5: bump iOS build to 4 * Revert "Roll back RN to 0.67.2" * SparkQRScanner: add React import * v0.6.5: bump iOS build to 5 * CollapsedQR: fix color of icon on Hide/Show button * SparkQRScanner: fix imports to include implementation * Fix typo * Add lndhub.io as the first custodial lndhub It seems that BlueWallet is connecting to lndhub.io by default and by looking at https://lndhub.io and https://lndhub.herokuapp.com it seems these two are using the same backend * About: add new sponsor tiers * Locales: v0.6.5-rc2 * Version bump: v0.6.5-rc2 * Add c-lightning-REST QR scanner * xcodeproj: v0.6.5: bump project version to 7 * Android 12: remove top margin hack * Version bump: v0.6.5-rc3 * Update README.md * OnchainSwippeableRow: fix animation render for receive and send actions depends on supportsCoinControl and not supportsRouting * SwipeableRow: fix animation width for middle action if supported The actual value of 100 does not match with any other width animated value. The value should be 200 because if present, the width of others is 200. * SwipeableRow: add opacity transition for actions Since the routing and coins width animations are correct, the button can appear on the right at the beginning of the swap. Adding opacity transition hide this buttons. * Wallet: only enable event listeners after unlock * Locales: Missing translation labels in Help menu * Locales: v0.6.5-rc4 * Version bump: v0.6.5-rc4 * Version bump: v0.6.5 * GitHub Actions: add prettier * GitHub Actions: add lint * GitHub Actions: Remove old main workflow * Fix branches * Add checks:write permission * Fix link to 'Zeus over Tor guide for RaspiBolt' * AndroidManifest.xml: Don't make NFC a requirement Existing config leads to Google Play prevented users without NFC from being able to download the app * Update README.md w/ new node solution Add link to Citadel (https://runcitadel.space/) to Full Node Solutions * Add lint workflow * Update prettier workflow * Bug fix: Custom block explorer url force prefixed with https:/ (#1053) * attempted fix of issue 1051 #1051 if a custom instance of mempool.space is used 'block-height' -> 'block' translation will fail! could we hint in the url, that it must happen? * Handle <schema>://<ip>:<port>#mempool.space We can now hint in a custom url to use mempool.space type path convention. Anything behind the first # will get cut off from host, and any other value than mempool.space gets ignored. * Handle <scheme>://<ip>:<port>#mempool.space fix typo: schema -> scheme * Clarifying url host convention hint behavior Translate 'block-height' to 'block' if: a) host is 'mempool.space' b) host is in url form ending in convention hint '#mempool.space' Everything from the first '#' is stripped from host, other convention hints are currently completely ignored * after prettier * UrlUtils.ts: remove inferred type Co-authored-by: Evan Kaloudis <[email protected]> * Update Mortals display (#1058) * Update splash images (#1057) * Android: new splash screen * Update intro splash image * Bump nth-check and react-native-svg Bumps [nth-check](https://github.com/fb55/nth-check) and [react-native-svg](https://github.com/react-native-community/react-native-svg). These dependencies needed to be updated together. Updates `nth-check` from 1.0.2 to 2.1.1 - [Release notes](https://github.com/fb55/nth-check/releases) - [Commits](fb55/nth-check@v1.0.2...v2.1.1) Updates `react-native-svg` from 9.13.6 to 13.0.0 - [Release notes](https://github.com/react-native-community/react-native-svg/releases) - [Commits](software-mansion/react-native-svg@v9.13.6...v13.0.0) --- updated-dependencies: - dependency-name: nth-check dependency-type: indirect - dependency-name: react-native-svg dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Reproducible builds (#1055) * Simplre reproducible builds * clone the branch you're reproducing * fix branch/tag argument taking + use master as default * be able to execute build.sh more than once * Simplifiying process * Updating rn-nodeify to 10.3.0 to avoid issue * Deleting compile and Dockerfile as they're not used anymore * Updated simplified build script and README file with instructions to build * Simplify / beautify build script * Commenting out the singning process for release in build.gradle * Build and sign every apk * Cut apk location up to current location for easy location of files * Remove signing code * Delete unused variables * Updated instructions * README: update reproducible instructions * build.sh: lock in Docker image version reactnativecommunity/react-native-android:5.4 Co-authored-by: Evan Kaloudis <[email protected]> * Version bump: v0.6.6 (#1060) * package.json: version bump to v0.6.6 * Android: version bump to v0.6.6 * iOS: version bump to v0.6.6 * package-lock.json: update (#1061) * F-Droid: update metadata (#1062) * F-Droid: update metadata * Update featureGraphic * Locales: v0.6.6 (#1063) * README: update F-Droid link * Update bug_report.yml Add v0.6.5 + v0.6.6 * remove fallbackResource for react native 0.68 upgrade (#1066) * style pinpad to avoid overlap on smaller screens (#1067) * Sponsors: fix display on iPod Touch (#1070) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: benthecarman <[email protected]> Co-authored-by: bosch <[email protected]> Co-authored-by: bosch <[email protected]> Co-authored-by: Pavol Rusnak <[email protected]> Co-authored-by: Louis Aussedat <[email protected]> Co-authored-by: Andrei <[email protected]> Co-authored-by: sz3k <[email protected]> Co-authored-by: moonsettler <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Luis Miguel <[email protected]> Co-authored-by: deregs <[email protected]>
- Loading branch information
1 parent
a75d17c
commit 24f75c8
Showing
109 changed files
with
7,203 additions
and
3,154 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Lint | ||
on: [push] | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '12.x' | ||
- run: npm ci | ||
- run: npm run lint |
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
name: Prettier | ||
on: [push] | ||
jobs: | ||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '12.x' | ||
- run: npm ci | ||
- run: npm run prettier |
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
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
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,90 @@ | ||
// based on Blixt LNDMobileTools | ||
// https://github.com/hsjoberg/blixt-wallet/blob/master/android/app/src/main/java/com/blixtwallet/MainApplication.java | ||
package app.zeusln.zeus; | ||
|
||
import android.nfc.Tag; | ||
import android.nfc.NfcAdapter; | ||
import android.nfc.NdefMessage; | ||
import android.nfc.tech.Ndef; | ||
import android.nfc.NdefRecord; | ||
|
||
import java.util.Arrays; | ||
import java.io.UnsupportedEncodingException; | ||
|
||
import com.facebook.react.bridge.ReactApplicationContext; | ||
import com.facebook.react.bridge.ReactContextBaseJavaModule; | ||
import com.facebook.react.bridge.ReactMethod; | ||
import com.facebook.react.bridge.Promise; | ||
|
||
import com.hypertrack.hyperlog.HyperLog; | ||
|
||
class MobileTools extends ReactContextBaseJavaModule { | ||
final String TAG = "MobileTools"; | ||
|
||
public MobileTools(ReactApplicationContext reactContext) { | ||
super(reactContext); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "MobileTools"; | ||
} | ||
|
||
@ReactMethod | ||
public void getIntentNfcData(Promise promise) { | ||
// https://code.tutsplus.com/tutorials/reading-nfc-tags-with-android--mobile-17278 | ||
Tag tag = getReactApplicationContext() | ||
.getCurrentActivity().getIntent().getParcelableExtra(NfcAdapter.EXTRA_TAG); | ||
if (tag == null) { | ||
promise.resolve(null); | ||
return; | ||
} | ||
|
||
Ndef ndef = Ndef.get(tag); | ||
if (ndef == null) { | ||
HyperLog.d(TAG, "NFC tag is not NDEF"); | ||
promise.resolve(null); | ||
} | ||
|
||
NdefMessage ndefMessage = ndef.getCachedNdefMessage(); | ||
|
||
NdefRecord[] records = ndefMessage.getRecords(); | ||
if (records.length > 0) { | ||
// Get first record and ignore the rest | ||
NdefRecord record = records[0]; | ||
if (record.getTnf() == NdefRecord.TNF_WELL_KNOWN && Arrays.equals(record.getType(), NdefRecord.RTD_TEXT)) { | ||
/* | ||
* See NFC forum specification for "Text Record Type Definition" at 3.2.1 | ||
* | ||
* http://www.nfc-forum.org/specs/ | ||
* | ||
* bit_7 defines encoding | ||
* bit_6 reserved for future use, must be 0 | ||
* bit_5..0 length of IANA language code | ||
*/ | ||
byte[] payload = record.getPayload(); | ||
|
||
// Get the Text Encoding | ||
String textEncoding = ((payload[0] & 128) == 0) ? "UTF-8" : "UTF-16"; | ||
|
||
// Get the Language Code | ||
int languageCodeLength = payload[0] & 0063; | ||
|
||
// String languageCode = new String(payload, 1, languageCodeLength, "US-ASCII"); | ||
// e.g. "en" | ||
|
||
try { | ||
String s = new String(payload, languageCodeLength + 1, payload.length - languageCodeLength - 1, textEncoding); | ||
promise.resolve(s); | ||
return; | ||
} catch (UnsupportedEncodingException e) { | ||
HyperLog.e(TAG, "Error returning ndef data", e); | ||
} | ||
} | ||
else { | ||
HyperLog.d(TAG, "Cannot read NFC Tag Record"); | ||
} | ||
} | ||
promise.resolve(null); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
android/app/src/main/java/com/zeus/MobileToolsPackage.java
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,22 @@ | ||
package app.zeusln.zeus; | ||
|
||
import com.facebook.react.ReactPackage; | ||
import com.facebook.react.bridge.NativeModule; | ||
import com.facebook.react.bridge.ReactApplicationContext; | ||
import com.facebook.react.uimanager.ViewManager; | ||
|
||
import java.util.Arrays; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class MobileToolsPackage implements ReactPackage { | ||
@Override | ||
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) { | ||
return Collections.emptyList(); | ||
} | ||
|
||
@Override | ||
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) { | ||
return Arrays.asList(new MobileTools(reactContext)); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.