Commit graph

12758 commits

Author SHA1 Message Date
Eric House
2cb0f95ba4 remove dead strings from translations
Not sure why weblate doesn't do this automatically. Maybe it can but I
don't know how to trigger it.
2021-12-07 11:32:26 -08:00
Eric House
fc986b68d4 update to use python3 and indent to match weblate 2021-12-07 11:15:38 -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
87337713ce sign with v2 as well (for android 30) 2021-12-04 11:02:23 -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
ff767f6711 add Romanian metadata 2021-12-01 08:31:25 -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
de739586c3 add makefile and info for Romanian 2021-11-27 12:41:21 -08:00
Eric House
fb7a819db7 add Romanian 2021-11-27 12:06:50 -08:00
Eric House
d8a89abd53 need to specify *which* python now 2021-11-27 11:26:31 -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
Hosted Weblate
378b068238
Merge branch 'origin/android_branch' into Weblate. 2021-11-01 13:35:42 +01:00
ssantos
e9e104221e
Translated using Weblate (Portuguese)
Currently translated at 100.0% (918 of 918 strings)
2021-11-01 13:35:38 +01:00
Sylvia van Os
fb015d94a1
Translated using Weblate (Dutch)
Currently translated at 54.1% (497 of 918 strings)
2021-11-01 13:35:38 +01: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
Bernard Massot
50c57bf190
Translated using Weblate (French)
Currently translated at 99.4% (913 of 918 strings)
2021-10-17 23:58:26 +02:00
Wellington Terumi Uemura
6e2f16983e
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (918 of 918 strings)
2021-10-16 16:41:05 +02: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
Hosted Weblate
afe030eabc
Merge branch 'origin/android_branch' into Weblate. 2021-09-06 04:35:07 +02:00
liimee
ea97b2b6c7
Translated using Weblate (Indonesian)
Currently translated at 31.6% (289 of 913 strings)
2021-09-06 04:35:04 +02: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
94c57c3b14 remove "one" plurals items for Chinese
AFAIK, only "other" is ever used in Chinese. I've seen messed up
plurals from Weblate before so I'm assuming that's what's going on
here. Hope I'm not misunderstanding.
2021-08-29 21:10:46 -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
Hosted Weblate
531f113029
Merge branch 'origin/android_branch' into Weblate. 2021-08-29 09:35:08 +02:00
ssantos
a3ae7b7b69
Translated using Weblate (Portuguese)
Currently translated at 100.0% (913 of 913 strings)
2021-08-29 09:35:05 +02:00
Eric House
ea1c8125f8 use 16 bits to represent selected tiles
fixes selection of 9th tray tile during trade
2021-08-25 07:24:38 -07:00
Eric House
5f1f37a7a2 fix gtk bug not terminating buffer 2021-08-24 21:24:55 -07:00
Eric House
80f0e35755 allow trade when 7 tiles left, not 9 2021-08-24 21:24:17 -07:00
Wellington Terumi Uemura
c2852734c4
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (913 of 913 strings)
2021-08-20 02:46:08 +02:00
Bernard Massot
cc01c8033f
Translated using Weblate (French)
Currently translated at 99.4% (908 of 913 strings)
2021-08-18 14:34:52 +02:00
Hosted Weblate
9e3392ec75
Merge branch 'origin/android_branch' into Weblate. 2021-08-17 11:32:28 +02:00
Reza Almanda
591d99f2f1
Translated using Weblate (Indonesian)
Currently translated at 29.6% (267 of 899 strings)
2021-08-17 11:32:24 +02: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
Hosted Weblate
1776638467
Merge branch 'origin/android_branch' into Weblate. 2021-08-09 10:32:22 +02:00
ssantos
8461b2e022
Translated using Weblate (Portuguese)
Currently translated at 100.0% (899 of 899 strings)
2021-08-09 10:32:19 +02: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
liimee
15cc0dfac5
Translated using Weblate (Indonesian)
Currently translated at 29.1% (262 of 899 strings)
2021-07-24 14:34:15 +02:00
Wellington Terumi Uemura
9edb749c9f
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (899 of 899 strings)
2021-07-21 15:33:19 +02:00
Hosted Weblate
364a6f9109
Merge branch 'origin/android_branch' into Weblate. 2021-07-20 11:33:25 +02:00
liimee
0b8042747e
Translated using Weblate (Indonesian)
Currently translated at 27.8% (249 of 895 strings)
2021-07-20 11:33:21 +02:00
Anna Malinovskaia
b7af5e577e
Translated using Weblate (Russian)
Currently translated at 0.6% (6 of 895 strings)
2021-07-20 11:33:20 +02:00
Zhou Nan
7833d15c94
Translated using Weblate (Chinese (Simplified))
Currently translated at 4.6% (42 of 895 strings)
2021-07-20 11:33:20 +02: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
e19f1042cb add option to force number of tiles in tray 2021-07-16 12:15: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
8f83a390f1 a bit o' cleanup 2021-06-30 11:47:26 -07:00
Hosted Weblate
d8ee3f5de7
Merge branch 'origin/android_branch' into Weblate. 2021-06-29 16:33:27 +02:00
liimee
5ce616ebdc
Translated using Weblate (Indonesian)
Currently translated at 27.3% (245 of 895 strings)
2021-06-29 16:33:24 +02:00
Eric House
9d1214d604 hide dup details when no dupe games present 2021-06-28 12:58:55 -07:00
Eric House
44152f6c36 fix wasm build a bit
Still doesn't seem to work on new install
2021-06-28 12:58:55 -07:00
liimee
29bc7ad029
Translated using Weblate (Indonesian)
Currently translated at 19.8% (178 of 895 strings)
2021-06-27 17:32:17 +02:00
liimee
60dd623b69
Translated using Weblate (Indonesian)
Currently translated at 12.4% (111 of 895 strings)
2021-06-24 05:32:15 +02:00
liimee
15142779db
Translated using Weblate (Indonesian)
Currently translated at 6.7% (60 of 895 strings)
2021-06-22 17:33:33 +02:00
liimee
d5e231299c
Added translation using Weblate (Indonesian) 2021-06-21 16:38:06 +02:00
Wellington Terumi Uemura
21b21bd708
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (895 of 895 strings)
2021-06-17 11:32:41 +02:00
ssantos
1800a647ec
Translated using Weblate (Portuguese)
Currently translated at 99.7% (893 of 895 strings)
2021-06-17 11:32:41 +02:00
Bernard Massot
aeed1d316c
Translated using Weblate (French)
Currently translated at 99.4% (890 of 895 strings)
2021-06-17 11:32:40 +02:00
Hosted Weblate
0ed6611f83
Merge branch 'origin/android_branch' into Weblate. 2021-06-14 22:33:34 +02:00
Wellington Terumi Uemura
b8a11e6153
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (893 of 893 strings)
2021-06-14 22:33:31 +02:00
ssantos
d294084193
Translated using Weblate (Portuguese)
Currently translated at 97.7% (873 of 893 strings)
2021-06-14 22:33:31 +02: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
Liu Tao
881d600b9b
Translated using Weblate (Chinese (Simplified))
Currently translated at 4.4% (40 of 893 strings)
2021-05-23 12:31:59 +02:00
Hosted Weblate
6c6765871b
Merge branch 'origin/android_branch' into Weblate. 2021-05-19 20:33:02 +02:00
Eugenia Russell
1e216ca0f1
Translated using Weblate (Greek)
Currently translated at 0.6% (6 of 893 strings)
2021-05-19 20:32:58 +02: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
Hosted Weblate
c63dacfa36
Merge branch 'origin/android_branch' into Weblate. 2021-05-13 19:33:15 +02:00
ssantos
22fcb6db95
Translated using Weblate (Portuguese)
Currently translated at 97.6% (872 of 893 strings)
2021-05-13 19:33:12 +02: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
ssantos
301f16b100
Translated using Weblate (Portuguese)
Currently translated at 93.7% (837 of 893 strings)
2021-05-12 17:33:33 +02:00
Joan Araujo
1377b59c7d
Translated using Weblate (Spanish)
Currently translated at 21.3% (191 of 893 strings)
2021-05-10 19:33:48 +02:00
yokodos 2003
c42d12b48c
Translated using Weblate (Spanish)
Currently translated at 21.3% (191 of 893 strings)
2021-05-10 19:33:47 +02:00
ssantos
fda272d6e6
Translated using Weblate (Portuguese)
Currently translated at 93.6% (836 of 893 strings)
2021-05-10 19:33:46 +02:00
Hosted Weblate
b8a073cc71
Merge branch 'origin/android_branch' into Weblate. 2021-05-05 16:32:15 +02:00
phlostically
79480174b6
Translated using Weblate (Esperanto)
Currently translated at 4.4% (40 of 893 strings)
2021-05-05 16:32:12 +02: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
Hosted Weblate
b2fd3533f3
Merge branch 'origin/android_branch' into Weblate. 2021-05-02 21:40:29 +02:00
ssantos
7a97d66a2f
Translated using Weblate (Portuguese)
Currently translated at 93.2% (833 of 893 strings)
2021-05-02 21:40:29 +02:00
Jakub Fabijan
886be38c70
Added translation using Weblate (Esperanto) 2021-05-02 21:40:09 +02: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
53311acb7f update linux README 2021-04-25 20:57:13 -07:00
Eric House
6f46220946 Squashed commit of the following:
commit 3815c8a9e8
Author: Bernard Massot <bmassot@free.fr>
Date:   Fri Apr 23 19:59:31 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.4% (888 of 893 strings)

