Commit Graph

1414 Commits

Author SHA1 Message Date
tomFlowee dad6f54790 New bugfix version 2023.11.1 2023-11-30 21:16:52 +01:00
tomFlowee 47746e724d Follow upstream includes rename
The PublicKey. and PrivteKey.h used to be called different.
2023-11-24 18:20:41 +01:00
tomFlowee 2d49bfb804 Payments are valid also with non-p2pkh targets. 2023-11-19 17:14:56 +01:00
tomFlowee 6bafcecde9 Wrap the GuiSettings in a Flickable
For some screens it would not fit anymore on one screen.
2023-11-06 20:03:52 +01:00
tomFlowee e2c5d7191e Avoid buttons overlapping. 2023-11-06 19:48:13 +01:00
tomFlowee fc33df842b Update android version 2023.11.0 2023-11-06 18:02:16 +01:00
tomFlowee d976ebbb59 Set focus properly after scanning.
In the case where there is no specific input needed, because the amounts
were all specified, we still need to set the focus to the page because
otherwise 'back' / 'esc' don't behave correctly.
2023-11-06 17:17:18 +01:00
tomFlowee 2279369569 Fix typo in language-name
Thanks for Georg for reporting!
2023-11-06 16:29:01 +01:00
tomFlowee 038cd72428 Re-work 'back' button behavior
Pressing 'Escape' or (android) back button is now more logical.
Closing the menu is new, going back to the 'main' tab as well.
This also fixes some odd behavior when using the back button while the
camera is active.

And last, when there is nothing more to back out of, on Android we end
up closing the application. This is what people expect on that platform.
2023-11-06 16:27:19 +01:00
tomFlowee be3d6607e7 UX; quick-change darkmode unsets system
User-changing the darkmode implicitly unsets the app following the
system setting.
2023-11-06 15:00:25 +01:00
tomFlowee 00069c10b6 Import translations from crowdin
Also apply the CF changes
2023-11-06 14:18:00 +01:00
tomFlowee 25909437fd Clarify the terminology 2023-11-06 12:40:11 +01:00
tomFlowee d8e45a93fb Make swipe-start area smaller
To swipe from the left edge now is limited to only 50 'pixels'
instead of half the width.

Additionally, don't allow interaction while the app pin-screen
is showing.
2023-11-04 16:27:55 +01:00
tomFlowee 1ad76e4857 Start new version 2023-11-04 16:00:01 +01:00
tomFlowee a3500b3fff Lower logs in exe on mobile 2023-11-04 15:59:49 +01:00
tomFlowee 73ac074009 Avoid saving twice
This avoid us calling save twice within milliseconds.
2023-11-04 00:02:43 +01:00
tomFlowee cd3e4495d7 Fix linter issue; init order. 2023-11-04 00:01:16 +01:00
tomFlowee 99801a2bf6 Cleanup network logger cmake stuff
Move messge below the main apps
Make the defines to be used in all places.
2023-11-03 19:41:56 +01:00
tomFlowee e8530f5255 Various fixes for huge values.
Avoid overflow when typing improbably big numbers.
2023-11-03 15:55:13 +01:00
tomFlowee 750dc9b54d Format currency concistently.
Negative values have the minus now also here before any currency symbol.
2023-11-03 14:48:32 +01:00
tomFlowee 7729854fc0 Update various versions for Android build-env
Boost -> 1.83
Qt -> 6.5.3
OpenSSL -> 3.1.3
ZXIng -> 2.1.0
2023-11-01 20:23:29 +01:00
tomFlowee c962b6db18 Improve bip70 support
This makes the system work for non-standard addresses and different
number of outputs (than one).
2023-10-31 15:40:45 +01:00
tomFlowee a7fd8a4d86 UX: hide help text when not appropriate. 2023-10-31 15:25:31 +01:00
tomFlowee 692b29404f add credits 2023-10-29 22:50:41 +01:00
tomFlowee 896854bc2d Import translations from crowdin 2023-10-29 22:46:22 +01:00
tomFlowee 2600dd960c Remove stop 2023-10-29 15:59:12 +01:00
tomFlowee d5f53acc39 Fix display bug, missing texts. 2023.10.0 2023-10-29 11:34:29 +01:00
tomFlowee e67d5a1453 {Android} fetch phone dark-theme setting.
This calls Java code on Android through the Qt JNI bridge
in order to learn the phone-wide setting of dark-theme.

For new installs this will now follow the phone setting by default.
Add GuiSettings: dark mode option.
2023-10-28 12:18:11 +02:00
tomFlowee b83202cd0a Stop including the info file in the APK 2023-10-25 13:23:12 +02:00
tomFlowee 1cdd10ac66 Ensure file-format stays the same.
These enum values are defined in an external lib, as such we make sure
that any changes in them are instantly detected here.
2023-10-24 20:32:31 +02:00
tomFlowee f99fa5d109 new version 2023-10-24 20:25:51 +02:00
tomFlowee 7ba2740986 Work on basic blockheaders changes
The flowee lib added support for various blockheader improvements.
An important one is the ability to start from a checkpoint and thus
lower the requirements at the cost of a slightly lower security.
This adds support for that.

