Commit graph

1649 commits

Author SHA1 Message Date
Eric House
bc989dc903 allow show timer stats and game traffic on release builds 2022-03-01 10:51:54 -08:00
Eric House
e613adcac2 removing old code 2022-02-20 11:30:27 -08:00
Eric House
2175600190 use new webapi to fetch mqttid to replace relayid
And drop relay once we have it. Makes perfecting RelayService backoff
less an issue.
2022-02-12 13:27:24 -08:00
Eric House
4bfcf2afb4 deal better with old relay games
Attempting to stop calling the relay, but to let relay-only games finish
and issue invitations. Big changes are that relay is removed from games
if they have viable mqtt connections, and relay timers fire less often,
then eventually stop getting set if there are no active games. Result is
that a relay-only invitation won't likely be received, but there should
be few or none of those now.
2022-02-10 08:28:34 -08:00
Eric House
0cd3be2668 switch to a single alarm and job for all timers
Main goal is to not fire RelayService timer when mqtt timer fires and
there are not any active relay games at all. Adds new class that keeps
a timer for each client, sets the closest each time, and dispatches only
that one.
2022-02-07 12:55:18 -08:00
Eric House
2c79d7dfe6 assert logging as expected 2022-02-07 12:55:18 -08:00
Eric House
0cd757d327 fix lollipop-only logging of formatting exception 2022-02-07 12:49:59 -08:00
Eric House
acc17c2ce2 Don't connect to relay for games with mqtt
I was determining I need to check the relay for messages if I have open
games using it. But they can also use mqtt, and the goal's go stop using
the relay. So only force the connection if the games can only connect
via relay. Once I've confirmed via a study of relevant databases that
all recent relay games are also connecting via mqtt this can ship, and
should stop nearly all relay traffic .
2022-01-27 08:10:40 -08:00
Eric House
733567c949 move ints from res to code so exist in one place only
Debug ids were in one place, non- in another. Now they're all
together.
2022-01-26 20:36:18 -08:00
Eric House
d22ffbec3f handle byod download links
Download the thing and offer to open it on success.
2022-01-24 20:48:13 -08:00
Eric House
8738791ead version strings and changelog for release 2022-01-11 12:12:32 -08:00
Eric House
25c85af2e6 send LWT on release builds too 2022-01-10 20:50:15 -08:00
Eric House
ce6537f2a9 add lwt to connect 2022-01-10 07:47:51 -08:00
Eric House
e5a6f05e92 Revert "add timestamps to logs where older OS doesn't provide"
This reverts commit f0a05c004c. Turns out
logcat can be made to show timestamps on older devices too.
2022-01-08 08:56:16 -08:00
Eric House
f0a05c004c add timestamps to logs where older OS doesn't provide 2022-01-07 17:46:37 -08:00
Eric House
2e5f6128f2 post new msg message from relay2
This is to have a utility back, but mostly to start playing with being
able to send keepalives to a device that have nothing to do with moves.
2022-01-06 19:07:08 -08:00
Eric House
dcd3a4cc8c up version strings 2022-01-04 13:27:01 -08:00
Eric House
5aa1a50f10 change notes and up copyright 2022-01-04 13:26:58 -08:00
Eric House
a8963c952e use variable length ints to store msgID and len 2022-01-04 11:12:58 -08:00
Eric House
b5e484baa5 log rather than assert when game opened twice 2021-12-16 13:20:03 -08:00
Eric House
b37985070b remove unused strings 2021-12-06 20:30:20 -08:00
Eric House
7a425f6db9 no need for advanced network prefs
since it has only one element in it now
2021-12-05 21:21:00 -08:00
Eric House
fd9e519eaa remove dead code around public rooms 2021-12-05 21:10:06 -08:00
Eric House
cdbdf8a121 up version code to replace rejected Store upload 2021-12-04 11:13:57 -08:00
Eric House
5982af1a4a use sdk 30 -- required by Play Store 2021-12-04 09:30:08 -08:00
Eric House
f8ef1af1fb changelog 2021-12-01 10:57:50 -08:00
Eric House
3d89e18d8b show separate available and installed wordlist counts 2021-12-01 10:57:50 -08:00
Eric House
565af46789 send versionCode instead of custom flags
Since ability to grok a wordlist is a function of version, might as well
have the server know about that. Requires upping versionCode
prematurely, with stubbed-out release notes.
2021-12-01 08:27:26 -08:00
Eric House
bd6bc71603 use a single string array for lang code and name 2021-11-29 09:26:47 -08:00
Eric House
a738e60f1d fix sorting when lang names are localized 2021-11-28 12:28:52 -08:00
Eric House
b6c9e11f87 add flag that Romanian's understood 2021-11-28 11:03:01 -08:00
Eric House
fb7a819db7 add Romanian 2021-11-27 12:06:50 -08:00
Eric House
6251af983e stop using relay for new games for Release too 2021-11-27 11:26:31 -08:00
Eric House
8e45c57178 log BT UUID on startup 2021-11-01 12:44:56 -07:00
Eric House
6df8f10e3a use cellline color to frame tiles
Was just plain black before, and that didn't work well on dark theme
when it came time to select for trade.
2021-10-27 15:46:49 -07:00
Eric House
847024512a move colors setting up 2021-10-27 15:46:49 -07:00
Eric House
3b51eb0629 don't make unsolicited upgrade offer more than once
Debug build checks for upgrades every hour, and when I don't want one
it's annoying to keep dismissing notifications. Should have no impact on
release builds.
2021-10-14 12:13:46 -07:00
Eric House
ba5a141b3f cleanup: add and use overridden method 2021-10-14 12:09:34 -07:00
Eric House
a0f1f1d045 add post-export option to email logs; remove export
No point in exporting only to create a file, so export-and-email as one step
2021-10-05 15:19:46 -07:00
Eric House
f083ba9897 add timestamp to saved logs, and zip on export
They're otherwise too big to email
2021-09-30 21:27:22 -07:00
Eric House
550795d3a1 don't lose track of what's open when device rotates
GamesListDelegate is the wrong place to track open games (boards). Let's
try doing it in BoardDelegate.
2021-09-04 15:19:40 -07:00
Eric House
4c94f19ec6 tweak line & bonus hint colors & sizes
Upgraders will only get the smaller hints, but not the brighter color
that compensates.
2021-09-04 11:29:47 -07:00
Eric House
bbb2ab3856 changelog and version changes 2021-08-31 10:46:59 -07:00
Eric House
79d77410a5 fix failure to send NO_SUCH_GAME over NBS
Wasn't sending zero-length messages, which this one is. Needs testing,
because there must have been a reason for that test.
2021-08-31 10:44:39 -07:00
Eric House
ffa3f245ac remove logging 2021-08-29 21:10:46 -07:00
Eric House
789978b8b2 tweak player colors (dark) 2021-08-29 18:20:52 -07:00
Eric House
2e6572f250 add not-again hint when dark-theme used 2021-08-13 13:47:54 -07:00
Eric House
a8abdaad8c cleanup: not a new feature any more 2021-08-13 11:04:45 -07:00
Eric House
4ed46f6681 make default settable by sdk version
This is a better way to do it: use separate values that user doesn't
see and so that they can be defined as defaults without worrying about
translation.
2021-08-10 18:13:00 -07:00
Eric House
cf553a0aed set first theme choice as default
workaround for not knowing how to set default based on os version:
don't set default, and when there's none set use the first in the
list.
2021-08-10 14:46:47 -07:00
Eric House
bfd7963ea6 Add dark- and light-mode themes for board
Allow user to choose a new dark-mode color scheme for the board, with
colors editable same as the old mode. Support exporting a URL
encapsulating those colors to clipboard and importing from the URL
when it's tapped e.g. in email.
2021-08-09 09:31:20 -07:00
Eric House
7d07a2319b get rid of HostActivity
New Prefs framework doesn't require it.
2021-07-29 19:38:00 -07:00
Eric House
fb1088b9a8 'show network' option takes priority over 'reset'
These are debug-build-only, but useful for my debugging!
2021-07-24 12:29:13 -07:00
Eric House
7a63a97259 changelog and version codes 2021-07-18 15:19:34 -07:00
Eric House
34f2a853d6 make bonus hints smaller 2021-07-18 15:19:29 -07:00
Eric House
6439f6d223 don't crash when BT's off 2021-07-17 13:31:08 -07:00
Eric House
b49792c750 make cell line width settable 2021-07-16 12:21:49 -07:00
Eric House
694953c820 add support for trays with up to 9 tiles 2021-07-16 12:15:46 -07:00
Eric House
5764a752a7 add default mqtt server to test app 2021-05-30 16:39:55 -07:00
Eric House
e667291da5 show invitee name where possible
When I've invited a Known Player, use that player's name in parens in
scoreboard and games list elem/summary until a remote device connects
(usually in response to an invitation) and provides an actual player
name. Makes it much easier to tell one pending game from another. And
doesn't really work (yet) where there's more than one remote player in
a game.
2021-05-30 13:31:33 -07:00
Eric House
6352958066 update changelog and version strings for release 2021-05-27 12:26:59 -07:00
Eric House
e18b2d5c75 avoid crash by dropping GAME_OVER event
Play Store reports say I'm getting this event when I don't have a
valid jni game instance to work with. So test for that, and drop the
event. If it's a race condition this should fix it. If not I'll get
some other crash report that might be more useful.
2021-05-27 10:56:21 -07:00
Eric House
dd8e7584e6 fix NPE
Needed to init globals first
2021-05-27 10:49:20 -07:00
Eric House
3d1ec565b0 add two ways to launch web view of game traffic
This'll should it a lot easier to look at what's going on e.g. for a
stalled game
2021-05-23 18:39:28 -07:00
Eric House
9e4a889b6c update commented-out log statements 2021-05-17 17:26:30 -07:00
Eric House
515a253028 changelog and version codes 2021-05-17 12:50:22 -07:00
Eric House
3fd6303f9e add assert toward tracking crash on Play Store 2021-05-17 12:50:22 -07:00
Eric House
8f5484c5a6 fix crash opening BT game when BT disabled 2021-05-16 08:29:57 -07:00
Eric House
3f332480fb switch menu positions 2021-05-15 20:55:05 -07:00
Eric House
be698069a4 cleanup of recent changes 2021-05-14 11:34:15 -07:00
Eric House
0881566209 restore relay for release builds
I want to do a release, and the no-relay stuff isn't sufficiently
tested.
2021-05-13 08:44:44 -07:00
Eric House
03c9d92368 remove typo apparently introduced by translator 2021-05-02 19:33:58 -07:00
Eric House
9a2fa9534a moving metadata to see if weblate picks it up 2021-05-02 19:19:58 -07:00
Eric House
fab7a7befe fix Oreo-only crash by not setting screen orientation
This may hurt Oreo users in some other way, but I'm not taking the time
right now to figure out what's special about DwnldActivity that it
crashes when setting screen orientation on Oreo. It's only 5% of my
users anyway.
2021-05-02 07:11:36 -07:00
Eric House
f1123bebfc played word lookup: skip choosing if only one choice 2021-04-26 08:16:24 -07:00
Eric House
daf5894d79 call new web api to ack mqtt messages
This is toward debugging. Not sure it'll be use to add functionality yet.
2021-04-19 07:04:58 -07:00
Eric House
356280565a ensure default addr type set never empty 2021-04-08 21:43:24 -07:00
Eric House
b9c34b2b31 don't include relay in rematch addressing 2021-04-01 13:26:25 -07:00
Eric House
a1cabd6c4c don't add relay to new games -- mqtt only 2021-04-01 10:10:08 -07:00
Eric House
2d3f86a396 Merge branch 'from_android_beta_175' into android_branch 2021-03-31 16:59:31 -07:00
Eric House
ad3fd9342c up strings for bug-fix release 2021-03-31 16:37:12 -07:00
Eric House
229ced9a29 add and use new string for networked case 2021-03-31 16:33:53 -07:00
Eric House
0e3cd7c9f5 upgrade to latest stable (LTS) NDK 2021-03-31 16:21:03 -07:00
Eric House
29261dd370 fix crash when no radio's been chosen 2021-03-31 16:19:19 -07:00
Eric House
60d6cf444a fix crash when no radio's been chosen 2021-03-31 16:18:44 -07:00
Eric House
97962fceed upgrade to latest stable (LTS) NDK 2021-03-29 18:26:05 -07:00
Eric House
f13e81a4b5 Merge branch 'android_branch' into wasm 2021-03-28 18:39:07 -07:00
Eric House
9cf07b6327 remove unused json field 2021-03-28 10:28:47 -07:00
Eric House
64ff2e5f69 Merge branch 'android_branch' into wasm 2021-03-27 10:27:14 -07:00
Eric House
61d580adeb remove extra line-feeds 2021-03-26 22:19:00 -07:00
Eric House
f441ec18b3 changelog and version change for upgrade 2021-03-25 20:25:54 -07:00
Eric House
0e7edd9dcf fix build breakage by reusing rather than duplicating string 2021-03-25 15:45:53 -07:00
Eric House
430750e23a Change text for blank-out-filter-config Clear, not Reset
Reset somehow makes me expect the filter to be re-applied after the
inputs are removed.
2021-03-25 12:10:49 -07:00
Eric House
59acc5d619 disable reset button unless there's state to clear
Using a timer seemed easier than adding listeners on a bunch of fields.
2021-03-25 09:41:43 -07:00
Eric House
a11db395d5 fix invite alert not being dismissed on game connect
At least where QR was being used, it didn't go away. Not sure why, but a
global was getting nulled when it shouldn't have been. Race condition I
guess.
2021-03-22 12:22:53 -07:00
Eric House
561c5c9eb1 cleanup 2021-03-22 10:43:34 -07:00
Eric House
bdb081d0e3 cleanup: remove version test and tweak strings
There's no point in checking if I'm running on a version the Play Store
hasn't supported for years.
2021-03-21 17:29:08 -07:00
Eric House
3102271840 turn "known players" on for all 2021-03-21 13:40:17 -07:00
Eric House
4f8ae02bbe regression: don't offer to archive archived game 2021-03-21 13:25:47 -07:00
Eric House
1869557f12 when a move is dropped for lack of dict, alert user
Better to encourage deletion so the remote player knows what's up. This
will not happen often but it has bitten me so....
2021-03-21 10:33:49 -07:00