commit 4c930410b8
Author: Hosted Weblate <hosted@weblate.org>
Date:   Fri Apr 23 17:02:05 2021 +0200

    Update translation files

    Updated by "Cleanup translation files" hook in Weblate.

    Translation: Crosswords/Android
    Translate-URL: https://hosted.weblate.org/projects/xwords/android/

commit 585dc7ab4b
Merge: daf5894d7 3613b658f
Author: Hosted Weblate <hosted@weblate.org>
Date:   Fri Apr 23 17:02:04 2021 +0200

    Merge branch 'origin/android_branch' into Weblate.

commit 3613b658f9
Author: Bruno Oliveira Rosa <brunokauaoliveira@gmail.com>
Date:   Sun Apr 11 19:21:19 2021 +0000

    Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (893 of 893 strings)

commit a2a47d4633
Author: Bernard Massot <bmassot@free.fr>
Date:   Thu Apr 1 17:09:29 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.2% (886 of 893 strings)

commit 399971e82f
Merge: fbc7a70c4 23806627a
Author: Hosted Weblate <hosted@weblate.org>
Date:   Thu Apr 1 02:33:17 2021 +0200

    Merge branch 'origin/android_branch' into Weblate.

commit 23806627a3
Merge: 97962fcee 5b77a60de
Author: Hosted Weblate <hosted@weblate.org>
Date:   Wed Mar 31 21:37:55 2021 +0200

    Merge branch 'origin/android_branch' into Weblate.

