Skip to content

Conversation

@MaxKellermann
Copy link
Contributor

My service for sharing live GPS locations, see
https://github.com/MaxKellermann/beacon

A demo server is running on beacon.blarg.de; its IP address is currently 138.201.185.127, and this is the default value. There should be a way to use a DNS resolver, but that's a task for another day.

(I have posted this a long ago as PR #85 but didn't manage to finish it back then; I have now made a configuration page for it, and it's disabled by default. I hope we can get it ready for merging soon.)

@bailuk bailuk changed the base branch from master to stage December 21, 2025 14:45
@bailuk
Copy link
Owner

bailuk commented Dec 21, 2025

Changed branch to stage which reflects the upcoming release.

This replaces the hard-coded "2" and makes adding more "base" pages
easier.
My service for sharing live GPS locations, see
 https://github.com/MaxKellermann/beacon

A demo server is running on beacon.blarg.de; its IP address is
currently 138.201.185.127, and this is the default value.  There
should be a way to use a DNS resolver, but that's a task for another
day.
@MaxKellermann
Copy link
Contributor Author

Rebased.

Copy link
Owner

@bailuk bailuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I played around with this on AAT GTK connecting to your test Server.
Worked almost out of the box. Really impressive!

Also the code in your merge request looks generally fine to me.

I'd like to merge this as soon the library dependency issue is resolved.
I use jitpack for my own external libraries. See https://github.com/bailuk/foc for an example.

}

sourceControl {
gitRepository(uri("https://github.com/MaxKellermann/beacon")) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GTK Variant gets released as flatpak. This means the build process must work Offline. (See https://github.com/bailuk/AAT/tree/stage/aat-gtk/flatpak).

This will break gradle inside flatpak builder.

}

return formatAddress(address!!)
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

        val address = getValue() ?: getDefaultValue()
        return if (address == null) {
            ""
        } else {
            formatAddress(address)
        }

private fun createDispatcher() {
dispatcher.addSource(TrackerSource(serviceContext, appContext.broadcaster, UsageTrackerAlwaysEnabled()))
dispatcher.addSource(BeaconSource(serviceContext, appContext.broadcaster, UsageTrackerAlwaysEnabled()))
dispatcher.addSource(CurrentLocationSource(serviceContext, appContext.broadcaster))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I managed to get this to work in the GTK Version by just adding

dispatcher.addSource(BeaconSource(appContext.services, appContext.broadcaster, UsageTrackerAlwaysEnabled()))

to aat-gtk/src/main/kotlin/ch/bailu/aat_gtk/view/toplevel/MainWindow.kt

Which is really nice!

@MaxKellermann
Copy link
Contributor Author

I'd like to merge this as soon the library dependency issue is resolved.
I use jitpack for my own external libraries. See https://github.com/bailuk/foc for an example.

How does offline building work with dependencies from other Internet-based repositories like jitpack.io?
Or do you mean you go offline after downloading all the files referenced by gradle-sources.json?
That means I can upload my JAR file to any HTTP server, add it to gradle-sources.json and be done?

@MaxKellermann
Copy link
Contributor Author

I have now integrated a Java build into GitHub actions and as soon as I push a release tag, a release JAR will be built, available on GitHub; test release: https://github.com/MaxKellermann/beacon/releases/tag/untagged-1cbfcb3e4c7827bcf45e JAR link: https://github.com/MaxKellermann/beacon/releases/download/untagged-1cbfcb3e4c7827bcf45e/BeaconClient.jar

As soon as I have finished Beacon v0.1, I will update this PR and replace the git repo reference with the final JAR link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants