Eric House
4746f153e3
add assertion
...
Need to revisit that join() call; this'll help.
2017-12-11 06:56:53 -08:00
Eric House
4fa8079bf0
log outgoing "post" params json
2017-12-11 06:55:25 -08:00
Eric House
d1a5a94740
fix crash processing multiple packets
...
When grouping to allow multiple packets per outbound API call I forgot
that some are there to mark the end-of-queue: can't be sent! Trying
caused a NPE. Now if any EOQ is found in the queue that batch is dropped
and the thread's exited.
2017-12-11 06:42:35 -08: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
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
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
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
6b0fe35c8f
use readFully() rather than read()
...
readFully() blocks; read() can return with less than you expect.
2017-10-16 22:12:35 -07:00
Eric House
927c4f12a0
make tap on thumbnail select/deselect
...
Working around there being a border around the game-type image area.
With this change long-tapping works only on the right 2/3 of the
region. There might be a fix, but it's still better than there being
a hole (the border) in the thing where behavior's different.
2017-10-14 14:31:41 -07:00
Eric House
c9a86a23e0
remove GCM-related receiver from shared manifest
...
Duh. The .java file was removed, but the declaration that all apps can
handle an intent (that requires WakeLock they no longer all have) was
not. Should fix crashes I'm seeing.
2017-09-28 20:02:05 -07:00
Eric House
bbffe4caf1
Add assert prior to removing dead (?) code
...
There should no longer be a need for curThis(), but let's confim by
asserting for a while.
2017-09-28 06:51:59 -07:00
Eric House
a3bf942004
fix assertion by not handling Action
...
Was wrong to assert that unexpected Actions never arrived.
2017-09-28 06:51:24 -07:00
Eric House
79e852a9eb
change ID of duplicate menu
...
Board and Games List were using same menuid which meant that even when
chosen from Board's menu it would up getting handled by GamesList (in
dual-pane mode.)
2017-09-28 06:50:16 -07:00
Eric House
7b691dfd2f
offer to hide buttons when invoked from action bar
2017-09-26 07:34:54 -07:00
Eric House
604119f99b
stub out GCMIntentService for d variant
...
Somehow the d variant was crashing without the WAKELOCK permission, the
OS having invokes something GCM-related. This should ensure nothing
GCM-related can ever happen.
2017-09-26 07:01:55 -07:00
Eric House
6fa01eb971
move GCM-related permissions into new manifest
...
Create an AndroidManifest.xml specific for the xw4 variant, and move the
GCM-related permissions (including WakeLock) into it.
2017-09-25 06:17:44 -07:00
Eric House
fd7f564e11
add debug menu to copy git info to clipboard
...
Makes it easier to find out what the diffs were.
2017-09-24 14:40:31 -07:00
Eric House
096aa3bd0f
make GCM_SENDER_ID empty for xw4d variant build
...
This seems to fix that app, when built by me where GCM_SENDER_ID's set
in the environment, being a battery hog. Apparently google's code
doesn't handle being passed the wrong senderID very well.
2017-09-24 14:30:59 -07:00
Eric House
9bdf43a89e
remove duplicated BuildConfig entry
2017-09-22 06:55:02 -07:00
Eric House
5dc9327d31
record current git-diff in assets
2017-09-22 06:46:19 -07:00
Eric House
592a6429d4
up changelog and version strings
2017-09-20 06:40:42 -07:00
Eric House
39efbaa7f5
fix timer-draw NPE due to race condition
...
use runOnUiThread()....
2017-09-19 22:09:57 -07:00
Eric House
a328221b63
up version codes for new release
...
I somehow screwed up the last release, but google got the apk so
requires me to change the version number.
2017-09-19 07:46:17 -07:00
Eric House
dc29321b28
change strings for new release
2017-09-13 08:06:08 -07:00
Eric House
e98c25a81a
fix crash by removing assert I didn't need
...
Looks like what I was worried about wasn't an issue.
2017-09-13 07:39:07 -07:00
Eric House
ae25c6e014
fix list item breakage: no inputType for TextView
...
I'd added inputType="text" everywhere I added maxLines="1" but it turns
out that breaks touches being handled at least on some devices. And it
makes no sense to have an inputType for something user can't put into.
2017-09-12 07:56:40 -07:00
Eric House
54997f6db2
more EditText fixing
2017-09-07 07:51:57 -07:00