commit 5b77a60de5
Author: Hosted Weblate <hosted@weblate.org>
Date:   Thu Mar 25 23:46:57 2021 +0100

    Update translation files

    Updated by "Cleanup translation files" hook in Weblate.

    Translation: Crosswords/Android
    Translate-URL: https://hosted.weblate.org/projects/xwords/android/

commit b6125b38f1
Merge: 0e7edd9dc 2bad54965
Author: Hosted Weblate <hosted@weblate.org>
Date:   Thu Mar 25 23:46:56 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit 2bad549655
Author: Bernard Massot <bmassot@free.fr>
Date:   Thu Mar 25 20:19:20 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.2% (886 of 893 strings)

commit e0810e2d05
Merge: 430750e23 1480b0a80
Author: Hosted Weblate <hosted@weblate.org>
Date:   Thu Mar 25 20:11:15 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit 1480b0a804
Merge: 59acc5d61 3d6a265d7
Author: Hosted Weblate <hosted@weblate.org>
Date:   Thu Mar 25 17:48:56 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit 3d6a265d76
Author: Bernard Massot <bmassot@free.fr>
Date:   Mon Mar 22 20:30:12 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.2% (885 of 892 strings)

commit e6d3ca46bf
Merge: a11db395d da85904a2
Author: Hosted Weblate <hosted@weblate.org>
Date:   Mon Mar 22 20:24:11 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit da85904a21
Merge: 177bb28a6 a3524ddef
Author: Hosted Weblate <hosted@weblate.org>
Date:   Mon Mar 22 19:14:50 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit a3524ddefa
Merge: bdb081d0e 1f8a46156
Author: Hosted Weblate <hosted@weblate.org>
Date:   Mon Mar 22 18:42:09 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit 1f8a46156f
Author: Bernard Massot <bmassot@free.fr>
Date:   Sun Mar 21 22:03:07 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.2% (885 of 892 strings)

