]> hydra-www.ietfng.org Git - acmetensortoys-ctfws-android/log
acmetensortoys-ctfws-android
4 years agoHandbookActivity: webview now needs to be told that file and content URLs are OK
Nathaniel Wesley Filardo [Mon, 28 Feb 2022 20:20:05 +0000 (20:20 +0000)]
HandbookActivity: webview now needs to be told that file and content URLs are OK

4 years agoRemove Server URL from main display
Nathaniel Wesley Filardo [Mon, 28 Feb 2022 22:00:42 +0000 (22:00 +0000)]
Remove Server URL from main display

Nobody but me cares that much

4 years agoTweak AboutActivity
Nathaniel Wesley Filardo [Mon, 28 Feb 2022 20:08:31 +0000 (20:08 +0000)]
Tweak AboutActivity

Notably, include Server URI over here since we're about to drop it from
the main Activity

4 years agoservice binder: encapsulate handling of default server URL
Nathaniel Wesley Filardo [Mon, 28 Feb 2022 21:37:09 +0000 (21:37 +0000)]
service binder: encapsulate handling of default server URL

4 years agolib Java lint
Nathaniel Wesley Filardo [Mon, 28 Feb 2022 20:00:02 +0000 (20:00 +0000)]
lib Java lint

- Use BigInteger.equals() not == (generalize carefulStrEq; keep to avoid
  needing newer API)

- Explicit cast to long

- Use Math.max to avoid needing a newer API

- Make some inner classes static because they can be

4 years agoThe usual Android updates
Nathaniel Wesley Filardo [Mon, 28 Feb 2022 19:58:12 +0000 (19:58 +0000)]
The usual Android updates

4 years agoUse download timestamps in HandbookActivity
Nathaniel Wesley Filardo [Tue, 2 Jun 2020 19:19:29 +0000 (20:19 +0100)]
Use download timestamps in HandbookActivity

To suppress Toast every time it starts

4 years agoHandbookDownloader: grab last modified time from MQTT, too
Nathaniel Wesley Filardo [Tue, 2 Jun 2020 19:21:08 +0000 (20:21 +0100)]
HandbookDownloader: grab last modified time from MQTT, too

4 years agoCheckedAsyncDownloader: add last-modified-time parameter
Nathaniel Wesley Filardo [Tue, 2 Jun 2020 19:20:34 +0000 (20:20 +0100)]
CheckedAsyncDownloader: add last-modified-time parameter

4 years agoMessages: advance lastMessageTime on message reset
Nathaniel Wesley Filardo [Tue, 2 Jun 2020 19:18:43 +0000 (20:18 +0100)]
Messages: advance lastMessageTime on message reset

4 years agoSmall fixes
Nathaniel Wesley Filardo [Tue, 2 Jun 2020 19:15:20 +0000 (20:15 +0100)]
Small fixes

4 years agoMainService MQTT: unsubscribe only if connected
Nathaniel Wesley Filardo [Tue, 1 Mar 2022 18:49:32 +0000 (18:49 +0000)]
MainService MQTT: unsubscribe only if connected

Otherwise we might throw a NPE from inside Paho

6 years agoGive in to androidx preferences
Nathaniel Wesley Filardo [Tue, 2 Jun 2020 19:14:26 +0000 (20:14 +0100)]
Give in to androidx preferences

6 years agobump version
Nathaniel Wesley Filardo [Wed, 2 Oct 2019 01:53:29 +0000 (02:53 +0100)]
bump version

6 years agoDe-Lint
Nathaniel Wesley Filardo [Sun, 6 Oct 2019 22:28:10 +0000 (23:28 +0100)]
De-Lint

6 years agoRevise notification text
Nathaniel Wesley Filardo [Sun, 6 Oct 2019 21:38:00 +0000 (22:38 +0100)]
Revise notification text

6 years agomain display: update menu from UI thread.
Nathaniel Wesley Filardo [Sun, 6 Oct 2019 21:32:11 +0000 (22:32 +0100)]
main display: update menu from UI thread.

6 years agoflag counts: BigInteger
Nathaniel Wesley Filardo [Sun, 6 Oct 2019 21:13:34 +0000 (22:13 +0100)]
flag counts: BigInteger

Fixes https://github.com/cmukgb/ctfws-timer-android/issues/21