The local part is that we stop shipping the 'info' file (some 25MB
for the full chain) in the APK / deb files, instead buiding it on first
start.
2023-10-24 20:25:51 +02:00
tomFlowee f687c7de76 Pull request Add importing Electrum mnemonic wallets.
Reviewed-on: https://codeberg.org/Flowee/pay/pulls/22
2023-10-23 15:08:52 +00:00
Calin Culianu 95ff48c314 Implement reviewer suggestion plus fixes
In addition:

- Made it work with latest commit to Flowee/thehub/#5.
- Works better now when decrypting the wallet (accountInfo.isElectrum property
  should not be CONSTANT but instead notify on change)
- Made the actual wallet seed phrase type get saved to the wallet rather
  than a bool. This type comes from enum HDMasterKey::MnemonicType in
  thehub libs.
2023-10-19 18:26:50 +03:00
Calin Culianu 5b5a9f9c96 Added Electrum mnemonic format changes to mobile app UI
This works just like the desktop app.
2023-10-19 18:26:50 +03:00
Calin Culianu d2550aee3f Add support for importing wallets using Electrum mnemonic phrases
This is the format used by (older) Electron Cash wallets. It may be
useful to users wishing to use their older EC wallets with Flowee Pay.

Highlight of changes:

- Import wallet UI now auto-detects whether it's Electrum or BIP39. Note
  that in some cases a valid BIP39 seed is also a valid Electrum seed.
  The user has a UI element checkbox for "forcing" Electrum
  interpretation in such cases.
- Electrum seed phrases always use derivation path "m/" so this is
  forced on the user as the only path available in the Electrum case.
- Wallet file format has a new tag to indicate whether the seed phrase
  is electrum or not. Only present in the electrum case, otherwise it's
  omitted from the serialized data.
2023-10-19 18:26:50 +03:00
tomFlowee fb2ff62f4d Merge pull request 'Removed this assertion as it was leading to a crash on my testnet4' (#23) from cculianu/pay:remove_output_value_assertion_fix_crash into master
Reviewed-on: https://codeberg.org/Flowee/pay/pulls/23
2023-10-19 07:00:23 +00:00
Calin Culianu 69cc7bcd3b Removed this assertion as it was leading to a crash on my testnet4
It's possible for an output amount to be 0 on a real blockchain -- a
miner can mine a txn paying 0 to any address!

Such a thing happened on testnet4.
2023-10-19 06:47:32 +03:00
tomFlowee 66def83e3b Fix swapped text. 2023-10-18 21:28:40 +02:00
Calin Culianu 7292769c36 Fix compiler warnings on macOS clang
Just some nits but here is what the compiler didn't like:

- Apparently Qt's `qAsConst` is marked as deprecated (at least in Qt
  6.6.0), so they recommend one uses `std::as_const`
- Compiler feels happier with `#ifdef` rather than `#if` for
  `TARGET_OS_Android` in the not-defined case.
2023-10-18 14:19:04 +03:00
tomFlowee 1deccd9226 Make fiat mode an actual bool on BitcoinValue
The CPP now does more of the (heavy) lifting and the UI layer can
ignore
most of the details with regards to there being digits behind the
separator for fiat at all.

The internal change is that the fiat based values are always processed
in cents, even if the cents are not displayed. This solves incorrect
display and generally removes special cases.
2023-10-18 11:43:23 +02:00
tomFlowee 33ba861af2 Make sure the value is up-to-date. 2023-10-18 11:39:35 +02:00
tomFlowee 9c857ec7d3 Merge pull request 'Fix build issues on macOS + clang' (#20) from cculianu/pay:fix_build_macos_clang into master
Reviewed-on: https://codeberg.org/Flowee/pay/pulls/20
2023-10-17 21:03:35 +00:00
Calin Culianu ddeac5622f Fix build issues on macOS + clang 2023-10-17 22:02:08 +03:00
tomFlowee c3acf0c12f Fix cli 'connect' arg using wrong port on testnet4 2023-10-17 20:05:54 +02:00
tomFlowee c219dd5798 Fixlet; the repo and default checkout is called pay 2023-10-17 18:07:43 +02:00
tomFlowee 04bd9f51b7 Fix off-by-one in the assert. 2023-10-17 18:06:11 +02:00
tomFlowee dbbbd79f0a Add comment explaining the warning. 2023-10-17 12:02:24 +02:00
tomFlowee 2e71a162aa Tweak and fix clipboard paste based workflows.
One surprise was that the main usecase of pasting is one where the user
activates another app to go and copy data in order to come back to paste
it.
And the Qt clipboard didn't manage to get any notification of clipboard
changes. Even copying data on becoming active had no effect.

So now I just show the paste optimistically when the user comes back
from another screen, assuming the main reason for that was to copy.
2023-10-17 12:02:24 +02:00
tomFlowee 38a9ad3a4e Fixlets in colors.
Make sure that the header-menu actually is visible on Pages.
2023-10-17 12:02:24 +02:00