Eric House
514ca45e4f
change copyright date -- Happy New Year!
2023-01-11 20:38:40 -08:00
Eric House
a02ea95600
remove dead code: game_reset and friends
2023-01-11 12:28:09 -08:00
Eric House
baf02f6800
don't crash forever if mqtt host name mistyped
2023-01-10 22:36:52 -08:00
Eric House
08ea648a3f
changelog and version codes
2023-01-06 07:53:10 -08:00
Eric House
e2a13a0ec1
Clean up API (new objects in jni no longer scare me)
2023-01-04 20:41:45 -08:00
Eric House
4caf660c1c
cleanup
2023-01-04 14:13:53 -08:00
Eric House
f1ab7be1a3
remove assertion
2023-01-01 18:35:09 -08:00
Eric House
9e5b074f7e
remove dead strings; stage new ones
2022-12-30 15:49:06 -08:00
Eric House
837991feb4
remove timestamps from mqtt header and procs that feed it
...
It belongs in comms msg header. Also remove PROTO_2, which shipping
code can read but never could send.
2022-12-30 15:35:01 -08:00
Eric House
550248bce0
fix assertions from missing timestamps
2022-12-29 22:39:26 -08:00
Eric House
2942c140ee
consider channel when deciding if a game's present (and fix assign)
...
Rematch against self didn't work, and is useful for testing. So in
dutil method hasGame(), check if games with the same gameID are also
for the same channel. And when creating a new game for rematch, make
sure it's channel is 0.
2022-12-29 21:21:39 -08:00
Eric House
ae9d576bad
fix crash when 0-length mqtt buffers arrive
...
Which is what happens when you "clear" retained messages
2022-12-28 23:21:32 -08:00
Eric House
5175775b1d
don't truncate gameID
...
In some cases games were created with 32-bit ids, and sometimes only
20 bits were used.
2022-12-27 17:38:26 -08:00
Eric House
5887140d9b
use hex for gameID in games list; fix compile error
2022-12-21 10:38:31 -08:00
Eric House
8ce145f1fd
don't try to send invite via BT without an address
2022-12-21 08:30:09 -08:00
Eric House
933da2de07
API cleanup and all done
...
This should complete sending to multiple topics (for backwards
compatibility) and supporting combined messages in the future (sending
them is hard; receiving not so much.)
2022-12-20 11:55:30 -08:00
Eric House
233a9c465d
snapshot: message sending works on android
2022-12-20 09:02:17 -08:00
Eric House
b179a0bade
remove dead code
2022-12-18 18:50:05 -08:00
Eric House
3b6132d8a1
remove stuff that wasn't meant to get pushed
2022-12-18 16:21:51 -08:00
Eric House
096c13614a
use ifdefs to go back to using only old-style per-device topics
2022-12-18 16:17:05 -08:00
Eric House
cf2d49e249
more
2022-12-18 10:23:36 -08:00
Eric House
ef39a2fa62
add debugging stuff -- don't push
2022-12-18 09:42:31 -08:00
Eric House
d799b94169
use persist flag and new per-game mqtt topics (too)
...
I didn't understand MQTT at all. Per the docs anyway it only keeps a
message around if its "persist" flag is set, and then it only keeps
the most recent per topic. I expected that when a device connected,
messages would be waiting for it, but that's apparently not true (some
evidence to the contrary.) But having all games on a device share the
same topic means only one message can be waiting. So switch to
including gameID in the topic, subscribing to a wildcard topic and
sending to a different one per game. For now, for legacy purposes,
we'll keep sending to the old per-device topic.
2022-12-16 14:35:22 -08:00
Eric House
31593aaeda
call setRetained on all outbound messages
2022-12-13 17:41:48 -08:00
Eric House
e051fa04f9
fix robot having human name in config dialog
2022-12-13 06:13:03 -08:00
Eric House
988cf7f175
remove mistaken assert
2022-12-11 21:08:24 -08:00
Eric House
53e1a68d6d
track, and offer to display, comms-sent invites like others
...
I'm only keeping the most recent since they're sent every time a game
opens, app launches, etc.
2022-12-10 22:17:14 -08:00
Eric House
ed21fe01f4
remove dead string
2022-12-10 08:09:19 -08:00
Eric House
a2806f1c3f
show known player name of missing host
...
This is for debugging use only for now, but it's useful when a host
seems non-responsive to know which it is.
2022-12-05 21:21:46 -08:00
Eric House
48748110ed
get rid of banned-nbs info -- been long enough
2022-12-05 13:56:12 -08:00
Eric House
47a5e66d72
perms now needed for NBS
2022-12-05 13:56:12 -08:00
Eric House
3826ddfbff
don't ask for phone permissions if can't send NBS
2022-12-05 13:56:12 -08:00
Eric House
af8c7b9900
remove notion of banned permissions
2022-12-05 13:56:12 -08:00
Eric House
e5d91be4c4
add another bt perms test
2022-12-05 13:56:12 -08:00
Eric House
871a45d3d3
add permissions
2022-12-05 13:56:12 -08:00
Eric House
f72a6c1b88
default nbs_port to 0
...
Shouldn't be referenced at all on GPlay builds, but that's more work
2022-12-05 13:54:49 -08:00
Eric House
93db9f5add
remove REQUEST_INSTALL_PACKAGES from all variants
...
And start adding it to those not on the Play Store
2022-12-05 13:54:02 -08:00
Eric House
9f37faff7c
make NBS invitations work through new comms mech
2022-11-24 08:25:40 -08:00
Eric House
929de903f4
don't hide delete box for archived games
2022-11-19 09:07:11 -08:00
Eric House
34f68a435b
include game name in nli when rematching
2022-11-18 21:52:10 -08:00
Eric House
9881305c97
remove REQUEST_INSTALL_PACKAGES from google play variants
2022-11-18 12:21:19 -08:00
Eric House
067ceffc53
fix theme sharing
...
Had broken it when adding 21x21 board support, and it looks as if I
never hooked up receiving the incoming theme URLs.
2022-11-18 11:09:22 -08:00
Eric House
e59161ae2d
fix crash starting three-device games
2022-11-18 11:09:22 -08:00
Eric House
b999da1a92
remove BT perms crashes and fix so BT invitations work
2022-11-18 11:09:22 -08:00
Eric House
8ca83ae871
add BT permissions requests
2022-11-18 11:09:22 -08:00
Eric House
43a96fb6fc
get rid of stuff trying to support two sdk versions
2022-11-18 11:09:22 -08:00
Eric House
2d30854949
better way to create enum
2022-11-18 11:09:22 -08:00
Eric House
3c3e148ae8
more permission checks
2022-11-18 11:09:22 -08:00
Eric House
551c5332c4
more permissions checking
2022-11-18 11:09:22 -08:00
Eric House
347e54d2e7
start checking for BT permissions
2022-11-18 11:09:22 -08:00
Eric House
c888e2621b
builds for both 30 and 31 (with manual changes)
2022-11-18 11:09:22 -08:00
Eric House
7620e64516
switch DBG build to sdk 31
...
Now if I grant the permission manually in Settings the app doesn't
crash trying to use Bluetooth. Can't test for or ask for it yet.
2022-11-18 11:09:22 -08:00
Eric House
92b02fccb7
cleanup
2022-11-18 11:09:22 -08:00
Eric House
4419e0347c
remove unused property
2022-11-18 11:09:22 -08:00
Eric House
93e6e315db
fix to not crash, and exit cleanly, when opening unopenable games
...
When e.g. I open a game saved with a newer stream version flag it as
bad rather than asserting each time.
2022-11-18 11:09:22 -08:00
Eric House
e7861dca48
fix crashes when emulator decides it supports Bluetooth
2022-11-18 11:09:22 -08:00
Eric House
a2667eab0b
tweak search order and remove relay
...
Can't rematch using the relay any more!
2022-11-18 11:09:22 -08:00
Eric House
ec71ea349e
remove dead code
2022-11-18 11:09:22 -08:00
Eric House
f2b034d710
recognize in-comms invites when opening incomplete game
...
Android offers to invite when it thinks no invitations have been
sent. Now it knows about those buried in comms.
2022-11-18 11:09:22 -08:00
Eric House
6f57665da2
pass number of pending comms invites into informMissing()
2022-11-18 11:09:22 -08:00
Eric House
403bbafb0d
go back to quarantine requiring two failures to close
2022-11-18 11:09:22 -08:00
Eric House
924695d3fb
add new stream version that skips relay and allows longer string
...
And remove some dead code
2022-11-18 11:09:22 -08:00
Eric House
41d9d4a254
complete getUsername() impl to call into prefs for user choice
2022-11-18 11:09:22 -08:00
Eric House
848ae6f0f6
remove dead code; assert other dead
...
Adding asserts to confirm that code that shouldn't be called in fact
isn't.
2022-11-18 11:09:22 -08:00
Eric House
ee6c88b944
fix inviting known players by adding invitee to new game creation
2022-11-18 11:09:22 -08:00
Eric House
12d8a092d7
move getUsername() to dutils to avoid crash
...
Being in util meant the default implementation got called, and that
returned a null string: boom.
2022-11-18 11:09:22 -08:00
Eric House
34a72705c0
set quarantine count to 1 for debug builds
2022-11-18 11:09:22 -08:00
Eric House
e372b5e6d1
set game name from nli
2022-11-18 11:09:22 -08:00
Eric House
758a157472
check for dict before making game from invite
...
This belongs in common code but that's for later.
2022-11-18 11:09:22 -08:00
Eric House
5a5a8e7db8
make games connect after creation from invitation
2022-11-18 11:09:22 -08:00
Eric House
3923a2d9a6
check for duplicate invites; don't create if found
...
Add dutil proc haveGame() and use it to detect duplicate
invitations. I'm passing, but ignoring on android, the channel, which
means that for now you can't invite yourself and on-device testing
requires having CrossWords and CrossDbg or a second user.
2022-11-18 11:09:22 -08:00
Eric House
2a861db675
remove dead code
2022-11-18 11:09:22 -08:00
Eric House
980ba68297
fix stuff crashing android
2022-11-18 11:09:22 -08:00
Eric House
766554d3f5
snapshot: rematch and invitation handling most work from common
...
But curses will crash, duplicates and missing dicts aren't handled,
etc.
2022-11-18 11:09:22 -08:00
Eric House
8a64d53f61
cleanup
2022-11-18 11:09:22 -08:00
Eric House
b9c6551e8b
merge android_branch changes to comms_make
...
Not tested at all on android
2022-11-18 11:09:22 -08:00
Eric House
d1a9c07adc
fix so invites work, at least in simple case
2022-11-18 11:09:22 -08:00
Eric House
16857ab74a
snapshot: comms_invite() call gets to jni
2022-11-18 11:09:22 -08:00
Eric House
3b71ba9aca
Merge branch 'for-fdroid-193' into android_branch
2022-11-11 13:11:16 -08:00
Eric House
1ba8148dd1
update change log and version strings
2022-11-11 12:59:02 -08:00
Eric House
98dd2148ce
use constant for flag that must change with sdk version
2022-11-11 12:59:02 -08:00
Eric House
93902d6336
set sdk versions per variant
...
Prev build will crash on android 12 because it claims to know about
sdk 31 but gets Bluetooth permissions wrong. It's been released on
fdroid due to miscommunication. Fix will be to roll non-gplay variants
back to 30 for now. I'm deliberately breaking gplay builds because
nothing should ship there until I sort out the permissions stuff 31
requires. (Shipping 30 is no longer possible for the gplay store.)
2022-11-11 11:59:33 -08:00
Eric House
041f21f1a5
Merge branch 'branch-192' into android_branch
2022-11-07 09:57:34 -08:00
Eric House
7ca39180ab
up version strings and changelog
2022-11-05 20:47:52 -07:00
Eric House
3caa0f14e8
fix failure to launch url intent on Android 12
2022-11-05 20:45:06 -07:00
Eric House
edc9d34654
fix so wordlist upgrades work again
...
Not sure when this broke...
2022-11-05 20:45:06 -07:00
Eric House
458eeb7176
add fields missing from missing from copy constructor
2022-11-05 20:45:06 -07:00
Eric House
9429fd34e6
more fixes for Android 31
...
FLAG_IMMUTABLE and android:exported="true"
2022-11-05 20:45:06 -07:00
Eric House
5654602662
fix manifest to work for Android 31 and above
2022-11-05 20:45:06 -07:00
Eric House
85e6fb0dbf
up target sdk to 31
...
Looks like that'll be required soon
2022-11-05 20:45:06 -07:00
Eric House
66914ad341
get deep links to the point where adb launches on android 12
2022-11-05 12:01:20 -07:00
Eric House
6f5ae560e1
use https for deep links
2022-11-05 12:01:05 -07:00
Eric House
3eb07410bd
don't show delete checkbox if there are un-ack'd messages
2022-11-04 10:08:24 -07:00
Eric House
a672728305
fix crash using wrong widget id
2022-10-09 08:07:58 -07:00
Eric House
a83fbfebe2
hide name edit for existing games
...
This is a simpler fix that making it editable, as the name's in the
titlebar etc.
2022-10-09 08:07:12 -07:00
Eric House
4f8afadb25
toward adding name to config and transmitting it
2022-10-09 08:06:51 -07:00
Eric House
5c40f175bb
work around old unstarted games where gi only was saved
...
I think....
2022-10-06 08:45:03 -07:00
Eric House
e55212df9f
improve new game creation
...
There was some confusion around host and self addresses, where they're
created, default values, removing conTypes from defaults that are not
in received host addr, etc. I left in some asserts to help understand
if code that seems wrong but hard to fix is still getting called.
2022-09-14 21:37:44 -07:00
Eric House
11c2cca9b0
fix failure to launch url intent on Android 12
2022-09-13 18:15:12 -07:00
Eric House
b4a0616dfc
fix so wordlist upgrades work again
...
Not sure when this broke...
2022-09-11 21:19:53 -07:00