6 years agoctfws service: fire off discon event before hangup
Nathaniel Wesley Filardo [Sun, 6 Oct 2019 20:56:53 +0000 (21:56 +0100)]
ctfws service: fire off discon event before hangup

If we don't do this, the displays will retain their last state until we
successfully connect, which is not what's desired.

6 years agobump gradle version
Nathaniel Wesley Filardo [Sun, 6 Oct 2019 20:56:40 +0000 (21:56 +0100)]
bump gradle version

6 years agoBroker default to SSL now
Nathaniel Wesley Filardo [Sun, 6 Oct 2019 00:32:03 +0000 (01:32 +0100)]
Broker default to SSL now

I feel a little better about this because we're asking our devices to
download arbitrary data as the handbook, and I'd really prefer it not be
MITMable by default.

6 years agoNotification: say "Awaiting jailbreak N of M..."
Nathaniel Wesley Filardo [Sat, 5 Oct 2019 21:51:56 +0000 (22:51 +0100)]
Notification: say "Awaiting jailbreak N of M..."

Rather than just "Jailbreak"

6 years agoAdd hierarchy to activity package
Nathaniel Wesley Filardo [Sat, 5 Oct 2019 16:57:39 +0000 (17:57 +0100)]
Add hierarchy to activity package

6 years agoTidy android manifest
Nathaniel Wesley Filardo [Wed, 2 Oct 2019 01:56:08 +0000 (02:56 +0100)]
Tidy android manifest

6 years agomain menu: try to show icons in overflow
Nathaniel Wesley Filardo [Wed, 2 Oct 2019 01:53:51 +0000 (02:53 +0100)]
main menu: try to show icons in overflow

6 years agoTweak main layout for very small devices
Nathaniel Wesley Filardo [Wed, 2 Oct 2019 01:52:38 +0000 (02:52 +0100)]
Tweak main layout for very small devices

6 years agotarget sdk 29, move to androidx
Nathaniel Wesley Filardo [Wed, 2 Oct 2019 00:34:58 +0000 (01:34 +0100)]
target sdk 29, move to androidx

6 years agoUpdate paho dependency
Nathaniel Wesley Filardo [Wed, 2 Oct 2019 00:17:51 +0000 (01:17 +0100)]
Update paho dependency

This also sees paho move from EPL 1 to EPL 2, so update licenses.

6 years agoMainServiceNotification: last source is NONE, not FLAG
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 14:24:29 +0000 (15:24 +0100)]
MainServiceNotification: last source is NONE, not FLAG

Prevent a "Flag caputred! 0 0" message

6 years agoAndroidManifest: paho service
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 14:23:58 +0000 (15:23 +0100)]
AndroidManifest: paho service

It's very important and I'm sorry this has been left out for so long

6 years agoHandbookDownloader: make asynctask hold weak ref
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 14:20:01 +0000 (15:20 +0100)]
HandbookDownloader: make asynctask hold weak ref

Android code analysis notes that an AsyncTask internal class may be
holding a reference to an Activity preventing its collection.  So, hold
a weak reference instead.

6 years agoCleanups as directed by code analysis
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 13:49:55 +0000 (14:49 +0100)]
Cleanups as directed by code analysis

6 years agofixup refactor
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 13:48:21 +0000 (14:48 +0100)]
fixup refactor

6 years agoStop trying to build the abandoned wear project
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 13:34:24 +0000 (14:34 +0100)]
Stop trying to build the abandoned wear project

6 years agoMassive refactoring
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 13:31:52 +0000 (14:31 +0100)]
Massive refactoring

6 years agoRefactor MainService to service directory
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 13:26:54 +0000 (14:26 +0100)]
Refactor MainService to service directory

6 years agoRefactor: SettingsAcitivity to activity directory
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 13:24:23 +0000 (14:24 +0100)]
Refactor: SettingsAcitivity to activity directory

6 years agoRefactor: DefaultableEditTextPreference to utils
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 12:54:36 +0000 (13:54 +0100)]
Refactor: DefaultableEditTextPreference to utils

6 years agoRefactor: download logic to utils
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 12:53:28 +0000 (13:53 +0100)]
Refactor: download logic to utils

6 years agoRefactor AndroidResourceUtils to utils directory
Nathaniel Wesley Filardo [Sat, 28 Sep 2019 12:51:18 +0000 (13:51 +0100)]
Refactor AndroidResourceUtils to utils directory