commit 965583d091
Merge: 64246f246 cb13297d4
Author: Hosted Weblate <hosted@weblate.org>
Date:   Sun Mar 21 21:54:38 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit cb13297d4e
Merge: 310227184 aaa8346e2
Author: Hosted Weblate <hosted@weblate.org>
Date:   Sun Mar 21 21:42:41 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit aaa8346e29
Author: Bernard Massot <bmassot@free.fr>
Date:   Fri Mar 19 21:47:26 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.4% (884 of 889 strings)

commit 3cef9ca4ba
Merge: 073b5f6bf d044c2cc4
Author: Hosted Weblate <hosted@weblate.org>
Date:   Fri Mar 19 22:23:16 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit d044c2cc45
Merge: ca88d9c0b f68186caf
Author: Hosted Weblate <hosted@weblate.org>
Date:   Fri Mar 19 21:06:16 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit f68186cafb
Author: Bernard Massot <bmassot@free.fr>
Date:   Sun Feb 21 19:22:45 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.4% (883 of 888 strings)

commit 76df89a517
Merge: 28e0dfe31 cd3cf2755
Author: Hosted Weblate <hosted@weblate.org>
Date:   Sun Feb 21 20:58:22 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit cd3cf27559
Merge: 0df49bcb6 7c930c6e9
Author: Hosted Weblate <hosted@weblate.org>
Date:   Sun Feb 21 20:25:45 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit 7c930c6e91
Author: Hosted Weblate <hosted@weblate.org>
Date:   Sun Feb 21 20:05:02 2021 +0100

    Update translation files

    Updated by "Cleanup translation files" hook in Weblate.

    Translation: Crosswords/Android
    Translate-URL: https://hosted.weblate.org/projects/xwords/android/

commit 4cadd85ce5
Merge: 18aacdefe fabc29dfe
Author: Hosted Weblate <hosted@weblate.org>
Date:   Sun Feb 21 20:05:01 2021 +0100

    Merge branch 'origin/android_branch' into Weblate.

commit fabc29dfef
Author: Bernard Massot <bmassot@free.fr>
Date:   Sun Feb 21 18:25:36 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.3% (882 of 888 strings)

commit b26f383d32
Author: Hosted Weblate <hosted@weblate.org>
Date:   Sun Feb 21 19:09:29 2021 +0100

    Update translation files

    Updated by "Cleanup translation files" hook in Weblate.

    Translation: Crosswords/Android
    Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2021-04-23 17:49:43 -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
92200779ac log connType in nli 2021-04-07 21:40:20 -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
d74161958e cleanup: remove dead and use new code 2021-03-28 20:27:24 -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
2a20caa6d7 fix breakage caused by merge 2021-03-27 11:00:06 -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
0e9a7f0434 capitalize variant 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
ccd557658f Squashed commit of e.g.
commit 3d6a265d76
Author: Bernard Massot <bmassot@free.fr>
Date:   Mon Mar 22 20:30:12 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.2% (885 of 892 strings)
2021-03-24 21:21:25 -07:00
Eric House
b730253e6b remove FLIP button; save/restore prefs 2021-03-24 17:52:17 -07:00
Eric House
7bd1153c13 appearance tweaks 2021-03-24 17:29:27 -07:00
Eric House
7a7a2db6ce enable chat (without history) 2021-03-24 15:58:25 -07:00
Eric House
e7669c427e size html elements based on window size
Should make things look better on different sized phone and tablet
screens.
2021-03-24 10:20:42 -07:00
Eric House
bcf85fa849 adjust board size based on window size
Seems to work adequately. Resizing buttons needs to happen too.
2021-03-22 19:39:39 -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
177bb28a67 Squashed commit including:
commit 1f8a46156f
Author: Bernard Massot <bmassot@free.fr>
Date:   Sun Mar 21 22:03:07 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.2% (885 of 892 strings)
2021-03-22 10:45:52 -07:00
Eric House
561c5c9eb1 cleanup 2021-03-22 10:43:34 -07:00
Eric House
1e2509163d listen on window resizes -- print only for now 2021-03-22 08:28:52 -07:00
Eric House
3060def376 add and use NULL_XWE 2021-03-21 20:16:09 -07:00
Eric House
4d88634865 draw board dimmed when in tile-trade mode 2021-03-21 17:57:56 -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
64246f2463 Squashed commit (irrelevant pruned):
commit aaa8346e29
Author: Bernard Massot <bmassot@free.fr>
Date:   Fri Mar 19 21:47:26 2021 +0000

    Translated using Weblate (French)

    Currently translated at 99.4% (884 of 889 strings)
