Commit graph

12324 commits

Author SHA1 Message Date
Eric House
0250996009 cleanup 2020-10-29 11:30:12 -07:00
Eric House
a5b98c483c fix removal of unpaired device
Two uses of remove() were passing different info. So pass the other one
from the other use.
2020-10-29 08:40:46 -07:00
Eric House
1019271c94 handle mqtt invites same as others
Invitations over MQTT were handled by different code that always opened
the new game on top of any other open one. Use instead existing code
that puts up a notification instead where appropriate.
2020-10-28 17:11:05 -07:00
Eric House
3fbb2bbd7c fix merge of Brazilian files 2020-10-28 13:56:42 -07:00
Eric House
3e411873c0 Merge branch 'android_translate' into android_branch 2020-10-28 13:40:57 -07:00
Eric House
7a55857831 Merge branch 'android_translate' of github.com:eehouse/xwords into android_translate 2020-10-28 13:36:18 -07:00
Eric House
0cee3c8d60 add systemd service file for relay 2020-10-28 13:32:49 -07:00
Eric House
db366bb515 cleanup 2020-10-28 13:32:49 -07:00
Eric House
a8a8f801f7 tweak string 2020-10-28 13:32:49 -07:00
Eric House
81799d3903 add addrType to comms' main addr when added to channel
I'm fixing android client not showing stats for or allowing to disable
mqtt after it's added automatically to a game that connects
otherwise. Problem was that only the channel got the mqtt address
flag. So now add the flag for any type that's added.
2020-10-28 13:32:49 -07:00
Eric House
88dbc40180 test script: strip extension when making logs dir 2020-10-28 13:32:49 -07:00
Eric House
fa3a33f133 offer to hide new-game buttons immediately
Don't wait for user to tap one of the buttons. Instead notice when
scrolling becomes possible, and offer once per launch until user says
"hide" or clicks the don't-ask-again box.
2020-10-28 13:32:49 -07:00
Eric House
b6955696eb again 2020-10-28 13:32:49 -07:00
Eric House
d65fb80dff don't commit me 2020-10-28 13:32:49 -07:00
Eric House
a5f8b87478 remove dead code 2020-10-28 13:32:49 -07:00
Eric House
d95d1a9f70 changes, part 1 2020-10-28 12:57:12 -07:00
Eric House
0888167db5 remove unused format spec (SMS number no longer known) 2020-10-28 12:03:07 -07:00
Vanessa Regina Andrade dos Santos
1d41eea48d
Translated using Weblate (Portuguese (Brazil))
Currently translated at 26.8% (230 of 858 strings)
2020-10-27 20:26:43 +01:00
Eric House
3d1cefe00b cleanup (no code change) 2020-10-26 14:13:50 -07:00
Eric House
ce85060682 Merge branch 'android_branch' of github.com:eehouse/xwords into android_branch 2020-10-26 13:06:24 -07:00
Eric House
ba99eb0838 avoid crash (maybe on corrupt data?) 2020-10-26 13:04:28 -07:00
Eric House
f1eea13c5e remember last invitee and make default next time 2020-10-26 11:03:22 -07:00
Eric House
712661a6e9 show quarantine count (non-release only)
Looks like I'm occasionally leaking so that the count grows. This will
let me see when something is 1 when it should be 0.
2020-10-26 11:03:22 -07:00
Eric House
9deac8afbb show Known Player name in button
Got tired of it not being clear what the button was going to do
2020-10-25 15:29:49 -07:00
Eric House
f997c88ba4 cleanup bt code 2020-10-25 15:29:46 -07:00
Eric House
57d93273c9 show Known Player name in button
Got tired of it not being clear what the button was going to do
2020-10-25 14:59:14 -07:00
Eric House
71d5127782 cleanup bt code 2020-10-25 12:15:18 -07:00
Eric House
5a8ea0b998 change name of string 2020-10-25 11:58:23 -07:00
Eric House
6c9be4a67d remove dead script
replaced by changed to relay2 flask app
2020-10-24 22:27:47 -07:00
Eric House
04eeb8f18f don't crash when number of INVITEMEANS changes
This won't impact shipping code, but if during development I add then
remove a new INVITEMEANS I can crash with AIOOB trying to load by
ordinal. So check first.
2020-10-24 13:13:47 -07:00
Eric House
a61db95266 shrink the QR code
It doesn't need its own alert if it's smaller, and at least a Nexus5's
phone can pick it up this size.
2020-10-24 10:08:11 -07:00
Vanessa Regina Andrade dos Santos
8971cdeebc
Translated using Weblate (Portuguese (Brazil))
Currently translated at 26.8% (230 of 858 strings)
2020-10-24 17:26:42 +02:00
Eric House
5d4fd0e58b don't dispose gi before game
gathering players was failing because disposed gi was pointing at
garbage. I'm lucky it didn't segfault.
2020-10-23 19:03:26 -07:00
Eric House
e7a63c7c0b change mqtt register URL 2020-10-22 22:33:25 -07:00
Eric House
9e30076966 Merge remote-tracking branch 'github/android_branch' into android_branch 2020-10-21 21:16:43 -07:00
Eric House
af37fb45f7 Rewrite BT comms to not use a Service
It's simpler this way, and I'm tired of stuff not happening because the
OS chooses not to schedule e.g. an invitation send for minutes. Goal's
to be running BluetoothServerSocket.accept() as much as possible when
there are active BT games in play OR when the game's in the foreground.
If that's happening, sent invitations and moves will be received when
users expect. When there's no traffic and app isn't being brought to
foreground, backoff will ensure I don't try to run accept() too often.