6 years agoBump version again release-1.4.1
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 15:10:27 +0000 (16:10 +0100)]
Bump version again

Whoops

6 years agoMerge branch 'shield2019-take2' of https://github.com/timparenti/ctfws-timer-android
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 15:05:38 +0000 (16:05 +0100)]
Merge branch 'shield2019-take2' of https://github.com/timparenti/ctfws-timer-android

6 years agoRemove stale png files
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 15:05:06 +0000 (16:05 +0100)]
Remove stale png files

6 years agoBump version release-1.4
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 14:20:59 +0000 (15:20 +0100)]
Bump version

6 years agotreewide: fix inspection-reported issues
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 14:19:34 +0000 (15:19 +0100)]
treewide: fix inspection-reported issues

6 years agoMain: better message timestamps
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 13:58:54 +0000 (14:58 +0100)]
Main: better message timestamps

Fixes https://github.com/cmukgb/ctfws-timer-android/issues/14

6 years agoMain: screen-wake option
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 13:53:01 +0000 (14:53 +0100)]
Main: screen-wake option

Fixes https://github.com/cmukgb/ctfws-timer-android/issues/11

6 years agoMain: better menu
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 13:52:08 +0000 (14:52 +0100)]
Main: better menu

Fixes https://github.com/cmukgb/ctfws-timer-android/issues/13

6 years agoHandbook: overhaul
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 13:41:10 +0000 (14:41 +0100)]
Handbook: overhaul

Fixes https://github.com/cmukgb/ctfws-timer-android/issues/12
Fixes https://github.com/cmukgb/ctfws-timer-android/issues/17

6 years agoAbout: overhaul
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 13:39:12 +0000 (14:39 +0100)]
About: overhaul

Fixes https://github.com/cmukgb/ctfws-timer-android/issues/15
See also https://github.com/cmukgb/ctfws-timer-android/issues/17

6 years agoDisplayLocal: ensure reset() if not configured
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 13:32:50 +0000 (14:32 +0100)]
DisplayLocal: ensure reset() if not configured

6 years agoHandbook: push completed DL through callback chain
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 13:31:32 +0000 (14:31 +0100)]
Handbook: push completed DL through callback chain

6 years agoTinyChrono: add a "single chronometer" display
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 12:57:19 +0000 (13:57 +0100)]
TinyChrono: add a "single chronometer" display

We're going to use this to address https://github.com/cmukgb/ctfws-timer-android/issues/17

6 years agotreewide: make messages a SortedSet, not a List
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 13:56:41 +0000 (14:56 +0100)]
treewide: make messages a SortedSet, not a List

6 years agobuild: add git description as resource string
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 12:56:29 +0000 (13:56 +0100)]
build: add git description as resource string

6 years agoCheckedAsyncDownloader: use proper enum for result codes
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 12:55:17 +0000 (13:55 +0100)]
CheckedAsyncDownloader: use proper enum for result codes

6 years agolib: drop support for messages without timestamps
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 12:48:57 +0000 (13:48 +0100)]
lib: drop support for messages without timestamps

All our tooling does the right thing, and this was always janky

6 years agolib: catch up config serialization
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 12:48:34 +0000 (13:48 +0100)]
lib: catch up config serialization

6 years agolib: add lastConfigMessage for debugging
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 12:48:06 +0000 (13:48 +0100)]
lib: add lastConfigMessage for debugging

6 years agobump gradle version
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 14:20:02 +0000 (15:20 +0100)]
bump gradle version

6 years agoFixup merge of number formatting
Nathaniel Wesley Filardo [Sun, 22 Sep 2019 14:29:33 +0000 (15:29 +0100)]
Fixup merge of number formatting

7 years agoMerge pull request #20 from timparenti/number-formatting
Nathaniel Wesley Filardo [Mon, 4 Mar 2019 23:16:27 +0000 (23:16 +0000)]
Merge pull request #20 from timparenti/number-formatting

Reformat integer game scores as locale-formatted strings.

7 years agoReformat integer game scores as locale-formatted strings.
Tim Parenti [Mon, 4 Mar 2019 01:00:20 +0000 (20:00 -0500)]
Reformat integer game scores as locale-formatted strings.