2021-03-21 13:53:16 -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
Eric House
637c47e506 add another as-generated vector asset
Can't figure out how to change the color on the untrade one, so it'll
wait.
2021-03-20 20:05:13 -07:00
Eric House
21b4f51648 swap menuitem positions 2021-03-20 13:46:02 -07:00
Eric House
677abe6fb8 remember prev dict choice and use for longtap
Often I want to view a different wordlist from what's in use in the
game. So make the in-board long-tap shortcut to a wordlist remember what
the short-tap gesture chose most recently and use that instead of
assuming the game's list is what's wanted. Remember the choice on a
per-language rather than per-game basis.
2021-03-20 13:29:22 -07:00
Eric House
e1712f4560 when KP is deleted, remove record of its being expanded
I'm tired of having a record recreated and showing up expanded first
thing. Better to save less garbage.
2021-03-20 08:49:41 -07:00
Eric House
e3ba122ca0 fix to compile with XWFEATURE_RELAY undefined
Didn't change the stream format. That will wait!
2021-03-19 18:51:34 -07:00
Eric House
88e76af7ab put scores alert on backstack too
It also should go away when board is dismissed.
2021-03-19 18:14:00 -07:00
Eric House
521a5b57b8 put gameover alert on backstack
This seems to do what I want: cause it to be dismissed whenever the
board fragment behind it (that launched it) goes away, e.g. because the
remote deleted first and local got a deleted-elsewhere-so-delete-here?
alert.
2021-03-19 18:04:52 -07:00
Eric House
b1532f19a4 move getDict from dutil to util
It's in the context of a game, and we might want info about the game
when notifying the user. For wasm, though, I just download after failure
to open. User has to try again to open the game. Good enough for now
since missing a wordlist shouldn't happen if you're not me changing
where they're stored.
2021-03-19 17:27:17 -07:00
Eric House
87621c3b51 fix compile 2021-03-19 17:26:48 -07:00
Eric House
e86626d7be don't crash if remote doesn't support chat 2021-03-19 14:30:17 -07:00
Eric House
bbb5f821c2 tweaks 2021-03-19 14:30:17 -07:00
Eric House
1aa3ddcde0 cleanup and tweaks 2021-03-19 14:30:17 -07:00
Eric House
f48c7ce0f3 turn on COMMSACK 2021-03-19 14:29:49 -07:00
Eric House
e1bbd8f14f fix problem upgrading from old dicts storage path 2021-03-19 14:29:49 -07:00
Eric House
01c7bcf9e3 fix get-string dialog 2021-03-19 14:29:49 -07:00
Eric House
af5c116a78 new game choices stored for next time; change dicts path
Lots of tweaks. Main was from realizing that storing special-names files
and can-be-anything files in the same directory isn't good.
2021-03-19 14:29:49 -07:00
Eric House
b50ac07271 add option to disable hints 2021-03-19 14:29:49 -07:00
Eric House
585f55c040 use notifications and other tweaks 2021-03-19 14:29:49 -07:00
Eric House
0d7b81ac72 tweak UI for small screens 2021-03-19 14:29:49 -07:00
Eric House
1b0acd87ee prevent dbg and rel from conflicting 2021-03-19 14:29:49 -07:00
Eric House
99baf4bf3b pass dbg and host info via register 2021-03-19 14:29:49 -07:00
Eric House
d03b1e5d7a tweaks 2021-03-19 14:29:49 -07:00
Eric House
d6d613e2aa move Games button to far left
It'll be most often used
2021-03-19 14:29:49 -07:00
Eric House
bf88c000b7 fix mempool tracking bug 2021-03-19 14:29:49 -07:00
Eric House
8b26d6bc4e plug a leak 2021-03-19 14:29:48 -07:00
Eric House
f3b76da8e1 add more info to game "buttons"
Toward a games-list substitute. New game_summarize method will get
fleshed out and eventually replace what's in jni?
2021-03-19 14:29:48 -07:00
Eric House
8c920d6537 don't complain of bad mqtt when cancelled 2021-03-19 14:29:48 -07:00
Eric House
502d58df6f offer lang name (not locale) in new game dialog 2021-03-19 14:29:48 -07:00
Eric House
3c770e023f also grab native wordlist 2021-03-19 14:29:48 -07:00
Eric House
1cfefc3671 improve startup/new user
Ask for username and download a wordlist on startup
2021-03-19 14:29:48 -07:00
Eric House
d9ebf69ab5 route logs to console.log, not .error 2021-03-19 14:29:48 -07:00
Eric House
e61e1e9fb2 set newgame choices to defaults 2021-03-19 14:29:48 -07:00
Eric House
b0cc6dd744 clear name on delete; remove logging 2021-03-19 14:29:48 -07:00
Eric House
21b8cc0d95 store langauge name, display in title 2021-03-19 14:29:48 -07:00
Eric House
575e61059c make dict alloc its own storage
having it keep a ptr passed in is dumb
2021-03-19 14:29:48 -07:00
Eric House
829242c9bb fix to deal with failed downloads 2021-03-19 14:29:48 -07:00
Eric House
52b1300d90 cleanup; remove dead code 2021-03-19 14:29:48 -07:00
Eric House
17311dc757 get rid of dict processing where possible
The old API required passing dict into game creation/loading. New
doesn't, but in some places I was doing other stuff there (like checking
existance), so can't remove there. Still code goes away.
2021-03-19 14:29:20 -07:00
Eric House
970c2f6f9a make android compile/run with wasm changes 2021-03-19 14:29:20 -07:00
Eric House
34aee3d7d0 add remaining langs to code-to-lang table 2021-03-19 14:29:20 -07:00
Eric House
598565836d separate indexeddb filesystems for dbg and rel 2021-03-19 14:29:20 -07:00
Eric House
ef673d8df0 prune some logging 2021-03-19 14:29:20 -07:00
Eric House
c859caae8d cleanup (and get rid of constant JS error) 2021-03-19 14:29:20 -07:00
Eric House
430b6894f0 correctly render utf
Was using the wrong API. Also upgraded font to DejaVu Sans
2021-03-19 14:29:20 -07:00
Eric House
f0d8a71deb split dict faces using js so utf8 chars are ok
As with java, the platform knows utf-8 better than vanilla C, so use a
JS inlined function to split a binary stream into its "face" components.
2021-03-19 14:29:20 -07:00
Eric House
b3e4bc24af remove dead file 2021-03-19 14:28:34 -07:00
Eric House
c19d82541d allow language selection in newgame dialog 2021-03-19 14:28:34 -07:00
Eric House
4f524d0bb0 download wordlists when needed for invitation 2021-03-19 14:28:34 -07:00
Eric House
3c0edb3531 use constant consistently 2021-03-19 14:27:04 -07:00
Eric House
39be910b13 tweaks 2021-03-19 14:27:04 -07:00
Eric House
567c3dbf9e show mempool stats (DEBUG builds) 2021-03-19 14:27:04 -07:00
Eric House
4937d13273 use indexeddb for storage 2021-03-19 14:27:04 -07:00
Eric House
2a6931fdcf add and start using indexeddb via emscripten APIs
Replace a couple of load/store actions with new APIs that do so
asynchronously (using indexeddb underneath, via emscripten APIs.)
Required restructuring how app starts. More changes to come. The idea is
to replace wordlist storage: this'll keep 'em smaller and not require
conversion to string.
2021-03-19 14:27:04 -07:00
Eric House
55f590ca0b choose the smallest dict available
I'm running out of memory when using the largest English
dicts. Something other than LocalStorage will have to be used for
Polish, but for now limp along with smaller wordlists.
2021-03-19 14:27:04 -07:00
Eric House
dd78abb116 separate dbg and rel directories 2021-03-19 14:27:04 -07:00
Eric House
664913b2eb fix NPE when len not initialized
Duh....
2021-03-19 14:27:04 -07:00
Eric House
d5e7dc4c97 game from a downloaded wordlist works!!!! 2021-03-19 14:27:04 -07:00
Eric House
afc3ff156e make game ask for dicts when needed
It's awkward for platform code to create a dictionary prior to opening a
game whose data contains the information about what dict to open. So add
a dutil method to fetch a dict, and call it from inside game opening
code. Makes linux code better at least.
2021-03-19 14:27:04 -07:00
Eric House
7924c046d6 fix linux compile 2021-03-19 14:27:04 -07:00
Eric House
5e9863adaf snapshot: downloading wordlist seems to work 2021-03-19 14:27:04 -07:00
Eric House
2ab2f5642e add name button and store wordlist
As a p.o.c., load the built-in wordlist into storage once, and
thereafter use it from there rather than as a file. Now it can go away
and a wordlist for the user's locale be downloaded and stored instead.
2021-03-19 14:27:04 -07:00
Eric House
c829017150 comment out logging 2021-03-19 14:27:04 -07:00
Eric House
0508fe1418 hide device buttons sometimes 2021-03-19 14:27:04 -07:00
Eric House
46ec7e5e3e remove removed file 2021-03-19 14:27:04 -07:00
Eric House
06b530c443 add notion of index to storage
I'm heading toward being able to know what all the games are by how
they're stored in a xplatform way. This is a start. Adding a second key
to storage, and looking at grouping everything where one key or the
other matches.
2021-03-19 14:27:04 -07:00
Eric House
39161a1170 just some notes 2021-03-19 14:27:04 -07:00
Eric House
c9ea5c1f69 remove stuff from html 2021-03-19 14:27:04 -07:00
Eric House
4eede76780 add callback called when window regains focus
I need to redraw the canvas then, but haven't figured out yet.
2021-03-19 14:27:04 -07:00
Eric House
fa8bcd3c2c url-decode args prior to passing to main() 2021-03-19 14:27:04 -07:00
Eric House
6b650907b2 regression: notify remote when deleted game messaged 2021-03-19 14:27:04 -07:00
Eric House
c801243dd5 hide game buttons when no game visible 2021-03-19 14:27:04 -07:00
Eric House
ffc42ed5e0 remove deleted games from games list
Was getting crashes since they could still be looked up
2021-03-19 14:27:04 -07:00
Eric House
61be81cf1a invite known players 2021-03-19 14:27:04 -07:00
Eric House
30e6182c7a sort game names in opengames dialog 2021-03-19 14:27:04 -07:00
Eric House
280390990f use new scheme to simplify blank picking 2021-03-19 14:27:04 -07:00
Eric House
ae05e62a5a Don't fail when two games have same name
Needed to change how callbacks worked, and that temporarily killed
sorting. Will fix.
2021-03-19 14:27:04 -07:00
Eric House
ab6abea6a7 use a callback instead of malloc inside js 2021-03-19 14:27:04 -07:00
Eric House
534e245048 change load-from-storage to not require free() 2021-03-19 14:27:04 -07:00
Eric House
03d76fbacd use name from invitation 2021-03-19 14:27:04 -07:00
Eric House
523c9b270a keep games open and switch between them
Motiviation was to be able to deliver a message in the background, but
at least for now it's easier not to close games again. Can always do
that later if it's a memory problem.
2021-03-19 14:27:04 -07:00
Eric House
5cd4b31648 fix to do num-based comparison 2021-03-19 14:27:04 -07:00
Eric House
c8f22f5fb1 register with mqtt host 2021-03-19 14:27:04 -07:00
Eric House
033290bd69 cleanup, esp around js callbacks 2021-03-19 14:27:04 -07:00
Eric House
940e2569c9 fix exiting when another tab opened. And cleanup. 2021-03-19 14:27:04 -07:00
Eric House
41cd3d8f39 open game to receive message 2021-03-19 14:27:04 -07:00
Eric House
e2beccc85c sort games, fix buttons 2021-03-19 14:27:04 -07:00
Eric House
5b645abae8 cleanup 2021-03-19 14:27:04 -07:00
Eric House
3d87d4f60a name the closed game 2021-03-19 14:27:04 -07:00
Eric House
208a6b764c don't report as deleted a game that's just closed 2021-03-19 14:27:04 -07:00
Eric House
b386abcf9d make stuff better 2021-03-19 14:27:04 -07:00
Eric House
d5b1e429ea fix assertion failure 2021-03-19 14:27:04 -07:00
Eric House
79433de160 sending invites works
though play after it still glitchy
2021-03-19 14:27:04 -07:00