Eric House
a9a5cc14ca
up strings for new release
2020-01-10 13:47:53 -08:00
Eric House
9b0d4cc88e
Merge remote-tracking branch 'weblate/android_translate' into android_translate
2020-01-10 13:12:25 -08:00
Eric House
f7b312d3a5
up copyright: it's a new year!
2020-01-10 12:56:42 -08:00
Eric House
5874ccf5c2
up copyright: it's a new year!
2020-01-10 12:54:01 -08:00
Eric House
6417236505
add not-again checkbox to ask-phone-permission dialog
...
Otherwise if you're saying "no" you keep getting asked each time you
invite.
2020-01-10 12:43:25 -08:00
Eric House
e4bc2d99ed
fix crash inviting via SMS/Text
...
Was asserting when NFC type came through. Bad.
2020-01-10 11:44:14 -08:00
Andrea Hernandiz Lopez
712b463ee9
Translated using Weblate (Spanish)
...
Currently translated at 20.4% (159 of 778 strings)
2020-01-10 20:21:25 +01:00
Eric House
2bfe91b6e8
Merge remote-tracking branch 'weblate/android_translate' into android_translate
2020-01-10 09:47:50 -08:00
Andrea Hernandiz Lopez
6df6350061
Translated using Weblate (Catalan)
...
Currently translated at 94.9% (738 of 778 strings)
2020-01-09 16:33:03 +01:00
Eric House
90903c24da
Merge remote-tracking branch 'weblate/android_translate' into android_translate
2019-12-30 22:53:08 -08:00
Eric House
ef9a148eb4
Merge branch 'android_branch' into android_translate
2019-12-30 22:40:38 -08:00
Eric House
864648c5b9
up changes for new release
2019-12-30 22:15:51 -08:00
Eric House
c663d33f88
fix string script to detect mismatch of format specifiers
...
Crash due to typo introduced by Weblate made me realize I wasn't running
the script that ensures translated strings have the same set of format
specifiers as the English -- which might not be strictly necessary, but
it's safer to enforce it for now. Moved a few remaining %s to %1$s style
while at it.
2019-12-30 22:09:23 -08:00
Eric House
278275a9cb
get rid of pixelation using svg instead of png
...
There was only one size of png for the net status arrows. Now there are
svgs that generate the whole range. Also set color programatically to
avoid having to maintain four.
2019-12-30 13:50:24 -08:00
Eric House
2268d48fe2
remove dead code (old GCM stuff)
2019-12-30 10:53:27 -08:00
Eric House
15239d4a6c
Control showing message count via a prefs checkbox
...
Off by default on non-DEBUG builds, but still available.
2019-12-29 08:33:38 -08:00
Eric House
381efc9ddb
refactor to avoid ClassNotFound crash where SDK<19
2019-12-29 06:45:41 -08:00
Eric House
42da9b1ebf
don't allow devid of 0
2019-12-28 09:43:01 -08:00
Eric House
8b06cde971
up strings for new release and cleanup
2019-12-28 08:35:49 -08:00
Bernard Massot
329428c791
Translated using Weblate (French)
...
Currently translated at 95.5% (743 of 778 strings)
2019-12-27 23:21:15 +01:00
Andrea Hernandiz Lopez
170465077f
Translated using Weblate (Spanish)
...
Currently translated at 12.0% (93 of 778 strings)
2019-12-24 16:21:10 +01:00
Eric House
ae0d2facb4
remove debug option that no longer works
...
(NFC send-to-self would be very different now.)
2019-12-23 09:52:56 -08:00
Eric House
0153928bcd
support sending invites and moves via NFC
...
Use low-level NFC, a combination of emulated card and reader mode, to
work around Google's removal of "beaming" support from Android 10. App
emulates a card by declaring support in its AndroidManifest. When a game
is open that has data to send, it goes periodically into read mode. If
two devices are touched while one is in read mode and the other isn't,
they handshake and open a connection that should last until they're
separated. The devices loop, sending messages back and forth with or
without data (as available.)
2019-12-23 08:45:55 -08:00
Eric House
ccaa3c67fc
use enums for table names
...
Cleans up the code a bit, adding type-safety where it probably wasn't
needed but also letting me iterate over all tables. Not being able to do
the latter had allowed db-replacement code (useful only for debugging,
probably) to get out of date.
2019-12-23 08:25:43 -08:00
Eric House
97a80e7084
clean up email invite string
...
The tap-here link and attachment weren't working, so remove them.
2019-12-22 23:19:01 -08:00
Eric House
dae24f55d4
fix reported NPE: try 100ms to get lock then give up
...
I suspect it's really rare to fail to get the lock when the game's not
open, but hope that trying 100ms before giving up will make failure to
save rare enough to be ok.
2019-12-22 23:19:01 -08:00
Eric House
7b30921190
fix ClassCastException, and fix moving to new group
...
(Fixing the latter fixed the former.)
2019-12-22 23:19:01 -08:00
Andrea Hernandiz Lopez
7b53c48a7c
Translated using Weblate (Spanish)
...
Currently translated at 11.4% (89 of 778 strings)
2019-12-22 23:19:01 -08:00
Andrea Hernandiz Lopez
cdd162b4c7
Translated using Weblate (Spanish)
...
Currently translated at 9.3% (72 of 778 strings)
2019-12-22 23:19:01 -08:00
Andrea Hernandiz Lopez
cfa8222762
Translated using Weblate (Spanish)
...
Currently translated at 3.2% (25 of 778 strings)
2019-12-22 23:19:01 -08:00
Hosted Weblate
4c60199fb0
Merge branch 'origin/android_translate' into Weblate.
2019-12-21 06:23:22 +01:00
Andrea Hernandiz Lopez
540e16b121
Translated using Weblate (Spanish)
...
Currently translated at 11.4% (89 of 778 strings)
2019-12-19 18:23:35 +01:00
Andrea Hernandiz Lopez
aac9597b2c
Translated using Weblate (Spanish)
...
Currently translated at 9.3% (72 of 778 strings)
2019-12-18 16:21:12 +01:00
Eric House
764cefcddd
debug only: show pending msg count in game list item
2019-12-16 06:44:13 -08:00
Andrea Hernandiz Lopez
6d6750472f
Translated using Weblate (Spanish)
...
Currently translated at 3.2% (25 of 778 strings)
2019-12-14 13:21:20 +01:00
Eric House
f22868e5f4
Merge branch 'android_branch' into android_translate
2019-12-13 11:35:54 -08:00
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
496ef73da2
cleanup and remove one bad assertion
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
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
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
c69ec52502
add comms stats to conn status display (DEBUG only)
2019-11-05 08:30:38 -08: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
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
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
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
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
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
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
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
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
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
22f697cd37
remove option to use backwards-compatible smsproto
...
Everybody should have upgraded by now...
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
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
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
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
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
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
Eric House
993fff8e13
use a single queue for all nbsproto threads
...
No point in worrying about whether a thread exists without emptying its
queue. Instead have a thread start when something's added to the queue
and exit when it's been empty for a while. Only trick is the need to
remember the phone number[s] on behalf of which a retry's necessary
because jni code is waiting to see if combining can be done.
2019-06-23 10:20:16 -07:00
Eric House
8c2582b9a2
differentiate betweeen PENDING and RECENT tiles
...
Should not show the new you-can-lookup-uncommitted-words hint for
already-played words, so needed to be able to tell difference between
the two. Now you can -- and on the gtk side I draw them differently
because I can.
2019-06-23 10:20:16 -07:00
Eric House
8044593249
log msgIDs (relay only for now)
...
I want to track and eliminate the duplication of the 0th message.
2019-06-23 10:20:16 -07:00
Eric House
22a68dd8cf
put message back in okonly dialog
2019-06-23 10:20:16 -07:00
Eric House
6098f28210
preserve checkmarks when invite dialogs rotate
2019-06-23 10:20:16 -07:00
Eric House
6a28e398dc
trivial changes to force a build
2019-06-23 10:20:16 -07:00
Eric House
a50927a00d
replace oft-firing assertion with logging
...
It's crashing all the time and involves a system that only exists in
debug builds. So I should understand the root cause, but other stuff
needs to get done first.
2019-06-23 10:20:16 -07:00
Eric House
797eea833a
add hint explaining new tap-on-pending-words feature
...
And bring back another BoardCanvas hint that had been commented out.
2019-06-23 10:20:16 -07:00
Eric House
d3f4a729d7
remove dead code
2019-06-23 10:20:16 -07:00
Eric House
8f6026e633
add empty invitee list string for Bluetooth too
2019-06-23 10:20:16 -07:00
Eric House
c5efeb283a
fix invite dialogs for landscape layout
...
Scrolling's needed in some cases, and you can't easily put a ListView
inside a ScrollView. So replace the ListView with a LinearLayout whose
contents I manage manually, and wrap the whole layout in a ScrollView.
2019-06-23 10:20:16 -07:00
Eric House
054ac325bb
fix invite-how alert not scrolling
...
By setting a custom view I wasn't using I broke scrolling of the
AlertDialog's list view which I was using. Known bug apparently....
2019-06-23 10:20:16 -07:00
Eric House
84dc14ff78
get rid of DispatchNotify
...
All it did was forward intent's data to MainActivity. Only question is
whether making MainActivity singleTask is a problem. We'll see.
2019-06-23 10:20:16 -07:00
Eric House
c82081521f
cleanup
2019-06-23 10:20:16 -07:00
Eric House
71af4d3187
make it a single thread
2019-06-23 10:20:16 -07:00
Eric House
bade9f6b40
move SMSPhoneInfo into its own class/file
2019-06-23 10:20:16 -07:00
Eric House
266c61f84b
make a common superclass
2019-06-23 10:20:16 -07:00
Eric House
1c2a0ed994
Rename SMSService NBSProxy, and make it not a service
...
Just keep a thread for each
phone we're sending to or receiving from, and pass them packets and
other things to send or (incoming case) process. So far the threads
don't die, but they will soon once there's nothing in their queues. Just
need to be sure there's no racing there.
This is to work around the frequent failure of the OS to pass enqeued work
into the service within a reasonable amount of time (I expect seconds, but see
delays of minutes or even hours.)
2019-06-23 10:20:16 -07:00
Eric House
808a896fbf
up strings for release
...
This is just to try yet again to get past the play store console's
past-permissions bug
2019-06-23 10:20:16 -07:00
Eric House
1ed9ad4aac
reflect bt receipts in how long since saw device
...
Made no sense to use explicit scans only since typically you only do
that to get things going.
2019-06-23 10:20:16 -07:00
Eric House
7e9f75de0a
remove separate marking of permissions as banned
...
It's enough to check manifest for their presence
2019-06-23 10:20:16 -07:00
Eric House
ed066f99a2
Up version code and string to try a new play store release
2019-06-23 10:20:16 -07:00
Eric House
fd0ec1d131
move SMSReceiver from main manifest to the others
...
Theory is that the store's buggy site is presenting its
banned-permissions interface because it's detecting a Receiver that
requires SMS_RECEIVE permission even though the permissions themselves
aren't there any more.
2019-06-23 10:20:16 -07:00
Eric House
70123e2cd3
up version name (but not code)
...
This will NOT be released on Google Play, so no need to up code.
2019-06-23 10:20:16 -07:00
Eric House
71e8132f55
fix broken symlink
2019-06-23 10:20:16 -07:00
Eric House
ffb3b19aef
fix build script for new Play Store variant name
2019-06-23 10:20:16 -07:00
Eric House
c1c2c415dd
changelog and cleanup
2019-06-23 10:20:16 -07:00
Eric House
1522463a3a
fix multi-message aspect of smsproto
...
passes --run-sms-test now, and works on Android occasionally combining messages.
2019-06-23 10:20:16 -07:00
Eric House
e9bcf6a476
always respect user's local player name
2019-06-23 10:20:16 -07:00
Eric House
53d2aa8023
fix a couple of random crashes
...
a race condition and a misunderstanding
2019-06-23 10:20:16 -07:00
Eric House
3d5b4017e5
add useful stuff to build-info.txt inside .apk
2019-06-23 10:20:16 -07:00
Eric House
0f9fd24cb7
try to address one-time assert
...
and remove it from shipping build
2019-06-23 10:20:16 -07:00
Eric House
92a30249a6
show the stalled-service alert based on pref
...
Allow users to turn the notification on; otherwise skip it. And set
the default on/off based on DEBUG type of build.
2019-06-23 10:20:16 -07:00
Eric House
1b84878930
add a bool resource matching BuildConfig.DEBUG
...
I want to be able to have some boolean prefs default based on whether
it's a DEBUG build.
2019-06-23 10:20:15 -07:00
Eric House
d25041e8a0
fix null procptr crash in jni
...
I can't reproduce this, but while testing recovery from DatagramSocket
recreation in RelayService got enough to know that somehow a timer's
procptr's not set. So test before calling, and log instead of crashing.
2019-06-23 10:20:15 -07:00
Eric House
36cc181a5e
get another DatagramSocket when ours goes bad
...
Fix longstanding bug triggered by something as simple as putting device
into and out of airplane mode. Once the class-variable socket was
created it was never replaced. Now respond to exceptions that mean it's
useless and set it to null so existing logic will recreate it.
2019-06-23 10:20:15 -07:00
Eric House
4354cbdc4f
tweaks to logging and imports; should have no effect
2019-06-23 10:20:15 -07:00
Eric House
52891e8391
report inability to get locks in travis debug builds
2019-06-23 10:20:15 -07:00
Eric House
dbcec41450
track all pending service Intents; warn of stalls
...
When enqueuing Intents for any of the three services, cache the
Intent. When onHandleWork() is called, remove the equivalent cached
intent. Then periodically check for intents that have been stored for
more than 60 seconds, and post a Notification alerting user to
stall. The user will likely have noticed that messages aren't flowing,
so this will simply explain the problem. Includes an "email author"
button.
2019-06-23 10:20:15 -07:00
Eric House
7b04f8d4ed
cleanup and refactor
...
Move some work into superclass where instrumentation can be added to
greater effect. And remove from BTService an earlier attempt (at stall
detection.)
2019-06-23 10:20:15 -07:00
Eric House
97a3c3a2d8
refactor: new constructor for common case
2019-06-23 10:20:15 -07:00
Eric House
c4bba7db74
additions for debugging
...
toward tracking down relay stalls, log a bit more in resend process and
add UI to support an option where there's no reliance on
polling (i.e. FCM only)
2019-06-23 10:20:15 -07:00
Eric House
f7444785ab
replace assert with logging
2019-06-23 10:19:01 -07:00
Eric House
13d2917d85
up version strings
2019-06-23 10:19:01 -07:00
Eric House
c9d4df0cc4
add missing AndroidManifest.xml files for new variants
2019-06-23 10:19:01 -07:00
Eric House
b4aa6e2ae9
use latest nbsplib
2019-06-23 10:19:01 -07:00
Eric House
ae5b78e955
change to work with changed NBSProxy API
2019-06-23 10:19:01 -07:00
Eric House
5c243b3ff9
API's changed
2019-06-23 10:19:01 -07:00
Eric House
8b3c64b476
use the latest NBSProxy dev release
2019-06-23 10:19:01 -07:00
Eric House
da857e30e4
add logging of CurGameInfo
...
Trying to track down why some player names aren't preserved
2019-06-23 10:19:01 -07:00
Eric House
dfcb6272e3
override toString() for debugging
2019-06-23 10:19:01 -07:00
Eric House
94f7e13468
change emacs compile command (in comment)
...
No point defaulting to something that no longer exists
2019-06-23 10:19:01 -07:00
Eric House
edb0a8a8f7
fix symlinks post rename
2019-06-23 10:19:01 -07:00
Eric House
38775e4172
fix broken symlink
2019-06-23 10:19:01 -07:00
Eric House
be2ba7388d
change name of variant -- it's not the main one anymore
2019-06-23 10:19:00 -07:00
Eric House
62c0292045
check if permission in manifest
...
I got bitten when creating a new variant leaving the permission out of
the manifest but using a config flag to claim it was there. Better to
have just one place to configure that. So check for presence in the
manifest and, for now, assert that that matches the isBanned flag. Soon
the isBanned flag can be removed.
2019-06-23 10:19:00 -07:00
Eric House
99eafd9c60
add retain()/release()
...
Seems to work but needs testing!
2019-06-23 10:19:00 -07:00
Eric House
16fccca3a8
up version code to try another gps release
2019-06-23 10:19:00 -07:00
Eric House
d925981666
add new Variant for github & sourceforge releases
...
and log permission check results
2019-06-23 10:19:00 -07:00
Eric House
0a249c8595
tweak UI with longer string
2019-06-23 10:19:00 -07:00
naofum
2c6f3f3794
Translated using Weblate (Japanese)
...
Currently translated at 75.9% (580 of 764 strings)
2019-06-23 10:19:00 -07:00
Eric House
8f51ee11df
tweak string
2019-06-23 10:17:55 -07:00
Eric House
ffb768d75e
don't capture lock stack in release builds
2019-06-23 10:17:55 -07:00
Eric House
937dd8081e
unlock lock we won't be keeping
...
This might fix the occasional game permalock.
2019-06-23 10:17:55 -07:00
Eric House
7d8d584a85
fix a likely-fluke NPE with a test
...
It seems impossible for the menu to be getting update without init()
having been called, but that must be what happened. To check for null.
2019-06-23 10:17:55 -07:00
Eric House
4ba46e62f4
fix invite not coming up after perms warning dismissed
...
or when it's not shown at all because the not-again checkbox is checked
2019-06-23 10:17:55 -07:00
Eric House
df3cab8c26
up version of NBSProxy lib
2019-06-23 10:17:55 -07:00
Eric House
da47316152
fix npe
2019-06-23 10:17:55 -07:00
Eric House
468da222de
add not-again checkbox to remove-sms-from-game alert
...
Some people will decide to leave SMS comms in while I look for an
alternative. Maybe. Don't show them the same alert every time they open
the game. In the process removed what seemed to be a duplicate ivar.
2019-06-23 10:17:55 -07:00
Eric House
dfcf76f5cd
refactor alerts code
...
Should be no change here, but the goal's to make it easier to mix
functionality, e.g. adding notagain checkbox to other types.
2019-06-23 10:17:55 -07:00
Eric House
a40c6f494f
don't show sms-failed toast when permission is banned
2019-06-23 10:17:55 -07:00
Eric House
d31271e372
move constant
2019-06-23 10:17:55 -07:00
Eric House
712c61b9d5
add Overrides as part of sanity check
2019-06-23 10:17:55 -07:00
Eric House
2828744aa2
include name of game being deleted
2019-06-23 10:17:55 -07:00
Eric House
f8e840cf04
update web page (esp. fix style for device display)
2019-06-23 10:17:55 -07:00
Eric House
81fc21e0e5
cleanup
2019-06-23 10:17:55 -07:00
Eric House
dc9d05fc94
give new variant the right icons
2019-06-23 10:17:55 -07:00
Eric House
b8ed94b765
update changes log
2019-06-23 10:17:55 -07:00
Eric House
146d104e2b
oops
2019-06-23 10:17:55 -07:00
Eric House
8456b9fd76
relay tracks variantCode int, not string
2019-06-23 10:17:55 -07:00
Eric House
6bc65476d0
add a case for Signal as default SMS app
2019-06-23 10:17:55 -07:00
Eric House
a093dae712
display the Banned alert from invite-choice dialog
2019-06-23 10:17:55 -07:00
Eric House
8cb53eb884
add non-mobile number if user confirms
...
Fix logic error that didn't proceed with the number-add in the
non-mobile case.
2019-06-23 10:17:55 -07:00
Eric House
9def95fed7
try various recipes for launching SMS app
...
There's no one way to launch an SMS app with a ready-to-send
invitation. So try the two that work on our two phone/app combinations,
iterating until startActivity() succeeds. The code's set up to have new
recipes added easily.
2019-06-23 10:17:55 -07:00
Eric House
390a59ee17
post a tip/warning when new invite-by-sms-app chosen
2019-06-23 10:17:55 -07:00
Eric House
8d3b9ac2d5
send an int code rather than a name
2019-06-23 10:17:55 -07:00
Eric House
3326fc90f2
warn when 'sms data' selected in build where it's banned
2019-06-23 10:17:55 -07:00
Eric House
c97905e11e
more tweaks
2019-06-23 10:17:55 -07:00
Eric House
2ca85cc0b1
remove logging
2019-06-23 10:16:59 -07:00
Eric House
bdb31224e9
new method stub to fix fdroid build crash
2019-06-23 10:16:59 -07:00
Eric House
e70dc45fb1
script to build all possible variants
2019-06-23 10:16:59 -07:00
Eric House
ff7f4655f7
removing permissions from the Play Store version
2019-06-23 10:16:59 -07:00
Eric House
5bdc473e02
use NBSProxy if available
...
Lots of work dealing with banned permissions (SEND_SMS and
RECEIVE_SMS). First, if they're banned and NBSProxy is installed, just
use it as if the permissions had been granted. When it's not there,
explain at various points where users will otherwise be confused: when
they try to invite using data sms, or when they open a game that already
uses it.)
2019-06-23 10:16:59 -07:00
Eric House
c59e86b724
support setActionPair() for okOnly alerts too
2019-06-23 10:14:16 -07:00
Eric House
4493f9d9cd
cut some logging
2019-06-23 10:14:16 -07:00
Eric House
039e50ecff
remove misplaced assert
...
It's an error to use an env with the wrong thread, but it IS possible
for more than one thread to be associated with the same env. So don't
assert to the contrary.
2019-06-23 10:14:16 -07:00
Eric House
d5ae8356b4
fixing refcounting and adding logging
...
Seeing the occasional crash and trying to plug leaks that might be
contributing. I think I fixed the Gameptr.finalize() assertions I've
been seeing forever but the thread match assertion remains. Logs will
help catch that.
2019-06-23 10:14:16 -07:00
Eric House
7f8b3c1820
remove logging and reformat: no change
2019-06-23 10:14:16 -07:00
Eric House
8ace884d56
return supported types as list, not set
...
I was seeing them displayed in different orders where I want to control
the order instead.
2019-06-23 10:14:16 -07:00
Eric House
451d2a271e
use constant APPLICATION_ID instead of method call
2019-06-23 10:14:16 -07:00
Eric House
89c103ab4c
remove some logging
2019-06-23 10:14:16 -07:00
Eric House
aa8296f829
make setActionPair work for confirmThen alerts too
...
(To be used shortly)
2019-06-23 10:14:16 -07:00
Eric House
4297b3c2c3
recast SMSService as a JobIntentService
...
Didn't think it was required, but once the app started getting messages
in the background it stoped working or crashed. Changes are minimal
because this service isn't responsible for receiving messages: it
doesn't have the long-lived threads of the BT and Relay services.
2019-06-23 10:14:16 -07:00
Eric House
2b87d60cba
Let's test this jitpack stuff on Travis
...
Importing a library but not using it yet
2019-06-23 10:14:16 -07:00
Eric House
bec37536f6
more data with my SMS
...
And catch an exception starting SMSService in background
2019-06-23 10:14:16 -07:00
Eric House
713d2e5634
make result -1 if will otherwise trip asserts.
2019-06-23 10:13:32 -07:00
Eric House
c05d8c43d2
logging toward finding who's sending or reporting 0
2019-06-23 10:13:32 -07:00
Eric House
89a5ccf4bc
pull nbs port-checking over from NBSProxy
2019-06-23 10:13:32 -07:00
Eric House
8fb1a8405a
add extra explanatory text to phone number invite dialog
...
Set different expectations based on whether the invitation's by NBS or a
launch of the messaging app.
2019-06-23 10:13:32 -07:00
Eric House
13b789847c
distinguish between NBS and SMS
...
What I've been calling SMS is now "data sms" (or "nbs", in
code). There's a new way of inviting, called "User Sms" or somesuch,
that launches the user's SMS app with a URL and phone number, much like
email (save that no addressing is required by the inviter.) This new way
won't be involved in the ban on SMS permissions. (But play by NBS is
still awesome and will stay where it can.)
2019-06-23 10:13:32 -07:00
Eric House
15a1dad5ea
that's already done
2019-06-23 10:13:31 -07:00
Eric House
a187fdca64
put back the nbs port
2019-06-23 10:13:31 -07:00
Eric House
27e33dda62
new version code to replace bad upload
2019-06-23 10:13:31 -07:00
Eric House
a400a62753
fix broken noSMS variant
...
needed SMS permissions in a new xw4 manifest
2019-06-23 10:13:31 -07:00
Eric House
f5d92735be
remove SMS_BANNED stuff for now
2019-06-23 10:13:31 -07:00
Eric House
3a41be0051
up changelog
2019-06-23 10:13:31 -07:00
Eric House
9baffc93e3
exit thread when BT turned off
...
(The test was in the thread this replaced.)
2019-06-23 10:13:31 -07:00
Eric House
23739f57b9
put back SMS permissions
...
March 9's the deadline, so let's not remove it yet!
2019-06-23 10:13:31 -07:00
Eric House
5897e4c59e
make packet accumulator a thread that sends
...
Get rid of the single sender thread and the complexity of querying
individual queues for their state (and the slowdown that happened when
successful writes had to wait for those to devices that weren't
responding). Instead each PacketAccumulator does its own waiting with
timeouts and backoffs, wakes itself when appropriate, and periodically
sends if it can make a connection. Now when there are a bunch of
messages ready they'll get sent pretty quickly once connections to the
remote device start to be successful.
2019-06-23 10:13:31 -07:00
Eric House
183b221a2e
each message gets a localID so logs can show progress
...
And rewrite toString()
2019-06-23 10:13:31 -07:00
Eric House
156c05d54c
add another DeadlockWatch (and import already)
2019-06-23 10:13:31 -07:00
Eric House
614b4d3610
put Killer back: device can receive but never process
...
A device where the OS isn't servicing enqueueWork() requests won't write
back to sockets it accept()s, causing the sender's writer to block
forever. So give it 30 seconds then kill the socket.
2019-06-23 10:13:31 -07:00
Eric House
9bd95d2ccf
fix NPE (by inspection, from crashlytics report)
2019-06-23 10:13:31 -07:00
Eric House
e73f1b5b88
don't enqueue dupes of messages already in queue
...
No point in giving a spot to something the receiver will drop as a
duplicate.
2019-06-23 10:13:31 -07:00
Eric House
0133459114
update status more often (as old code did)
2019-06-23 10:13:31 -07:00
Eric House
9eef188ebe
fix concurrent access exception and too-slow sends
...
if we successfully send, we should reset the backoff so we try again
quickly. Especially at a time when only one message is sent per connection.
2019-06-23 10:13:31 -07:00
Eric House
a8241cc085
change key to force new value
...
fixes what was probably a crash only for me, but....
2019-06-23 10:13:31 -07:00
Eric House
0d757c605f
report invitation success even if dict download needed
2019-06-23 10:13:31 -07:00
Eric House
d907b4201c
use https scheme for dict downloads
2019-06-23 10:13:31 -07:00
Eric House
9915c464af
Move back to old one-msg-per-connect() model
...
Add support for the old protocol, and define to use it. After the next
release has been adopted and everybody can read the new protocol another
release will turn it on.
2019-06-23 10:13:31 -07:00
Eric House
31d8345e6b
add not-again checkbox to BAD_BT_PROTO dialog
...
Won't help the old-build side of the exchange of course.
2019-06-23 10:13:31 -07:00
Eric House
341293dc55
prune only those messages successfully sent
...
Fix race condition that would have cleared all messages including those
added after a send began. In the process, move to storing outbound
messages individually rather than concatenated in their stream format.
2019-06-23 10:13:31 -07:00
Eric House
ff2a06592f
add alert to launch app when OS not scheduling service
...
Set a boolean every time app's upgraded, and clear it on first launch of
MainActivity. In between, if we try to launch the BTService but the OS
doesn't schedule it, post a notification asking user to launch the app.
2019-06-23 10:13:31 -07:00
Eric House
1505a443ac
exit threads when BT off; add util to report deadlocks
...
I've seen a deadlock in the BT stuff. Now they'll be caught and reported
via Crashlytics on DEBUG builds.
2019-06-23 10:13:31 -07:00
Eric House
e23129c0e7
always increment failure count on send failure
2019-06-23 10:13:31 -07:00
Eric House
5cb2be33d2
Rewrite BT proto to batch messages
...
Lots of changes. Old BT proto is no longer compatible. New one
batches messages per device and sends all on a single connection.
The queue (now a single buffer) is now a static global and the thread
that services it doesn't die (but gloms onto whatever Service instance
is most recent.) Code to pack and unpack the protocol can probably be
reused for wifi-direct or any other pass-through transport.
2019-06-23 10:13:31 -07:00
Eric House
e13d90409c
replace some firing asserts with log messages
...
I'm getting crashes on a device with an iffy wifi connection and no SIM.
May need to look into these.
2019-06-23 10:13:31 -07:00
Eric House
997aad84ff
don't open game just because it was created
...
Posting a notification is enough. And existing code already handles the
missing dict case, so GamesListDelegate doesn't even need to know.
2019-06-23 10:13:31 -07:00
Eric House
54fb43ec62
double scan progress time
...
Since the BT stuff tends to timeout late when failing, this looks better.
2019-06-23 10:13:31 -07:00
Eric House
de9b0851d5
add env to map immediately, in initGame()
...
I'm seeing an assertion failure in cleanup that could be explained by
the cleanup happening when initGame() has been called but no subsequent
jni method that would have added the env to the map. So let's add it
immediately so that can't happen.
2019-06-23 10:13:31 -07:00
naofum
f8537c6a88
Translated using Weblate (Japanese)
...
Currently translated at 74.3% (568 of 764 strings)
2019-06-23 10:13:31 -07:00
Eric House
989f7524d6
unselect any game moved into a closed group
...
Fixes GameOver game moved via "archive" checkbox remaining selected
2019-06-23 10:12:05 -07:00
Eric House
76957fe4eb
don't move selected games via context menu
...
Both ways of invoking move-to-group were working on the set of selected
games. Instead pass what's meant to be operated on as a parameter.
2019-06-23 10:12:05 -07:00
Eric House
682501814b
put GameOver view layout into a ScrollView
...
When device in landscape the archive box is otherwise unreachable on a
four-player game
2019-06-23 10:12:05 -07:00
Eric House
dc1431fd08
make GamePtr AutoCloseable and use where possible
2019-06-23 10:12:05 -07:00
Eric House
c706205cd1
Make JNIThread autoclosable and use everywhere
...
JNIThread is somehow sticking around sometimes and holding the lock for
a game so that that game can never be opened again. On the theory that
there's some place retain() was called but not release(), use the thing
in try-with-resources wherever possible. Which is pretty much
everywhere.
Also added age to the lock-holder report being uploaded.
2019-06-23 10:12:05 -07:00
Eric House
e56770ea29
include stack of lock owner when logging failure to lock
2019-06-23 10:12:05 -07:00
Eric House
ceb68b9787
Fix NPE when url for delete game has changed
...
I think it's only an issue for debug builds where I've manually pointed
at a different server, but just in case.
2019-06-23 10:12:05 -07:00
Eric House
58882fe52f
make text in new GameOver alert bigger
...
To match how it was when using the system-provided view.
2019-06-23 10:12:05 -07:00
Eric House
25509c729a
report stack of lock owner to crashlytics when can't get it
...
I'm seeing something permanently lock a game so it can't be opened. So
add code to report the stack of the owner to Crashlytics when opening
fails 3 times in a row. It's stubbed out for non-debug builds.
2019-06-23 10:12:05 -07:00
Eric House
babca4a696
Add custom GameOver alert for GameOver with Archive checkbox
...
I didn't like having to re-open a game to archive it after
rematching, so now there's a checkbox that lets you archive it after
either rematching OR just using OK to dismiss the alert. Also fixed
rematch of a solo game causing new game to be created in Archive
group if that's where the source game was.
squash me
2019-06-23 10:12:05 -07:00
Eric House
0ad9b0f891
up copyright year
2019-06-23 10:12:05 -07:00
Eric House
fce0eb2acc
add git rev to crashlytics reports
2019-06-23 10:12:05 -07:00
Eric House
0cd0bd4c03
plug leak
2019-06-23 10:12:05 -07:00
Eric House
2afce586a3
avoid crashes when BT turned off
...
Test at enqueueWork() and onHandleWorkImpl(). Seems to do it. Maybe
turning it off mid-send will still crash...
2019-06-23 10:12:05 -07:00
Eric House
601eaf395c
don't create threads we won't use
2019-06-23 10:12:05 -07:00
Eric House
7ba2f92645
null listener thread ref so will be restarted
...
Once it died it stayed dead: bad.
2019-06-23 10:12:05 -07:00
Eric House
ef602baa18
cleanup
2019-06-23 10:12:05 -07:00
Eric House
7ccb576214
Recast BTService as a JobIntentService
...
Got tired of the space the forground-service notification icons were
taking. So now BT sends and receives are done via static threads and
onHandleWork(). The send thread times itself out quickly. The receive
thread doesn't yet. We'll see how long the OS lets it run and what
needs to be done to deal with that.
2019-06-23 10:12:05 -07:00
Eric House
438e134870
add debug-only option for invitee players to be robots
...
It's useful when testing to have the remote device play without human
interaction. So add an option, and UI to trigger it, for the players
created remotely in response to an invitation to be robots. There are
guards in place to catch the feature slipping into a release build.
2019-06-23 10:12:05 -07:00
Eric House
136fa6ac7d
remove some logging
2019-06-23 10:12:05 -07:00
Eric House
842509d84a
remove methods overridden just for logging
...
looks like I've fixed the crash I wanted to diagnose.
2019-06-23 10:12:05 -07:00
Eric House
29661d2a7e
fix relay interactions again
...
Eliminate the writer thread, since onHandleWork() is already getting
called on a thread and can process the outbound queue itself. And get
rid of reader thread needing to wait for an instance of the RelayService
to be available to process a packet (which was taking 5-10 seconds all
the time): just post received packets via an enqueueWork() call using
the app context that's always available.
2019-06-23 10:12:05 -07:00
Eric House
34b462b97c
pass context and use to post lock-failure toast
2019-06-23 10:12:05 -07:00
Eric House
888109ce4e
tweak/reduce logging
2019-06-23 10:12:05 -07:00
Eric House
c4d21b7b59
move constant from XWApp to build.gradle
2019-06-23 10:12:05 -07:00
Eric House
781da8ccb6
avoid NPE (and log to root-cause it later)
2019-06-23 10:12:05 -07:00
Eric House
37085b0ba1
ensure writer gets run every time OS schedules via onHandleWork()
2019-06-23 10:12:05 -07:00
Eric House
130487f7df
remove some logging
2019-06-23 10:12:05 -07:00
Eric House
122b270025
fix NPE and let GameSummary stay until replaced
...
GameListItem was clearing its summary when kicking off a replacement
load. Instead keep the old around in case somebody wants it (e.g. to
figure out what menus to enable) until the reload finishes.
Also add logging of how long loading takes. I think a cache might be
called for.
2019-06-23 10:12:05 -07:00
Eric House
6193c376db
move invite button above button bar.
...
(It's more frequently used)
2019-06-23 10:12:05 -07:00
Eric House
2a5c3b11a0
add context comment for new string
2019-06-23 10:12:05 -07:00
Eric House
4ce20a49a6
cleanup via new macro
2019-06-23 10:10:49 -07:00
Eric House
1e6fdd1f70
remove logging
2019-06-23 10:10:49 -07:00
Eric House
0a50a721dd
fix malformed xml string
...
Weblate bug?
2019-06-23 10:10:49 -07:00
Eric House
aab36efdac
fix problems with RelayService
...
Darned thing was dropping packets, failing to connect games built in
response to invitations, and otherwise misbehaving. First was due to not
resheduling when exited with outbound packets in queue; second to not
overriding relayNoConnProc() (due to signature change.) Though it still
happens occasionally.... Also added timestamps to track how long it
takes a packet to be sent and ACK'd.
2019-06-23 10:10:00 -07:00
Eric House
0ad21783b8
add rowid to NoSuchGameException
2019-06-23 10:10:00 -07:00
Eric House
8ff23294e6
fix NPE (and tweak logging)
2019-06-23 10:10:00 -07:00
Eric House
fd122148b8
add flavor to toasted got-fcm message
...
So I can tell the apps apart
2019-06-23 10:10:00 -07:00
Eric House
ac5cbea83f
display latest FCM receipt as part of netstats for relay
2019-06-23 10:10:00 -07:00
Eric House
c67bda8683
use a constant jobID for enqueueWork()
...
That each VM instance had a different id might be why I was
crashing. We'll see.
2019-06-23 10:10:00 -07:00
Eric House
b5ab8803c4
remove debug-only assert I'm seeing
...
Good to know it's happening; now don't crash!
2019-06-23 10:10:00 -07:00
Eric House
40eab8690b
put back pref controlling whether FCM receives are Toasted
2019-06-23 10:10:00 -07:00
Eric House
272204223e
make md5sum calculation available everywhere
...
I want to log sums to see when they arrive on relay. And also add some
missing @Overrides I noticed.
2019-06-23 10:10:00 -07:00
Eric House
f28c21206c
put up toast when FCM message received
...
It's too useful to live without. So: tap into the static list of live
Delegates, and if any of them has an Activity available use it to run
Toast on UI thread. Otherwise there will be no display.
2019-06-23 10:10:00 -07:00
Eric House
6853b203a1
make https the default for prefs-alterable strings
...
And change the keys so all local changes get reset
2019-06-23 10:10:00 -07:00
Eric House
2c4ce83a5b
use https everywhere. And rewrite URLs if necessary.
2019-06-23 10:10:00 -07:00
Eric House
5d36470e50
add some logging around RelayService lifecycle
2019-06-23 10:10:00 -07:00
Eric House
bbe69f6398
Revert "toward compiling with gcc8"
...
This reverts commit d293517e7c
.
2019-06-23 10:10:00 -07:00
Eric House
e8ab9e0b8b
toward compiling with gcc8
...
My VSIZE is no longer legal, and apparently there's no workaround (no
way to safely figure the length of an array whose size is known at
compile time.) To avoid the risk of duplicating little constants, added
macros that define length in a way a new VSIZE can pick it up. Couldn't
make that work for struct field arrays, however, so there I'm using
constants.
2019-06-23 10:10:00 -07:00
Eric House
5f9d39ef8d
communicate variant to relay, and store in new column
2019-06-23 10:10:00 -07:00
Eric House
a49c8c89ba
fcm config file for xw4 variant
2019-06-23 10:09:59 -07:00
Eric House
d950ad695c
remove debug toast that can't work from that class
2019-06-23 10:09:59 -07:00
Eric House
0c52d4e550
remove sms permissions from play store variant
...
and from a new debug variant so that can be tested. Add explanation to
be shown users who try to use the now-unavailable features.
2019-06-23 10:09:59 -07:00
Eric House
6ecfd2f20b
add app-side support for firebase messaging
...
Works for xw4d variant only so far -- xw4 builds are broken!!!
2019-06-23 10:09:00 -07:00
Eric House
305f45dfc0
add variant option to build scripts
...
xw4 won't build for a while...
2019-06-23 10:09:00 -07:00
Eric House
7500e2f396
track and log lock owners correctly
...
Was assuming LIFO behavior, but with refcounting that's wrong and so I
was likely logging the wrong leaker in the case I'm trying to
duplicate. This simplifies the class while fixing that by tracking
owners as a Set.
2019-06-22 07:16:48 -07:00
WaldiS
6aad6d259b
Translated using Weblate (Polish)
...
Currently translated at 89.4% (683 of 764 strings)
2019-06-20 21:00:29 +02:00
WaldiS
c612570c12
Translated using Weblate (Polish)
...
Currently translated at 89.1% (681 of 764 strings)
2019-06-18 21:02:46 +02:00
Julio Yagami
6bf8fcef17
Translated using Weblate (Portuguese)
...
Currently translated at 51.6% (394 of 764 strings)
2019-06-18 21:01:45 +02:00
AB
36927380e2
Translated using Weblate (Ukrainian)
...
Currently translated at 0.5% (4 of 764 strings)
2019-06-18 21:01:44 +02:00
THANOS SIOURDAKIS
800292dfee
Translated using Weblate (Greek)
...
Currently translated at 0.9% (7 of 764 strings)
2019-06-18 21:01:43 +02:00