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
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
3c9626c5ba
always include ISO, even if including old langCode
2022-08-25 11:20:26 -07: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
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
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
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
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
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
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
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
76f943de36
update changelog
2022-07-28 18:04:46 -07:00
Eric House
27d5127f12
cleanup
2022-07-16 15:39:32 -07:00
Eric House
e9f95180e5
add debug-only menu in place of always showing net status
...
I want to add a relay2 API that'll tell how long it's been since peer
connected etc. First will show it in debug-only builds via this menu.
2022-07-12 14:35:59 -07:00
Eric House
ac7e918718
Rewrite to actually cache lang names and codes we encounter
2022-07-11 17:47:57 -07:00
Eric House
041a9f3c3e
change button to "Delete Game" for clarity
2022-07-11 17:47:57 -07:00
Eric House
dac0727c40
fix sig mismatch between jni and java
2022-07-11 17:47:57 -07:00
Eric House
51abc98647
use same variable name throughout
2022-07-08 21:57:42 -07:00
Eric House
a393a99c19
add ISOCode class
...
I was getting language name and iso code confused so adding a new type
to keep them separate. Keep string type for crossing JNI boundary and
passing as param e.g. in URLs and Bundles.
2022-07-07 10:00:24 -07:00
Eric House
b7e1a4d0ec
remove assert
2022-07-07 10:00:24 -07:00
Eric House
a6a6523e9c
cleanup: remove asserts and unused strings
...
Some asserts were firing in the very rare case where for some reason
relay couldn't be converted to mqtt.
2022-07-02 20:15:29 -07:00
Eric House
2dfc9129f3
add timestamp to saved msgs, modify mqtt header to include later
...
I want receiver to know when message was originally created. This adds
timestamp to messages and passes it via send proc. Client needs to
send it where possible. So far, MQTT format can't include it without
change, so I'm adding a new proto version. This change can read the
new version. Once that's well-enough distributed I can start sending
using it. Other transmission types than MQTT are for later.
2022-06-29 12:34:27 -07:00
Eric House
ec4822bbe9
remove redundant checkUpdates param
2022-06-28 11:50:12 -07:00
Eric House
1c6afc7909
avoid caught exception with better sql statement
2022-06-28 10:51:45 -07:00
Eric House
2c26af0e68
remove / from archive filenames
...
Older versions of Android use / in default date strings to produce
illegal file names. Swap '-' in instead.
2022-06-28 10:51:45 -07:00
Eric House
0f2d8e7e8f
remove titles from renamer alerts
2022-06-25 21:18:35 -07:00
Eric House
880e0812a7
Move new strings to where Weblate will see them
...
I think they're not going to change and so translators' efforts won't
be wasted.
2022-06-25 13:30:47 -07:00
Eric House
3b711ac253
fix so menugroup hidden; remove elipses
2022-06-25 10:41:36 -07:00
Eric House
e516dbcf66
fix so process restarts after archive loaded
2022-06-24 12:43:35 -07:00
Eric House
08a8bc4189
add non-again tip for archive backup
2022-06-24 12:34:46 -07:00