FWIW, BTLE seems to offer a better way to do this (to have an app be
responsive to incoming invitations when it hasn't run in the foreground
in a while), but it requires users to accept FINE_LOCATION
permission. I'm hoping I can make this work to avoid asking for that
permission.
2020-10-21 21:10:09 -07:00
Vanessa Regina Andrade dos Santos
30b42fcedf
Translated using Weblate (Portuguese (Brazil))
Currently translated at 23.7% (204 of 858 strings)
2020-10-22 04:26:41 +02:00
Eric House
e5bb7c4a8b work around concurrent access exception
quick fix by copying into an array until I figure out where the other
access is coming from.
2020-10-21 12:42:49 -07:00
Vanessa Regina Andrade dos Santos
21f22bbb3d
Translated using Weblate (Portuguese (Brazil))
Currently translated at 22.4% (193 of 858 strings)
2020-10-16 05:26:40 +02:00
Vanessa Regina Andrade dos Santos
c01bd4e8d0
Translated using Weblate (Portuguese (Brazil))
Currently translated at 18.9% (163 of 858 strings)
2020-10-14 22:26:39 +02:00
Vanessa Regina Andrade dos Santos
2f6019f4c2
Translated using Weblate (Portuguese (Brazil))
Currently translated at 18.4% (158 of 858 strings)
2020-10-13 01:26:38 +02:00
Vanessa Regina Andrade dos Santos
c7282603f5
Translated using Weblate (Portuguese (Brazil))
Currently translated at 17.8% (153 of 858 strings)
2020-10-10 04:26:41 +02:00
Eric House
8240f753ca bluetooth tweaks
Add a single method to provide candidate devices; don't bother passing
bogus BT MAC addrs; let instance belonging to background-user start
communicating again when user becomes foreground.
2020-10-07 19:39:51 -07:00
Eric House
284e7eb85a fix broken device deletion; refresh time-last-seen
I was comparing the wrong strings and so broke deleting known BT
devices. And wanted to see how often since I'd seen them updated, though
every 10 seconds is still 10 seconds.
2020-10-07 19:06:33 -07:00
Vanessa Regina Andrade dos Santos
07ad779306
Added translation using Weblate (Portuguese (Brazil)) 2020-10-08 03:26:35 +02:00
Eric House
af7f776118 don't post RemoteDeleted Alert more than once 2020-10-07 17:06:18 -07:00
Eric House
a95e761024 fix NPE
I hope. Happens when there's a duplicate delete-deleted-game alert, and
trying to close the view a second time may also be a problem.
2020-10-07 11:29:04 -07:00
Eric House
fef7d2d544 Prune unpaired devs; accept uncatagorized devs
Some devices unpair themselves and needed to stop being listed so user'd
know to fix. And my Nexus 5x is neither a PHONE nor a COMPUTER per BT,
so accept a larger range of BT classes when scanning.
2020-10-06 11:43:21 -07:00
Eric House
a9409f8cca beginnings of script to filter logcat 2020-10-06 10:06:13 -07:00
Eric House
94a709423a improve UI around invites and offering QR code 2020-10-05 18:22:28 -07:00