Commit graph

7477 commits

Author SHA1 Message Date
Manfred Karrer
def47b6a48
Merge pull request #1959 from cbeams/remove-bat-scripts
Remove .bat scripts unless user OS is Windows
2018-11-24 12:09:53 +01:00
Manfred Karrer
880a8412fc
Merge pull request #1957 from j3ko/release-candidate-0.9.0
Add advanced cash payment method
2018-11-24 12:09:04 +01:00
Chris Beams
46ee12dd62
Remove .bat scripts unless user OS is Windows
Previously, start scripts were generated for both *nix and Windows
platforms, resulting in an unnecessarily cluttered root directory.

With this change, both types of script are still generated, but Windows
.bat scripts are deleted immediately afterward if the user is running a
non-Windows OS (unfortunately, there was no clean way to suppress the
generation of these scripts in the Gradle StartScripts API).

See #1956
2018-11-24 10:12:23 +01:00
Jeffrey Ko
dd3abd2996
make advanced cash payment method more consistent ok pay payment method 2018-11-24 13:26:12 +07:00
Manfred Karrer
d7fe1dbeb3
Handle edge cases with removed arbitrators 2018-11-24 00:44:56 +01:00
Manfred Karrer
319c043e43
Handle backward compatibility with new arbitr. selection
- Remove activationDate
- Refactor ProcessOfferAvailabilityResponse and handle offers from
old versions in case the available arbitrators has changed.
- Remove MakerVerifyMediatorSelection and TakerSelectArbitrator

The mediator handling should be removed as it is not used and not
intended anymore to be used with the current trade protocol, but we
leave that as it is a bit tricky to ensure backward compatibility.
Also the setting of the arbitrator in trade should be further refactored
but as it is also easy to break backward compatibility here we leave
that for now. As we work on the new trade protocol that domain will
become deprecated anyway in the next months...
2018-11-24 00:23:46 +01:00
Manfred Karrer
1ba0402dfb
Handle backward compatibility with new arbitration selection model. 2018-11-23 22:14:31 +01:00
Manfred Karrer
d98f3c12cf
Add default genesis tx info for regtest 2018-11-23 20:48:52 +01:00
Manfred Karrer
d372a9e4b3
Merge pull request #1956 from cbeams/root-scripts
Generate scripts for Bisq executables in root dir
2018-11-23 20:04:07 +01:00
Chris Beams
fc0491d8da
Generate scripts for Bisq executables in root dir
This change configures the Gradle build to generate "start scripts" for
each Bisq executable (e.g. Bisq Desktop, Bisq Seednode, etc) in the root
project directory, such that after invoking `./gradle build`, the
following executable scripts become available:

    ~/Work/bisq-network/bisq
    $ ls -1 | egrep '(bisq*|lib)'
    bisq-desktop
    bisq-desktop.bat
    bisq-monitor
    bisq-monitor.bat
    bisq-relay
    bisq-relay.bat
    bisq-seednode
    bisq-seednode.bat
    bisq-statsnode
    bisq-statsnode.bat
    lib

This makes it possible for users (developers) to easily discover and use
these scripts in an idiomatic and platform-agnostic way as opposed to
the previous situation where we would advise users to run e.g.

    java -jar desktop/build/libs/desktop-0.8.0-SNAPSHOT-all.jar

This approach works, but is cumbersome and focuses unnecessarily on the
Java-based nature of the project. Now, with the changes in this commit,
the user would simply run:

    ./bisq-desktop

The 'lib' directory shown above contains all the jar files necessary to
construct classpaths for these various scripts. The 'cleanInstallDist'
task deletes the 'bisq-*' files and the 'lib' directory, and the default
'clean' task has been configured to depend on the 'cleanInstallDist'
task to ensure this cleanup happens automatically when most users would
expect it.

In the future, these same scripts can be used when installing Bisq
executables properly on users' systems via package managers like Brew
and Apt. The goal is to have the user experience around running
`bisq-desktop` (and more importantly, the forthcoming `bisqd`) be
similar in every way to installing and using `bitcoind`, `lnd` and other
idiomatic *nix-style utilities, be they Bitcoin-related or not.

