Commit graph

13207 commits

Author SHA1 Message Date
Eric House
674c811a09 pass addresses to game on creation
Current networking, based on invitations rather than a relay that
plays matchmaker, allows host to know its address when a game is
created, and for guest to know its host's address in
addition. Enforcing this makes inviting and rematching in common
code (coming soon) easier. Big change on Android is I used to create a
new game prior to passing it to GameConfigDelegate, but now I have to
wait for user to configure (including choosing how to communicate)
before I can create it.
2022-09-06 18:21:53 -07:00
Eric House
ca2d97e647 add fields missing from missing from copy constructor 2022-09-06 11:40:09 -07:00
Eric House
881b9a92ad cleanup 2022-09-06 11:40:09 -07:00
Eric House
381b014b8b change name for clarity 2022-09-06 11:40:09 -07:00
Eric House
4996d3fe89 improve comms address tracking (breaks android for now)
Remove legacy relay-inspired logic around comms addressing. Now when a
device creates a game it's required to provide its "self address," and
if it's a client, the address of the host (which it presumably got
through the invitation in response to which the game is being
created.) Then as registration messages come in from clients, the host
gathers their addresses as always.
2022-09-06 11:40:09 -07:00
Eric House
ad8b81baf5 makefile for CSW21 2022-09-06 11:40:09 -07:00
ssantos
be4c199203
Translated using Weblate (Portuguese)
Currently translated at 98.0% (870 of 887 strings)
2022-09-02 22:16:47 +02:00
ssantos
894fe674cd
Translated using Weblate (German)
Currently translated at 92.1% (817 of 887 strings)
2022-09-01 14:22:50 +02:00
Eric House
2c80787f5c fix gtk invite for sms 2022-08-26 13:26:03 -07:00
Eric House
4ba1b2418c cleanup: remove some relay stuff 2022-08-25 11:20:26 -07:00
Eric House
3c9626c5ba always include ISO, even if including old langCode 2022-08-25 11:20:26 -07:00
Hugel
b54065d416
Translated using Weblate (Chinese (Simplified))
Currently translated at 7.5% (67 of 887 strings)
2022-08-25 18:19:43 +02:00
Eric House
baed9b16e5 back to android 30 for the time being
I'm going to make the 31 permission changes on a separate branch
2022-08-23 10:31:59 -07:00
Eric House
63a80b3726 Merge branch 'fixing-190' into android_branch 2022-08-22 11:51:40 -07:00
Eric House
dbe7ab5ae1 up release and changelog 2022-08-22 11:27:34 -07:00
Eric House
b93a9202e7 minimal changes for crash-fix release
* Unsubscribe all topics, not just one
* Use English when language not available to avoid NPE
* Use the same androidx component as everywhere else
2022-08-22 09:19:09 -07:00
Eric House
ccff0bd15e more fixes for Android 31
FLAG_IMMUTABLE and android:exported="true"
2022-08-20 12:33:48 -07:00
Eric House
20b29d026c Merge branch 'android_branch' of github.com:eehouse/xwords into android_branch 2022-08-20 12:17:36 -07:00
Eric House
8dac8910ae changelog and version strings 2022-08-20 12:14:22 -07:00
Eric House
653310ce2a fix manifest to work for Android 31 and above 2022-08-20 12:14:18 -07:00
Eric House
d1e462a0ba fix manifest to work for Android 31 and above 2022-08-20 11:58:20 -07:00
Eric House
1b9fd67e9f logging cleanup 2022-08-20 10:24:29 -07:00
Eric House
bab96c4528 work around NPE by defaulting to English
Somehow getLangIsoCode() is returning null when called early in app
launch, on some subset of devices the Play Store isn't
identifying. I'm just going to default to "en" when that happens.
2022-08-20 10:10:41 -07:00
Eric House
4ab88eb572 revert test for connectedness in mqtt shutdown
An assertion's firing indicating I don't understand what's going
on. Let's study some more first.
2022-08-20 09:55:59 -07:00
Eric House
d0b180a41d use androidX.preference.PreferenceManager everywhere
I'd left one file out when converting
2022-08-20 09:16:33 -07:00
Eric House
4106765d53 add some consts 2022-08-16 18:28:53 -07:00
Eric House
2638533e6f turn net state listening back on for MQTT
I'd removed it when the relay went away, but MQTT apparently doesn't
listen for network changes on its own and so there was no attempt to
resend messages when the device regained connectivity. Now there
is. Old logic to avoid thrashing remains and is not tested with MQTT
-- shouldn't need to be....
2022-08-14 11:38:42 -07:00
Eric House
e46fd52e00 remove assert that's firing and so obscuring logging of cause 2022-08-14 10:14:11 -07:00
Eric House
29a6ededda fix topic; don't try to unsubscribe or disconnect if not connected 2022-08-13 12:26:25 -07:00
Eric House
e05a18bdbb up target sdk to 31
Looks like that'll be required soon
2022-08-11 10:40:18 -07:00
Eric House
12511755a8 require --variant parameter 2022-08-10 18:18:08 -07:00
Eric House
0e9235dcd0 up version code 2022-08-10 12:13:50 -07:00
Eric House
52c7ced4aa changelog 2022-08-10 12:13:50 -07:00
Eric House
cd9ea8ce3f oops: don't revert the bug-fix change to server.c 2022-08-10 12:13:50 -07:00
Eric House
cb362618e9 revert move-reporting changes
They need more testing before the next release, and are fine except
for duplicate-mode play.
2022-08-10 13:33:18 -05:00
Eric House
2a13229a40 revert MQTT disconnect changes
They seem to be causing problems and need to be part of a later
release with more testing.
2022-08-09 21:16:16 -07:00
Eric House
0497a456e7 cleanup 2022-08-09 22:39:41 -05:00
Wellington Terumi Uemura
518fcc4a70
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (887 of 887 strings)
2022-08-10 04:18:54 +02:00
Eric House
736dc2039c tweak explanations for new game-over dialog checkboxes 2022-08-07 20:24:24 -07:00
Eric House
896e86fd28 Fix NPE most likely due to empty getLanguage() result 2022-08-07 19:28:12 -07:00
Eric House
97f280a6ea don't shut down MQTT levels we didn't reach
This is a shot-in-the-dark at internal MQTT crashes being reported
through the Play Store.
2022-08-06 20:52:50 -07:00
Eric House
37b5f80e05 Use Object... in a few more methods 2022-08-06 11:07:28 -07:00
Eric House
47abbf39be Use Object... in place of Object[] everywhere for consistency 2022-08-06 11:07:20 -07:00
Eric House
6397f3f27c Fix game-over alert to allow deletion
Add checkboxes to allow delete or archive action to be scheduled for
after a rematch is done. The UI's a bit awkward. NA tips help,
but it may be possible to make it easier to understand.
2022-08-06 11:07:15 -07:00
Eric House
11ea30c882 make alert builders take varargs to simplify calling
Required making the string res id the last arg rather than first,
but let me clean up a bunch of code. Should be no behavior change
at all.
2022-08-06 06:49:06 -07:00
Eric House
c00bbf8ef1 simplify move expl tracking; don't show for dup-mode robots
Removed a boolean that seemed unnecessary. Stopped showing
move-explanations for robots in duplicate mode. They were being shown
too early thanks to bad logic, but I don't think there's any call for
them at all. A robot's move is only interesting if it's the one that
wins the turn.
2022-08-04 16:03:07 -07:00
Eric House
818868bdb2 remove undo as an option for duplicate mode games 2022-08-03 19:54:53 -07:00
Anupam Malhotra
345f104505
Translated using Weblate (Spanish)
Currently translated at 18.6% (165 of 884 strings)
2022-08-03 18:14:54 +02:00
Eric House
e6d516ca1d remove assertion firing in dup mode
The assertion's clearly blocking testing, but I'm not sure it's not an
error for two move explanations to want to co-exist. For now they're
concatenated.
2022-08-01 13:05:19 -07:00
Eric House
7d3502eddd cleanup and force draw
Got rid of pre-cairo drawing stuff, but that didn't fix drawing not
happening without something like a window resize to force it. Instead
I added a manual gtk_widget_queue_draw() call. It's gross, but I'm
this app's only user. :-)
2022-07-31 17:57:57 -07:00