Rename the project to Voelin; packages hold only the app, tsgw is a Linux server package
The product is Voelin (app id io.github.faumaray.Voelin), everywhere: - crates tsc-* -> voelin-* (and voelin-fuzz), the desktop binary tsc-desktop -> voelin, the development CLI tsctl -> voelinctl; - the Android app: applicationId, Kotlin package io.github.faumaray.voelin, VoelinApp, libvoelin_android.so (JNI class names follow); - TSC_* environment variables -> VOELIN_*, Gradle properties tsc.* -> voelin.*, signing secrets VOELIN_SIGNING_*; - the data/config/cache/state folder tsc -> voelin, the keyring service, thread names, the dev compose project; - desktop file, metainfo, icon, Flatpak manifest, NSIS installer, docs. The gateway keeps its name: bin tsgw (crate voelin-gateway), TSGW_* env vars, the tsgw.v1+json protocol, the tsgw image. The window title and the About page show "Voelin <version>" from voelin_platform::APP_NAME. Packages (scripts/package.sh): the app only (voelin, voelin.exe, APKs, Flatpak). voelinctl is a development tool and in no package. tsgw is for servers and now its own Linux package, tsgw_<v>_amd64.deb and tsgw-<v>-linux-x86_64.tar.gz, with a sandboxed systemd unit (packaging/linux/tsgw.service; /etc/tsgw config, /var/lib/tsgw state) and dependencies of its own (no GUI libraries). docs/gateway-admin.md has an Install section. Fixes: - package-windows: makensis on Windows found no file through "D:/a/..." paths; pass Windows paths (cygpath -w). - StartupWMClass is the app id, which the app sets as its X11 WM_CLASS (it was the binary name, so desktops could not match the window). - Gradle wrapper download timeout 10 s -> 60 s (slow proxies). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
1 parent
fa9e626c5b
commit
e050148a32
197 files changed
+1357
-1210
No files matched your search
+3
-3
@@ -1,4 +1,4 @@
|
||||
package io.github.faumaray.tsc
|
||||
package io.github.faumaray.voelin
|
||||
|
||||
import android.Manifest
|
||||
import android.content.Context
|
||||
@@ -6,11 +6,11 @@ import android.content.pm.PackageManager
|
||||
import android.os.Build
|
||||
|
||||
/**
|
||||
* What the Rust library (crates/tsc-android/src/bridge.rs) calls, from any
|
||||
* What the Rust library (crates/voelin-android/src/bridge.rs) calls, from any
|
||||
* thread. Keep the names and signatures in step with it.
|
||||
*/
|
||||
object Bridge {
|
||||
private val app: TscApp get() = TscApp.instance
|
||||
private val app: VoelinApp get() = VoelinApp.instance
|
||||
|
||||
@JvmStatic
|
||||
fun context(): Context = app
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package io.github.faumaray.tsc
|
||||
package io.github.faumaray.voelin
|
||||
|
||||
import android.app.NativeActivity
|
||||
import android.content.Intent
|
||||
@@ -7,7 +7,7 @@ import android.os.Bundle
|
||||
import java.lang.ref.WeakReference
|
||||
|
||||
/**
|
||||
* The window: a NativeActivity running `android_main` of libtsc_android.so
|
||||
* The window: a NativeActivity running `android_main` of libvoelin_android.so
|
||||
* (the Slint UI). Kotlin only handles what needs an Activity: permission
|
||||
* prompts and the screen-capture consent dialog.
|
||||
*/
|
||||
+3
-3
@@ -1,13 +1,13 @@
|
||||
package io.github.faumaray.tsc
|
||||
package io.github.faumaray.voelin
|
||||
|
||||
import java.nio.ByteBuffer
|
||||
|
||||
/** Callbacks into the Rust library (crates/tsc-android/src/bridge.rs). */
|
||||
/** Callbacks into the Rust library (crates/voelin-android/src/bridge.rs). */
|
||||
object Native {
|
||||
init {
|
||||
// Already loaded by the NativeActivity; this registers it for JNI
|
||||
// lookups from this class loader.
|
||||
System.loadLibrary("tsc_android")
|
||||
System.loadLibrary("voelin_android")
|
||||
}
|
||||
|
||||
/** The user answered the screen-capture dialog (`error`: why it failed). */
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package io.github.faumaray.tsc
|
||||
package io.github.faumaray.voelin
|
||||
|
||||
import android.app.Notification
|
||||
import android.app.NotificationChannel
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
package io.github.faumaray.tsc
|
||||
package io.github.faumaray.voelin
|
||||
|
||||
import android.Manifest
|
||||
import android.app.PendingIntent
|
||||
@@ -92,7 +92,7 @@ class ScreenCaptureService : Service() {
|
||||
}
|
||||
|
||||
private fun startVideo(projection: MediaProjection, fps: Int, maxSize: Int) {
|
||||
val worker = HandlerThread("tsc-screen").also { it.start() }
|
||||
val worker = HandlerThread("voelin-screen").also { it.start() }
|
||||
this.worker = worker
|
||||
val handler = Handler(worker.looper)
|
||||
// The user or the system can end the projection (status bar chip,
|
||||
@@ -137,7 +137,7 @@ class ScreenCaptureService : Service() {
|
||||
}
|
||||
}, handler)
|
||||
display = projection.createVirtualDisplay(
|
||||
"tsc-screen",
|
||||
"voelin-screen",
|
||||
width,
|
||||
height,
|
||||
metrics.densityDpi,
|
||||
@@ -179,7 +179,7 @@ class ScreenCaptureService : Service() {
|
||||
}
|
||||
audioRunning = true
|
||||
record.startRecording()
|
||||
audioThread = thread(name = "tsc-system-audio") {
|
||||
audioThread = thread(name = "voelin-system-audio") {
|
||||
// 10 ms of stereo.
|
||||
val buffer = FloatArray(SAMPLE_RATE / 100 * 2)
|
||||
try {
|
||||
@@ -222,7 +222,7 @@ class ScreenCaptureService : Service() {
|
||||
private const val TAG = "ScreenCaptureService"
|
||||
private const val ID = 2
|
||||
private const val SAMPLE_RATE = 48_000
|
||||
private const val ACTION_STOP = "io.github.faumaray.tsc.STOP_SHARING"
|
||||
private const val ACTION_STOP = "io.github.faumaray.voelin.STOP_SHARING"
|
||||
private const val EXTRA_RESULT = "result"
|
||||
private const val EXTRA_DATA = "data"
|
||||
private const val EXTRA_FPS = "fps"
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package io.github.faumaray.tsc
|
||||
package io.github.faumaray.voelin
|
||||
|
||||
import android.content.Context
|
||||
import android.security.keystore.KeyGenParameterSpec
|
||||
@@ -22,7 +22,7 @@ import javax.crypto.spec.GCMParameterSpec
|
||||
object SecretStore {
|
||||
private const val TAG = "SecretStore"
|
||||
private const val KEYSTORE = "AndroidKeyStore"
|
||||
private const val KEY_ALIAS = "tsc-secrets"
|
||||
private const val KEY_ALIAS = "voelin-secrets"
|
||||
private const val PREFS = "secrets"
|
||||
private const val TRANSFORMATION = "AES/GCM/NoPadding"
|
||||
private const val IV_BYTES = 12
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
package io.github.faumaray.tsc
|
||||
package io.github.faumaray.voelin
|
||||
|
||||
import android.app.Application
|
||||
|
||||
/** The process's application object; the Rust side reaches Android through it. */
|
||||
class TscApp : Application() {
|
||||
class VoelinApp : Application() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
instance = this
|
||||
@@ -11,7 +11,7 @@ class TscApp : Application() {
|
||||
}
|
||||
|
||||
companion object {
|
||||
lateinit var instance: TscApp
|
||||
lateinit var instance: VoelinApp
|
||||
private set
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
package io.github.faumaray.tsc
|
||||
package io.github.faumaray.voelin
|
||||
|
||||
import android.app.Notification
|
||||
import android.app.NotificationManager
|
||||
@@ -58,8 +58,8 @@ class VoiceService : Service() {
|
||||
private const val ID = 1
|
||||
private const val EXTRA_TEXT = "text"
|
||||
private const val EXTRA_MUTED = "muted"
|
||||
private const val ACTION_DISCONNECT = "io.github.faumaray.tsc.DISCONNECT"
|
||||
private const val ACTION_TOGGLE_MUTE = "io.github.faumaray.tsc.TOGGLE_MUTE"
|
||||
private const val ACTION_DISCONNECT = "io.github.faumaray.voelin.DISCONNECT"
|
||||
private const val ACTION_TOGGLE_MUTE = "io.github.faumaray.voelin.TOGGLE_MUTE"
|
||||
|
||||
@Volatile
|
||||
private var running: VoiceService? = null
|
||||
Reference in new issue
Block a user