Weblate
6ffd4d4a37
Merge remote-tracking branch 'origin/android_translate' into android_translate
2017-12-01 04:25:46 +01:00
Eric House
4b81b784fc
Merge branch 'android_branch' into relay_via_http
2017-11-28 06:24:09 -08:00
Eric House
8e37551f8a
up changelog for new release
2017-11-27 20:40:16 -08:00
Eric House
455373343a
remove requirement for gcm.jar
...
remove from xw4d version too since it can't work anyway.
2017-11-27 20:40:16 -08:00
Eric House
af81342021
create new fdroid variant
2017-11-27 20:40:06 -08:00
Eric House
503702c0e4
log unack'd packets
2017-11-26 20:56:38 -08:00
Eric House
0d8aef06f3
keep packets until ack'd for retry and better logging
2017-11-26 20:11:25 -08:00
Allan Nordhøy
9572cdca1b
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 55.6% (411 of 738 strings)
2017-11-26 15:49:40 +01:00
Eric House
58eafd5fd1
fix glitches in XML strings for Norwegian
2017-11-20 22:04:42 -08:00
Eric House
3216ef8a5c
Merge branch 'android_branch' into android_translate
2017-11-20 06:53:34 -08:00
Eric House
b6124ca2d1
change version strings and changelog
2017-11-19 20:10:54 -08:00
Eric House
4698c0e54b
add not-again explanation for new archive feature
2017-11-19 20:00:45 -08:00
Allan Nordhøy
e6a1aef7a2
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 11.6% (86 of 738 strings)
2017-11-14 06:48:41 +01:00
Eric House
2879055ca9
log url when response code isn't 200
2017-11-13 08:17:26 -08:00
Eric House
5166933be6
Merge branch 'android_branch' into relay_via_http
2017-11-13 07:27:17 -08:00
Eric House
607567cd35
don't allow duplicate group names
...
If group already exists, warn rather than create another with the same
name.
2017-11-12 22:50:45 -08:00
Eric House
c2eff7d3f2
add "archive" option to dialog on opening done game
...
Create the group if needed. Name's not user-editable at this
point. Should be a preference, and that preference should be changed if
user renames it.
2017-11-12 22:31:48 -08:00
Eric House
35d172225f
Use AtomicInteger rather than synchronization
2017-11-12 20:10:51 -08:00
Eric House
373c0249bc
start backoff timer at 5 second, not 30.
...
Makes the http case nearly as quick as the udp one when both games are
on the same device. Which is all I've tested so far.
2017-11-12 20:04:22 -08:00
Eric House
8650795a81
don't crash when can't reach relay via http
2017-11-12 08:53:19 -08:00
Eric House
057728c287
make gtk include an invite ID in rematch invitations
...
otherwise Android refuses to accept the second "" it receives.
2017-11-11 16:39:09 -08:00
Eric House
fa52c5091a
fix tap down lower not opening game
...
Making the right_side elem match its parent height prevents the
lower-right region of game list items from falling through and
triggering a toggle-selection event.
2017-11-11 15:45:00 -08:00
Eric House
39deeeb089
fix tap down lower not opening game
...
Making the right_side elem match its parent height prevents the
lower-right region of game list items from falling through and
triggering a toggle-selection event.
2017-11-11 15:43:07 -08:00
Eric House
3da5f237c6
add asserts to catch non-web holdouts; don't crash
...
Getting nulls when e.g. the relay isn't up. Shouldn't crash in that
case.
2017-11-11 15:31:36 -08:00
Eric House
c2d5f2d253
cleanup
2017-11-11 13:05:25 -08:00
Eric House
e2c6480992
fix linux client
...
everything takes one param now, and post sends an array
2017-11-11 12:57:33 -08:00
Eric House
f428538afc
send an array of packets to post()
...
Somethimes there are several on the queue, so why not send all at
once. Note: this will break the linux implementation which I'll fix next.
2017-11-11 10:47:26 -08:00
Eric House
b9800b22f5
RelayService uses web instead of UDP!
...
As expected, moves are no longer received instantly because the UDP
socket isn't available for the relay to write too once the URL
handler (relay.py) finishes.
2017-11-11 09:56:20 -08:00
Eric House
4a3133924a
name change for clarity
2017-11-11 09:14:35 -08:00
Eric House
0831bd8022
talk to relay.py/kill, first web api use from android
...
And it seems to work!
2017-11-11 08:22:52 -08:00
Eric House
31123b72ce
fix failure to notify relay of half-game deletion
...
Wasn't detecting as a relay game something registered on relay but not
yet joined by another device, a common case!
2017-11-11 08:13:29 -08:00
Eric House
da3f6db9e4
fix failure to notify relay of half-game deletion
...
Wasn't detecting as a relay game something registered on relay but not
yet joined by another device, a common case!
2017-11-11 08:10:48 -08:00
Eric House
acf668ae8a
add new prefs controlling web api usage
...
Add, but don't use yet, prefs giving relay.py path and checkbox whether
to use the new APIs.
2017-11-10 22:16:15 -08:00
Eric House
f2c4c82129
a shot at no-conn connecting
...
Ideally the comms module wouldn't go through its connecting routine in
order to join a game. To that end I added a join() method to relay.py
and code to call it. Joins happen (pairing games, starting new ones,
etc.), but after that communication doesn't. First part of fixing that
would be to make cookieID persistent and transmit it back with the rest
of what join sends (since it's used by all the messages currently sent
in a connected state), but I suspect there's more to be done, and even
that requires a fair number of changes on the relay side. So all that's
wrapped in #ifdef RELAY_VIA_HTTP (and turned off.)
2017-11-10 21:34:02 -08:00
Eric House
d1e6a0d1d3
fix seed comparison: ints vs strings
...
Was coming in as a string when called via curl. This may be a problem
for other ints if I go with lots of params instead of a json, which is
looking less likely.
2017-11-09 06:47:33 -08:00
Eric House
205adf0d0f
add prototype of join()
...
join's how devices will create or join existing games. It more
compilicated than I'd like but seems to work except that once a slot's
assigned it's unavailable to anybody else even if the other fails ever
to respond (i.e. needs the ACK function of the c++ relay.)
2017-11-08 08:04:57 -08:00
Eric House
6c8b9d5277
fix query syntax: % operator bad
2017-11-07 07:34:06 -08:00
Eric House
c661c8a74e
basic join() (inserting/updating game records) works
2017-11-07 07:33:04 -08:00
Eric House
3dfd419ec7
relay returning NOTHING is a thing; deal with it
2017-11-02 07:16:11 -07:00
Eric House
a1433e5f3d
add kill to relay.py; call from test script using curl
...
It'll eventually get called from Android and maybe linux, but for now
it's cool to have games disappear from the showinplay display when
they're done.
2017-10-31 20:05:07 -07:00
Eric House
d2897d6dc8
fix to match format of empty return case
2017-10-30 19:06:38 -07:00
Eric House
7b50c90aac
pass timeoutSeconds
...
ACK doesn't need to wait 2 seconds for a reply, and when it does so the
next send waits too. Eventually we'll want to combine messages already
in the queue into a single send. For now, this makes things better.
2017-10-28 20:12:05 -07:00
Eric House
6787fe1406
fix length byte
2017-10-22 21:29:16 -07:00
Eric House
4583b5d88d
use ! with struct instead of ntohs
2017-10-22 15:47:01 -07:00
Eric House
284888df44
add timeoutSecs param
2017-10-21 12:13:19 -07:00
Allan Nordhøy
ebe594ed1d
Added translation using Weblate (Norwegian Bokmål)
2017-10-19 11:48:34 +02:00
Eric House
7414e0eeae
param should be json array as string
2017-10-18 22:02:14 -07:00
Eric House
3ffef37d77
don't require myKey.py
2017-10-18 21:19:09 -07:00
Eric House
fbaa1f139e
add test method and implement query() endpoint
2017-10-18 21:18:30 -07:00
Eric House
c08be98fda
wip: include multiple packets in reponse json
2017-10-18 07:09:05 -07:00