Unofficial YouTube Music / Spotify Premium client for Android, built in Liquid Glass. Audio effects, Spotify Connect, listening history, 8 languages. Rust core on librespot.
Kotlin alternativeandroidandroid-applicationclientglassmorphisminnertubelibrespotliquid-glassspotifyspotify-connectspotifyapiyoutube-musicyoutube-playerytdlnis
Fix the release build: the rename left the JNI names behind
Lelonio10b9e00c5d10
diff --git a/app/proguard-rules.pro b/app/proguard-rules.proindex 2a0c3cf..5abc2f1 100644--- a/app/proguard-rules.pro+++ b/app/proguard-rules.pro@@ -6,30 +6,30 @@# adding a call across the boundary.# native fn declarations resolved against this class--keepclasseswithmembernames class dev.emanuele.spot.nativecore.NativeBridge {+-keepclasseswithmembernames class dev.lelonio.square.nativecore.NativeBridge {native <methods>;}# called from the engine's event pump (native/src/engine.rs)--keep class dev.emanuele.spot.nativecore.NativeEvents { *; }--keep class * implements dev.emanuele.spot.nativecore.NativeEvents { *; }+-keep class dev.lelonio.square.nativecore.NativeEvents { *; }+-keep class * implements dev.lelonio.square.nativecore.NativeEvents { *; }# start / stop / write, called from the audio sink (native/src/sink.rs)--keep class dev.emanuele.spot.playback.AudioOutput { *; }+-keep class dev.lelonio.square.playback.AudioOutput { *; }# kotlinx.serialization generates serializers reflectively from these.-keepattributes *Annotation*, InnerClasses-dontnote kotlinx.serialization.**--keepclassmembers class dev.emanuele.spot.data.** {+-keepclassmembers class dev.lelonio.square.data.** {*** Companion;kotlinx.serialization.KSerializer serializer(...);}# Retrofit keeps generic signatures on its interface methods.-keepattributes Signature, RuntimeVisibleAnnotations--keep,allowobfuscation interface dev.emanuele.spot.data.SpotifyApi+-keep,allowobfuscation interface dev.lelonio.square.data.SpotifyApi# Resolved by name from app/src/main/cpp/stretch.cpp, whose JNI symbols embed# the fully qualified class name.--keepclasseswithmembernames class dev.emanuele.spot.playback.Stretcher { native <methods>; }--keep class dev.emanuele.spot.playback.Stretcher { *; }+-keepclasseswithmembernames class dev.lelonio.square.playback.Stretcher { native <methods>; }+-keep class dev.lelonio.square.playback.Stretcher { *; }diff --git a/app/src/main/cpp/stretch.cpp b/app/src/main/cpp/stretch.cppindex 87119fb..2ab270d 100644--- a/app/src/main/cpp/stretch.cpp+++ b/app/src/main/cpp/stretch.cpp@@ -61,7 +61,7 @@ constexpr float kInt16Scale = 32768.f;extern "C" {JNIEXPORT jlong JNICALL-Java_dev_emanuele_spot_playback_Stretcher_nativeCreate(+Java_dev_lelonio_square_playback_Stretcher_nativeCreate(JNIEnv *, jclass, jint sampleRate, jint channels, jint maxInputFrames, jint maxOutputFrames){if (sampleRate <= 0 || channels <= 0 || maxInputFrames <= 0 || maxOutputFrames <= 0)@@ -72,7 +72,7 @@ Java_dev_emanuele_spot_playback_Stretcher_nativeCreate(}JNIEXPORT void JNICALL-Java_dev_emanuele_spot_playback_Stretcher_nativeDestroy(JNIEnv *, jclass, jlong handle)+Java_dev_lelonio_square_playback_Stretcher_nativeDestroy(JNIEnv *, jclass, jlong handle){delete reinterpret_cast<Context *>(handle);}@@ -83,7 +83,7 @@ Java_dev_emanuele_spot_playback_Stretcher_nativeDestroy(JNIEnv *, jclass, jlong* @return frames written to `outputBuffer`, or -1 if the call was rejected.*/JNIEXPORT jint JNICALL-Java_dev_emanuele_spot_playback_Stretcher_nativeProcess(+Java_dev_lelonio_square_playback_Stretcher_nativeProcess(JNIEnv *env,jclass,jlong handle,