Commit graph

12832 commits

Author SHA1 Message Date
Eric House
c329b1bab4 always show load-saved-games menuitem if file present
You can't create the file naively, but want it to be easy to use if
it's present.
2022-06-13 08:51:10 -07:00
ssantos
2c3d0dd52a
Translated using Weblate (German)
Currently translated at 88.0% (781 of 887 strings)
2022-06-13 09:17:01 +02:00
Wellington Terumi Uemura
e762ad46f3
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (887 of 887 strings)
2022-06-09 12:16:28 +02:00
Eric House
6720367e66 fix NPE likely introduced by lang->isoCode changes 2022-06-06 21:46:38 -07:00
Eric House
2a6d1a0af2 save and restore prefs as part of saving/restoring games
A bit of testing says this works (to allow somebody moving to a new
phone to export and then import sharedpreferences in addition to the
games DB. There may be race conditions, but it probably works better
than nothing.
2022-06-06 20:49:58 -07:00
Eric House
4f3decc1c5 add config to get "legacy" external storage access 2022-06-06 20:38:26 -07:00
Eric House
58680980e2 show an error Toast when db file export fails
Right now I seem to be writing it someplace I'm not supposed to
2022-06-06 20:21:50 -07:00
Eric House
3dea7bd205 fix display of wordlist note when there is none 2022-06-05 17:04:28 -07:00
Eric House
8c4a1d2be6 add support for Dazaga language 2022-06-05 16:38:23 -07:00
Eric House
fd726a9563 add support for Tudaga language 2022-06-05 16:27:26 -07:00
Eric House
6b1e28e0e6 add asserts and logging 2022-06-05 16:15:31 -07:00
Eric House
d4572f2aea up version code so can test with new-format wordlists 2022-06-05 16:15:01 -07:00
Eric House
d24099f52b clean up Hex wordlist
Remove it from known set so it can be used to test. Get rid of
filenames having umlaut since that screws up URLs between Android and
nginx (not sure whose fault and not going there now.) Lang name should
be able to have an umlaut, but it gets used for filename for now so
fix later....
2022-06-05 14:38:33 -07:00
Eric House
20df5fec3a add command to print language name 2022-06-05 13:47:29 -07:00
Eric House
ce743a7e11 cleanup: tweak assertions 2022-06-05 09:46:33 -07:00
Eric House
e30fd7151f add asserts and logging 2022-06-05 09:07:06 -07:00
Eric House
6f96317e69 test for null data rather than catch and log every time 2022-06-05 09:07:06 -07:00
Eric House
7e591f39a5 log isoCode 2022-06-05 09:07:06 -07:00
Eric House
d28aaa17a9 fix failure to detect missing isocode
Needed to supply null to optString, as default is ""
2022-06-05 09:07:06 -07:00
Eric House
4398632d87 move table scheme into table name emum
Just a cleanup, basically; no behavior change
2022-06-05 09:07:06 -07:00
Eric House
20908284f5 LangCode->ISOCode replacement, Android side
Now we use only ISOCode string internally to identify languages, and
since that's universal it can be built into an wordlist and used
without the build of CrossWords knowing about that language
specifically (though it'll have to know about it to have the language
name be localizable.) For legacy support, though, the old int codes
are transmitted in invitations and URLs IFF available, otherwise the
string's used. If a newer build invites and older build to play in a
too-new language there will be trouble.
2022-06-05 09:07:06 -07:00
Eric House
ba132bb23d Replace LangCode with ISOCode, linux and common side
This will break the Android build, but it's the order in which I
work...
2022-06-05 09:07:01 -07:00
Eric House
8c04dddcc8 Fix not passing lang for studylist 2022-06-04 14:18:03 -07:00
Eric House
33b636b458 cleanup around lc code; add to JNI 2022-06-04 14:18:03 -07:00
Eric House
4190926c0a add isoCode to DictInfo, and load it 2022-06-04 14:18:00 -07:00
Eric House
0e665a990e add langName and isoCode to dict struct 2022-05-28 09:00:20 -07:00
Eric House
8c335aace3 fix crash on shutdown (post-relay world) 2022-05-28 08:49:07 -07:00
Eric House
5101fb46cb move wordlist md5sums into About alert 2022-05-22 19:54:02 -07:00
Wellington Terumi Uemura
7a85d5cbcc
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (886 of 886 strings)
2022-05-19 22:16:37 +02:00
Hosted Weblate
ebf85dbd74
Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2022-05-18 21:32:20 +02:00
Hosted Weblate
450541fc38
Merge branch 'origin/android_branch' into Weblate. 2022-05-18 21:32:19 +02:00
vitoUwu
f0ac3452d1
Translated using Weblate (Portuguese)
Currently translated at 98.3% (871 of 886 strings)
2022-05-18 21:32:18 +02:00
Eric House
a084d57654 make wordlist About menuitem include its name 2022-05-18 12:30:52 -07:00
Eric House
23241400f0 fix assert: move disconnect into own thread
It's sometimes on the UI thread and so since it makes blocking calls
needs to be elsewhere. Give it its own thread.
2022-05-16 21:46:49 -07:00
Eric House
99e4905a68 add Variants class
I want a place to fix-up what goes wrong when one variant is installed
on top of another. May be a dev-only thing. We'll see.
2022-05-16 20:31:15 -07:00
Eric House
2148288cf1 tweak permissions; stop using shouldShowRequestPermissionRationale()
It apparently returns false if I haven't asked before, and that's the
one time you want to be sure to ask.
2022-05-16 15:12:11 -07:00
ssantos
71e90eed77
Translated using Weblate (German)
Currently translated at 88.2% (782 of 886 strings)
2022-05-16 11:18:00 +02:00
Eric House
46515704c0 add to changelist 2022-05-15 14:01:18 -07:00
Eric House
6f4d386ad3 fix reversed sense of enable for mqtt enabled state change 2022-05-15 13:55:36 -07:00
Eric House
69f23b2898 wait for mqtt disconnect steps to complete
I'm hoping this is going to fix the crashes I see on GPlay. Clearly I
was wrong calling close() while disconnect() might still be doing
work.
2022-05-15 13:54:28 -07:00
Eric House
df1606c8fb use ifdef to remove relay-only params 2022-05-15 12:10:37 -07:00
Eric House
6236042ee1 formatting changes only 2022-05-15 12:10:37 -07:00
Eric House
71e957421c remove assert that fired for one user 2022-05-15 12:10:03 -07:00
Eric House
fbec2c926f remove more relay-only/dead code 2022-05-15 12:10:03 -07:00
Eric House
0a3851fba2 quick script to build and upload from HEAD
Working around TravisCI having killed my builds
2022-05-15 12:10:03 -07:00
Eric House
57b0a0f98d don't try to determine if I'm on an emulator
What I have doesn't work, and there's no consensus online what might
2022-05-14 21:01:15 -07:00
Eric House
e5470c458a tweak string 2022-05-14 21:01:15 -07:00
Wellington Terumi Uemura
a01a94dd4a
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (886 of 886 strings)
2022-05-15 04:17:05 +02:00
Eric House
6529e1e21a cleanup (no code changes) 2022-05-14 06:41:12 -07:00
Eric House
a04c33fe89 Actually reenable mqtt play when user says to 2022-05-14 06:00:33 -07:00
Eric House
7f401ce809 remove dead key strings 2022-05-14 05:56:47 -07:00
Eric House
0561f0ef23 changelog and version strings 2022-05-13 22:26:07 -07:00
Eric House
088caee4f2 use opt instead of get
If I'd done that before I could stop the current false-upgrade problem
server-side....
2022-05-13 22:06:16 -07:00
Eric House
78b5e280cd use full sum to fix fake dict upgrade offers
Needed to be incorporating the fullfile md5sum that was added recently
2022-05-13 19:43:36 -07:00
Hosted Weblate
f4c36f8c81
Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2022-05-14 03:15:37 +02:00
Eric House
5d71d88cfb resend invites more aggressively
Was silently failing to send additional invitations when asked. This
should fix this. If this is too aggressive I hope I'll notice.
2022-05-13 18:15:25 -07:00
Eric House
90eabd45c0 cleanup and asserts 2022-05-13 18:15:25 -07:00
Eric House
2937aed7e1 log caller/lineno when string in stream too long
I'm seeing it and so want it logged in the future
2022-05-13 18:15:25 -07:00
Eric House
a281bb25a7 cleanup: remove dead code and add asserts 2022-05-13 18:15:25 -07:00
Hosted Weblate
7f8fc53182
Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2022-05-13 02:49:07 +02:00
Hosted Weblate
8574f7a793
Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2022-05-13 02:47:49 +02:00
Eric House
8a3e106ebb show toast about trading tiles mode on board open
I was confused, so others will be too :-)
2022-05-12 17:47:00 -07:00
Wellington Terumi Uemura
e849b5f965
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (886 of 886 strings)
2022-05-12 14:14:37 +02:00
Hosted Weblate
500ec791bb
Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2022-05-11 05:56:42 +02:00
Eric House
49a0fd8462 remove premature assert
older devices will still have relay games
2022-05-10 20:54:26 -07:00
Eric House
66b94ce67b more cleanup 2022-05-10 20:54:26 -07:00
Eric House
cdb56c265f remove relay-related pref and strings 2022-05-10 20:54:26 -07:00
Eric House
f97623b489 more cleanup: remove obits and relay sync menuitem 2022-05-10 20:54:26 -07:00
Eric House
5834125058 remove two relay-related prefs 2022-05-10 20:54:26 -07:00
Eric House
5f4dd46f72 rip out most devid stuff 2022-05-10 20:54:26 -07:00
Eric House
58cba766d3 remove RelayService and stuff that uses it 2022-05-10 20:54:26 -07:00
Eric House
3953ab19a4 remove more relay code (and undef XWFEATURE_RELAY) 2022-05-10 20:54:26 -07:00
Eric House
b52d263f61 remove unused method 2022-05-10 20:54:25 -07:00
Eric House
babccc9e21 logf -> logff 2022-05-10 20:54:25 -07:00
Eric House
06583daf7d more removing relay 2022-05-10 20:54:25 -07:00
Eric House
63b0d7c2fb always clear initial address and add MQTT 2022-05-10 20:54:25 -07:00
Eric House
0eaa71fce6 remove relay from linux client via conditional compile 2022-05-10 20:54:25 -07:00
Eric House
bc31024647 assert relay calls not getting made 2022-05-10 20:54:25 -07:00
Eric House
3a15b9daa4 remove more relay stuff 2022-05-10 20:54:25 -07:00
Eric House
b2a91246fa stub out all RelayService calls 2022-05-10 20:54:25 -07:00
Wellington Terumi Uemura
6347c9bcdb
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (894 of 894 strings)
2022-05-11 01:15:34 +02:00
Eric House
d2d8ca61ed remove NBSProxy
Only matters for GPlay case, and that's too few people to be worth
worrying about.
2022-05-09 15:21:38 -07:00
Eric House
da23bfe23b add debug pref to not add mqtt to all games
I want it for testing that stuff like NBS (data SMS) works for more
than connecting. MQTT works so well nothing ever gets used once it's
there.
2022-05-09 15:10:15 -07:00
Eric House
8d285cfd3c add relay2 game URL to clip without requiring button
Dumb to require launching browser I'm not going to use
2022-05-07 19:22:36 -07:00
Eric House
4332368a2e cleanup 2022-05-07 13:29:32 -07:00
Eric House
f32e0fbba4 add latest commit log to About (debug only) 2022-05-07 08:15:14 -07:00
Wellington Terumi Uemura
a5d6512ab2
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (892 of 892 strings)
2022-05-07 15:13:36 +02:00
Hosted Weblate
529617255c
Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2022-05-05 20:55:55 +02:00
Hosted Weblate
cf622009c4
Merge branch 'origin/android_branch' into Weblate. 2022-05-05 20:55:54 +02:00
Wellington Terumi Uemura
1f49b206cc
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (892 of 892 strings)
2022-05-05 20:55:53 +02:00
Eric House
88aff7f53f nuke any downloaded upgrade .apk more than a week old
I've got 1.5G worth of these. Release FOSS builds will have far fewer,
but still...
2022-05-05 11:54:50 -07:00
Eric House
42b4e6eff6 log apks count and move string to xml 2022-05-05 10:52:51 -07:00
Eric House
2ace26f24c launch upgrade install immediately if requested manually 2022-05-05 08:39:06 -07:00
Eric House
6cd920a2e5 call game_saveSucceeded() for background processing
Fixes failure to send ACKs when the game receiving the message isn't
open. The problem was that though background processing was saving the
game it wasn't telling comms to change the lastMsgReceived variable
which meant the ACK sent didn't include the message that had just been
processed.
2022-05-04 20:07:00 -07:00
Eric House
03a936de74 have "show traffic" action copy game URL to clipboard
Useful when using emulator to get to a large-screen view of things
2022-05-03 08:49:59 -07:00
Eric House
49076c54f8 remove use of ancient clipboard class 2022-05-02 17:47:56 -07:00
Eric House
0a216e1082 version mods for an f-droid kitkat+ release 2022-05-01 14:19:56 -07:00
Eric House
d52e24c9bf include being emulator in reg info 2022-04-30 09:12:46 -07:00
Eric House
849e296b4a up library versions
Trying to address
androidx.preference.PreferenceManager.getDefaultSharedPreferences
sometimes failing on Android 12. Using newer version of the library
probably won't hurt.
2022-04-27 10:23:14 -07:00
Eric House
a509b3d5e3 list possible variants as part of usage() 2022-04-26 09:48:44 -07:00