Skip to content

Red UI and some minor changes in readme - #32

Open
s4rify wants to merge 2 commits into
masterfrom
red_UI
Open

Red UI and some minor changes in readme#32
s4rify wants to merge 2 commits into
masterfrom
red_UI

Conversation

@s4rify

@s4rify s4rify commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

s4rify and others added 2 commits August 21, 2026 11:40
- Add CHANGE_WIFI_MULTICAST_STATE permission and MulticastLock for LSL
  stream discovery on Android
- Add useLegacyPackaging=true so JNA can load liblsl.so under AGP 8.x
- Upgrade build system: AGP 8.3.2, Gradle 8.7, Kotlin 1.9.22, NDK 25
- Refactor ResolveStreamsTask from deprecated AsyncTask to Thread
- Update primary color to red (#C62727) for both light and dark theme
- Update citation in README

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 21, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Android project’s UI branding (red primary colors), modernizes the Gradle/Android plugin toolchain, and adjusts LSL stream discovery behavior (threading + WiFi multicast).

Changes:

  • Update Android build tooling (Gradle wrapper, AGP, Kotlin) and module Android configs (namespace/compileSdk).
  • Change primary UI colors to a red theme for day/night resources.
  • Replace AsyncTask-based LSL stream resolution with a background thread approach and enable WiFi multicast for discovery; update README citation.

Reviewed changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
README.md Updates the paper citation text.
liblsl-Java/build.gradle Updates JNA version; adds namespace/compileSdk/NDK settings.
gradle/wrapper/gradle-wrapper.properties Bumps Gradle wrapper to 8.7.
build.gradle Updates AGP + Kotlin plugin versions and removes legacy buildscript block.
app/src/main/res/values/colors.xml Changes primary colors to red (day theme).
app/src/main/res/values-night/colors.xml Changes primary colors to red (night theme).
app/src/main/java/de/uol/neuropsy/recorda/util/ResolveStreamsTask.java Reworks stream resolution off AsyncTask and adds logging/error handling.
app/src/main/java/de/uol/neuropsy/recorda/MainActivity.kt Acquires/releases WiFi multicast lock for LSL discovery lifecycle.
app/src/main/AndroidManifest.xml Adds multicast permission for WiFi discovery.
app/build.gradle Sets Java/Kotlin target to 11 and adjusts packaging for JNA under AGP 8.x.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread liblsl-Java/build.gradle
android {
compileSdkVersion 33
namespace 'edu.ucsd.sccn'
compileSdkVersion 34
Comment on lines +198 to +201
val wifiManager = applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager
multicastLock = wifiManager.createMulticastLock("RECORDA_lsl_discovery")
multicastLock!!.setReferenceCounted(true)
multicastLock!!.acquire()
Comment on lines +12 to +16
public void execute(final MainActivity activity) {
new Thread(() -> {
LSL.StreamInfo[] resolved;
try {
resolved = LSL.resolve_streams();
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