Resolves #16.

7 years agoUpdate the other copy of the shield to the 2019 version.
Tim Parenti [Mon, 4 Mar 2019 00:05:49 +0000 (19:05 -0500)]
Update the other copy of the shield to the 2019 version.

Fixes #18.

7 years agoUpdate default broker URI.
Tim Parenti [Sun, 3 Mar 2019 21:45:43 +0000 (16:45 -0500)]
Update default broker URI.

Resolves #8.

7 years agoBrown paper bag version bump
Nathaniel Wesley Filardo [Sat, 2 Mar 2019 02:59:18 +0000 (02:59 +0000)]
Brown paper bag version bump

7 years agoBump version release-1.3.1
Nathaniel Wesley Filardo [Sat, 2 Mar 2019 02:26:51 +0000 (02:26 +0000)]
Bump version

7 years agoHandbook improvements.
Nathaniel Wesley Filardo [Sat, 2 Mar 2019 02:25:24 +0000 (02:25 +0000)]
Handbook improvements.

Add policy permitting cleartext connection to cmukgb.org and its
subdomains.

Rate-limit resubscriptions to handbook stamp topic, to prevent
busy-looping around errors such as seen prior to the existence of the
above.

7 years agoBetter display of game index 0
Nathaniel Wesley Filardo [Sat, 2 Mar 2019 01:55:33 +0000 (01:55 +0000)]
Better display of game index 0

7 years agoRegister the notification channel
Nathaniel Wesley Filardo [Sat, 2 Mar 2019 01:53:25 +0000 (01:53 +0000)]
Register the notification channel

Oops.  Forgot half of the dance, apparently.

7 years agoBelatedly add LICENSE
Nathaniel Wesley Filardo [Fri, 1 Mar 2019 20:44:13 +0000 (20:44 +0000)]
Belatedly add LICENSE

This should have gone in a long time ago.  Up until recently, the only
admission of AGPLv3 was on the about page, which was hardly prominent.

7 years agoBump version release-1.3
Nathaniel Wesley Filardo [Tue, 19 Feb 2019 01:34:45 +0000 (01:34 +0000)]
Bump version

7 years agoUpdate license text to inclue AGPLv3
Nathaniel Wesley Filardo [Fri, 1 Mar 2019 12:18:30 +0000 (12:18 +0000)]
Update license text to inclue AGPLv3

7 years agoUpdate shield to 2019 version.
Tim Parenti [Wed, 27 Feb 2019 03:13:11 +0000 (22:13 -0500)]
Update shield to 2019 version.

7 years agoAdd README
Nathaniel Wesley Filardo [Fri, 1 Mar 2019 12:07:48 +0000 (12:07 +0000)]
Add README

7 years agoAdd length limit for handbook HTML
Nathaniel Wesley Filardo [Fri, 1 Mar 2019 12:07:35 +0000 (12:07 +0000)]
Add length limit for handbook HTML

7 years agoUpdate project and rules URLs.
Tim Parenti [Wed, 27 Feb 2019 02:58:56 +0000 (21:58 -0500)]
Update project and rules URLs.

7 years agoUpdate some comments and whitespace
Nathaniel Wesley Filardo [Tue, 19 Feb 2019 00:58:24 +0000 (00:58 +0000)]
Update some comments and whitespace

7 years agoUpdate gradle
Nathaniel Wesley Filardo [Tue, 19 Feb 2019 00:59:11 +0000 (00:59 +0000)]
Update gradle

7 years agoMainService: minor changes to reporting and client handling
Nathaniel Wesley Filardo [Tue, 19 Feb 2019 01:00:02 +0000 (01:00 +0000)]
MainService: minor changes to reporting and client handling

Don't set the state on timesync events.
Null out the client handle slightly earlier.

7 years agoDramatic overhaul of Handbook
Nathaniel Wesley Filardo [Tue, 19 Feb 2019 00:55:04 +0000 (00:55 +0000)]
Dramatic overhaul of Handbook

Now includes the ability to grab new versiosn as directed by MQTT!
While here, ship the latest and greatest by default, tho'.

7 years agoTimesync using new topic
Nathaniel Wesley Filardo [Tue, 19 Feb 2019 00:58:51 +0000 (00:58 +0000)]
Timesync using new topic

7 years agoTry harder to tear down old mqtt connections
Nathaniel Wesley Filardo [Tue, 19 Feb 2019 01:18:40 +0000 (01:18 +0000)]
Try harder to tear down old mqtt connections

7 years agoSlightly richer Logging
Nathaniel Wesley Filardo [Tue, 19 Feb 2019 00:57:59 +0000 (00:57 +0000)]
Slightly richer Logging

7 years agoNotification icon: hammer and sickle, vector
Nathaniel Wesley Filardo [Sat, 17 Nov 2018 01:04:44 +0000 (01:04 +0000)]
Notification icon: hammer and sickle, vector

Try to placate newer Androids by changing the icon to match the
guidelines from
https://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar

Since the shield looked odd, anyway, move to a proper hammer and sickle,
as obtained from Wikimedia and incorporated under public domain.  See
https://commons.wikimedia.org/wiki/File:Hammer_and_sickle.svg .

See https://github.com/cmukgb/ctfws-timer-android/issues/6

7 years agoBump version release-1.2
Nathaniel Wesley Filardo [Tue, 30 Oct 2018 22:39:30 +0000 (22:39 +0000)]
Bump version

7 years agoSmall changes to semigenerated files
Nathaniel Wesley Filardo [Tue, 30 Oct 2018 22:38:51 +0000 (22:38 +0000)]
Small changes to semigenerated files

7 years agoAdd handbook activity
Nathaniel Wesley Filardo [Tue, 30 Oct 2018 22:37:48 +0000 (22:37 +0000)]
Add handbook activity

7 years agoBump version (1.1)
Nathaniel Wesley Filardo [Sat, 27 Oct 2018 17:05:51 +0000 (18:05 +0100)]
Bump version (1.1)

7 years agoAdd support for message reset messages
Nathaniel Wesley Filardo [Sun, 28 Oct 2018 14:52:58 +0000 (14:52 +0000)]
Add support for message reset messages

And tweak the handling of the message queue in notifications
Add TODO for main display

7 years agoAdd support for timesync messages
Nathaniel Wesley Filardo [Sun, 28 Oct 2018 14:12:48 +0000 (14:12 +0000)]
Add support for timesync messages

7 years agoRefactor out a string resource manipulation util
Nathaniel Wesley Filardo [Sun, 28 Oct 2018 14:12:05 +0000 (14:12 +0000)]
Refactor out a string resource manipulation util

7 years agoSwitch reconnect icon to something at least netish
Nathaniel Wesley Filardo [Sat, 27 Oct 2018 17:05:17 +0000 (18:05 +0100)]
Switch reconnect icon to something at least netish

"Search" was not really useful; "download" at least has the right idea.

7 years agoImprove debug logging
Nathaniel Wesley Filardo [Sun, 28 Oct 2018 14:13:12 +0000 (14:13 +0000)]
Improve debug logging

7 years agoImprove flag message display
Nathaniel Wesley Filardo [Sat, 27 Oct 2018 16:56:27 +0000 (17:56 +0100)]
Improve flag message display

No longer k=v pairs, let's actually get some color and labels

7 years agoSet notification source for end of game
Nathaniel Wesley Filardo [Sat, 27 Oct 2018 16:54:45 +0000 (17:54 +0100)]
Set notification source for end of game

The vibration pattern was erroneously inherited from whatever had come
before.

7 years agoEnsure we have flag counts more often
Nathaniel Wesley Filardo [Sat, 27 Oct 2018 16:13:23 +0000 (17:13 +0100)]
Ensure we have flag counts more often

In particular, we will want to display this even if we didn't get a Now
message, say, if we've relauched the app after the game ended.

7 years agoMake connection status display slightly less obtrusive
Nathaniel Wesley Filardo [Sat, 27 Oct 2018 16:12:58 +0000 (17:12 +0100)]
Make connection status display slightly less obtrusive

7 years agoAdd display of sides information
Nathaniel Wesley Filardo [Sat, 27 Oct 2018 15:51:26 +0000 (16:51 +0100)]
Add display of sides information

7 years agoSwitch to enum for rationales
Nathaniel Wesley Filardo [Sat, 27 Oct 2018 15:24:13 +0000 (16:24 +0100)]
Switch to enum for rationales

Stop using strings from lib/; fetch them from the string table like
we're supposed to.