See the changes in docs/build.md and docs/dev-setup.md for a further
sense of the how this change impacts the developer experience.
2018-11-23 15:00:47 +01:00
Jeffrey Ko
4cd2ac8d40
Add advanced cash payment method 2018-11-23 20:50:03 +07:00
Chris Beams
a57a4a71c0
Remove unused Utilities import
This change should have been included in 63cec4252 (#1955).
2018-11-23 11:28:58 +01:00
Manfred Karrer
15c776874e
Merge branch 'master' into release-candidate-0.9.0
# Conflicts:
#	.editorconfig
2018-11-23 11:24:07 +01:00
Manfred Karrer
63cec42523
Merge pull request #1955 from cbeams/quell-help-on-error
Quell help output on option parsing error
2018-11-23 11:21:56 +01:00
Manfred Karrer
13aacc3c38
Merge pull request #1954 from cbeams/remove-core-logback-config
Remove Logback config xml from core module
2018-11-23 11:20:50 +01:00
Manfred Karrer
c0729f1f0e
Merge pull request #1953 from cbeams/remove-crypto-restrictions
Remove Utilities.removeCryptographyRestrictions
2018-11-23 10:54:36 +01:00
Chris Beams
2b883c838a
Quell help output on option parsing error
This change suppresses help output when option parsing fails, e.g. due
to an unrecognized option being specified. This is in keeping with *nix
utility idioms; for example, notice what happens when running `git
--bogus` or `ls --bogus`: they output an error message, and in some
cases a usage message, but they do not print complete help text.
This approach is especially important in the case of an application like
Bisq, where there are many options and the help text is longer than a
typical screen, making it easy to miss the error message altogether, as
it is printed at the top of the screen.

This change also prints the error message to stderr vs stdout, which is
again in keeping with *nix utility idoms.
2018-11-23 09:11:35 +01:00
Chris Beams
b864a843ce
Remove Logback config xml from core module
Usually Bisq is run from its 'shadow jar', i.e. the executable fat jar
that collapses all dependencies and resources into a single file. In that
scenario, only a single 'logback.xml' is included in the fat jar and all
is well.

However, when Bisq is run with a normal external classpath, e.g. from
within IDEA, when using `gradle :desktop:run` or when running one of the
Gradle-generated shell scripts under desktop/build/scripts, multiple
'logback.xml' files are present on the classpath, which causes Logback
to complain with messages like the following:

    Found resource [logback.xml] at [file:.../desktop/build/resources/main/logback.xml]
    Resource [logback.xml] occurs multiple times on the classpath.
    Resource [logback.xml] occurs at [file:.../desktop/build/resources/main/logback.xml]
    Resource [logback.xml] occurs at [jar:file:.../core/build/libs/core.jar!/logback.xml]

Note the last line above. The presence of 'logback.xml' in the bisq-core
jar is the 'duplicate'. This is Logback's way of warning the user that
it doesn't know which file should be considered canonical. The only way
to avoid this error message (and the many other lines that get output
along with it) is to remove the offending duplicate file.

This commit removes logback.xml from core to solve the problem described
above. The file is unnecessary in the context of running bisq-desktop,
bisq-seednode, etc, and the only context in which it would actually be
used is when running BisqHeadlessAppMain in core. With that said, the
configuration in the core logback.xml file is identical to the default
Logback configuration, so removing the file has no effect on the logging
output from BisqHeadlessAppMain, and furthermore, it appears that
BisqHeadlessAppMain is not actually in use anywhere right now (it was
added some months ago in anticipation of integrating the new HTTP API,
but this has yet to occur).

In a future change, we should probably return the core module to being a
pure library, without any main methods, and introduce a different
module, e.g. 'daemon' that contains the equivalent of
BisqHeadlessAppMain and whatever logback.xml configuration is
appropriate for it. Doing things this way will avoid the 'duplicate'
errors shown above, because desktop, seednode, etc will not depend on
core module, but will not depend on the daemon module.
2018-11-23 06:42:02 +01:00
Chris Beams
b3d20b5b5f
Remove Utilities.removeCryptographyRestrictions
This code is no longer necessary after the recent move to JDK10, and
removing it entirely avoids spending unnecessary cycles and eliminates
the confusing "Cryptography restrictions removal not needed" message in
console output.
2018-11-23 06:09:59 +01:00
Manfred Karrer
d31fb45ae6
Merge pull request #1945 from devinbileck/limit-initial-window-size
Limit initial window size on application launch
2018-11-22 07:18:14 -05:00
Manfred Karrer
4acc4c6c39
Merge pull request #1950 from ripcurlx/ui-improvements
Redesign: Improve mobile notification, take offer and add account views
2018-11-22 07:16:55 -05:00
Manfred Karrer
ed597c23bf
Merge pull request #1951 from ripcurlx/enable-new-locales
Redesign: Enable locales for Thai and Vietnamese
2018-11-22 07:16:20 -05:00
Christoph Atteneder
57763a2607
Enable locales for Thai and Vietnamese 2018-11-22 13:11:08 +01:00
Christoph Atteneder
be945c4854
Display payment account name if only one account is applicable 2018-11-22 12:30:13 +01:00
Christoph Atteneder
a7a65052c5
Increase padding for account limitation when adding a new payment account to not overlap validation errors 2018-11-22 12:29:50 +01:00
Christoph Atteneder
735ab3acda
Update payment account selection when payment accounts are changed 2018-11-22 12:28:42 +01:00
Manfred Karrer
000236bfea
Merge pull request #1947 from ripcurlx/use-monospace-for-all-columns
Redesign: Use monospace font for all columns if it is used in one column
2018-11-21 10:27:41 -05:00
Christoph Atteneder
b0621fd7c4
Use monospace font for all columns if it is used in one column 2018-11-21 16:23:41 +01:00
Manfred Karrer
f2e0eafc44
Merge pull request #1946 from ripcurlx/ui-improvements
Redesign: Addresses issues of #1857
2018-11-21 10:20:29 -05:00
Christoph Atteneder
0853f1dc6f
Position notification popups to be top-right aligned 2018-11-21 15:54:46 +01:00
Christoph Atteneder
4c95d030e8
Adapt layout of popup windows 2018-11-21 15:31:49 +01:00
Christoph Atteneder
5f78103bae
Reduce visible row count to not exceed window size 2018-11-21 12:03:44 +01:00
Christoph Atteneder
48b4c3ce9c
Increase first line padding 2018-11-21 11:49:57 +01:00
Christoph Atteneder
15b7b8593f
Hide row focus border in table views 2018-11-21 11:46:12 +01:00
Christoph Atteneder
c969228578
Hide percentage value in busy animation 2018-11-21 11:31:19 +01:00
Christoph Atteneder
7f0439a028
Adapt show wallet data window popup layout 2018-11-21 10:56:35 +01:00
Christoph Atteneder
3ee5296194
Use new brand color for volume 2018-11-21 10:48:44 +01:00
Christoph Atteneder
88955efae7
Synchronize padding between create and take offer views 2018-11-21 10:44:35 +01:00
Devin Bileck
055afc19cd
Add install_java.sh 2018-11-20 22:43:01 -08:00
Christoph Atteneder
d8487644bd
Remove dotted line for disabled text fields 2018-11-20 17:42:46 +01:00
Christoph Atteneder
b5f1ed7b45
Use mono space font in all columns (except button) 2018-11-20 17:31:28 +01:00
Christoph Atteneder
c6ba21e70f
Fix positioning of x and = icons 2018-11-20 17:31:04 +01:00
Christoph Atteneder
d5ea8a62ff
Improve density of payment account fields 2018-11-20 17:13:42 +01:00
Christoph Atteneder
a57d3fc8ba
Adapt TorSettingsView 2018-11-20 16:55:57 +01:00
Christoph Atteneder
5e06153e49
Fix TextArea focus line positioning 2018-11-20 16:39:24 +01:00
Christoph Atteneder
559cd67b85
Show hand cursor on all buttons 2018-11-20 16:30:34 +01:00
Christoph Atteneder
26c9c4081b
Center align address label 2018-11-20 16:28:51 +01:00
Christoph Atteneder
7612fe3571
Adapt WitdrawalView to use full window width 2018-11-20 16:22:04 +01:00
Christoph Atteneder
94805128c3
Adapt DepositView to use full window width 2018-11-20 16:03:48 +01:00
Christoph Atteneder
fbb3020506
Fix confirmation progress indicator 2018-11-20 15:38:27 +01:00