Commit graph

11458 commits

Author SHA1 Message Date
Eric House
d3f8120ab5 Merge remote-tracking branch 'weblate/android_translate' into android_translate 2019-12-13 11:32:02 -08:00
Eric House
84b3c65373 always print comms_stats (if DEBUG) 2019-12-12 22:02:30 -08:00
Andrea Hernandiz Lopez
76b26be359
Added translation using Weblate (Spanish) 2019-12-11 12:24:16 +01:00
Eric House
0493ad2ef8 cleanup (changed to debug and want to keep changes) 2019-12-10 21:10:21 -08:00
Eric House
c7ebe6e80e add debug-only pending-msg count to connstatus display
I'm bringing this in from another branch because it'll be useful for
debugging bluetooth problems.
2019-12-10 14:42:54 -08:00
Eric House
b7ef8935d8 cleanup 2019-12-08 15:43:25 -08:00
Eric House
d2871c92ba move compile-time constant into gradle file 2019-12-03 10:52:56 -08:00
naofum
ecfd6bacb6 Translated using Weblate (Japanese)
Currently translated at 100.0% (778 of 778 strings)
2019-12-03 08:45:40 -08:00
Allan Nordhøy
41b376e4b0 Translated using Weblate (Norwegian Bokmål)
Currently translated at 83.2% (647 of 778 strings)
2019-12-03 08:45:40 -08:00
Allan Nordhøy
49e6e679ed Translated using Weblate (English)
Currently translated at 100.0% (778 of 778 strings)
2019-12-03 08:45:40 -08:00
Allan Nordhøy
576f2f6858 Translated using Weblate (Norwegian Bokmål)
Currently translated at 83.0% (646 of 778 strings)
2019-12-03 08:45:40 -08:00
WaldiS
4dccfae5b2 Translated using Weblate (Polish)
Currently translated at 94.7% (737 of 778 strings)
2019-12-03 08:45:40 -08:00
Andreas Kleinert
74688322f4 Translated using Weblate (German)
Currently translated at 100.0% (778 of 778 strings)
2019-12-03 08:45:40 -08:00
Joan Montané
5055af5a39 Translated using Weblate (Catalan)
Currently translated at 95.1% (740 of 778 strings)
2019-12-03 08:45:40 -08:00
Allan Nordhøy
9c1f02d001 Translated using Weblate (Norwegian Bokmål)
Currently translated at 83.0% (646 of 778 strings)
2019-12-03 08:45:40 -08:00
Joan Montané
2d9e137600 Translated using Weblate (Catalan)
Currently translated at 93.2% (725 of 778 strings)
2019-12-03 08:45:40 -08:00
Estébastien Robespi
d530f87c77 Translated using Weblate (French)
Currently translated at 92.8% (722 of 778 strings)
2019-12-03 08:45:40 -08:00
Allan Nordhøy
2e45e65b6c Translated using Weblate (Polish)
Currently translated at 94.5% (735 of 778 strings)
2019-12-03 08:45:40 -08:00
Allan Nordhøy
d5a10f0f8c Translated using Weblate (Catalan)
Currently translated at 92.4% (719 of 778 strings)
2019-12-03 08:45:40 -08:00
Allan Nordhøy
84dd6385d0 Translated using Weblate (Japanese)
Currently translated at 100.0% (778 of 778 strings)
2019-12-03 08:45:40 -08:00
naofum
92afb08b28 Translated using Weblate (Japanese)
Currently translated at 100.0% (778 of 778 strings)
2019-12-03 08:45:40 -08:00
naofum
b1277869c1 Translated using Weblate (Japanese)
Currently translated at 89.6% (697 of 778 strings)
2019-12-03 08:45:40 -08:00
naofum
a4b0527bcd Translated using Weblate (Japanese)
Currently translated at 73.3% (570 of 778 strings)
2019-12-03 08:45:40 -08:00
Wee
e42bc6f262 Translated using Weblate (German)
Currently translated at 99.7% (776 of 778 strings)
2019-12-03 08:45:40 -08:00
Allan Nordhøy
03f72c6d1c Translated using Weblate (Norwegian Bokmål)
Currently translated at 82.8% (644 of 778 strings)
2019-12-03 08:45:40 -08:00
Allan Nordhøy
443a0bd2bd Translated using Weblate (English)
Currently translated at 100.0% (778 of 778 strings)
2019-12-03 08:45:40 -08:00
Andreas Kleinert
07b24ea821 Translated using Weblate (German)
Currently translated at 100.0% (778 of 778 strings)
2019-12-03 08:45:40 -08:00
Eric House
f4845efc3f don't include NFC in network status 2019-12-03 08:26:51 -08:00
Eric House
5fb08cd35f update changelog 2019-12-03 08:10:40 -08:00
Eric House
5fe46f275c communicate FCM deviceID to relay immediately
Don't wait for second connection! This makes new installs able to get a
game going much more reliably.
2019-11-30 20:24:43 -08:00
Eric House
2d81135487 set dbname in build.gradle 2019-11-30 19:49:29 -08:00
Eric House
ee9f3c36f8 fix crash opening older games
I'd forgotten that merely adding a new type changed the game's binary format.
2019-11-30 18:43:28 -08:00
Eric House
496ef73da2 cleanup and remove one bad assertion 2019-11-27 11:47:46 -08:00
Eric House
9373dce0df fix fcm_msg.py test script (force to take devid) Works! 2019-11-27 11:47:46 -08:00
Eric House
20e9754966 don't print NFC stats 2019-11-27 09:35:07 -08:00
Eric House
ced26e8e37 remove release-build-only warning 2019-11-27 08:44:09 -08:00
Eric House
8d1065ea75 up strings for new release 2019-11-27 07:32:49 -08:00
Eric House
7eaa466f78 add ability to send moves via NFC
You can now play an entire game via NFC. There's no UI though: big
question is how to make the feature "discoverable."
2019-11-23 10:53:51 -08:00
Eric House
1e7ae2b2ec fix lower->upper translation: tr didn't like my strings
For whatever reason, though emacs thought the lower- and uppercase
strings I was passing to tr were the same but for case two letters were
getting dropped. This lets tr figure things out itself.
2019-11-19 22:27:41 -08:00
Eric House
8da3c5fc68 add comms_getPending(), and refactor to implement 2019-11-18 09:26:46 -08:00
naofum
5045356e6e
Translated using Weblate (Japanese)
Currently translated at 100.0% (778 of 778 strings)
2019-11-18 13:04:30 +01:00
Allan Nordhøy
e73664355f
Translated using Weblate (Norwegian Bokmål)
Currently translated at 83.2% (647 of 778 strings)
2019-11-16 16:04:24 +01:00
Allan Nordhøy
40454f4b24
Translated using Weblate (English)
Currently translated at 100.0% (778 of 778 strings)
2019-11-16 16:04:24 +01:00
Eric House
58c3ab4e4a first cut at python version of dawg2dict
Perl version doesn't work and I don't remember enough of the language to
fix it.
2019-11-13 13:22:30 -08:00
Eric House
c5a8319fa8 fix comment 2019-11-13 12:32:06 -08:00
Eric House
611e046987 check for undefined variable 2019-11-12 09:08:08 -08:00
Eric House
c69ec52502 add comms stats to conn status display (DEBUG only) 2019-11-05 08:30:38 -08:00
Eric House
a35f0f7339 fix stall when sending chat
Oops. Old code doesn't mark chat messages as successfully processed.
2019-11-05 08:30:15 -08:00
Eric House
f8a84cbe0a adding missing DB field
Can't upgrade a game if the field's missing so just add it. Adding a
notion of versioning and upgrading isn't worth the effort.
2019-11-03 18:14:47 -08:00
Eric House
56fc359f42 fix counts/values for 'D' (thanks Peter) 2019-11-03 18:12:24 -08:00
Eric House
54e5ca361d remove unnecessary logging 2019-11-03 11:24:29 +00:00
Eric House
da7f84d683 fix log_hex format alignment 2019-11-03 11:24:23 +00:00
Allan Nordhøy
9bcc538cce
Translated using Weblate (Norwegian Bokmål)
Currently translated at 83.0% (646 of 778 strings)
2019-11-03 12:03:52 +01:00
Eric House
37ac29e65e always log hash failure 2019-11-03 09:34:18 +00:00
Eric House
e37220cbb1 add ability to upgrade app during game
This was in the .sh version of the script but not the .py. Delete the
former too BTW.
2019-11-03 09:30:32 +00:00
Eric House
685c8879c3 don't consider message received until it's processed
I think I'm seeing a bug where msg <n> is received, I record that I'm
now looking for msg <n+1>, fail to process <n> (perhaps because some
resource is temporarily unavailable?), and am now in a state where I
won't accept <n> when it's resent. This fixes this by only recording <n>
received after processing code has accepted it.
2019-11-03 08:35:56 +00:00
WaldiS
79a08a625f
Translated using Weblate (Polish)
Currently translated at 94.7% (737 of 778 strings)
2019-11-01 21:03:48 +01:00
Eric House
96ee5bec8c start adding logging specific to comms' windowing
(Hi from Santiago)
2019-11-01 07:22:56 -07:00
Eric House
96f4d2cfc0 don't offer NFC on Android 10, where it's broken. 2019-10-22 13:40:17 +02:00
Eric House
06b6afe612 use sdk 28 for real
requires dropping junit Assert and accessing an old Canvas method via reflection.
2019-10-22 13:40:17 +02:00
Eric House
bf37ab0fc1 use https now to fix broken updating 2019-10-22 13:39:14 +02:00
Eric House
a1a71df7c6 update Makefile for latest Catalan wordlist 2019-10-22 13:24:40 +02:00
Andreas Kleinert
b616849128
Translated using Weblate (German)
Currently translated at 100.0% (778 of 778 strings)
2019-10-17 19:52:46 +02:00
Joan Montané
df66d040a3
Translated using Weblate (Catalan)
Currently translated at 95.1% (740 of 778 strings)
2019-10-09 14:58:30 +02:00
Allan Nordhøy
0e968158c9
Translated using Weblate (Norwegian Bokmål)
Currently translated at 83.0% (646 of 778 strings)
2019-10-02 06:56:00 +02:00
Joan Montané
731b748790
Translated using Weblate (Catalan)
Currently translated at 93.2% (725 of 778 strings)
2019-10-02 06:55:59 +02:00
Estébastien Robespi
282250211e
Translated using Weblate (French)
Currently translated at 92.8% (722 of 778 strings)
2019-09-29 15:55:53 +02:00
Allan Nordhøy
32c03671a0
Translated using Weblate (Polish)
Currently translated at 94.5% (735 of 778 strings)
2019-09-29 15:55:52 +02:00
Allan Nordhøy
f8829e9bdb
Translated using Weblate (Catalan)
Currently translated at 92.4% (719 of 778 strings)
2019-09-29 15:55:52 +02:00
Allan Nordhøy
7d125a95e8
Translated using Weblate (Japanese)
Currently translated at 100.0% (778 of 778 strings)
2019-09-29 15:55:51 +02:00
naofum
9b04d4b90b
Translated using Weblate (Japanese)
Currently translated at 100.0% (778 of 778 strings)
2019-09-23 15:27:52 +02:00
naofum
de430bddb5
Translated using Weblate (Japanese)
Currently translated at 89.6% (697 of 778 strings)
2019-09-21 12:27:50 +02:00
naofum
e69d9bcab9
Translated using Weblate (Japanese)
Currently translated at 73.3% (570 of 778 strings)
2019-09-19 11:27:38 +02:00
Eric House
7fd366c2d9 avoid NPE when invite isn't only thing passed 2019-09-17 07:47:13 +03:00
Eric House
f12531e40b let cells be taller than wide too (take 2) 2019-09-10 16:40:50 +03:00
leela
e5570447a4
typo ellipsis, added
see [source](https://hosted.weblate.org/projects/xwords/android/source/review/?type=check%3Aellipsis)
2019-09-02 07:09:34 +00:00
Wee
947683eeab
Translated using Weblate (German)
Currently translated at 99.7% (776 of 778 strings)
2019-08-31 10:23:46 +02:00
Eric House
0b61a8bfb7 assert that valid message is handled
I suspect that messages are being dropped (in server) after being
recorded (in comms), causing the game to stall forever. So add an
assertion that it's not happening. Haven't seen it yet in a few hundred
games, but it'll be nice to be more confident.
2019-08-29 23:10:42 +03:00
Eric House
dccd582009 up API version to 28 (required soon) 2019-08-27 19:36:38 +03:00
Eric House
a872e7b7be remove x86 from release builds
I either remove it or add the 64-bit abi. Since it's only there to run
in the emulator let's just leave it in for DEBUG builds. If I need to
run a release build in the emulator I can add it back.
2019-08-27 19:33:40 +03:00
Eric House
40fd954bcd arm means two ABIs now 2019-08-27 19:33:25 +03:00
Eric House
fa889262f6 change version strings and update changelog 2019-08-24 17:12:12 +03:00
Allan Nordhøy
1fb0788eb3
Translated using Weblate (Norwegian Bokmål)
Currently translated at 82.8% (644 of 778 strings)
2019-08-22 08:23:41 +02:00
Allan Nordhøy
c64ec34eb9
Translated using Weblate (English)
Currently translated at 100.0% (778 of 778 strings)
2019-08-22 08:23:38 +02:00
Eric House
8c16d1e749 fix dialog not exiting when close button called
Need to use gtk_dialog_run(), not gtk_main()
2019-08-19 07:50:33 +03:00
Eric House
2a54c9ed20 fix Slovak makefile for new wordlist 2019-08-19 07:49:23 +03:00
Eric House
0960ed4963 remove bad assert
Can't connect to relay when laptop (emu case) or device has no network,
so stop asserting all the time on airplanes :-)
2019-08-10 06:10:08 -07:00
Andreas Kleinert
b1a0258b49
Translated using Weblate (German)
Currently translated at 100.0% (778 of 778 strings)
2019-08-09 22:22:50 +02:00
Eric House
2e4d3a1276 add source of current (dinky) Slovak wordlist 2019-08-08 09:57:40 -07:00
Eric House
b602f6fb3c Merge branch 'android_translate' into android_branch 2019-08-08 07:44:05 -07:00
Allan Nordhøy
04bd0df344
Translated using Weblate (Norwegian Bokmål)
Currently translated at 82.0% (638 of 778 strings)
2019-08-04 01:22:36 +02:00
Allan Nordhøy
f8743e56e7
Translated using Weblate (English)
Currently translated at 100.0% (778 of 778 strings)
2019-08-04 01:22:35 +02:00
Allan Nordhøy
bef208ee3b
Translated using Weblate (Norwegian Bokmål)
Currently translated at 81.5% (634 of 778 strings)
2019-08-01 07:10:56 +02:00
WaldiS
fcd5194062
Translated using Weblate (Polish)
Currently translated at 95.1% (740 of 778 strings)
2019-08-01 07:10:55 +02:00
Hosted Weblate
a102d1710a
Merge branch 'origin/android_translate' into Weblate. 2019-07-30 07:35:13 +02:00
Elizabeth Sherrock
ca56f18608
Translated using Weblate (Chinese (Simplified))
Currently translated at 5.4% (41 of 764 strings)
2019-07-30 07:35:12 +02:00
WaldiS
6291a7fde7
Translated using Weblate (Polish)
Currently translated at 92.5% (707 of 764 strings)
2019-07-30 07:35:09 +02:00
WaldiS
e36883b1f6 Translated using Weblate (Polish)
Currently translated at 90.6% (692 of 764 strings)
2019-07-24 18:46:51 -07:00
Eric House
489ac08289 remove logging 2019-07-24 07:49:29 -07:00
Eric House
a85cfef82d add missing .deb file 2019-07-24 07:49:03 -07:00
WaldiS
b0ea3a3be8
Translated using Weblate (Polish)
Currently translated at 90.6% (692 of 764 strings)
2019-07-21 23:06:35 +02:00
Eric House
597bcebefa first set of EditTexts getting 'X' clear button
I'm using SearchView for now. Would rather have a custom layout without
a magnifying glass I need to hide, but this works for now.
2019-07-20 21:54:35 -07:00
Eric House
af1ac3f779 don't optimize for email-only case
The test got out-of-date, and with SMS and clipboard options always
present there's no point in testing: should always pass.
2019-07-14 15:12:15 -07:00
Eric House
6f3be5933f test script taken from eehouse.org (it works) 2019-07-07 13:00:06 -07:00
Eric House
0f00997928 hide show-fcm-receives pref when FCM not built in
I just spent an hour trying to understand why fcm wasn't working against
the f-droid build. This should make that less likely to happen again.
2019-07-07 13:00:06 -07:00
Eric House
1ce243904e bring in changes from eehouse.org
This is what's been running for months, so committing it.
2019-07-07 13:00:06 -07:00
Eric House
475206a373 don't assume send will succeed
(Pulling in change that's been on eehouse.org for a while)
2019-07-07 13:00:06 -07:00
Eric House
22f697cd37 remove option to use backwards-compatible smsproto
Everybody should have upgraded by now...
2019-07-07 13:00:06 -07:00
Eric House
df14108e4e add lowercase equivalents
where missing and seems possible
2019-07-07 13:00:06 -07:00
Eric House
4abefb025c add lower-case letters as alternatives 2019-07-07 13:00:06 -07:00
Eric House
18e1f001a0 Merge remote-tracking branch 'weblate/android_translate' into android_translate 2019-07-07 12:59:15 -07:00
Joan Montané
7a3c646a3e
Translated using Weblate (Catalan)
Currently translated at 97.1% (742 of 764 strings)
2019-07-04 10:01:10 +02:00
Elizabeth Sherrock
f7012e327f
Translated using Weblate (Chinese (Simplified))
Currently translated at 0.0% (0 of 764 strings)
2019-07-02 05:00:40 +02:00
Elizabeth Sherrock
b4de8911fc
Added translation using Weblate (Chinese (Simplified)) 2019-07-01 04:05:24 +02:00
Eric House
2700ba3376 add next-up to changelog 2019-06-29 22:52:07 -07:00
WaldiS
579d0114c4 Translated using Weblate (Polish)
Currently translated at 89.9% (687 of 764 strings)
2019-06-29 22:39:12 -07:00
Eric House
411707a3a1 fix NPE with empty wordlist (and add note for Greek) 2019-06-29 16:44:38 -07:00
Eric House
f1ee8564cb fix to compile with release flags 2019-06-29 16:44:38 -07:00
Eric House
ea0b176b2a debug-build-only macros to find proto-based crashes
When a stream reader and writer are out of sync it often shows up as
trying to read off the end of the stream (firing an assert.) It's useful
to know where that's coming from on android where there's usually no
stack trace in the jin world. So pass __func__ in using macros, and log
before asserting. Crude but quick and already useful.
2019-06-28 21:22:45 -07:00
Eric House
7bc6bf31e8 fix rare crash with synchronized
When I started opening a lot of games at the same time hit a race
condition that synchronized fixes. Duh. Since two similiarly used
variables with the same name confused me, changed that too.
2019-06-27 11:18:07 -07:00
Eric House
4aa7d67d24 honor comms_getAddrDisabled for relay invite sends
It still isn't for other conn-via types, nor for relay invite receipts
that don't go through comms.
2019-06-26 14:08:55 -07:00
Eric House
7809591de5 fix crash with env not being set for dict iter thread 2019-06-24 11:59:48 -07:00
Eric House
25cce2c7f3 add timer to gtk's new-game dialog 2019-06-24 09:20:34 -07:00
WaldiS
e001f0c31f
Translated using Weblate (Polish)
Currently translated at 89.9% (687 of 764 strings)
2019-06-23 22:00:30 +02:00
Eric House
42e3ccef50 remove unused strings 2019-06-23 11:40:33 -07:00
Eric House
84b121ee4c fix path (still doesn't seem to work) 2019-06-23 11:29:29 -07:00
Eric House
b3e197dd59 tweak change note 2019-06-23 11:16:15 -07:00
Eric House
ef1746632b cleanup 2019-06-23 11:12:27 -07:00
Eric House
b9df279cd5 Merge branch 'android_translate' into android_branch 2019-06-23 11:05:10 -07:00
Eric House
c2c6312e91 include service delay stats for DEBUG builds
A start at determining of often there's a problem with Service not
scheduling work quickly enough.
2019-06-23 10:20:16 -07:00
Eric House
fb0d87781a build from new wordlist 2019-06-23 10:20:16 -07:00
Eric House
5bce759d32 fix race condition leading to NPE 2019-06-23 10:20:16 -07:00
Eric House
4f63ad3b83 wip: cleanup (not related to duplicate) 2019-06-23 10:20:16 -07:00
Eric House
ba363fdbc9 offer to email when unable to lock game
Only on non-shipping builds. This is attempting to catch a non-repro
lock-forever I'm trying to fix.
2019-06-23 10:20:16 -07:00
Eric House
c72e97e0f6 add support for 64-bit ARM
Add a third processor type to the .so, and fix first compile-time
warnings and then a few dumb bugs based on assumptions about ptr sizes.
Works to play networked games and browse wordlists, but is not
extensively tested and needs to be before release.
2019-06-23 10:20:16 -07:00
Eric House
ce26696a37 assert refcount never climbs after reaching 0
Looking for a common but not-yet-reproducible situation where the
gamelock gets stuck preventing a game from being opened, usually related
to a move arriving. One thing that looked wrong is it seemed possible to
have the refcount drop to 0 then get increased again, causing somebody
to thing he has a lock when it's actually unlocked. So assert to try to
catch that case (and synchronize to make it much harder.)
2019-06-23 10:20:16 -07:00
Eric House
b50bc145af show SMS status in (fixes always-red indicator)
(Not duplicate-specific)
2019-06-23 10:20:16 -07:00
Eric House
ac84a3b376 change engine to optionally look at pending tiles
option not used ... yet
2019-06-23 10:20:16 -07:00
Eric House
881128f1c9 Makefile for CSW19 ... ish 2019-06-23 10:20:16 -07:00
Eric House
37ebf508e5 add DBUtils utility for saving/restoring Serializables 2019-06-23 10:20:16 -07:00
Eric House
78f1ba6dde fix npe sending relay invites to self
Needed to handle the case where both are null. Can't reproduce this in
release builds so likely doesn't justify a new release.
2019-06-23 10:20:16 -07:00
Eric House
b63ba3e843 show toast when dropping duplicate invite if DEBUG
I forget to enable that option too often. (No impact on release builds.)
2019-06-23 10:20:16 -07:00
Eric House
a9eff12074 remove exif data from image files
command: find . -name '*.jp*g' -o -name '*.png' | xargs exiftool -all=
Did this because fdroid is complaining about metadata and I can't see
any obvious changes in the appearance of the app, but it's not
well-considered. Back this out if there are problems.
2019-06-23 10:20:16 -07:00
Eric House
1e5024f4d5 remove wince files 2019-06-23 10:20:16 -07:00
Eric House
dd51e7ca06 add menuitem to copy relayid to gtk clipboard
(I'm tired of typing it manually.)
2019-06-23 10:20:16 -07:00
Eric House
266765405b try to fix assertion by catching null UDP socket
I think there's a rare race condition here. Assuming it results from a
bad network state rather than two sends coming too quickly, respond to
not having a connection by killing the thread so the next send will
retry.
2019-06-23 10:20:16 -07:00
Eric House
c6c8e4209f add more logging around failure-to-open-intent 2019-06-23 10:20:16 -07:00
Eric House
cf4a7d91a0 try harder to respond to an intent with a rowID
Failure to immediately get a lock for a rowID in an intent meant that
other intent processing kicked in, and might have done the wrong
thing. So now if there's a rowid in it we try nothing else. And we use
the GameLock callback mechanism to deal with the case where it's
temporarily unavailable, as it will be when an incoming move is being
dispatched to it.
2019-06-23 10:20:16 -07:00
Eric House
2827526466 up strings for new release 2019-06-23 10:20:16 -07:00
Eric House
9be8b21efc always log stack of lock held more than 1 minute
(DEBUG only) I'm seeing deadlocks in a non-reproducible way and need to
get at the source. This should log the stacks of long-held locks, and
notify via Toast (when possible) when it occurs.
2019-06-23 10:20:16 -07:00