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
Spot: initial commit of the working tree
Lelonio3f1128f406ac
diff --git a/.claude/settings.local.json b/.claude/settings.local.jsonnew file mode 100644index 0000000..47f6d61--- /dev/null+++ b/.claude/settings.local.json@@ -0,0 +1,57 @@+{+ "permissions": {+ "allow": [+ "Bash(cargo --version)",+ "Bash(java -version)",+ "Bash(rustup target *)",+ "Bash(cargo search *)",+ "Bash(cargo new *)",+ "Bash(cargo add *)",+ "Bash(cd ~/.cargo/registry/src/*/librespot-oauth-0.8.0/src 2>/dev/null && ls && grep -n \"pub fn\\\\|pub struct\\\\|pub enum\\\\|pub async fn\" lib.rs | head -60)",+ "Bash(cd ~/.cargo/registry/src/*/librespot-core-0.8.0/src 2>/dev/null && ls && echo \"=== session ===\" && grep -n \"pub async fn\\\\|pub fn new\\\\|pub struct Session\\\\|pub fn connect\" session.rs | head -40)",+ "Bash(cargo fetch *)",+ "Bash(cargo check *)",+ "Bash(rustup update *)",+ "Bash(rustc --version)",+ "Bash(curl -sSL -o gradle.zip \"https://services.gradle.org/distributions/gradle-8.11.1-bin.zip\")",+ "Bash(unzip -q -o gradle.zip -d /tmp/gradledist)",+ "Bash(export JAVA_HOME=\"/Applications/Android Studio.app/Contents/jbr/Contents/Home\")",+ "Bash(/tmp/gradledist/gradle-8.11.1/bin/gradle wrapper *)",+ "WebFetch(domain:github.com)",+ "Bash(python3 -)",+ "Bash(./gradlew :app:assembleRelease)",+ "Bash(rustup toolchain *)",+ "Bash(~/.cargo/bin/rustc --version)",+ "Bash(~/.cargo/bin/rustup target *)",+ "Bash(./gradlew :app:compileReleaseKotlin)",+ "Bash(adb install *)",+ "Bash(git -C . log -1 --format=%H)",+ "Bash(git -C . describe --tags)",+ "Bash(./gradlew :app:fetchBungee)",+ "Bash(unzip -l app/build/outputs/apk/release/app-release.apk)",+ "WebFetch(domain:kyant.gitbook.io)",+ "Bash(curl -s \"https://search.maven.org/solrsearch/select?q=g:io.github.kyant0+AND+a:backdrop&core=gav&rows=8&wt=json\")",+ "Bash(python3 -c \"import sys,json; d=json.load\\(sys.stdin\\); [print\\(x['v'], x.get\\('timestamp'\\)\\) for x in d['response']['docs']]\")",+ "Bash(curl -s https://repo1.maven.org/maven2/io/github/kyant0/backdrop/maven-metadata.xml)",+ "Bash(curl -sL https://repo1.maven.org/maven2/io/github/kyant0/backdrop/maven-metadata.xml)",+ "Bash(curl -sL https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/maven-metadata.xml)",+ "Bash(sed -i '' 's/^agp = \"8.7.3\"/agp = \"8.13.2\"/' gradle/libs.versions.toml)",+ "Bash(sed -i '' 's/ compileSdk = 35/ compileSdk = 36/' app/build.gradle.kts)",+ "Bash(curl -sL https://repo1.maven.org/maven2/androidx/compose/compose-bom/maven-metadata.xml)",+ "Bash(curl -sL https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/maven-metadata.xml)",+ "Bash(curl -sL https://dl.google.com/dl/android/maven2/androidx/compose/compose-bom/maven-metadata.xml)",+ "Bash(adb logcat *)",+ "Bash(adb shell *)",+ "Bash(adb connect *)",+ "Bash(adb devices *)",+ "Bash(python3 -c ' *)",+ "Bash(touch app/src/main/java/dev/emanuele/spot/ui/SpotApp.kt)",+ "Bash(./gradlew :app:assembleRelease --profile)",+ "Bash(time ./gradlew :app:assembleDev)",+ "Bash(./gradlew :app:assembleDev)",+ "Bash(cd \"/Users/emanuele/Progetto Spotify\" && ls -la ~/.Trash 2>/dev/null | head -5; find . -name \"SpotApp*\" -not -path \"*/build/tmp/*\" 2>/dev/null | head; ls .idea 2>/dev/null; find ~/Library/Caches -name \"*SpotApp*\" 2>/dev/null | head)",+ "Bash(sed -n '/^fun PlayerScreen\\(/,/^\\) {/p' app/src/main/java/dev/emanuele/spot/ui/player/PlayerScreen.kt)",+ "Bash(sed -n '/^fun MiniPlayer\\(/,/^\\) {/p' app/src/main/java/dev/emanuele/spot/ui/player/MiniPlayer.kt)"+ ]+ }+}diff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000..1f8dae9--- /dev/null+++ b/.gitignore@@ -0,0 +1,17 @@+# Build output+build/+app/build/+.gradle/+local.properties++# Fetched, not vendored (see fetchBungee in app/build.gradle.kts)+native-dsp/bungee/++# Cross-compiled by cargoBuild+app/src/main/jniLibs/+native/target/++# IDE+.idea/+*.iml+.DS_Storediff --git a/.kotlin/errors/errors-1785772916097.log b/.kotlin/errors/errors-1785772916097.lognew file mode 100644index 0000000..23e9f26--- /dev/null+++ b/.kotlin/errors/errors-1785772916097.log@@ -0,0 +1,73 @@+kotlin version: 2.1.0+error message: org.jetbrains.kotlin.util.FileAnalysisException: While analysing /Users/emanuele/Progetto Spotify/app/src/main/java/dev/emanuele/spot/auth/SpotifyOAuth.kt:289:5: java.lang.IllegalArgumentException: source must not be null+ at org.jetbrains.kotlin.util.AnalysisExceptionsKt.wrapIntoFileAnalysisExceptionIfNeeded(AnalysisExceptions.kt:57)+ at org.jetbrains.kotlin.fir.FirCliExceptionHandler.handleExceptionOnFileAnalysis(Utils.kt:249)+ at org.jetbrains.kotlin.fir.pipeline.AnalyseKt.runCheckers(analyse.kt:68)+ at org.jetbrains.kotlin.fir.pipeline.FirUtilsKt.resolveAndCheckFir(firUtils.kt:77)+ at org.jetbrains.kotlin.fir.pipeline.FirUtilsKt.buildResolveAndCheckFirViaLightTree(firUtils.kt:88)+ at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.JvmCompilerPipelineLightTreeKt.compileModuleToAnalyzedFirViaLightTreeIncrementally(jvmCompilerPipelineLightTree.kt:347)+ at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.JvmCompilerPipelineLightTreeKt.compileModuleToAnalyzedFirViaLightTree(jvmCompilerPipelineLightTree.kt:272)+ at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.JvmCompilerPipelineLightTreeKt.compileModule(jvmCompilerPipelineLightTree.kt:250)+ at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.JvmCompilerPipelineLightTreeKt.compileSingleModuleUsingFrontendIrAndLightTree(jvmCompilerPipelineLightTree.kt:231)+ at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.JvmCompilerPipelineLightTreeKt.compileModulesUsingFrontendIrAndLightTree(jvmCompilerPipelineLightTree.kt:86)+ at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:146)+ at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:43)+ at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:102)+ at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.kt:316)+ at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:464)+ at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:73)+ at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.doCompile(IncrementalCompilerRunner.kt:506)+ at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:423)+ at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileNonIncrementally(IncrementalCompilerRunner.kt:301)+ at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:129)+ at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:674)+ at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:91)+ at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1659)+ at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)+ at java.base/java.lang.reflect.Method.invoke(Unknown Source)+ at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)+ at java.rmi/sun.rmi.transport.Transport.serviceCall(Unknown Source)+ at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)+ at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)+ at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)+ at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)+ at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)+ at java.base/java.lang.Thread.run(Unknown Source)+Caused by: java.lang.IllegalArgumentException: source must not be null+ at org.jetbrains.kotlin.diagnostics.KtDiagnosticReportHelpersKt.requireNotNull(KtDiagnosticReportHelpers.kt:68)+ at org.jetbrains.kotlin.diagnostics.KtDiagnosticReportHelpersKt.reportOn(KtDiagnosticReportHelpers.kt:39)+ at org.jetbrains.kotlin.diagnostics.KtDiagnosticReportHelpersKt.reportOn$default(KtDiagnosticReportHelpers.kt:31)+ at org.jetbrains.kotlin.fir.analysis.checkers.expression.FirIncompatibleClassExpressionChecker.checkSourceElement(FirIncompatibleClassExpressionChecker.kt:50)+ at org.jetbrains.kotlin.fir.analysis.checkers.expression.FirIncompatibleClassExpressionChecker.checkType$checkers(FirIncompatibleClassExpressionChecker.kt:42)+ at org.jetbrains.kotlin.fir.analysis.checkers.type.FirIncompatibleClassTypeChecker.check(FirIncompatibleClassTypeChecker.kt:17)+ at org.jetbrains.kotlin.fir.analysis.checkers.type.FirIncompatibleClassTypeChecker.check(FirIncompatibleClassTypeChecker.kt:15)+ at org.jetbrains.kotlin.fir.analysis.collectors.components.TypeCheckersDiagnosticComponent.visitResolvedTypeRef(TypeCheckersDiagnosticComponent.kt:99)+ at org.jetbrains.kotlin.fir.analysis.collectors.components.TypeCheckersDiagnosticComponent.visitResolvedTypeRef(TypeCheckersDiagnosticComponent.kt:19)+ at org.jetbrains.kotlin.fir.types.FirResolvedTypeRef.accept(FirResolvedTypeRef.kt:28)+ at org.jetbrains.kotlin.fir.analysis.collectors.CheckerRunningDiagnosticCollectorVisitor.checkElement(CheckerRunningDiagnosticCollectorVisitor.kt:24)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitResolvedTypeRef(AbstractDiagnosticCollectorVisitor.kt:248)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitResolvedTypeRef(AbstractDiagnosticCollectorVisitor.kt:30)+ at org.jetbrains.kotlin.fir.types.FirResolvedTypeRef.accept(FirResolvedTypeRef.kt:28)+ at org.jetbrains.kotlin.fir.declarations.impl.FirSimpleFunctionImpl.acceptChildren(FirSimpleFunctionImpl.kt:63)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitNestedElements(AbstractDiagnosticCollectorVisitor.kt:38)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitWithDeclarationAndReceiver(AbstractDiagnosticCollectorVisitor.kt:311)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitSimpleFunction(AbstractDiagnosticCollectorVisitor.kt:118)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitSimpleFunction(AbstractDiagnosticCollectorVisitor.kt:30)+ at org.jetbrains.kotlin.fir.declarations.FirSimpleFunction.accept(FirSimpleFunction.kt:51)+ at org.jetbrains.kotlin.fir.declarations.impl.FirRegularClassImpl.acceptChildren(FirRegularClassImpl.kt:63)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitNestedElements(AbstractDiagnosticCollectorVisitor.kt:38)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitWithDeclarationAndReceiver(AbstractDiagnosticCollectorVisitor.kt:311)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitClassAndChildren(AbstractDiagnosticCollectorVisitor.kt:87)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitRegularClass(AbstractDiagnosticCollectorVisitor.kt:92)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitRegularClass(AbstractDiagnosticCollectorVisitor.kt:30)+ at org.jetbrains.kotlin.fir.declarations.FirRegularClass.accept(FirRegularClass.kt:48)+ at org.jetbrains.kotlin.fir.declarations.impl.FirFileImpl.acceptChildren(FirFileImpl.kt:57)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitNestedElements(AbstractDiagnosticCollectorVisitor.kt:38)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitFile(AbstractDiagnosticCollectorVisitor.kt:1151)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor.visitFile(AbstractDiagnosticCollectorVisitor.kt:30)+ at org.jetbrains.kotlin.fir.declarations.FirFile.accept(FirFile.kt:42)+ at org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollector.collectDiagnostics(AbstractDiagnosticCollector.kt:36)+ at org.jetbrains.kotlin.fir.pipeline.AnalyseKt.runCheckers(analyse.kt:37)+ ... 30 more++diff --git a/README.md b/README.mdnew file mode 100644index 0000000..89476dd--- /dev/null+++ b/README.md@@ -0,0 +1,131 @@+# Spot++Client Android non ufficiale per Spotify Premium, costruito su+[librespot](https://github.com/librespot-org/librespot). L'app ufficiale non+serve: lo streaming avviene in-process tramite una libreria nativa Rust.++## Architettura++```+┌─────────────────────────────────────────┐+│ Compose UI │+├─────────────────────────────────────────┤+│ MediaController ──► MediaSession │ notifica, lock screen, Bluetooth+├─────────────────────────────────────────┤+│ PlaybackService │ foreground service, possiede il motore+│ └─ LibrespotPlayer : SimpleBasePlayer │ adatta il motore a Media3+├──────────────────┬──────────────────────┤+│ Web API (HTTPS) │ JNI ──► libspotcore │+│ metadata, │ librespot │+│ libreria, search │ + AAudio │+└──────────────────┴──────────────────────┘+```++Tutto passa dall'access point, **non** da `api.spotify.com`:++- **Metadata** da `native/src/catalog.rs`, via `spclient` e `librespot-metadata`.+- **Audio** dal motore nativo. La Web API non espone nessun endpoint di+ streaming — non è una limitazione aggirabile, semplicemente non esiste.++La Web API resta cablata (`data/SpotifyApi.kt`) ma non è più usata per la+libreria: mette in conto le richieste per applicazione, e il client id che+serve qui è condiviso con ogni altra istanza librespot, quindi la quota risulta+esaurita da altri e risponde `429` a prescindere da quanto poco chiediamo noi.++Il player non tiene una copia dello stato: `LibrespotPlayer` riporta solo ciò che+il motore ha confermato via evento. È il motivo per cui la seek bar non parte+prima dell'audio.++## Prerequisiti++- Android Studio con SDK platform 35 e **NDK 28.2.13676358**+- Rust ≥ 1.86 con i target Android+- `cargo-ndk`++```bash+rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android+cargo install cargo-ndk+sdkmanager --install "ndk;28.2.13676358"+```++Gradle passa da sé `ANDROID_NDK_HOME` al task Cargo; la variabile serve solo se+compili il core a mano.++## Build++Il task Gradle `cargoBuild` cross-compila il core e copia i `.so` in+`app/src/main/jniLibs`, quindi basta:++```bash+./gradlew :app:assembleDebug+```++Per iterare più in fretta, riduci `nativeAbis` in `app/build.gradle.kts` al solo+`arm64-v8a`.++## Note tecniche++**`librespot-core` è patchato.** Copia locale in `native/vendor/`, agganciata con+`[patch.crates-io]`. Una riga: `OS` forzato a `"linux"`. Senza, ogni richiesta di+catalogo fallisce con `BAD_REQUEST` — dettagli e motivo in+[native/vendor/README.md](native/vendor/README.md).++**OAuth: client id keymaster, porta 5588 fissa.** Il redirect deve essere+esattamente `http://127.0.0.1:5588/login`, l'unico registrato per quel client id.+Il socket va legato al loopback **IPv4** esplicito: su Android+`InetAddress.getLoopbackAddress()` restituisce `::1`, e il browser fallisce il+redirect con `ERR_CONNECTION_REFUSED`.++**`MediaSession.Callback` è obbligatorio.** Una sessione non passa mai al player+i `MediaItem` di un controller: chiede prima all'app di risolverli, e+l'implementazione di default rifiuta ogni item privo di URI di riproduzione. I+nostri portano solo il `mediaId`, quindi senza `onAddMediaItems` la chiamata+sparisce in silenzio.++**Non ricostruire la playlist in `getState()`.** Viene invocato a ogni+`invalidateState`, quindi anche a ogni aggiornamento di posizione: rigenerare+decine di `MediaItemData` due volte al secondo produce abbastanza spazzatura da+far sentire lo stuttering. La lista è in cache e invalidata solo quando la coda+cambia davvero.++**`vergen` va tenuto a 9.0.6.** Il build script di `librespot-core` 0.8.0 non+compila con 9.1.0: il bump, semver-compatibile, ha cambiato il trait `Add`. Il+pin è in `native/Cargo.lock`; non rigenerarlo senza verificare.++**TLS via `rustls-tls-webpki-roots`.** Evita di cross-compilare OpenSSL e non+dipende dal keystore Java.++**`minSdk` 26.** Il backend audio è cpal → AAudio, che l'NDK espone da API 26.++**Refresh dei token serializzato.** `TokenStore.validAccessToken()` prende un+mutex prima di rinfrescare. Spotify può ruotare il refresh token: senza il mutex,+richieste parallele attorno alla scadenza ne rinfrescherebbero più d'una e le+perdenti salverebbero un token già invalidato. È il bug che fa sloggare a caso+gran parte dei client esistenti.++## Stato++Funziona end-to-end: login, catalogo, riproduzione audio.++## Limiti attuali++- Micro-stuttering raro e appena percettibile. Sospetto il dimensionamento del+ buffer di `cpal`/AAudio; la via d'uscita sarebbe un sink che passa il PCM a un+ `AudioTrack` lato Kotlin, come fa Outify.+- `panic = "abort"` nel profilo release: qualunque panic di librespot chiude+ l'app senza messaggio, diagnosticabile solo dal tombstone. Servirebbe un+ `catch_unwind` al confine JNI che li converta in eccezioni Java.+- La libreria mostra solo la prima playlist dell'account. I preferiti non sono+ raggiungibili allo stesso modo: `spotify:user:{id}:collection` non è un+ context valido per quell'endpoint e risponde `503`.+- Nessuna coda persistente: `PlayQueue` vive in memoria e muore col servizio.+- Niente shuffle/repeat — non sono esposti tra i `Player.Commands` proprio per+ non mostrare pulsanti che non fanno nulla.+- Niente Spotify Connect: `librespot-connect` non è cablato.+- La UI è uno scheletro.++## Licenza e termini di servizio++Reimplementare il protocollo Spotify viola i Terms of Service di Spotify.+Il progetto non è pubblicabile sul Play Store e richiede un account Premium.+Uso personale, a tuo rischio.diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/query/client-agp/cache-v2 b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/query/client-agp/cache-v2new file mode 100644index 0000000..e69de29diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/query/client-agp/cmakeFiles-v1 b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/query/client-agp/cmakeFiles-v1new file mode 100644index 0000000..e69de29diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/query/client-agp/codemodel-v2 b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/query/client-agp/codemodel-v2new file mode 100644index 0000000..e69de29diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/cache-v2-48bae30fe48aa8787e3a.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/cache-v2-48bae30fe48aa8787e3a.jsonnew file mode 100644index 0000000..d2f1d49--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/cache-v2-48bae30fe48aa8787e3a.json@@ -0,0 +1,1311 @@+{+ "entries" :+ [+ {+ "name" : "ANDROID_ABI",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "arm64-v8a"+ },+ {+ "name" : "ANDROID_NDK",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358"+ },+ {+ "name" : "ANDROID_PLATFORM",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "android-26"+ },+ {+ "name" : "CMAKE_ADDR2LINE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-addr2line"+ },+ {+ "name" : "CMAKE_ANDROID_ARCH_ABI",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "arm64-v8a"+ },+ {+ "name" : "CMAKE_ANDROID_NDK",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358"+ },+ {+ "name" : "CMAKE_AR",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Archiver"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar"+ },+ {+ "name" : "CMAKE_ASM_FLAGS",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during all build types."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_ASM_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during debug builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_ASM_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during release builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_BUILD_TYPE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ..."+ }+ ],+ "type" : "STRING",+ "value" : "RelWithDebInfo"+ },+ {+ "name" : "CMAKE_CACHEFILE_DIR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "This is the directory where this CMakeCache.txt was created"+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a"+ },+ {+ "name" : "CMAKE_CACHE_MAJOR_VERSION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Major version of cmake used to create the current loaded cache"+ }+ ],+ "type" : "INTERNAL",+ "value" : "3"+ },+ {+ "name" : "CMAKE_CACHE_MINOR_VERSION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Minor version of cmake used to create the current loaded cache"+ }+ ],+ "type" : "INTERNAL",+ "value" : "22"+ },+ {+ "name" : "CMAKE_CACHE_PATCH_VERSION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Patch version of cmake used to create the current loaded cache"+ }+ ],+ "type" : "INTERNAL",+ "value" : "1"+ },+ {+ "name" : "CMAKE_COMMAND",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to CMake executable."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake"+ },+ {+ "name" : "CMAKE_CPACK_COMMAND",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to cpack program executable."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cpack"+ },+ {+ "name" : "CMAKE_CTEST_COMMAND",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to ctest program executable."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ctest"+ },+ {+ "name" : "CMAKE_CXX_COMPILER_AR",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "LLVM archiver"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar"+ },+ {+ "name" : "CMAKE_CXX_COMPILER_RANLIB",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Generate index for LLVM archive"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib"+ },+ {+ "name" : "CMAKE_CXX_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during all build types."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_CXX_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during debug builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_CXX_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the CXX compiler during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : "-Os -DNDEBUG"+ },+ {+ "name" : "CMAKE_CXX_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during release builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_CXX_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the CXX compiler during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : "-O2 -g -DNDEBUG"+ },+ {+ "name" : "CMAKE_CXX_STANDARD_LIBRARIES",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Libraries linked by default with all C++ applications."+ }+ ],+ "type" : "STRING",+ "value" : "-latomic -lm"+ },+ {+ "name" : "CMAKE_C_COMPILER_AR",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "LLVM archiver"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar"+ },+ {+ "name" : "CMAKE_C_COMPILER_RANLIB",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Generate index for LLVM archive"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib"+ },+ {+ "name" : "CMAKE_C_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during all build types."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_C_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during debug builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_C_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the C compiler during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : "-Os -DNDEBUG"+ },+ {+ "name" : "CMAKE_C_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during release builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the C compiler during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : "-O2 -g -DNDEBUG"+ },+ {+ "name" : "CMAKE_C_STANDARD_LIBRARIES",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Libraries linked by default with all C applications."+ }+ ],+ "type" : "STRING",+ "value" : "-latomic -lm"+ },+ {+ "name" : "CMAKE_DLLTOOL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-dlltool"+ },+ {+ "name" : "CMAKE_EDIT_COMMAND",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to cache edit program executable."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ccmake"+ },+ {+ "name" : "CMAKE_EXECUTABLE_FORMAT",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Executable file format"+ }+ ],+ "type" : "INTERNAL",+ "value" : "ELF"+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during DEBUG builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during RELEASE builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXPORT_COMPILE_COMMANDS",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "ON"+ },+ {+ "name" : "CMAKE_EXTRA_GENERATOR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Name of external makefile project generator."+ }+ ],+ "type" : "INTERNAL",+ "value" : ""+ },+ {+ "name" : "CMAKE_GENERATOR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Name of generator."+ }+ ],+ "type" : "INTERNAL",+ "value" : "Ninja"+ },+ {+ "name" : "CMAKE_GENERATOR_INSTANCE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Generator instance identifier."+ }+ ],+ "type" : "INTERNAL",+ "value" : ""+ },+ {+ "name" : "CMAKE_GENERATOR_PLATFORM",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Name of generator platform."+ }+ ],+ "type" : "INTERNAL",+ "value" : ""+ },+ {+ "name" : "CMAKE_GENERATOR_TOOLSET",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Name of generator toolset."+ }+ ],+ "type" : "INTERNAL",+ "value" : ""+ },+ {+ "name" : "CMAKE_HOME_DIRECTORY",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Source directory with the top level CMakeLists.txt file for this project"+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp"+ },+ {+ "name" : "CMAKE_INSTALL_PREFIX",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Install path prefix, prepended onto install directories."+ }+ ],+ "type" : "PATH",+ "value" : "/usr/local"+ },+ {+ "name" : "CMAKE_INSTALL_SO_NO_EXE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Install .so files without execute permission."+ }+ ],+ "type" : "INTERNAL",+ "value" : "0"+ },+ {+ "name" : "CMAKE_LIBRARY_OUTPUT_DIRECTORY",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a"+ },+ {+ "name" : "CMAKE_LINKER",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld"+ },+ {+ "name" : "CMAKE_MAKE_PROGRAM",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja"+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules during DEBUG builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules during RELEASE builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_NM",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-nm"+ },+ {+ "name" : "CMAKE_NUMBER_OF_MAKEFILES",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "number of local generators"+ }+ ],+ "type" : "INTERNAL",+ "value" : "1"+ },+ {+ "name" : "CMAKE_OBJCOPY",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objcopy"+ },+ {+ "name" : "CMAKE_OBJDUMP",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump"+ },+ {+ "name" : "CMAKE_PLATFORM_INFO_INITIALIZED",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Platform information initialized"+ }+ ],+ "type" : "INTERNAL",+ "value" : "1"+ },+ {+ "name" : "CMAKE_PROJECT_DESCRIPTION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : ""+ },+ {+ "name" : "CMAKE_PROJECT_HOMEPAGE_URL",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : ""+ },+ {+ "name" : "CMAKE_PROJECT_NAME",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : "spotstretch"+ },+ {+ "name" : "CMAKE_RANLIB",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Ranlib"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib"+ },+ {+ "name" : "CMAKE_READELF",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-readelf"+ },+ {+ "name" : "CMAKE_ROOT",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to CMake installation."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22"+ },+ {+ "name" : "CMAKE_RUNTIME_OUTPUT_DIRECTORY",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a"+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of dll's."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SKIP_INSTALL_RPATH",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building."+ }+ ],+ "type" : "BOOL",+ "value" : "NO"+ },+ {+ "name" : "CMAKE_SKIP_RPATH",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "If set, runtime paths are not added when using shared libraries."+ }+ ],+ "type" : "BOOL",+ "value" : "NO"+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during all build types."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STRIP",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Strip"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip"+ },+ {+ "name" : "CMAKE_SYSTEM_NAME",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "Android"+ },+ {+ "name" : "CMAKE_SYSTEM_VERSION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "26"+ },+ {+ "name" : "CMAKE_TOOLCHAIN_FILE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "The CMake toolchain file"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake"+ },+ {+ "name" : "CMAKE_UNAME",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "uname command"+ }+ ],+ "type" : "INTERNAL",+ "value" : "/usr/bin/uname"+ },+ {+ "name" : "CMAKE_VERBOSE_MAKEFILE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo."+ }+ ],+ "type" : "BOOL",+ "value" : "FALSE"+ },+ {+ "name" : "spotstretch_BINARY_DIR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a"+ },+ {+ "name" : "spotstretch_IS_TOP_LEVEL",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : "ON"+ },+ {+ "name" : "spotstretch_SOURCE_DIR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp"+ }+ ],+ "kind" : "cache",+ "version" :+ {+ "major" : 2,+ "minor" : 0+ }+}diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/cmakeFiles-v1-cb8c83e1b5fd989ec37f.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/cmakeFiles-v1-cb8c83e1b5fd989ec37f.jsonnew file mode 100644index 0000000..bc5e9a5--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/cmakeFiles-v1-cb8c83e1b5fd989ec37f.json@@ -0,0 +1,803 @@+{+ "inputs" :+ [+ {+ "path" : "CMakeLists.txt"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android-legacy.toolchain.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/abis.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/platforms.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Determine.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystem.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Initialize.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Initialize.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-CXX.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android/Determine-Compiler.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Determine-Compiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-FindBinUtils.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-C.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android/Determine-Compiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-FindBinUtils.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompiler.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeGenericSystem.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Linux.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/UnixPaths.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-CXX.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-CXX.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Clang.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/flags.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-C.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-C.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompiler.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake"+ }+ ],+ "kind" : "cmakeFiles",+ "paths" :+ {+ "build" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "source" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp"+ },+ "version" :+ {+ "major" : 1,+ "minor" : 0+ }+}diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-f30f0e5f1d43254846ed.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-f30f0e5f1d43254846ed.jsonnew file mode 100644index 0000000..4bfd853--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-f30f0e5f1d43254846ed.json@@ -0,0 +1,69 @@+{+ "configurations" :+ [+ {+ "directories" :+ [+ {+ "build" : ".",+ "jsonFile" : "directory-.-RelWithDebInfo-f5ebdc15457944623624.json",+ "minimumCMakeVersion" :+ {+ "string" : "3.10.0"+ },+ "projectIndex" : 0,+ "source" : ".",+ "targetIndexes" :+ [+ 0,+ 1+ ]+ }+ ],+ "name" : "RelWithDebInfo",+ "projects" :+ [+ {+ "directoryIndexes" :+ [+ 0+ ],+ "name" : "spotstretch",+ "targetIndexes" :+ [+ 0,+ 1+ ]+ }+ ],+ "targets" :+ [+ {+ "directoryIndex" : 0,+ "id" : "pffft::@6890427a1f51a3e7e1df",+ "jsonFile" : "target-pffft-RelWithDebInfo-d5df56b99e7204590652.json",+ "name" : "pffft",+ "projectIndex" : 0+ },+ {+ "directoryIndex" : 0,+ "id" : "spotstretch::@6890427a1f51a3e7e1df",+ "jsonFile" : "target-spotstretch-RelWithDebInfo-2c2ecf6f2474fa2c1df3.json",+ "name" : "spotstretch",+ "projectIndex" : 0+ }+ ]+ }+ ],+ "kind" : "codemodel",+ "paths" :+ {+ "build" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "source" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp"+ },+ "version" :+ {+ "major" : 2,+ "minor" : 3+ }+}diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/directory-.-RelWithDebInfo-f5ebdc15457944623624.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/directory-.-RelWithDebInfo-f5ebdc15457944623624.jsonnew file mode 100644index 0000000..3a67af9--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/directory-.-RelWithDebInfo-f5ebdc15457944623624.json@@ -0,0 +1,14 @@+{+ "backtraceGraph" :+ {+ "commands" : [],+ "files" : [],+ "nodes" : []+ },+ "installers" : [],+ "paths" :+ {+ "build" : ".",+ "source" : "."+ }+}diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/index-2026-08-03T16-09-16-0633.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/index-2026-08-03T16-09-16-0633.jsonnew file mode 100644index 0000000..a45aef5--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/index-2026-08-03T16-09-16-0633.json@@ -0,0 +1,92 @@+{+ "cmake" :+ {+ "generator" :+ {+ "multiConfig" : false,+ "name" : "Ninja"+ },+ "paths" :+ {+ "cmake" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake",+ "cpack" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cpack",+ "ctest" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ctest",+ "root" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22"+ },+ "version" :+ {+ "isDirty" : false,+ "major" : 3,+ "minor" : 22,+ "patch" : 1,+ "string" : "3.22.1-g37088a8",+ "suffix" : "g37088a8"+ }+ },+ "objects" :+ [+ {+ "jsonFile" : "codemodel-v2-f30f0e5f1d43254846ed.json",+ "kind" : "codemodel",+ "version" :+ {+ "major" : 2,+ "minor" : 3+ }+ },+ {+ "jsonFile" : "cache-v2-48bae30fe48aa8787e3a.json",+ "kind" : "cache",+ "version" :+ {+ "major" : 2,+ "minor" : 0+ }+ },+ {+ "jsonFile" : "cmakeFiles-v1-cb8c83e1b5fd989ec37f.json",+ "kind" : "cmakeFiles",+ "version" :+ {+ "major" : 1,+ "minor" : 0+ }+ }+ ],+ "reply" :+ {+ "client-agp" :+ {+ "cache-v2" :+ {+ "jsonFile" : "cache-v2-48bae30fe48aa8787e3a.json",+ "kind" : "cache",+ "version" :+ {+ "major" : 2,+ "minor" : 0+ }+ },+ "cmakeFiles-v1" :+ {+ "jsonFile" : "cmakeFiles-v1-cb8c83e1b5fd989ec37f.json",+ "kind" : "cmakeFiles",+ "version" :+ {+ "major" : 1,+ "minor" : 0+ }+ },+ "codemodel-v2" :+ {+ "jsonFile" : "codemodel-v2-f30f0e5f1d43254846ed.json",+ "kind" : "codemodel",+ "version" :+ {+ "major" : 2,+ "minor" : 3+ }+ }+ }+ }+}diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/target-pffft-RelWithDebInfo-d5df56b99e7204590652.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/target-pffft-RelWithDebInfo-d5df56b99e7204590652.jsonnew file mode 100644index 0000000..a89ee19--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/target-pffft-RelWithDebInfo-d5df56b99e7204590652.json@@ -0,0 +1,108 @@+{+ "archive" : {},+ "artifacts" :+ [+ {+ "path" : "libpffft.a"+ }+ ],+ "backtrace" : 1,+ "backtraceGraph" :+ {+ "commands" :+ [+ "add_library",+ "target_compile_options"+ ],+ "files" :+ [+ "CMakeLists.txt"+ ],+ "nodes" :+ [+ {+ "file" : 0+ },+ {+ "command" : 0,+ "file" : 0,+ "line" : 27,+ "parent" : 0+ },+ {+ "command" : 1,+ "file" : 0,+ "line" : 30,+ "parent" : 0+ }+ ]+ },+ "compileGroups" :+ [+ {+ "compileCommandFragments" :+ [+ {+ "fragment" : "-g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC"+ },+ {+ "backtrace" : 2,+ "fragment" : "-ffast-math"+ },+ {+ "backtrace" : 2,+ "fragment" : "-fno-finite-math-only"+ },+ {+ "backtrace" : 2,+ "fragment" : "-fno-exceptions"+ }+ ],+ "language" : "C",+ "sourceIndexes" :+ [+ 0,+ 1+ ],+ "sysroot" :+ {+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot"+ }+ }+ ],+ "id" : "pffft::@6890427a1f51a3e7e1df",+ "name" : "pffft",+ "nameOnDisk" : "libpffft.a",+ "paths" :+ {+ "build" : ".",+ "source" : "."+ },+ "sourceGroups" :+ [+ {+ "name" : "Source Files",+ "sourceIndexes" :+ [+ 0,+ 1+ ]+ }+ ],+ "sources" :+ [+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/pffft.c",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/fftpack.c",+ "sourceGroupIndex" : 0+ }+ ],+ "type" : "STATIC_LIBRARY"+}diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/target-spotstretch-RelWithDebInfo-2c2ecf6f2474fa2c1df3.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/target-spotstretch-RelWithDebInfo-2c2ecf6f2474fa2c1df3.jsonnew file mode 100644index 0000000..c41a432--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.cmake/api/v1/reply/target-spotstretch-RelWithDebInfo-2c2ecf6f2474fa2c1df3.json@@ -0,0 +1,293 @@+{+ "artifacts" :+ [+ {+ "path" : "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so"+ }+ ],+ "backtrace" : 1,+ "backtraceGraph" :+ {+ "commands" :+ [+ "add_library",+ "target_link_libraries",+ "target_compile_definitions",+ "target_include_directories"+ ],+ "files" :+ [+ "CMakeLists.txt"+ ],+ "nodes" :+ [+ {+ "file" : 0+ },+ {+ "command" : 0,+ "file" : 0,+ "line" : 34,+ "parent" : 0+ },+ {+ "command" : 1,+ "file" : 0,+ "line" : 48,+ "parent" : 0+ },+ {+ "command" : 2,+ "file" : 0,+ "line" : 43,+ "parent" : 0+ },+ {+ "command" : 3,+ "file" : 0,+ "line" : 36,+ "parent" : 0+ }+ ]+ },+ "compileGroups" :+ [+ {+ "compileCommandFragments" :+ [+ {+ "fragment" : "-g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC"+ },+ {+ "fragment" : "-std=gnu++20"+ }+ ],+ "defines" :+ [+ {+ "backtrace" : 3,+ "define" : "BUNGEE_SELF_TEST=0"+ },+ {+ "backtrace" : 3,+ "define" : "BUNGEE_VERSION=\"\""+ },+ {+ "backtrace" : 3,+ "define" : "eigen_assert=BUNGEE_ASSERT1"+ },+ {+ "define" : "spotstretch_EXPORTS"+ }+ ],+ "includes" :+ [+ {+ "backtrace" : 4,+ "path" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee"+ },+ {+ "backtrace" : 4,+ "path" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules"+ },+ {+ "backtrace" : 4,+ "path" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ }+ ],+ "language" : "CXX",+ "languageStandard" :+ {+ "backtraces" :+ [+ 1+ ],+ "standard" : "20"+ },+ "sourceIndexes" :+ [+ 0,+ 1,+ 2,+ 3,+ 4,+ 5,+ 6,+ 7,+ 8,+ 9,+ 10,+ 11,+ 12,+ 13,+ 14+ ],+ "sysroot" :+ {+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot"+ }+ }+ ],+ "dependencies" :+ [+ {+ "backtrace" : 2,+ "id" : "pffft::@6890427a1f51a3e7e1df"+ }+ ],+ "id" : "spotstretch::@6890427a1f51a3e7e1df",+ "link" :+ {+ "commandFragments" :+ [+ {+ "fragment" : "-static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections",+ "role" : "flags"+ },+ {+ "backtrace" : 2,+ "fragment" : "libpffft.a",+ "role" : "libraries"+ },+ {+ "backtrace" : 2,+ "fragment" : "-llog",+ "role" : "libraries"+ },+ {+ "fragment" : "-latomic -lm",+ "role" : "libraries"+ }+ ],+ "language" : "CXX",+ "sysroot" :+ {+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot"+ }+ },+ "name" : "spotstretch",+ "nameOnDisk" : "libspotstretch.so",+ "paths" :+ {+ "build" : ".",+ "source" : "."+ },+ "sourceGroups" :+ [+ {+ "name" : "Source Files",+ "sourceIndexes" :+ [+ 0,+ 1,+ 2,+ 3,+ 4,+ 5,+ 6,+ 7,+ 8,+ 9,+ 10,+ 11,+ 12,+ 13,+ 14+ ]+ }+ ],+ "sources" :+ [+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "stretch.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Assert.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Fourier.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grain.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grains.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Input.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Instrumentation.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Output.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Partials.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretch.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretcher.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Synthesis.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Timing.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Window.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/version.cpp",+ "sourceGroupIndex" : 0+ }+ ],+ "type" : "SHARED_LIBRARY"+}diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.ninja_deps b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.ninja_depsnew file mode 100644index 0000000..c6b3ca4Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.ninja_deps differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.ninja_log b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.ninja_lognew file mode 100644index 0000000..24d04c1--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/.ninja_log@@ -0,0 +1,20 @@+# ninja log v5+1 6108 1785773363518118823 CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o 68027d55983c9452+6 8361 1785773365767977939 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o 2e43e821b2ea564f+4 8958 1785773366363100972 CMakeFiles/spotstretch.dir/stretch.cpp.o 35fdbfe44e943e6d+19 13094 1785773370438896888 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o ca0bf9b97430432+2 14033 1785773371410251419 CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o 1ed7c45bc139e184+14033 14390 1785773371816382000 libpffft.a bb4a5d4a7112ab6c+9 15208 1785773372603400257 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o a49204e9a94980f6+16 15749 1785773373107359481 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o b98296741c3c4db3+15749 15865 1785773373286676427 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o b0c4d88be304141d+17 16590 1785773373982881131 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o a90ce43bedb78bc+14 17826 1785773375209796532 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o bc604516fb55c553+23 17980 1785773375366949909 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o 19d6700aa5fb07ac+6110 18778 1785773376177459288 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o a4762c12adda1f18+8376 19452 1785773376833967086 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o f8b38af35eccf477+13097 22143 1785773379542778693 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o 5c1bc5bb7ba12524+14390 22481 1785773379885510912 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o 1669617b26cd26e7+15208 22893 1785773380298490396 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o dd368edb0bc1de1b+8959 23022 1785773380420747736 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o 49b0e10753e7a2eb+23022 23431 1785773380826438992 /Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so 3901b8ff6dba64acdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeCache.txt b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeCache.txtnew file mode 100644index 0000000..2ed3bb0--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeCache.txt@@ -0,0 +1,395 @@+# This is the CMakeCache file.+# For build in directory: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a+# It was generated by CMake: /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake+# You can edit this file to change values found and used by cmake.+# If you do not want to change any of the values, simply exit the editor.+# If you do want to change a value, simply edit, save, and exit the editor.+# The syntax for the file is as follows:+# KEY:TYPE=VALUE+# KEY is the name of a variable in the cache.+# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.+# VALUE is the current value for the KEY.++########################+# EXTERNAL cache entries+########################++//No help, variable specified on the command line.+ANDROID_ABI:UNINITIALIZED=arm64-v8a++//No help, variable specified on the command line.+ANDROID_NDK:UNINITIALIZED=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358++//No help, variable specified on the command line.+ANDROID_PLATFORM:UNINITIALIZED=android-26++//Path to a program.+CMAKE_ADDR2LINE:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-addr2line++//No help, variable specified on the command line.+CMAKE_ANDROID_ARCH_ABI:UNINITIALIZED=arm64-v8a++//No help, variable specified on the command line.+CMAKE_ANDROID_NDK:UNINITIALIZED=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358++//Archiver+CMAKE_AR:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar++//Flags used by the compiler during all build types.+CMAKE_ASM_FLAGS:STRING=++//Flags used by the compiler during debug builds.+CMAKE_ASM_FLAGS_DEBUG:STRING=++//Flags used by the compiler during release builds.+CMAKE_ASM_FLAGS_RELEASE:STRING=++//Choose the type of build, options are: None Debug Release RelWithDebInfo+// MinSizeRel ...+CMAKE_BUILD_TYPE:STRING=RelWithDebInfo++//LLVM archiver+CMAKE_CXX_COMPILER_AR:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar++//Generate index for LLVM archive+CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib++//Flags used by the compiler during all build types.+CMAKE_CXX_FLAGS:STRING=++//Flags used by the compiler during debug builds.+CMAKE_CXX_FLAGS_DEBUG:STRING=++//Flags used by the CXX compiler during MINSIZEREL builds.+CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG++//Flags used by the compiler during release builds.+CMAKE_CXX_FLAGS_RELEASE:STRING=++//Flags used by the CXX compiler during RELWITHDEBINFO builds.+CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG++//Libraries linked by default with all C++ applications.+CMAKE_CXX_STANDARD_LIBRARIES:STRING=-latomic -lm++//LLVM archiver+CMAKE_C_COMPILER_AR:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar++//Generate index for LLVM archive+CMAKE_C_COMPILER_RANLIB:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib++//Flags used by the compiler during all build types.+CMAKE_C_FLAGS:STRING=++//Flags used by the compiler during debug builds.+CMAKE_C_FLAGS_DEBUG:STRING=++//Flags used by the C compiler during MINSIZEREL builds.+CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG++//Flags used by the compiler during release builds.+CMAKE_C_FLAGS_RELEASE:STRING=++//Flags used by the C compiler during RELWITHDEBINFO builds.+CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG++//Libraries linked by default with all C applications.+CMAKE_C_STANDARD_LIBRARIES:STRING=-latomic -lm++//Path to a program.+CMAKE_DLLTOOL:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-dlltool++//Flags used by the linker.+CMAKE_EXE_LINKER_FLAGS:STRING=++//Flags used by the linker during DEBUG builds.+CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=++//Flags used by the linker during MINSIZEREL builds.+CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=++//Flags used by the linker during RELEASE builds.+CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=++//Flags used by the linker during RELWITHDEBINFO builds.+CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=++//No help, variable specified on the command line.+CMAKE_EXPORT_COMPILE_COMMANDS:UNINITIALIZED=ON++//Install path prefix, prepended onto install directories.+CMAKE_INSTALL_PREFIX:PATH=/usr/local++//No help, variable specified on the command line.+CMAKE_LIBRARY_OUTPUT_DIRECTORY:UNINITIALIZED=/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a++//Path to a program.+CMAKE_LINKER:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld++//No help, variable specified on the command line.+CMAKE_MAKE_PROGRAM:UNINITIALIZED=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja++//Flags used by the linker during the creation of modules.+CMAKE_MODULE_LINKER_FLAGS:STRING=++//Flags used by the linker during the creation of modules during+// DEBUG builds.+CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=++//Flags used by the linker during the creation of modules during+// MINSIZEREL builds.+CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=++//Flags used by the linker during the creation of modules during+// RELEASE builds.+CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=++//Flags used by the linker during the creation of modules during+// RELWITHDEBINFO builds.+CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=++//Path to a program.+CMAKE_NM:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-nm++//Path to a program.+CMAKE_OBJCOPY:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objcopy++//Path to a program.+CMAKE_OBJDUMP:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump++//Value Computed by CMake+CMAKE_PROJECT_DESCRIPTION:STATIC=++//Value Computed by CMake+CMAKE_PROJECT_HOMEPAGE_URL:STATIC=++//Value Computed by CMake+CMAKE_PROJECT_NAME:STATIC=spotstretch++//Ranlib+CMAKE_RANLIB:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib++//Path to a program.+CMAKE_READELF:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-readelf++//No help, variable specified on the command line.+CMAKE_RUNTIME_OUTPUT_DIRECTORY:UNINITIALIZED=/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a++//Flags used by the linker during the creation of dll's.+CMAKE_SHARED_LINKER_FLAGS:STRING=++//Flags used by the linker during the creation of shared libraries+// during DEBUG builds.+CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=++//Flags used by the linker during the creation of shared libraries+// during MINSIZEREL builds.+CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=++//Flags used by the linker during the creation of shared libraries+// during RELEASE builds.+CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=++//Flags used by the linker during the creation of shared libraries+// during RELWITHDEBINFO builds.+CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=++//If set, runtime paths are not added when installing shared libraries,+// but are added when building.+CMAKE_SKIP_INSTALL_RPATH:BOOL=NO++//If set, runtime paths are not added when using shared libraries.+CMAKE_SKIP_RPATH:BOOL=NO++//Flags used by the linker during the creation of static libraries+// during all build types.+CMAKE_STATIC_LINKER_FLAGS:STRING=++//Flags used by the linker during the creation of static libraries+// during DEBUG builds.+CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=++//Flags used by the linker during the creation of static libraries+// during MINSIZEREL builds.+CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=++//Flags used by the linker during the creation of static libraries+// during RELEASE builds.+CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=++//Flags used by the linker during the creation of static libraries+// during RELWITHDEBINFO builds.+CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=++//Strip+CMAKE_STRIP:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip++//No help, variable specified on the command line.+CMAKE_SYSTEM_NAME:UNINITIALIZED=Android++//No help, variable specified on the command line.+CMAKE_SYSTEM_VERSION:UNINITIALIZED=26++//The CMake toolchain file+CMAKE_TOOLCHAIN_FILE:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake++//If this value is on, makefiles will be generated without the+// .SILENT directive, and all commands will be echoed to the console+// during the make. This is useful for debugging only. With Visual+// Studio IDE projects all commands are done without /nologo.+CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE++//Value Computed by CMake+spotstretch_BINARY_DIR:STATIC=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a++//Value Computed by CMake+spotstretch_IS_TOP_LEVEL:STATIC=ON++//Value Computed by CMake+spotstretch_SOURCE_DIR:STATIC=/Users/emanuele/Progetto Spotify/app/src/main/cpp+++########################+# INTERNAL cache entries+########################++//ADVANCED property for variable: CMAKE_ADDR2LINE+CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_AR+CMAKE_AR-ADVANCED:INTERNAL=1+//This is the directory where this CMakeCache.txt was created+CMAKE_CACHEFILE_DIR:INTERNAL=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a+//Major version of cmake used to create the current loaded cache+CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3+//Minor version of cmake used to create the current loaded cache+CMAKE_CACHE_MINOR_VERSION:INTERNAL=22+//Patch version of cmake used to create the current loaded cache+CMAKE_CACHE_PATCH_VERSION:INTERNAL=1+//Path to CMake executable.+CMAKE_COMMAND:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake+//Path to cpack program executable.+CMAKE_CPACK_COMMAND:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cpack+//Path to ctest program executable.+CMAKE_CTEST_COMMAND:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ctest+//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR+CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB+CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS+CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG+CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL+CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE+CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO+CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES+CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_COMPILER_AR+CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB+CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS+CMAKE_C_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG+CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL+CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE+CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO+CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES+CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_DLLTOOL+CMAKE_DLLTOOL-ADVANCED:INTERNAL=1+//Path to cache edit program executable.+CMAKE_EDIT_COMMAND:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ccmake+//Executable file format+CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS+CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG+CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL+CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE+CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO+CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//Name of external makefile project generator.+CMAKE_EXTRA_GENERATOR:INTERNAL=+//Name of generator.+CMAKE_GENERATOR:INTERNAL=Ninja+//Generator instance identifier.+CMAKE_GENERATOR_INSTANCE:INTERNAL=+//Name of generator platform.+CMAKE_GENERATOR_PLATFORM:INTERNAL=+//Name of generator toolset.+CMAKE_GENERATOR_TOOLSET:INTERNAL=+//Source directory with the top level CMakeLists.txt file for this+// project+CMAKE_HOME_DIRECTORY:INTERNAL=/Users/emanuele/Progetto Spotify/app/src/main/cpp+//Install .so files without execute permission.+CMAKE_INSTALL_SO_NO_EXE:INTERNAL=0+//ADVANCED property for variable: CMAKE_LINKER+CMAKE_LINKER-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS+CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG+CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL+CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE+CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO+CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_NM+CMAKE_NM-ADVANCED:INTERNAL=1+//number of local generators+CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1+//ADVANCED property for variable: CMAKE_OBJCOPY+CMAKE_OBJCOPY-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_OBJDUMP+CMAKE_OBJDUMP-ADVANCED:INTERNAL=1+//Platform information initialized+CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1+//ADVANCED property for variable: CMAKE_RANLIB+CMAKE_RANLIB-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_READELF+CMAKE_READELF-ADVANCED:INTERNAL=1+//Path to CMake installation.+CMAKE_ROOT:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS+CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG+CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL+CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE+CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO+CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH+CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SKIP_RPATH+CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS+CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG+CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL+CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE+CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO+CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STRIP+CMAKE_STRIP-ADVANCED:INTERNAL=1+//uname command+CMAKE_UNAME:INTERNAL=/usr/bin/uname+//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE+CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1+diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmakenew file mode 100644index 0000000..d276e52--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake@@ -0,0 +1,72 @@+set(CMAKE_C_COMPILER "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang")+set(CMAKE_C_COMPILER_ARG1 "")+set(CMAKE_C_COMPILER_ID "Clang")+set(CMAKE_C_COMPILER_VERSION "19.0.1")+set(CMAKE_C_COMPILER_VERSION_INTERNAL "")+set(CMAKE_C_COMPILER_WRAPPER "")+set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17")+set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "ON")+set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23")+set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")+set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")+set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")+set(CMAKE_C17_COMPILE_FEATURES "c_std_17")+set(CMAKE_C23_COMPILE_FEATURES "c_std_23")++set(CMAKE_C_PLATFORM_ID "Linux")+set(CMAKE_C_SIMULATE_ID "")+set(CMAKE_C_COMPILER_FRONTEND_VARIANT "GNU")+set(CMAKE_C_SIMULATE_VERSION "")+++++set(CMAKE_AR "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar")+set(CMAKE_C_COMPILER_AR "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar")+set(CMAKE_RANLIB "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib")+set(CMAKE_C_COMPILER_RANLIB "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib")+set(CMAKE_LINKER "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld")+set(CMAKE_MT "")+set(CMAKE_COMPILER_IS_GNUCC )+set(CMAKE_C_COMPILER_LOADED 1)+set(CMAKE_C_COMPILER_WORKS TRUE)+set(CMAKE_C_ABI_COMPILED TRUE)++set(CMAKE_C_COMPILER_ENV_VAR "CC")++set(CMAKE_C_COMPILER_ID_RUN 1)+set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)+set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)+set(CMAKE_C_LINKER_PREFERENCE 10)++# Save compiler ABI information.+set(CMAKE_C_SIZEOF_DATA_PTR "8")+set(CMAKE_C_COMPILER_ABI "ELF")+set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")+set(CMAKE_C_LIBRARY_ARCHITECTURE "")++if(CMAKE_C_SIZEOF_DATA_PTR)+ set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")+endif()++if(CMAKE_C_COMPILER_ABI)+ set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")+endif()++if(CMAKE_C_LIBRARY_ARCHITECTURE)+ set(CMAKE_LIBRARY_ARCHITECTURE "")+endif()++set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")+if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)+ set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")+endif()++++++set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include")+set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "-l:libunwind.a;dl;c;-l:libunwind.a;dl")+set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib")+set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmakenew file mode 100644index 0000000..2ee5c79--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake@@ -0,0 +1,83 @@+set(CMAKE_CXX_COMPILER "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++")+set(CMAKE_CXX_COMPILER_ARG1 "")+set(CMAKE_CXX_COMPILER_ID "Clang")+set(CMAKE_CXX_COMPILER_VERSION "19.0.1")+set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")+set(CMAKE_CXX_COMPILER_WRAPPER "")+set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "17")+set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "ON")+set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20;cxx_std_23")+set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")+set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")+set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")+set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")+set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")+set(CMAKE_CXX23_COMPILE_FEATURES "cxx_std_23")++set(CMAKE_CXX_PLATFORM_ID "Linux")+set(CMAKE_CXX_SIMULATE_ID "")+set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "GNU")+set(CMAKE_CXX_SIMULATE_VERSION "")+++++set(CMAKE_AR "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar")+set(CMAKE_CXX_COMPILER_AR "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar")+set(CMAKE_RANLIB "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib")+set(CMAKE_CXX_COMPILER_RANLIB "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib")+set(CMAKE_LINKER "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld")+set(CMAKE_MT "")+set(CMAKE_COMPILER_IS_GNUCXX )+set(CMAKE_CXX_COMPILER_LOADED 1)+set(CMAKE_CXX_COMPILER_WORKS TRUE)+set(CMAKE_CXX_ABI_COMPILED TRUE)++set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")++set(CMAKE_CXX_COMPILER_ID_RUN 1)+set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm)+set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)++foreach (lang C OBJC OBJCXX)+ if (CMAKE_${lang}_COMPILER_ID_RUN)+ foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)+ list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})+ endforeach()+ endif()+endforeach()++set(CMAKE_CXX_LINKER_PREFERENCE 30)+set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)++# Save compiler ABI information.+set(CMAKE_CXX_SIZEOF_DATA_PTR "8")+set(CMAKE_CXX_COMPILER_ABI "ELF")+set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")+set(CMAKE_CXX_LIBRARY_ARCHITECTURE "")++if(CMAKE_CXX_SIZEOF_DATA_PTR)+ set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")+endif()++if(CMAKE_CXX_COMPILER_ABI)+ set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")+endif()++if(CMAKE_CXX_LIBRARY_ARCHITECTURE)+ set(CMAKE_LIBRARY_ARCHITECTURE "")+endif()++set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")+if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)+ set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")+endif()++++++set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include")+set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "c++;m;-l:libunwind.a;dl;c;-l:libunwind.a;dl")+set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib")+set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.binnew file mode 100755index 0000000..e4161ccBinary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.binnew file mode 100755index 0000000..c65e626Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmakenew file mode 100644index 0000000..bcb3600--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake@@ -0,0 +1,15 @@+set(CMAKE_HOST_SYSTEM "Darwin-24.6.0")+set(CMAKE_HOST_SYSTEM_NAME "Darwin")+set(CMAKE_HOST_SYSTEM_VERSION "24.6.0")+set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")++include("/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake")++set(CMAKE_SYSTEM "Android-1")+set(CMAKE_SYSTEM_NAME "Android")+set(CMAKE_SYSTEM_VERSION "1")+set(CMAKE_SYSTEM_PROCESSOR "aarch64")++set(CMAKE_CROSSCOMPILING "TRUE")++set(CMAKE_SYSTEM_LOADED 1)diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.cnew file mode 100644index 0000000..41b99d7--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c@@ -0,0 +1,803 @@+#ifdef __cplusplus+# error "A C++ compiler has been selected for C."+#endif++#if defined(__18CXX)+# define ID_VOID_MAIN+#endif+#if defined(__CLASSIC_C__)+/* cv-qualifiers did not exist in K&R C */+# define const+# define volatile+#endif++#if !defined(__has_include)+/* If the compiler does not have __has_include, pretend the answer is+ always no. */+# define __has_include(x) 0+#endif+++/* Version number components: V=Version, R=Revision, P=Patch+ Version date components: YYYY=Year, MM=Month, DD=Day */++#if defined(__INTEL_COMPILER) || defined(__ICC)+# define COMPILER_ID "Intel"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# if defined(__GNUC__)+# define SIMULATE_ID "GNU"+# endif+ /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,+ except that a few beta releases use the old format with V=2021. */+# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111+# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)+# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)+# if defined(__INTEL_COMPILER_UPDATE)+# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)+# else+# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)+# endif+# else+# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)+# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)+ /* The third version component from --version is an update index,+ but no macro is provided for it. */+# define COMPILER_VERSION_PATCH DEC(0)+# endif+# if defined(__INTEL_COMPILER_BUILD_DATE)+ /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */+# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)+# endif+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif+# if defined(__GNUC__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)+# elif defined(__GNUG__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)+# endif+# if defined(__GNUC_MINOR__)+# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)+# endif+# if defined(__GNUC_PATCHLEVEL__)+# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+# endif++#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)+# define COMPILER_ID "IntelLLVM"+#if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+#endif+#if defined(__GNUC__)+# define SIMULATE_ID "GNU"+#endif+/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and+ * later. Look for 6 digit vs. 8 digit version number to decide encoding.+ * VVVV is no smaller than the current year when a version is released.+ */+#if __INTEL_LLVM_COMPILER < 1000000L+# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)+# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)+#else+# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)+# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)+# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)+#endif+#if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+#endif+#if defined(__GNUC__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)+#elif defined(__GNUG__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)+#endif+#if defined(__GNUC_MINOR__)+# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)+#endif+#if defined(__GNUC_PATCHLEVEL__)+# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+#endif++#elif defined(__PATHCC__)+# define COMPILER_ID "PathScale"+# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)+# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)+# if defined(__PATHCC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)+# endif++#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)+# define COMPILER_ID "Embarcadero"+# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)+# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)+# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)++#elif defined(__BORLANDC__)+# define COMPILER_ID "Borland"+ /* __BORLANDC__ = 0xVRR */+# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)+# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)++#elif defined(__WATCOMC__) && __WATCOMC__ < 1200+# define COMPILER_ID "Watcom"+ /* __WATCOMC__ = VVRR */+# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)+# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)+# if (__WATCOMC__ % 10) > 0+# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)+# endif++#elif defined(__WATCOMC__)+# define COMPILER_ID "OpenWatcom"+ /* __WATCOMC__ = VVRP + 1100 */+# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)+# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)+# if (__WATCOMC__ % 10) > 0+# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)+# endif++#elif defined(__SUNPRO_C)+# define COMPILER_ID "SunPro"+# if __SUNPRO_C >= 0x5100+ /* __SUNPRO_C = 0xVRRP */+# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)+# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)+# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)+# else+ /* __SUNPRO_CC = 0xVRP */+# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)+# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)+# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)+# endif++#elif defined(__HP_cc)+# define COMPILER_ID "HP"+ /* __HP_cc = VVRRPP */+# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)+# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)+# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)++#elif defined(__DECC)+# define COMPILER_ID "Compaq"+ /* __DECC_VER = VVRRTPPPP */+# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)+# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)+# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)++#elif defined(__IBMC__) && defined(__COMPILER_VER__)+# define COMPILER_ID "zOS"+ /* __IBMC__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)++#elif defined(__ibmxl__) && defined(__clang__)+# define COMPILER_ID "XLClang"+# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)+# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)+# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)+# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)+++#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800+# define COMPILER_ID "XL"+ /* __IBMC__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)++#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800+# define COMPILER_ID "VisualAge"+ /* __IBMC__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)++#elif defined(__NVCOMPILER)+# define COMPILER_ID "NVHPC"+# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)+# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)+# if defined(__NVCOMPILER_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)+# endif++#elif defined(__PGI)+# define COMPILER_ID "PGI"+# define COMPILER_VERSION_MAJOR DEC(__PGIC__)+# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)+# if defined(__PGIC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)+# endif++#elif defined(_CRAYC)+# define COMPILER_ID "Cray"+# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)+# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)++#elif defined(__TI_COMPILER_VERSION__)+# define COMPILER_ID "TI"+ /* __TI_COMPILER_VERSION__ = VVVRRRPPP */+# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)+# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)+# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)++#elif defined(__CLANG_FUJITSU)+# define COMPILER_ID "FujitsuClang"+# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)+# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)+# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)+# define COMPILER_VERSION_INTERNAL_STR __clang_version__+++#elif defined(__FUJITSU)+# define COMPILER_ID "Fujitsu"+# if defined(__FCC_version__)+# define COMPILER_VERSION __FCC_version__+# elif defined(__FCC_major__)+# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)+# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)+# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)+# endif+# if defined(__fcc_version)+# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)+# elif defined(__FCC_VERSION)+# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)+# endif+++#elif defined(__ghs__)+# define COMPILER_ID "GHS"+/* __GHS_VERSION_NUMBER = VVVVRP */+# ifdef __GHS_VERSION_NUMBER+# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)+# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)+# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)+# endif++#elif defined(__TINYC__)+# define COMPILER_ID "TinyCC"++#elif defined(__BCC__)+# define COMPILER_ID "Bruce"++#elif defined(__SCO_VERSION__)+# define COMPILER_ID "SCO"++#elif defined(__ARMCC_VERSION) && !defined(__clang__)+# define COMPILER_ID "ARMCC"+#if __ARMCC_VERSION >= 1000000+ /* __ARMCC_VERSION = VRRPPPP */+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)+#else+ /* __ARMCC_VERSION = VRPPPP */+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)+#endif+++#elif defined(__clang__) && defined(__apple_build_version__)+# define COMPILER_ID "AppleClang"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# define COMPILER_VERSION_MAJOR DEC(__clang_major__)+# define COMPILER_VERSION_MINOR DEC(__clang_minor__)+# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif+# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)++#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)+# define COMPILER_ID "ARMClang"+ # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)+ # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)+# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)++#elif defined(__clang__)+# define COMPILER_ID "Clang"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# define COMPILER_VERSION_MAJOR DEC(__clang_major__)+# define COMPILER_VERSION_MINOR DEC(__clang_minor__)+# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif++#elif defined(__GNUC__)+# define COMPILER_ID "GNU"+# define COMPILER_VERSION_MAJOR DEC(__GNUC__)+# if defined(__GNUC_MINOR__)+# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)+# endif+# if defined(__GNUC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+# endif++#elif defined(_MSC_VER)+# define COMPILER_ID "MSVC"+ /* _MSC_VER = VVRR */+# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)+# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)+# if defined(_MSC_FULL_VER)+# if _MSC_VER >= 1400+ /* _MSC_FULL_VER = VVRRPPPPP */+# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)+# else+ /* _MSC_FULL_VER = VVRRPPPP */+# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)+# endif+# endif+# if defined(_MSC_BUILD)+# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)+# endif++#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)+# define COMPILER_ID "ADSP"+#if defined(__VISUALDSPVERSION__)+ /* __VISUALDSPVERSION__ = 0xVVRRPP00 */+# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)+# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)+# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)+#endif++#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)+# define COMPILER_ID "IAR"+# if defined(__VER__) && defined(__ICCARM__)+# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)+# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)+# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)+# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)+# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))+# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)+# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))+# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)+# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)+# endif++#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)+# define COMPILER_ID "SDCC"+# if defined(__SDCC_VERSION_MAJOR)+# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR)+# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR)+# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH)+# else+ /* SDCC = VRP */+# define COMPILER_VERSION_MAJOR DEC(SDCC/100)+# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)+# define COMPILER_VERSION_PATCH DEC(SDCC % 10)+# endif+++/* These compilers are either not known or too old to define an+ identification macro. Try to identify the platform and guess that+ it is the native compiler. */+#elif defined(__hpux) || defined(__hpua)+# define COMPILER_ID "HP"++#else /* unknown compiler */+# define COMPILER_ID ""+#endif++/* Construct the string literal in pieces to prevent the source from+ getting matched. Store it in a pointer rather than an array+ because some compilers will just produce instructions to fill the+ array rather than assigning a pointer to a static array. */+char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";+#ifdef SIMULATE_ID+char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";+#endif++#ifdef __QNXNTO__+char const* qnxnto = "INFO" ":" "qnxnto[]";+#endif++#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)+char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";+#endif++#define STRINGIFY_HELPER(X) #X+#define STRINGIFY(X) STRINGIFY_HELPER(X)++/* Identify known platforms by name. */+#if defined(__linux) || defined(__linux__) || defined(linux)+# define PLATFORM_ID "Linux"++#elif defined(__MSYS__)+# define PLATFORM_ID "MSYS"++#elif defined(__CYGWIN__)+# define PLATFORM_ID "Cygwin"++#elif defined(__MINGW32__)+# define PLATFORM_ID "MinGW"++#elif defined(__APPLE__)+# define PLATFORM_ID "Darwin"++#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)+# define PLATFORM_ID "Windows"++#elif defined(__FreeBSD__) || defined(__FreeBSD)+# define PLATFORM_ID "FreeBSD"++#elif defined(__NetBSD__) || defined(__NetBSD)+# define PLATFORM_ID "NetBSD"++#elif defined(__OpenBSD__) || defined(__OPENBSD)+# define PLATFORM_ID "OpenBSD"++#elif defined(__sun) || defined(sun)+# define PLATFORM_ID "SunOS"++#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)+# define PLATFORM_ID "AIX"++#elif defined(__hpux) || defined(__hpux__)+# define PLATFORM_ID "HP-UX"++#elif defined(__HAIKU__)+# define PLATFORM_ID "Haiku"++#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)+# define PLATFORM_ID "BeOS"++#elif defined(__QNX__) || defined(__QNXNTO__)+# define PLATFORM_ID "QNX"++#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)+# define PLATFORM_ID "Tru64"++#elif defined(__riscos) || defined(__riscos__)+# define PLATFORM_ID "RISCos"++#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)+# define PLATFORM_ID "SINIX"++#elif defined(__UNIX_SV__)+# define PLATFORM_ID "UNIX_SV"++#elif defined(__bsdos__)+# define PLATFORM_ID "BSDOS"++#elif defined(_MPRAS) || defined(MPRAS)+# define PLATFORM_ID "MP-RAS"++#elif defined(__osf) || defined(__osf__)+# define PLATFORM_ID "OSF1"++#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)+# define PLATFORM_ID "SCO_SV"++#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)+# define PLATFORM_ID "ULTRIX"++#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)+# define PLATFORM_ID "Xenix"++#elif defined(__WATCOMC__)+# if defined(__LINUX__)+# define PLATFORM_ID "Linux"++# elif defined(__DOS__)+# define PLATFORM_ID "DOS"++# elif defined(__OS2__)+# define PLATFORM_ID "OS2"++# elif defined(__WINDOWS__)+# define PLATFORM_ID "Windows3x"++# elif defined(__VXWORKS__)+# define PLATFORM_ID "VxWorks"++# else /* unknown platform */+# define PLATFORM_ID+# endif++#elif defined(__INTEGRITY)+# if defined(INT_178B)+# define PLATFORM_ID "Integrity178"++# else /* regular Integrity */+# define PLATFORM_ID "Integrity"+# endif++#else /* unknown platform */+# define PLATFORM_ID++#endif++/* For windows compilers MSVC and Intel we can determine+ the architecture of the compiler being used. This is because+ the compilers do not have flags that can change the architecture,+ but rather depend on which compiler is being used+*/+#if defined(_WIN32) && defined(_MSC_VER)+# if defined(_M_IA64)+# define ARCHITECTURE_ID "IA64"++# elif defined(_M_ARM64EC)+# define ARCHITECTURE_ID "ARM64EC"++# elif defined(_M_X64) || defined(_M_AMD64)+# define ARCHITECTURE_ID "x64"++# elif defined(_M_IX86)+# define ARCHITECTURE_ID "X86"++# elif defined(_M_ARM64)+# define ARCHITECTURE_ID "ARM64"++# elif defined(_M_ARM)+# if _M_ARM == 4+# define ARCHITECTURE_ID "ARMV4I"+# elif _M_ARM == 5+# define ARCHITECTURE_ID "ARMV5I"+# else+# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)+# endif++# elif defined(_M_MIPS)+# define ARCHITECTURE_ID "MIPS"++# elif defined(_M_SH)+# define ARCHITECTURE_ID "SHx"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__WATCOMC__)+# if defined(_M_I86)+# define ARCHITECTURE_ID "I86"++# elif defined(_M_IX86)+# define ARCHITECTURE_ID "X86"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)+# if defined(__ICCARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__ICCRX__)+# define ARCHITECTURE_ID "RX"++# elif defined(__ICCRH850__)+# define ARCHITECTURE_ID "RH850"++# elif defined(__ICCRL78__)+# define ARCHITECTURE_ID "RL78"++# elif defined(__ICCRISCV__)+# define ARCHITECTURE_ID "RISCV"++# elif defined(__ICCAVR__)+# define ARCHITECTURE_ID "AVR"++# elif defined(__ICC430__)+# define ARCHITECTURE_ID "MSP430"++# elif defined(__ICCV850__)+# define ARCHITECTURE_ID "V850"++# elif defined(__ICC8051__)+# define ARCHITECTURE_ID "8051"++# elif defined(__ICCSTM8__)+# define ARCHITECTURE_ID "STM8"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__ghs__)+# if defined(__PPC64__)+# define ARCHITECTURE_ID "PPC64"++# elif defined(__ppc__)+# define ARCHITECTURE_ID "PPC"++# elif defined(__ARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__x86_64__)+# define ARCHITECTURE_ID "x64"++# elif defined(__i386__)+# define ARCHITECTURE_ID "X86"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__TI_COMPILER_VERSION__)+# if defined(__TI_ARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__MSP430__)+# define ARCHITECTURE_ID "MSP430"++# elif defined(__TMS320C28XX__)+# define ARCHITECTURE_ID "TMS320C28x"++# elif defined(__TMS320C6X__) || defined(_TMS320C6X)+# define ARCHITECTURE_ID "TMS320C6x"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#else+# define ARCHITECTURE_ID+#endif++/* Convert integer to decimal digit literals. */+#define DEC(n) \+ ('0' + (((n) / 10000000)%10)), \+ ('0' + (((n) / 1000000)%10)), \+ ('0' + (((n) / 100000)%10)), \+ ('0' + (((n) / 10000)%10)), \+ ('0' + (((n) / 1000)%10)), \+ ('0' + (((n) / 100)%10)), \+ ('0' + (((n) / 10)%10)), \+ ('0' + ((n) % 10))++/* Convert integer to hex digit literals. */+#define HEX(n) \+ ('0' + ((n)>>28 & 0xF)), \+ ('0' + ((n)>>24 & 0xF)), \+ ('0' + ((n)>>20 & 0xF)), \+ ('0' + ((n)>>16 & 0xF)), \+ ('0' + ((n)>>12 & 0xF)), \+ ('0' + ((n)>>8 & 0xF)), \+ ('0' + ((n)>>4 & 0xF)), \+ ('0' + ((n) & 0xF))++/* Construct a string literal encoding the version number. */+#ifdef COMPILER_VERSION+char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";++/* Construct a string literal encoding the version number components. */+#elif defined(COMPILER_VERSION_MAJOR)+char const info_version[] = {+ 'I', 'N', 'F', 'O', ':',+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',+ COMPILER_VERSION_MAJOR,+# ifdef COMPILER_VERSION_MINOR+ '.', COMPILER_VERSION_MINOR,+# ifdef COMPILER_VERSION_PATCH+ '.', COMPILER_VERSION_PATCH,+# ifdef COMPILER_VERSION_TWEAK+ '.', COMPILER_VERSION_TWEAK,+# endif+# endif+# endif+ ']','\0'};+#endif++/* Construct a string literal encoding the internal version number. */+#ifdef COMPILER_VERSION_INTERNAL+char const info_version_internal[] = {+ 'I', 'N', 'F', 'O', ':',+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',+ 'i','n','t','e','r','n','a','l','[',+ COMPILER_VERSION_INTERNAL,']','\0'};+#elif defined(COMPILER_VERSION_INTERNAL_STR)+char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";+#endif++/* Construct a string literal encoding the version number components. */+#ifdef SIMULATE_VERSION_MAJOR+char const info_simulate_version[] = {+ 'I', 'N', 'F', 'O', ':',+ 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',+ SIMULATE_VERSION_MAJOR,+# ifdef SIMULATE_VERSION_MINOR+ '.', SIMULATE_VERSION_MINOR,+# ifdef SIMULATE_VERSION_PATCH+ '.', SIMULATE_VERSION_PATCH,+# ifdef SIMULATE_VERSION_TWEAK+ '.', SIMULATE_VERSION_TWEAK,+# endif+# endif+# endif+ ']','\0'};+#endif++/* Construct the string literal in pieces to prevent the source from+ getting matched. Store it in a pointer rather than an array+ because some compilers will just produce instructions to fill the+ array rather than assigning a pointer to a static array. */+char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";+char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";++++#if !defined(__STDC__) && !defined(__clang__)+# if defined(_MSC_VER) || defined(__ibmxl__) || defined(__IBMC__)+# define C_VERSION "90"+# else+# define C_VERSION+# endif+#elif __STDC_VERSION__ > 201710L+# define C_VERSION "23"+#elif __STDC_VERSION__ >= 201710L+# define C_VERSION "17"+#elif __STDC_VERSION__ >= 201000L+# define C_VERSION "11"+#elif __STDC_VERSION__ >= 199901L+# define C_VERSION "99"+#else+# define C_VERSION "90"+#endif+const char* info_language_standard_default =+ "INFO" ":" "standard_default[" C_VERSION "]";++const char* info_language_extensions_default = "INFO" ":" "extensions_default["+/* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */+#if (defined(__clang__) || defined(__GNUC__) || \+ defined(__TI_COMPILER_VERSION__)) && \+ !defined(__STRICT_ANSI__) && !defined(_MSC_VER)+ "ON"+#else+ "OFF"+#endif+"]";++/*--------------------------------------------------------------------------*/++#ifdef ID_VOID_MAIN+void main() {}+#else+# if defined(__CLASSIC_C__)+int main(argc, argv) int argc; char *argv[];+# else+int main(int argc, char* argv[])+# endif+{+ int require = 0;+ require += info_compiler[argc];+ require += info_platform[argc];+ require += info_arch[argc];+#ifdef COMPILER_VERSION_MAJOR+ require += info_version[argc];+#endif+#ifdef COMPILER_VERSION_INTERNAL+ require += info_version_internal[argc];+#endif+#ifdef SIMULATE_ID+ require += info_simulate[argc];+#endif+#ifdef SIMULATE_VERSION_MAJOR+ require += info_simulate_version[argc];+#endif+#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)+ require += info_cray[argc];+#endif+ require += info_language_standard_default[argc];+ require += info_language_extensions_default[argc];+ (void)argv;+ return require;+}+#endifdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.onew file mode 100644index 0000000..5011230Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cppnew file mode 100644index 0000000..25c62a8--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp@@ -0,0 +1,791 @@+/* This source file must have a .cpp extension so that all C++ compilers+ recognize the extension without flags. Borland does not know .cxx for+ example. */+#ifndef __cplusplus+# error "A C compiler has been selected for C++."+#endif++#if !defined(__has_include)+/* If the compiler does not have __has_include, pretend the answer is+ always no. */+# define __has_include(x) 0+#endif+++/* Version number components: V=Version, R=Revision, P=Patch+ Version date components: YYYY=Year, MM=Month, DD=Day */++#if defined(__COMO__)+# define COMPILER_ID "Comeau"+ /* __COMO_VERSION__ = VRR */+# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)+# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)++#elif defined(__INTEL_COMPILER) || defined(__ICC)+# define COMPILER_ID "Intel"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# if defined(__GNUC__)+# define SIMULATE_ID "GNU"+# endif+ /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,+ except that a few beta releases use the old format with V=2021. */+# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111+# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)+# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)+# if defined(__INTEL_COMPILER_UPDATE)+# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)+# else+# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)+# endif+# else+# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)+# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)+ /* The third version component from --version is an update index,+ but no macro is provided for it. */+# define COMPILER_VERSION_PATCH DEC(0)+# endif+# if defined(__INTEL_COMPILER_BUILD_DATE)+ /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */+# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)+# endif+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif+# if defined(__GNUC__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)+# elif defined(__GNUG__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)+# endif+# if defined(__GNUC_MINOR__)+# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)+# endif+# if defined(__GNUC_PATCHLEVEL__)+# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+# endif++#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)+# define COMPILER_ID "IntelLLVM"+#if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+#endif+#if defined(__GNUC__)+# define SIMULATE_ID "GNU"+#endif+/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and+ * later. Look for 6 digit vs. 8 digit version number to decide encoding.+ * VVVV is no smaller than the current year when a version is released.+ */+#if __INTEL_LLVM_COMPILER < 1000000L+# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)+# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)+#else+# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)+# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)+# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)+#endif+#if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+#endif+#if defined(__GNUC__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)+#elif defined(__GNUG__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)+#endif+#if defined(__GNUC_MINOR__)+# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)+#endif+#if defined(__GNUC_PATCHLEVEL__)+# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+#endif++#elif defined(__PATHCC__)+# define COMPILER_ID "PathScale"+# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)+# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)+# if defined(__PATHCC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)+# endif++#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)+# define COMPILER_ID "Embarcadero"+# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)+# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)+# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)++#elif defined(__BORLANDC__)+# define COMPILER_ID "Borland"+ /* __BORLANDC__ = 0xVRR */+# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)+# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)++#elif defined(__WATCOMC__) && __WATCOMC__ < 1200+# define COMPILER_ID "Watcom"+ /* __WATCOMC__ = VVRR */+# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)+# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)+# if (__WATCOMC__ % 10) > 0+# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)+# endif++#elif defined(__WATCOMC__)+# define COMPILER_ID "OpenWatcom"+ /* __WATCOMC__ = VVRP + 1100 */+# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)+# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)+# if (__WATCOMC__ % 10) > 0+# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)+# endif++#elif defined(__SUNPRO_CC)+# define COMPILER_ID "SunPro"+# if __SUNPRO_CC >= 0x5100+ /* __SUNPRO_CC = 0xVRRP */+# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)+# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)+# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)+# else+ /* __SUNPRO_CC = 0xVRP */+# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)+# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)+# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)+# endif++#elif defined(__HP_aCC)+# define COMPILER_ID "HP"+ /* __HP_aCC = VVRRPP */+# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)+# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)+# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)++#elif defined(__DECCXX)+# define COMPILER_ID "Compaq"+ /* __DECCXX_VER = VVRRTPPPP */+# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)+# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)+# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)++#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)+# define COMPILER_ID "zOS"+ /* __IBMCPP__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)++#elif defined(__ibmxl__) && defined(__clang__)+# define COMPILER_ID "XLClang"+# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)+# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)+# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)+# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)+++#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800+# define COMPILER_ID "XL"+ /* __IBMCPP__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)++#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800+# define COMPILER_ID "VisualAge"+ /* __IBMCPP__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)++#elif defined(__NVCOMPILER)+# define COMPILER_ID "NVHPC"+# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)+# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)+# if defined(__NVCOMPILER_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)+# endif++#elif defined(__PGI)+# define COMPILER_ID "PGI"+# define COMPILER_VERSION_MAJOR DEC(__PGIC__)+# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)+# if defined(__PGIC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)+# endif++#elif defined(_CRAYC)+# define COMPILER_ID "Cray"+# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)+# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)++#elif defined(__TI_COMPILER_VERSION__)+# define COMPILER_ID "TI"+ /* __TI_COMPILER_VERSION__ = VVVRRRPPP */+# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)+# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)+# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)++#elif defined(__CLANG_FUJITSU)+# define COMPILER_ID "FujitsuClang"+# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)+# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)+# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)+# define COMPILER_VERSION_INTERNAL_STR __clang_version__+++#elif defined(__FUJITSU)+# define COMPILER_ID "Fujitsu"+# if defined(__FCC_version__)+# define COMPILER_VERSION __FCC_version__+# elif defined(__FCC_major__)+# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)+# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)+# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)+# endif+# if defined(__fcc_version)+# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)+# elif defined(__FCC_VERSION)+# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)+# endif+++#elif defined(__ghs__)+# define COMPILER_ID "GHS"+/* __GHS_VERSION_NUMBER = VVVVRP */+# ifdef __GHS_VERSION_NUMBER+# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)+# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)+# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)+# endif++#elif defined(__SCO_VERSION__)+# define COMPILER_ID "SCO"++#elif defined(__ARMCC_VERSION) && !defined(__clang__)+# define COMPILER_ID "ARMCC"+#if __ARMCC_VERSION >= 1000000+ /* __ARMCC_VERSION = VRRPPPP */+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)+#else+ /* __ARMCC_VERSION = VRPPPP */+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)+#endif+++#elif defined(__clang__) && defined(__apple_build_version__)+# define COMPILER_ID "AppleClang"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# define COMPILER_VERSION_MAJOR DEC(__clang_major__)+# define COMPILER_VERSION_MINOR DEC(__clang_minor__)+# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif+# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)++#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)+# define COMPILER_ID "ARMClang"+ # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)+ # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)+# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)++#elif defined(__clang__)+# define COMPILER_ID "Clang"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# define COMPILER_VERSION_MAJOR DEC(__clang_major__)+# define COMPILER_VERSION_MINOR DEC(__clang_minor__)+# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif++#elif defined(__GNUC__) || defined(__GNUG__)+# define COMPILER_ID "GNU"+# if defined(__GNUC__)+# define COMPILER_VERSION_MAJOR DEC(__GNUC__)+# else+# define COMPILER_VERSION_MAJOR DEC(__GNUG__)+# endif+# if defined(__GNUC_MINOR__)+# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)+# endif+# if defined(__GNUC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+# endif++#elif defined(_MSC_VER)+# define COMPILER_ID "MSVC"+ /* _MSC_VER = VVRR */+# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)+# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)+# if defined(_MSC_FULL_VER)+# if _MSC_VER >= 1400+ /* _MSC_FULL_VER = VVRRPPPPP */+# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)+# else+ /* _MSC_FULL_VER = VVRRPPPP */+# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)+# endif+# endif+# if defined(_MSC_BUILD)+# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)+# endif++#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)+# define COMPILER_ID "ADSP"+#if defined(__VISUALDSPVERSION__)+ /* __VISUALDSPVERSION__ = 0xVVRRPP00 */+# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)+# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)+# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)+#endif++#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)+# define COMPILER_ID "IAR"+# if defined(__VER__) && defined(__ICCARM__)+# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)+# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)+# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)+# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)+# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))+# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)+# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))+# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)+# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)+# endif+++/* These compilers are either not known or too old to define an+ identification macro. Try to identify the platform and guess that+ it is the native compiler. */+#elif defined(__hpux) || defined(__hpua)+# define COMPILER_ID "HP"++#else /* unknown compiler */+# define COMPILER_ID ""+#endif++/* Construct the string literal in pieces to prevent the source from+ getting matched. Store it in a pointer rather than an array+ because some compilers will just produce instructions to fill the+ array rather than assigning a pointer to a static array. */+char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";+#ifdef SIMULATE_ID+char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";+#endif++#ifdef __QNXNTO__+char const* qnxnto = "INFO" ":" "qnxnto[]";+#endif++#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)+char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";+#endif++#define STRINGIFY_HELPER(X) #X+#define STRINGIFY(X) STRINGIFY_HELPER(X)++/* Identify known platforms by name. */+#if defined(__linux) || defined(__linux__) || defined(linux)+# define PLATFORM_ID "Linux"++#elif defined(__MSYS__)+# define PLATFORM_ID "MSYS"++#elif defined(__CYGWIN__)+# define PLATFORM_ID "Cygwin"++#elif defined(__MINGW32__)+# define PLATFORM_ID "MinGW"++#elif defined(__APPLE__)+# define PLATFORM_ID "Darwin"++#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)+# define PLATFORM_ID "Windows"++#elif defined(__FreeBSD__) || defined(__FreeBSD)+# define PLATFORM_ID "FreeBSD"++#elif defined(__NetBSD__) || defined(__NetBSD)+# define PLATFORM_ID "NetBSD"++#elif defined(__OpenBSD__) || defined(__OPENBSD)+# define PLATFORM_ID "OpenBSD"++#elif defined(__sun) || defined(sun)+# define PLATFORM_ID "SunOS"++#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)+# define PLATFORM_ID "AIX"++#elif defined(__hpux) || defined(__hpux__)+# define PLATFORM_ID "HP-UX"++#elif defined(__HAIKU__)+# define PLATFORM_ID "Haiku"++#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)+# define PLATFORM_ID "BeOS"++#elif defined(__QNX__) || defined(__QNXNTO__)+# define PLATFORM_ID "QNX"++#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)+# define PLATFORM_ID "Tru64"++#elif defined(__riscos) || defined(__riscos__)+# define PLATFORM_ID "RISCos"++#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)+# define PLATFORM_ID "SINIX"++#elif defined(__UNIX_SV__)+# define PLATFORM_ID "UNIX_SV"++#elif defined(__bsdos__)+# define PLATFORM_ID "BSDOS"++#elif defined(_MPRAS) || defined(MPRAS)+# define PLATFORM_ID "MP-RAS"++#elif defined(__osf) || defined(__osf__)+# define PLATFORM_ID "OSF1"++#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)+# define PLATFORM_ID "SCO_SV"++#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)+# define PLATFORM_ID "ULTRIX"++#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)+# define PLATFORM_ID "Xenix"++#elif defined(__WATCOMC__)+# if defined(__LINUX__)+# define PLATFORM_ID "Linux"++# elif defined(__DOS__)+# define PLATFORM_ID "DOS"++# elif defined(__OS2__)+# define PLATFORM_ID "OS2"++# elif defined(__WINDOWS__)+# define PLATFORM_ID "Windows3x"++# elif defined(__VXWORKS__)+# define PLATFORM_ID "VxWorks"++# else /* unknown platform */+# define PLATFORM_ID+# endif++#elif defined(__INTEGRITY)+# if defined(INT_178B)+# define PLATFORM_ID "Integrity178"++# else /* regular Integrity */+# define PLATFORM_ID "Integrity"+# endif++#else /* unknown platform */+# define PLATFORM_ID++#endif++/* For windows compilers MSVC and Intel we can determine+ the architecture of the compiler being used. This is because+ the compilers do not have flags that can change the architecture,+ but rather depend on which compiler is being used+*/+#if defined(_WIN32) && defined(_MSC_VER)+# if defined(_M_IA64)+# define ARCHITECTURE_ID "IA64"++# elif defined(_M_ARM64EC)+# define ARCHITECTURE_ID "ARM64EC"++# elif defined(_M_X64) || defined(_M_AMD64)+# define ARCHITECTURE_ID "x64"++# elif defined(_M_IX86)+# define ARCHITECTURE_ID "X86"++# elif defined(_M_ARM64)+# define ARCHITECTURE_ID "ARM64"++# elif defined(_M_ARM)+# if _M_ARM == 4+# define ARCHITECTURE_ID "ARMV4I"+# elif _M_ARM == 5+# define ARCHITECTURE_ID "ARMV5I"+# else+# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)+# endif++# elif defined(_M_MIPS)+# define ARCHITECTURE_ID "MIPS"++# elif defined(_M_SH)+# define ARCHITECTURE_ID "SHx"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__WATCOMC__)+# if defined(_M_I86)+# define ARCHITECTURE_ID "I86"++# elif defined(_M_IX86)+# define ARCHITECTURE_ID "X86"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)+# if defined(__ICCARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__ICCRX__)+# define ARCHITECTURE_ID "RX"++# elif defined(__ICCRH850__)+# define ARCHITECTURE_ID "RH850"++# elif defined(__ICCRL78__)+# define ARCHITECTURE_ID "RL78"++# elif defined(__ICCRISCV__)+# define ARCHITECTURE_ID "RISCV"++# elif defined(__ICCAVR__)+# define ARCHITECTURE_ID "AVR"++# elif defined(__ICC430__)+# define ARCHITECTURE_ID "MSP430"++# elif defined(__ICCV850__)+# define ARCHITECTURE_ID "V850"++# elif defined(__ICC8051__)+# define ARCHITECTURE_ID "8051"++# elif defined(__ICCSTM8__)+# define ARCHITECTURE_ID "STM8"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__ghs__)+# if defined(__PPC64__)+# define ARCHITECTURE_ID "PPC64"++# elif defined(__ppc__)+# define ARCHITECTURE_ID "PPC"++# elif defined(__ARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__x86_64__)+# define ARCHITECTURE_ID "x64"++# elif defined(__i386__)+# define ARCHITECTURE_ID "X86"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__TI_COMPILER_VERSION__)+# if defined(__TI_ARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__MSP430__)+# define ARCHITECTURE_ID "MSP430"++# elif defined(__TMS320C28XX__)+# define ARCHITECTURE_ID "TMS320C28x"++# elif defined(__TMS320C6X__) || defined(_TMS320C6X)+# define ARCHITECTURE_ID "TMS320C6x"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#else+# define ARCHITECTURE_ID+#endif++/* Convert integer to decimal digit literals. */+#define DEC(n) \+ ('0' + (((n) / 10000000)%10)), \+ ('0' + (((n) / 1000000)%10)), \+ ('0' + (((n) / 100000)%10)), \+ ('0' + (((n) / 10000)%10)), \+ ('0' + (((n) / 1000)%10)), \+ ('0' + (((n) / 100)%10)), \+ ('0' + (((n) / 10)%10)), \+ ('0' + ((n) % 10))++/* Convert integer to hex digit literals. */+#define HEX(n) \+ ('0' + ((n)>>28 & 0xF)), \+ ('0' + ((n)>>24 & 0xF)), \+ ('0' + ((n)>>20 & 0xF)), \+ ('0' + ((n)>>16 & 0xF)), \+ ('0' + ((n)>>12 & 0xF)), \+ ('0' + ((n)>>8 & 0xF)), \+ ('0' + ((n)>>4 & 0xF)), \+ ('0' + ((n) & 0xF))++/* Construct a string literal encoding the version number. */+#ifdef COMPILER_VERSION+char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";++/* Construct a string literal encoding the version number components. */+#elif defined(COMPILER_VERSION_MAJOR)+char const info_version[] = {+ 'I', 'N', 'F', 'O', ':',+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',+ COMPILER_VERSION_MAJOR,+# ifdef COMPILER_VERSION_MINOR+ '.', COMPILER_VERSION_MINOR,+# ifdef COMPILER_VERSION_PATCH+ '.', COMPILER_VERSION_PATCH,+# ifdef COMPILER_VERSION_TWEAK+ '.', COMPILER_VERSION_TWEAK,+# endif+# endif+# endif+ ']','\0'};+#endif++/* Construct a string literal encoding the internal version number. */+#ifdef COMPILER_VERSION_INTERNAL+char const info_version_internal[] = {+ 'I', 'N', 'F', 'O', ':',+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',+ 'i','n','t','e','r','n','a','l','[',+ COMPILER_VERSION_INTERNAL,']','\0'};+#elif defined(COMPILER_VERSION_INTERNAL_STR)+char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";+#endif++/* Construct a string literal encoding the version number components. */+#ifdef SIMULATE_VERSION_MAJOR+char const info_simulate_version[] = {+ 'I', 'N', 'F', 'O', ':',+ 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',+ SIMULATE_VERSION_MAJOR,+# ifdef SIMULATE_VERSION_MINOR+ '.', SIMULATE_VERSION_MINOR,+# ifdef SIMULATE_VERSION_PATCH+ '.', SIMULATE_VERSION_PATCH,+# ifdef SIMULATE_VERSION_TWEAK+ '.', SIMULATE_VERSION_TWEAK,+# endif+# endif+# endif+ ']','\0'};+#endif++/* Construct the string literal in pieces to prevent the source from+ getting matched. Store it in a pointer rather than an array+ because some compilers will just produce instructions to fill the+ array rather than assigning a pointer to a static array. */+char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";+char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";++++#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L+# if defined(__INTEL_CXX11_MODE__)+# if defined(__cpp_aggregate_nsdmi)+# define CXX_STD 201402L+# else+# define CXX_STD 201103L+# endif+# else+# define CXX_STD 199711L+# endif+#elif defined(_MSC_VER) && defined(_MSVC_LANG)+# define CXX_STD _MSVC_LANG+#else+# define CXX_STD __cplusplus+#endif++const char* info_language_standard_default = "INFO" ":" "standard_default["+#if CXX_STD > 202002L+ "23"+#elif CXX_STD > 201703L+ "20"+#elif CXX_STD >= 201703L+ "17"+#elif CXX_STD >= 201402L+ "14"+#elif CXX_STD >= 201103L+ "11"+#else+ "98"+#endif+"]";++const char* info_language_extensions_default = "INFO" ":" "extensions_default["+/* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */+#if (defined(__clang__) || defined(__GNUC__) || \+ defined(__TI_COMPILER_VERSION__)) && \+ !defined(__STRICT_ANSI__) && !defined(_MSC_VER)+ "ON"+#else+ "OFF"+#endif+"]";++/*--------------------------------------------------------------------------*/++int main(int argc, char* argv[])+{+ int require = 0;+ require += info_compiler[argc];+ require += info_platform[argc];+#ifdef COMPILER_VERSION_MAJOR+ require += info_version[argc];+#endif+#ifdef COMPILER_VERSION_INTERNAL+ require += info_version_internal[argc];+#endif+#ifdef SIMULATE_ID+ require += info_simulate[argc];+#endif+#ifdef SIMULATE_VERSION_MAJOR+ require += info_simulate_version[argc];+#endif+#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)+ require += info_cray[argc];+#endif+ require += info_language_standard_default[argc];+ require += info_language_extensions_default[argc];+ (void)argv;+ return require;+}diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.onew file mode 100644index 0000000..0c26044Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeOutput.log b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeOutput.lognew file mode 100644index 0000000..b9c4ec7--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeOutput.log@@ -0,0 +1,264 @@+The target system is: Android - 1 - aarch64+The host system is: Darwin - 24.6.0 - x86_64+Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.+Compiler: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang+++Build flags: -g;-DANDROID;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-D_FORTIFY_SOURCE=2;-Wformat;-Werror=format-security;;+Id flags: -c;--target=aarch64-none-linux-android26++The output was:+0+++Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"++The CXX compiler identification is Clang, found in "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o"++Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.+Compiler: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang+Build flags: -g;-DANDROID;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-D_FORTIFY_SOURCE=2;-Wformat;-Werror=format-security;+Id flags: -c;--target=aarch64-none-linux-android26++The output was:+0+++Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"++The C compiler identification is Clang, found in "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o"++Detecting CXX compiler ABI info compiled with the following output:+Change Dir: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp++Run Build Command(s):/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja cmTC_f7b71 && [1/2] Building CXX object CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o+Android (13624864, +pgo, -bolt, +lto, -mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)+Target: aarch64-none-linux-android26+Thread model: posix+InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin+ (in-process)+ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++" -cc1 -triple aarch64-none-linux-android26 -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-feature +fix-cortex-a53-835769 -target-abi aapcs -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb "-fdebug-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp" -v -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp" -resource-dir /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19 -dependency-file CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -D ANDROID -D _FORTIFY_SOURCE=2 -isysroot /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1 -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include -Wformat -fdeprecated-macro -ferror-limit 19 -femulated-tls -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -target-feature +outline-atomics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o -x c++ /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp+clang -cc1 version 19.0.1 based upon LLVM 19.0.1 default target x86_64-apple-darwin24.6.0+ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include"+ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include"+#include "..." search starts here:+#include <...> search starts here:+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include+End of search list.+[2/2] Linking CXX executable cmTC_f7b71+Android (13624864, +pgo, -bolt, +lto, -mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)+Target: aarch64-none-linux-android26+Thread model: posix+InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin+ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld" --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=16384 --hash-style=gnu --eh-frame-hdr -m aarch64linux -pie -dynamic-linker /system/bin/linker64 -o cmTC_f7b71 /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib --build-id=sha1 --no-rosegment --no-undefined-version --fatal-warnings --no-undefined CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o -Bstatic -lc++ -Bdynamic -lm /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl -lc /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o++++Parsed CXX implicit include dir info from above output: rv=done+ found start of include info+ found start of implicit include info+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ end of search list found+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ implicit include dirs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+++Parsed CXX implicit link information from above output:+ link line regex: [^( *|.*[/\])(ld\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]+ ignore line: [Change Dir: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp]+ ignore line: []+ ignore line: [Run Build Command(s):/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja cmTC_f7b71 && [1/2] Building CXX object CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o]+ ignore line: [Android (13624864 +pgo -bolt +lto -mlgo based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)]+ ignore line: [Target: aarch64-none-linux-android26]+ ignore line: [Thread model: posix]+ ignore line: [InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin]+ ignore line: [ (in-process)]+ ignore line: [ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++" -cc1 -triple aarch64-none-linux-android26 -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-feature +fix-cortex-a53-835769 -target-abi aapcs -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb "-fdebug-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp" -v -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp" -resource-dir /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19 -dependency-file CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -D ANDROID -D _FORTIFY_SOURCE=2 -isysroot /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1 -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include -Wformat -fdeprecated-macro -ferror-limit 19 -femulated-tls -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -target-feature +outline-atomics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o -x c++ /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp]+ ignore line: [clang -cc1 version 19.0.1 based upon LLVM 19.0.1 default target x86_64-apple-darwin24.6.0]+ ignore line: [ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include"]+ ignore line: [ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include"]+ ignore line: [#include "..." search starts here:]+ ignore line: [#include <...> search starts here:]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ ignore line: [End of search list.]+ ignore line: [[2/2] Linking CXX executable cmTC_f7b71]+ ignore line: [Android (13624864 +pgo -bolt +lto -mlgo based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)]+ ignore line: [Target: aarch64-none-linux-android26]+ ignore line: [Thread model: posix]+ ignore line: [InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin]+ link line: [ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld" --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=16384 --hash-style=gnu --eh-frame-hdr -m aarch64linux -pie -dynamic-linker /system/bin/linker64 -o cmTC_f7b71 /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib --build-id=sha1 --no-rosegment --no-undefined-version --fatal-warnings --no-undefined CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o -Bstatic -lc++ -Bdynamic -lm /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl -lc /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld] ==> ignore+ arg [--sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot] ==> ignore+ arg [-EL] ==> ignore+ arg [--fix-cortex-a53-843419] ==> ignore+ arg [-znow] ==> ignore+ arg [-zrelro] ==> ignore+ arg [-zmax-page-size=16384] ==> ignore+ arg [--hash-style=gnu] ==> ignore+ arg [--eh-frame-hdr] ==> ignore+ arg [-m] ==> ignore+ arg [aarch64linux] ==> ignore+ arg [-pie] ==> ignore+ arg [-dynamic-linker] ==> ignore+ arg [/system/bin/linker64] ==> ignore+ arg [-o] ==> ignore+ arg [cmTC_f7b71] ==> ignore+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o] ==> obj [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ arg [--build-id=sha1] ==> ignore+ arg [--no-rosegment] ==> ignore+ arg [--no-undefined-version] ==> ignore+ arg [--fatal-warnings] ==> ignore+ arg [--no-undefined] ==> ignore+ arg [CMakeFiles/cmTC_f7b71.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore+ arg [-Bstatic] ==> search static+ arg [-lc++] ==> lib [c++]+ arg [-Bdynamic] ==> search dynamic+ arg [-lm] ==> lib [m]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a] ==> lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ arg [-l:libunwind.a] ==> lib [-l:libunwind.a]+ arg [-ldl] ==> lib [dl]+ arg [-lc] ==> lib [c]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a] ==> lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ arg [-l:libunwind.a] ==> lib [-l:libunwind.a]+ arg [-ldl] ==> lib [dl]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o] ==> obj [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ remove lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ remove lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ implicit libs: [c++;m;-l:libunwind.a;dl;c;-l:libunwind.a;dl]+ implicit objs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ implicit dirs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ implicit fwks: []+++Detecting C compiler ABI info compiled with the following output:+Change Dir: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp++Run Build Command(s):/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja cmTC_8577d && [1/2] Building C object CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o+Android (13624864, +pgo, -bolt, +lto, -mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)+Target: aarch64-none-linux-android26+Thread model: posix+InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin+ (in-process)+ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang" -cc1 -triple aarch64-none-linux-android26 -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-feature +fix-cortex-a53-835769 -target-abi aapcs -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb "-fdebug-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp" -v -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp" -resource-dir /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19 -dependency-file CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o -sys-header-deps -D ANDROID -D _FORTIFY_SOURCE=2 -isysroot /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include -Wformat -ferror-limit 19 -femulated-tls -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -target-feature +outline-atomics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o -x c /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c+clang -cc1 version 19.0.1 based upon LLVM 19.0.1 default target x86_64-apple-darwin24.6.0+ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include"+ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include"+#include "..." search starts here:+#include <...> search starts here:+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include+End of search list.+[2/2] Linking C executable cmTC_8577d+Android (13624864, +pgo, -bolt, +lto, -mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)+Target: aarch64-none-linux-android26+Thread model: posix+InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin+ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld" --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=16384 --hash-style=gnu --eh-frame-hdr -m aarch64linux -pie -dynamic-linker /system/bin/linker64 -o cmTC_8577d /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib --build-id=sha1 --no-rosegment --no-undefined-version --fatal-warnings --no-undefined CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl -lc /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o++++Parsed C implicit include dir info from above output: rv=done+ found start of include info+ found start of implicit include info+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ end of search list found+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ implicit include dirs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+++Parsed C implicit link information from above output:+ link line regex: [^( *|.*[/\])(ld\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]+ ignore line: [Change Dir: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp]+ ignore line: []+ ignore line: [Run Build Command(s):/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja cmTC_8577d && [1/2] Building C object CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o]+ ignore line: [Android (13624864 +pgo -bolt +lto -mlgo based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)]+ ignore line: [Target: aarch64-none-linux-android26]+ ignore line: [Thread model: posix]+ ignore line: [InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin]+ ignore line: [ (in-process)]+ ignore line: [ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang" -cc1 -triple aarch64-none-linux-android26 -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-feature +fix-cortex-a53-835769 -target-abi aapcs -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb "-fdebug-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp" -v -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/CMakeTmp" -resource-dir /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19 -dependency-file CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o -sys-header-deps -D ANDROID -D _FORTIFY_SOURCE=2 -isysroot /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include -Wformat -ferror-limit 19 -femulated-tls -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -target-feature +outline-atomics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o -x c /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c]+ ignore line: [clang -cc1 version 19.0.1 based upon LLVM 19.0.1 default target x86_64-apple-darwin24.6.0]+ ignore line: [ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include"]+ ignore line: [ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include"]+ ignore line: [#include "..." search starts here:]+ ignore line: [#include <...> search starts here:]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ ignore line: [End of search list.]+ ignore line: [[2/2] Linking C executable cmTC_8577d]+ ignore line: [Android (13624864 +pgo -bolt +lto -mlgo based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)]+ ignore line: [Target: aarch64-none-linux-android26]+ ignore line: [Thread model: posix]+ ignore line: [InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin]+ link line: [ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld" --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=16384 --hash-style=gnu --eh-frame-hdr -m aarch64linux -pie -dynamic-linker /system/bin/linker64 -o cmTC_8577d /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib --build-id=sha1 --no-rosegment --no-undefined-version --fatal-warnings --no-undefined CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl -lc /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld] ==> ignore+ arg [--sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot] ==> ignore+ arg [-EL] ==> ignore+ arg [--fix-cortex-a53-843419] ==> ignore+ arg [-znow] ==> ignore+ arg [-zrelro] ==> ignore+ arg [-zmax-page-size=16384] ==> ignore+ arg [--hash-style=gnu] ==> ignore+ arg [--eh-frame-hdr] ==> ignore+ arg [-m] ==> ignore+ arg [aarch64linux] ==> ignore+ arg [-pie] ==> ignore+ arg [-dynamic-linker] ==> ignore+ arg [/system/bin/linker64] ==> ignore+ arg [-o] ==> ignore+ arg [cmTC_8577d] ==> ignore+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o] ==> obj [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ arg [--build-id=sha1] ==> ignore+ arg [--no-rosegment] ==> ignore+ arg [--no-undefined-version] ==> ignore+ arg [--fatal-warnings] ==> ignore+ arg [--no-undefined] ==> ignore+ arg [CMakeFiles/cmTC_8577d.dir/CMakeCCompilerABI.c.o] ==> ignore+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a] ==> lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ arg [-l:libunwind.a] ==> lib [-l:libunwind.a]+ arg [-ldl] ==> lib [dl]+ arg [-lc] ==> lib [c]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a] ==> lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ arg [-l:libunwind.a] ==> lib [-l:libunwind.a]+ arg [-ldl] ==> lib [dl]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o] ==> obj [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ remove lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ remove lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ implicit libs: [-l:libunwind.a;dl;c;-l:libunwind.a;dl]+ implicit objs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ implicit dirs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ implicit fwks: []++diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/TargetDirectories.txt b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/TargetDirectories.txtnew file mode 100644index 0000000..2dc747b--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/TargetDirectories.txt@@ -0,0 +1,4 @@+/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/pffft.dir+/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir+/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/edit_cache.dir+/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/rebuild_cache.dirdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/cmake.check_cache b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/cmake.check_cachenew file mode 100644index 0000000..3dccd73--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/cmake.check_cache@@ -0,0 +1 @@+# This file is generated by cmake for dependency checking of the CMakeCache.txt filediff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.onew file mode 100644index 0000000..cf172f8Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.onew file mode 100644index 0000000..b56fd7bBinary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/rules.ninja b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/rules.ninjanew file mode 100644index 0000000..40f9c13--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/rules.ninja@@ -0,0 +1,83 @@+# CMAKE generated file: DO NOT EDIT!+# Generated by "Ninja" Generator, CMake Version 3.22++# This file contains all the rules used to get the outputs files+# built from the input files.+# It is included in the main 'build.ninja'.++# =============================================================================+# Project: spotstretch+# Configurations: RelWithDebInfo+# =============================================================================+# =============================================================================++#############################################+# Rule for compiling C files.++rule C_COMPILER__pffft_RelWithDebInfo+ depfile = $DEP_FILE+ deps = gcc+ command = /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in+ description = Building C object $out+++#############################################+# Rule for linking C static library.++rule C_STATIC_LIBRARY_LINKER__pffft_RelWithDebInfo+ command = $PRE_LINK && /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake -E rm -f $TARGET_FILE && /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar qc $TARGET_FILE $LINK_FLAGS $in && /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib $TARGET_FILE && /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake -E touch $TARGET_FILE && $POST_BUILD+ description = Linking C static library $TARGET_FILE+ restat = $RESTAT+++#############################################+# Rule for compiling CXX files.++rule CXX_COMPILER__spotstretch_RelWithDebInfo+ depfile = $DEP_FILE+ deps = gcc+ command = /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in+ description = Building CXX object $out+++#############################################+# Rule for linking CXX shared library.++rule CXX_SHARED_LIBRARY_LINKER__spotstretch_RelWithDebInfo+ command = $PRE_LINK && /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS $LINK_FLAGS -shared $SONAME_FLAG$SONAME -o $TARGET_FILE $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD+ description = Linking CXX shared library $TARGET_FILE+ restat = $RESTAT+++#############################################+# Rule for running custom commands.++rule CUSTOM_COMMAND+ command = $COMMAND+ description = $DESC+++#############################################+# Rule for re-running cmake.++rule RERUN_CMAKE+ command = /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake --regenerate-during-build -S"/Users/emanuele/Progetto Spotify/app/src/main/cpp" -B"/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a"+ description = Re-running CMake...+ generator = 1+++#############################################+# Rule for cleaning all built files.++rule CLEAN+ command = /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja $FILE_ARG -t clean $TARGETS+ description = Cleaning all built files...+++#############################################+# Rule for printing all primary targets available.++rule HELP+ command = /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja -t targets+ description = All primary targets available:+diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.onew file mode 100644index 0000000..f25db9fBinary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.onew file mode 100644index 0000000..15b5051Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.onew file mode 100644index 0000000..b36be64Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.onew file mode 100644index 0000000..78efd36Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.onew file mode 100644index 0000000..c403ee4Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.onew file mode 100644index 0000000..3e5c4f1Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.onew file mode 100644index 0000000..6da1eedBinary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.onew file mode 100644index 0000000..c7b51f3Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.onew file mode 100644index 0000000..8e1a07aBinary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.onew file mode 100644index 0000000..5bc4ee5Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.onew file mode 100644index 0000000..50cd353Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.onew file mode 100644index 0000000..8d589f6Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.onew file mode 100644index 0000000..640c85fBinary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.onew file mode 100644index 0000000..8650c38Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/stretch.cpp.o b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/stretch.cpp.onew file mode 100644index 0000000..192ec7fBinary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/CMakeFiles/spotstretch.dir/stretch.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/additional_project_files.txt b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/additional_project_files.txtnew file mode 100644index 0000000..e69de29diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build.jsonnew file mode 100644index 0000000..8e5af2b--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build.json@@ -0,0 +1,46 @@+{+ "buildFiles": [+ "/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt"+ ],+ "cleanCommandsComponents": [+ [+ "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja",+ "-C",+ "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "clean"+ ]+ ],+ "buildTargetsCommandComponents": [+ "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja",+ "-C",+ "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "{LIST_OF_TARGETS_TO_BUILD}"+ ],+ "libraries": {+ "pffft::@6890427a1f51a3e7e1df": {+ "toolchain": "toolchain",+ "abi": "arm64-v8a",+ "artifactName": "pffft",+ "output": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/libpffft.a"+ },+ "spotstretch::@6890427a1f51a3e7e1df": {+ "toolchain": "toolchain",+ "abi": "arm64-v8a",+ "artifactName": "spotstretch",+ "output": "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so",+ "runtimeFiles": []+ }+ },+ "toolchains": {+ "toolchain": {+ "cCompilerExecutable": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang.lld",+ "cppCompilerExecutable": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++.lld"+ }+ },+ "cFileExtensions": [+ "c"+ ],+ "cppFileExtensions": [+ "cpp"+ ]+}\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build_mini.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build_mini.jsonnew file mode 100644index 0000000..09fac2c--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build_mini.json@@ -0,0 +1,33 @@+{+ "buildFiles": [+ "/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt"+ ],+ "cleanCommandsComponents": [+ [+ "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja",+ "-C",+ "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "clean"+ ]+ ],+ "buildTargetsCommandComponents": [+ "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja",+ "-C",+ "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "{LIST_OF_TARGETS_TO_BUILD}"+ ],+ "libraries": {+ "pffft::@6890427a1f51a3e7e1df": {+ "artifactName": "pffft",+ "abi": "arm64-v8a",+ "output": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/libpffft.a",+ "runtimeFiles": []+ },+ "spotstretch::@6890427a1f51a3e7e1df": {+ "artifactName": "spotstretch",+ "abi": "arm64-v8a",+ "output": "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so",+ "runtimeFiles": []+ }+ }+}\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build.ninja b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build.ninjanew file mode 100644index 0000000..5c4232c--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build.ninja@@ -0,0 +1,340 @@+# CMAKE generated file: DO NOT EDIT!+# Generated by "Ninja" Generator, CMake Version 3.22++# This file contains all the build statements describing the+# compilation DAG.++# =============================================================================+# Write statements declared in CMakeLists.txt:+#+# Which is the root file.+# =============================================================================++# =============================================================================+# Project: spotstretch+# Configurations: RelWithDebInfo+# =============================================================================++#############################################+# Minimal version of Ninja required by this file++ninja_required_version = 1.5+++#############################################+# Set configuration variable for custom commands.++CONFIGURATION = RelWithDebInfo+# =============================================================================+# Include auxiliary files.+++#############################################+# Include rules file.++include CMakeFiles/rules.ninja++# =============================================================================++#############################################+# Logical path to working directory; prefix for absolute paths.++cmake_ninja_workdir = /Users/emanuele/Progetto$ Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/+# =============================================================================+# Object build statements for STATIC_LIBRARY target pffft+++#############################################+# Order-only phony target for pffft++build cmake_object_order_depends_target_pffft: phony || CMakeFiles/pffft.dir++build CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o: C_COMPILER__pffft_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/submodules/pffft/pffft.c || cmake_object_order_depends_target_pffft+ DEP_FILE = CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions+ OBJECT_DIR = CMakeFiles/pffft.dir+ OBJECT_FILE_DIR = CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft+ TARGET_COMPILE_PDB = CMakeFiles/pffft.dir/pffft.pdb+ TARGET_PDB = libpffft.pdb++build CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o: C_COMPILER__pffft_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/submodules/pffft/fftpack.c || cmake_object_order_depends_target_pffft+ DEP_FILE = CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions+ OBJECT_DIR = CMakeFiles/pffft.dir+ OBJECT_FILE_DIR = CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft+ TARGET_COMPILE_PDB = CMakeFiles/pffft.dir/pffft.pdb+ TARGET_PDB = libpffft.pdb+++# =============================================================================+# Link build statements for STATIC_LIBRARY target pffft+++#############################################+# Link the static library libpffft.a++build libpffft.a: C_STATIC_LIBRARY_LINKER__pffft_RelWithDebInfo CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o+ LANGUAGE_COMPILE_FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG+ OBJECT_DIR = CMakeFiles/pffft.dir+ POST_BUILD = :+ PRE_LINK = :+ TARGET_COMPILE_PDB = CMakeFiles/pffft.dir/pffft.pdb+ TARGET_FILE = libpffft.a+ TARGET_PDB = libpffft.pdb++# =============================================================================+# Object build statements for SHARED_LIBRARY target spotstretch+++#############################################+# Order-only phony target for spotstretch++build cmake_object_order_depends_target_spotstretch: phony || cmake_object_order_depends_target_pffft++build CMakeFiles/spotstretch.dir/stretch.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/app/src/main/cpp/stretch.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/stretch.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Assert.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Fourier.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Grain.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Grains.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Input.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Instrumentation.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Output.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Partials.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Stretch.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Stretcher.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Synthesis.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Timing.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Window.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/version.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"+++# =============================================================================+# Link build statements for SHARED_LIBRARY target spotstretch+++#############################################+# Link the shared library /Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so++build /Users/emanuele/Progetto$ Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so: CXX_SHARED_LIBRARY_LINKER__spotstretch_RelWithDebInfo CMakeFiles/spotstretch.dir/stretch.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o | libpffft.a || libpffft.a+ LANGUAGE_COMPILE_FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG+ LINK_FLAGS = -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections+ LINK_LIBRARIES = libpffft.a -llog -latomic -lm+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ POST_BUILD = :+ PRE_LINK = :+ SONAME = libspotstretch.so+ SONAME_FLAG = -Wl,-soname,+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_FILE = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so"+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.pdb"+++#############################################+# Utility command for edit_cache++build CMakeFiles/edit_cache.util: CUSTOM_COMMAND+ COMMAND = cd "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a" && /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ccmake -S"/Users/emanuele/Progetto Spotify/app/src/main/cpp" -B"/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a"+ DESC = Running CMake cache editor...+ pool = console+ restat = 1++build edit_cache: phony CMakeFiles/edit_cache.util+++#############################################+# Utility command for rebuild_cache++build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND+ COMMAND = cd "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a" && /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake --regenerate-during-build -S"/Users/emanuele/Progetto Spotify/app/src/main/cpp" -B"/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a"+ DESC = Running CMake to regenerate build system...+ pool = console+ restat = 1++build rebuild_cache: phony CMakeFiles/rebuild_cache.util++# =============================================================================+# Target aliases.++build libspotstretch.so: phony /Users/emanuele/Progetto$ Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so++build pffft: phony libpffft.a++build spotstretch: phony /Users/emanuele/Progetto$ Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so++# =============================================================================+# Folder targets.++# =============================================================================++#############################################+# Folder: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a++build all: phony libpffft.a /Users/emanuele/Progetto$ Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a/libspotstretch.so++# =============================================================================+# Built-in targets+++#############################################+# Re-run CMake if any of its inputs changed.++build build.ninja: RERUN_CMAKE | /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompiler.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeGenericSystem.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystem.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Bruce-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-FindBinUtils.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SDCC-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Initialize.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android/Determine-Compiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Linux.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/UnixPaths.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/abis.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android-legacy.toolchain.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/flags.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Clang.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Determine.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Initialize.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Determine-Compiler.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/platforms.cmake /Users/emanuele/Progetto$ Spotify/app/src/main/cpp/CMakeLists.txt CMakeCache.txt CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake+ pool = console+++#############################################+# A missing CMake input file is not an error.++build /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompiler.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeGenericSystem.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystem.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Bruce-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-FindBinUtils.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SDCC-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Initialize.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android/Determine-Compiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Linux.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/UnixPaths.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/abis.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android-legacy.toolchain.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/flags.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Clang.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Determine.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Initialize.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Determine-Compiler.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/platforms.cmake /Users/emanuele/Progetto$ Spotify/app/src/main/cpp/CMakeLists.txt CMakeCache.txt CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake: phony+++#############################################+# Clean all the built files.++build clean: CLEAN+++#############################################+# Print all primary targets available.++build help: HELP+++#############################################+# Make the all target the default.++default alldiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build_file_index.txt b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build_file_index.txtnew file mode 100644index 0000000..ab898e8--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build_file_index.txt@@ -0,0 +1 @@+/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/cmake_install.cmake b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/cmake_install.cmakenew file mode 100644index 0000000..064e74e--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/cmake_install.cmake@@ -0,0 +1,54 @@+# Install script for directory: /Users/emanuele/Progetto Spotify/app/src/main/cpp++# Set the install prefix+if(NOT DEFINED CMAKE_INSTALL_PREFIX)+ set(CMAKE_INSTALL_PREFIX "/usr/local")+endif()+string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")++# Set the install configuration name.+if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)+ if(BUILD_TYPE)+ string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""+ CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")+ else()+ set(CMAKE_INSTALL_CONFIG_NAME "RelWithDebInfo")+ endif()+ message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")+endif()++# Set the component getting installed.+if(NOT CMAKE_INSTALL_COMPONENT)+ if(COMPONENT)+ message(STATUS "Install component: \"${COMPONENT}\"")+ set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")+ else()+ set(CMAKE_INSTALL_COMPONENT)+ endif()+endif()++# Install shared libraries without execute permission?+if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)+ set(CMAKE_INSTALL_SO_NO_EXE "0")+endif()++# Is this installation the result of a crosscompile?+if(NOT DEFINED CMAKE_CROSSCOMPILING)+ set(CMAKE_CROSSCOMPILING "TRUE")+endif()++# Set default install directory permissions.+if(NOT DEFINED CMAKE_OBJDUMP)+ set(CMAKE_OBJDUMP "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump")+endif()++if(CMAKE_INSTALL_COMPONENT)+ set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")+else()+ set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")+endif()++string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT+ "${CMAKE_INSTALL_MANIFEST_FILES}")+file(WRITE "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/${CMAKE_INSTALL_MANIFEST}"+ "${CMAKE_INSTALL_MANIFEST_CONTENT}")diff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.jsonnew file mode 100644index 0000000..87d5878--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json@@ -0,0 +1,87 @@+[+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions -o CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/pffft.c\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/pffft.c"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions -o CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/fftpack.c\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/fftpack.c"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/stretch.cpp.o -c \"/Users/emanuele/Progetto Spotify/app/src/main/cpp/stretch.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/app/src/main/cpp/stretch.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Assert.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Assert.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Fourier.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Fourier.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grain.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grain.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grains.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grains.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Input.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Input.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Instrumentation.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Instrumentation.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Output.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Output.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Partials.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Partials.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretch.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretch.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretcher.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretcher.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Synthesis.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Synthesis.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Timing.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Timing.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Window.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Window.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/version.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/version.cpp"+}+]\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json.bin b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json.binnew file mode 100644index 0000000..50d6262Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json.bin differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/configure_fingerprint.bin b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/configure_fingerprint.binnew file mode 100644index 0000000..1684c5d--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/configure_fingerprint.bin@@ -0,0 +1,28 @@+C/C++ Structured Logl+j+h/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/additional_project_files.txtC+A+?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint �����3 ����3i+g+e/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build.json �����3� ����3n+l+j/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/android_gradle_build_mini.json �����3� �����3[+Y+W/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build.ninja �����3�� ����3_+]+[/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build.ninja.txt �����3d+b+`/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/build_file_index.txt �����3 @ ����3e+c+a/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json �����3�� ����3i+g+e/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/compile_commands.json.bin �����3 �" ����3o+m+k/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/metadata_generation_command.txt �����3+� ����3b+`+^/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/prefab_config.json �����3 ( ����3g+e+c/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/symbol_folder_index.txt �����3 b ����3D+B+@/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt �����3 � �Ȅ��3\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/libpffft.a b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/libpffft.anew file mode 100644index 0000000..2733104Binary files /dev/null and b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/libpffft.a differdiff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/metadata_generation_command.txt b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/metadata_generation_command.txtnew file mode 100644index 0000000..171fa5f--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/metadata_generation_command.txt@@ -0,0 +1,18 @@+ -H/Users/emanuele/Progetto Spotify/app/src/main/cpp+-DCMAKE_SYSTEM_NAME=Android+-DCMAKE_EXPORT_COMPILE_COMMANDS=ON+-DCMAKE_SYSTEM_VERSION=26+-DANDROID_PLATFORM=android-26+-DANDROID_ABI=arm64-v8a+-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a+-DANDROID_NDK=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358+-DCMAKE_ANDROID_NDK=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358+-DCMAKE_TOOLCHAIN_FILE=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake+-DCMAKE_MAKE_PROGRAM=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja+-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a+-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a+-DCMAKE_BUILD_TYPE=RelWithDebInfo+-B/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a+-GNinja+ Build command args: []+ Version: 2\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/prefab_config.json b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/prefab_config.jsonnew file mode 100644index 0000000..e799de8--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/prefab_config.json@@ -0,0 +1,4 @@+{+ "enabled": false,+ "packages": []+}\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/symbol_folder_index.txt b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/symbol_folder_index.txtnew file mode 100644index 0000000..81717bb--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a/symbol_folder_index.txt@@ -0,0 +1 @@+/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/151m4dr6/obj/arm64-v8a\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/151m4dr6/hash_key.txt b/app/.cxx/RelWithDebInfo/151m4dr6/hash_key.txtnew file mode 100644index 0000000..8925c9d--- /dev/null+++ b/app/.cxx/RelWithDebInfo/151m4dr6/hash_key.txt@@ -0,0 +1,25 @@+# Values used to calculate the hash in this folder name.+# Should not depend on the absolute path of the project itself.+# - AGP: 8.13.2.+# - $NDK is the path to NDK 28.2.13676358.+# - $PROJECT is the path to the parent folder of the root Gradle build file.+# - $ABI is the ABI to be built with. The specific value doesn't contribute to the value of the hash.+# - $HASH is the hash value computed from this text.+# - $CMAKE is the path to CMake 3.22.1.+# - $NINJA is the path to Ninja.+-H$PROJECT/app/src/main/cpp+-DCMAKE_SYSTEM_NAME=Android+-DCMAKE_EXPORT_COMPILE_COMMANDS=ON+-DCMAKE_SYSTEM_VERSION=26+-DANDROID_PLATFORM=android-26+-DANDROID_ABI=$ABI+-DCMAKE_ANDROID_ARCH_ABI=$ABI+-DANDROID_NDK=$NDK+-DCMAKE_ANDROID_NDK=$NDK+-DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake+-DCMAKE_MAKE_PROGRAM=$NINJA+-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=$PROJECT/app/build/intermediates/cxx/RelWithDebInfo/$HASH/obj/$ABI+-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$PROJECT/app/build/intermediates/cxx/RelWithDebInfo/$HASH/obj/$ABI+-DCMAKE_BUILD_TYPE=RelWithDebInfo+-B$PROJECT/app/.cxx/RelWithDebInfo/$HASH/$ABI+-GNinja\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/query/client-agp/cache-v2 b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/query/client-agp/cache-v2new file mode 100644index 0000000..e69de29diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/query/client-agp/cmakeFiles-v1 b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/query/client-agp/cmakeFiles-v1new file mode 100644index 0000000..e69de29diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/query/client-agp/codemodel-v2 b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/query/client-agp/codemodel-v2new file mode 100644index 0000000..e69de29diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/cache-v2-efd41a3c1fface4e3a4b.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/cache-v2-efd41a3c1fface4e3a4b.jsonnew file mode 100644index 0000000..5f3eceb--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/cache-v2-efd41a3c1fface4e3a4b.json@@ -0,0 +1,1311 @@+{+ "entries" :+ [+ {+ "name" : "ANDROID_ABI",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "arm64-v8a"+ },+ {+ "name" : "ANDROID_NDK",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358"+ },+ {+ "name" : "ANDROID_PLATFORM",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "android-26"+ },+ {+ "name" : "CMAKE_ADDR2LINE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-addr2line"+ },+ {+ "name" : "CMAKE_ANDROID_ARCH_ABI",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "arm64-v8a"+ },+ {+ "name" : "CMAKE_ANDROID_NDK",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358"+ },+ {+ "name" : "CMAKE_AR",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Archiver"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar"+ },+ {+ "name" : "CMAKE_ASM_FLAGS",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during all build types."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_ASM_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during debug builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_ASM_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during release builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_BUILD_TYPE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ..."+ }+ ],+ "type" : "STRING",+ "value" : "RelWithDebInfo"+ },+ {+ "name" : "CMAKE_CACHEFILE_DIR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "This is the directory where this CMakeCache.txt was created"+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a"+ },+ {+ "name" : "CMAKE_CACHE_MAJOR_VERSION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Major version of cmake used to create the current loaded cache"+ }+ ],+ "type" : "INTERNAL",+ "value" : "3"+ },+ {+ "name" : "CMAKE_CACHE_MINOR_VERSION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Minor version of cmake used to create the current loaded cache"+ }+ ],+ "type" : "INTERNAL",+ "value" : "22"+ },+ {+ "name" : "CMAKE_CACHE_PATCH_VERSION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Patch version of cmake used to create the current loaded cache"+ }+ ],+ "type" : "INTERNAL",+ "value" : "1"+ },+ {+ "name" : "CMAKE_COMMAND",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to CMake executable."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake"+ },+ {+ "name" : "CMAKE_CPACK_COMMAND",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to cpack program executable."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cpack"+ },+ {+ "name" : "CMAKE_CTEST_COMMAND",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to ctest program executable."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ctest"+ },+ {+ "name" : "CMAKE_CXX_COMPILER_AR",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "LLVM archiver"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar"+ },+ {+ "name" : "CMAKE_CXX_COMPILER_RANLIB",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Generate index for LLVM archive"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib"+ },+ {+ "name" : "CMAKE_CXX_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during all build types."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_CXX_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during debug builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_CXX_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the CXX compiler during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : "-Os -DNDEBUG"+ },+ {+ "name" : "CMAKE_CXX_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during release builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_CXX_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the CXX compiler during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : "-O2 -g -DNDEBUG"+ },+ {+ "name" : "CMAKE_CXX_STANDARD_LIBRARIES",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Libraries linked by default with all C++ applications."+ }+ ],+ "type" : "STRING",+ "value" : "-latomic -lm"+ },+ {+ "name" : "CMAKE_C_COMPILER_AR",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "LLVM archiver"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar"+ },+ {+ "name" : "CMAKE_C_COMPILER_RANLIB",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Generate index for LLVM archive"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib"+ },+ {+ "name" : "CMAKE_C_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during all build types."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_C_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during debug builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_C_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the C compiler during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : "-Os -DNDEBUG"+ },+ {+ "name" : "CMAKE_C_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the compiler during release builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the C compiler during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : "-O2 -g -DNDEBUG"+ },+ {+ "name" : "CMAKE_C_STANDARD_LIBRARIES",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Libraries linked by default with all C applications."+ }+ ],+ "type" : "STRING",+ "value" : "-latomic -lm"+ },+ {+ "name" : "CMAKE_DLLTOOL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-dlltool"+ },+ {+ "name" : "CMAKE_EDIT_COMMAND",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to cache edit program executable."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ccmake"+ },+ {+ "name" : "CMAKE_EXECUTABLE_FORMAT",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Executable file format"+ }+ ],+ "type" : "INTERNAL",+ "value" : "ELF"+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during DEBUG builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during RELEASE builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_EXPORT_COMPILE_COMMANDS",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "ON"+ },+ {+ "name" : "CMAKE_EXTRA_GENERATOR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Name of external makefile project generator."+ }+ ],+ "type" : "INTERNAL",+ "value" : ""+ },+ {+ "name" : "CMAKE_GENERATOR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Name of generator."+ }+ ],+ "type" : "INTERNAL",+ "value" : "Ninja"+ },+ {+ "name" : "CMAKE_GENERATOR_INSTANCE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Generator instance identifier."+ }+ ],+ "type" : "INTERNAL",+ "value" : ""+ },+ {+ "name" : "CMAKE_GENERATOR_PLATFORM",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Name of generator platform."+ }+ ],+ "type" : "INTERNAL",+ "value" : ""+ },+ {+ "name" : "CMAKE_GENERATOR_TOOLSET",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Name of generator toolset."+ }+ ],+ "type" : "INTERNAL",+ "value" : ""+ },+ {+ "name" : "CMAKE_HOME_DIRECTORY",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Source directory with the top level CMakeLists.txt file for this project"+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp"+ },+ {+ "name" : "CMAKE_INSTALL_PREFIX",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Install path prefix, prepended onto install directories."+ }+ ],+ "type" : "PATH",+ "value" : "/usr/local"+ },+ {+ "name" : "CMAKE_INSTALL_SO_NO_EXE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Install .so files without execute permission."+ }+ ],+ "type" : "INTERNAL",+ "value" : "0"+ },+ {+ "name" : "CMAKE_LIBRARY_OUTPUT_DIRECTORY",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a"+ },+ {+ "name" : "CMAKE_LINKER",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld"+ },+ {+ "name" : "CMAKE_MAKE_PROGRAM",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja"+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules during DEBUG builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules during RELEASE builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_NM",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-nm"+ },+ {+ "name" : "CMAKE_NUMBER_OF_MAKEFILES",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "number of local generators"+ }+ ],+ "type" : "INTERNAL",+ "value" : "1"+ },+ {+ "name" : "CMAKE_OBJCOPY",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objcopy"+ },+ {+ "name" : "CMAKE_OBJDUMP",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump"+ },+ {+ "name" : "CMAKE_PLATFORM_INFO_INITIALIZED",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Platform information initialized"+ }+ ],+ "type" : "INTERNAL",+ "value" : "1"+ },+ {+ "name" : "CMAKE_PROJECT_DESCRIPTION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : ""+ },+ {+ "name" : "CMAKE_PROJECT_HOMEPAGE_URL",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : ""+ },+ {+ "name" : "CMAKE_PROJECT_NAME",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : "spotstretch"+ },+ {+ "name" : "CMAKE_RANLIB",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Ranlib"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib"+ },+ {+ "name" : "CMAKE_READELF",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Path to a program."+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-readelf"+ },+ {+ "name" : "CMAKE_ROOT",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Path to CMake installation."+ }+ ],+ "type" : "INTERNAL",+ "value" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22"+ },+ {+ "name" : "CMAKE_RUNTIME_OUTPUT_DIRECTORY",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a"+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of dll's."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_SKIP_INSTALL_RPATH",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building."+ }+ ],+ "type" : "BOOL",+ "value" : "NO"+ },+ {+ "name" : "CMAKE_SKIP_RPATH",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "If set, runtime paths are not added when using shared libraries."+ }+ ],+ "type" : "BOOL",+ "value" : "NO"+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during all build types."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds."+ }+ ],+ "type" : "STRING",+ "value" : ""+ },+ {+ "name" : "CMAKE_STRIP",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "Strip"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip"+ },+ {+ "name" : "CMAKE_SYSTEM_NAME",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "Android"+ },+ {+ "name" : "CMAKE_SYSTEM_VERSION",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "No help, variable specified on the command line."+ }+ ],+ "type" : "UNINITIALIZED",+ "value" : "26"+ },+ {+ "name" : "CMAKE_TOOLCHAIN_FILE",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "The CMake toolchain file"+ }+ ],+ "type" : "FILEPATH",+ "value" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake"+ },+ {+ "name" : "CMAKE_UNAME",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "uname command"+ }+ ],+ "type" : "INTERNAL",+ "value" : "/usr/bin/uname"+ },+ {+ "name" : "CMAKE_VERBOSE_MAKEFILE",+ "properties" :+ [+ {+ "name" : "ADVANCED",+ "value" : "1"+ },+ {+ "name" : "HELPSTRING",+ "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo."+ }+ ],+ "type" : "BOOL",+ "value" : "FALSE"+ },+ {+ "name" : "spotstretch_BINARY_DIR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a"+ },+ {+ "name" : "spotstretch_IS_TOP_LEVEL",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : "ON"+ },+ {+ "name" : "spotstretch_SOURCE_DIR",+ "properties" :+ [+ {+ "name" : "HELPSTRING",+ "value" : "Value Computed by CMake"+ }+ ],+ "type" : "STATIC",+ "value" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp"+ }+ ],+ "kind" : "cache",+ "version" :+ {+ "major" : 2,+ "minor" : 0+ }+}diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/cmakeFiles-v1-566b84c9bd2fda18f867.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/cmakeFiles-v1-566b84c9bd2fda18f867.jsonnew file mode 100644index 0000000..f424aca--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/cmakeFiles-v1-566b84c9bd2fda18f867.json@@ -0,0 +1,803 @@+{+ "inputs" :+ [+ {+ "path" : "CMakeLists.txt"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android-legacy.toolchain.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/abis.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/platforms.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Determine.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystem.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Initialize.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Initialize.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-CXX.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android/Determine-Compiler.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Determine-Compiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-FindBinUtils.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-C.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android/Determine-Compiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-C-DetermineCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-FindBinUtils.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompiler.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeGenericSystem.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Linux.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/UnixPaths.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-CXX.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-CXX.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Clang.cmake"+ },+ {+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/flags.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-C.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-C.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake"+ },+ {+ "isCMake" : true,+ "isExternal" : true,+ "path" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompiler.cmake.in"+ },+ {+ "isGenerated" : true,+ "path" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake"+ }+ ],+ "kind" : "cmakeFiles",+ "paths" :+ {+ "build" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "source" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp"+ },+ "version" :+ {+ "major" : 1,+ "minor" : 0+ }+}diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-bc5ca881f99c5749e75b.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-bc5ca881f99c5749e75b.jsonnew file mode 100644index 0000000..46f1e02--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/codemodel-v2-bc5ca881f99c5749e75b.json@@ -0,0 +1,69 @@+{+ "configurations" :+ [+ {+ "directories" :+ [+ {+ "build" : ".",+ "jsonFile" : "directory-.-RelWithDebInfo-f5ebdc15457944623624.json",+ "minimumCMakeVersion" :+ {+ "string" : "3.10.0"+ },+ "projectIndex" : 0,+ "source" : ".",+ "targetIndexes" :+ [+ 0,+ 1+ ]+ }+ ],+ "name" : "RelWithDebInfo",+ "projects" :+ [+ {+ "directoryIndexes" :+ [+ 0+ ],+ "name" : "spotstretch",+ "targetIndexes" :+ [+ 0,+ 1+ ]+ }+ ],+ "targets" :+ [+ {+ "directoryIndex" : 0,+ "id" : "pffft::@6890427a1f51a3e7e1df",+ "jsonFile" : "target-pffft-RelWithDebInfo-d5df56b99e7204590652.json",+ "name" : "pffft",+ "projectIndex" : 0+ },+ {+ "directoryIndex" : 0,+ "id" : "spotstretch::@6890427a1f51a3e7e1df",+ "jsonFile" : "target-spotstretch-RelWithDebInfo-b76dffef761a80309081.json",+ "name" : "spotstretch",+ "projectIndex" : 0+ }+ ]+ }+ ],+ "kind" : "codemodel",+ "paths" :+ {+ "build" : "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "source" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp"+ },+ "version" :+ {+ "major" : 2,+ "minor" : 3+ }+}diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/directory-.-RelWithDebInfo-f5ebdc15457944623624.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/directory-.-RelWithDebInfo-f5ebdc15457944623624.jsonnew file mode 100644index 0000000..3a67af9--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/directory-.-RelWithDebInfo-f5ebdc15457944623624.json@@ -0,0 +1,14 @@+{+ "backtraceGraph" :+ {+ "commands" : [],+ "files" : [],+ "nodes" : []+ },+ "installers" : [],+ "paths" :+ {+ "build" : ".",+ "source" : "."+ }+}diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/index-2026-08-03T12-43-14-0821.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/index-2026-08-03T12-43-14-0821.jsonnew file mode 100644index 0000000..11a9a04--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/index-2026-08-03T12-43-14-0821.json@@ -0,0 +1,92 @@+{+ "cmake" :+ {+ "generator" :+ {+ "multiConfig" : false,+ "name" : "Ninja"+ },+ "paths" :+ {+ "cmake" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake",+ "cpack" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cpack",+ "ctest" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ctest",+ "root" : "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22"+ },+ "version" :+ {+ "isDirty" : false,+ "major" : 3,+ "minor" : 22,+ "patch" : 1,+ "string" : "3.22.1-g37088a8",+ "suffix" : "g37088a8"+ }+ },+ "objects" :+ [+ {+ "jsonFile" : "codemodel-v2-bc5ca881f99c5749e75b.json",+ "kind" : "codemodel",+ "version" :+ {+ "major" : 2,+ "minor" : 3+ }+ },+ {+ "jsonFile" : "cache-v2-efd41a3c1fface4e3a4b.json",+ "kind" : "cache",+ "version" :+ {+ "major" : 2,+ "minor" : 0+ }+ },+ {+ "jsonFile" : "cmakeFiles-v1-566b84c9bd2fda18f867.json",+ "kind" : "cmakeFiles",+ "version" :+ {+ "major" : 1,+ "minor" : 0+ }+ }+ ],+ "reply" :+ {+ "client-agp" :+ {+ "cache-v2" :+ {+ "jsonFile" : "cache-v2-efd41a3c1fface4e3a4b.json",+ "kind" : "cache",+ "version" :+ {+ "major" : 2,+ "minor" : 0+ }+ },+ "cmakeFiles-v1" :+ {+ "jsonFile" : "cmakeFiles-v1-566b84c9bd2fda18f867.json",+ "kind" : "cmakeFiles",+ "version" :+ {+ "major" : 1,+ "minor" : 0+ }+ },+ "codemodel-v2" :+ {+ "jsonFile" : "codemodel-v2-bc5ca881f99c5749e75b.json",+ "kind" : "codemodel",+ "version" :+ {+ "major" : 2,+ "minor" : 3+ }+ }+ }+ }+}diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/target-pffft-RelWithDebInfo-d5df56b99e7204590652.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/target-pffft-RelWithDebInfo-d5df56b99e7204590652.jsonnew file mode 100644index 0000000..a89ee19--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/target-pffft-RelWithDebInfo-d5df56b99e7204590652.json@@ -0,0 +1,108 @@+{+ "archive" : {},+ "artifacts" :+ [+ {+ "path" : "libpffft.a"+ }+ ],+ "backtrace" : 1,+ "backtraceGraph" :+ {+ "commands" :+ [+ "add_library",+ "target_compile_options"+ ],+ "files" :+ [+ "CMakeLists.txt"+ ],+ "nodes" :+ [+ {+ "file" : 0+ },+ {+ "command" : 0,+ "file" : 0,+ "line" : 27,+ "parent" : 0+ },+ {+ "command" : 1,+ "file" : 0,+ "line" : 30,+ "parent" : 0+ }+ ]+ },+ "compileGroups" :+ [+ {+ "compileCommandFragments" :+ [+ {+ "fragment" : "-g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC"+ },+ {+ "backtrace" : 2,+ "fragment" : "-ffast-math"+ },+ {+ "backtrace" : 2,+ "fragment" : "-fno-finite-math-only"+ },+ {+ "backtrace" : 2,+ "fragment" : "-fno-exceptions"+ }+ ],+ "language" : "C",+ "sourceIndexes" :+ [+ 0,+ 1+ ],+ "sysroot" :+ {+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot"+ }+ }+ ],+ "id" : "pffft::@6890427a1f51a3e7e1df",+ "name" : "pffft",+ "nameOnDisk" : "libpffft.a",+ "paths" :+ {+ "build" : ".",+ "source" : "."+ },+ "sourceGroups" :+ [+ {+ "name" : "Source Files",+ "sourceIndexes" :+ [+ 0,+ 1+ ]+ }+ ],+ "sources" :+ [+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/pffft.c",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/fftpack.c",+ "sourceGroupIndex" : 0+ }+ ],+ "type" : "STATIC_LIBRARY"+}diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/target-spotstretch-RelWithDebInfo-b76dffef761a80309081.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/target-spotstretch-RelWithDebInfo-b76dffef761a80309081.jsonnew file mode 100644index 0000000..c0b3463--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.cmake/api/v1/reply/target-spotstretch-RelWithDebInfo-b76dffef761a80309081.json@@ -0,0 +1,293 @@+{+ "artifacts" :+ [+ {+ "path" : "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so"+ }+ ],+ "backtrace" : 1,+ "backtraceGraph" :+ {+ "commands" :+ [+ "add_library",+ "target_link_libraries",+ "target_compile_definitions",+ "target_include_directories"+ ],+ "files" :+ [+ "CMakeLists.txt"+ ],+ "nodes" :+ [+ {+ "file" : 0+ },+ {+ "command" : 0,+ "file" : 0,+ "line" : 34,+ "parent" : 0+ },+ {+ "command" : 1,+ "file" : 0,+ "line" : 48,+ "parent" : 0+ },+ {+ "command" : 2,+ "file" : 0,+ "line" : 43,+ "parent" : 0+ },+ {+ "command" : 3,+ "file" : 0,+ "line" : 36,+ "parent" : 0+ }+ ]+ },+ "compileGroups" :+ [+ {+ "compileCommandFragments" :+ [+ {+ "fragment" : "-g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC"+ },+ {+ "fragment" : "-std=gnu++20"+ }+ ],+ "defines" :+ [+ {+ "backtrace" : 3,+ "define" : "BUNGEE_SELF_TEST=0"+ },+ {+ "backtrace" : 3,+ "define" : "BUNGEE_VERSION=\"\""+ },+ {+ "backtrace" : 3,+ "define" : "eigen_assert=BUNGEE_ASSERT1"+ },+ {+ "define" : "spotstretch_EXPORTS"+ }+ ],+ "includes" :+ [+ {+ "backtrace" : 4,+ "path" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee"+ },+ {+ "backtrace" : 4,+ "path" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules"+ },+ {+ "backtrace" : 4,+ "path" : "/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ }+ ],+ "language" : "CXX",+ "languageStandard" :+ {+ "backtraces" :+ [+ 1+ ],+ "standard" : "20"+ },+ "sourceIndexes" :+ [+ 0,+ 1,+ 2,+ 3,+ 4,+ 5,+ 6,+ 7,+ 8,+ 9,+ 10,+ 11,+ 12,+ 13,+ 14+ ],+ "sysroot" :+ {+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot"+ }+ }+ ],+ "dependencies" :+ [+ {+ "backtrace" : 2,+ "id" : "pffft::@6890427a1f51a3e7e1df"+ }+ ],+ "id" : "spotstretch::@6890427a1f51a3e7e1df",+ "link" :+ {+ "commandFragments" :+ [+ {+ "fragment" : "-static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections",+ "role" : "flags"+ },+ {+ "backtrace" : 2,+ "fragment" : "libpffft.a",+ "role" : "libraries"+ },+ {+ "backtrace" : 2,+ "fragment" : "-llog",+ "role" : "libraries"+ },+ {+ "fragment" : "-latomic -lm",+ "role" : "libraries"+ }+ ],+ "language" : "CXX",+ "sysroot" :+ {+ "path" : "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot"+ }+ },+ "name" : "spotstretch",+ "nameOnDisk" : "libspotstretch.so",+ "paths" :+ {+ "build" : ".",+ "source" : "."+ },+ "sourceGroups" :+ [+ {+ "name" : "Source Files",+ "sourceIndexes" :+ [+ 0,+ 1,+ 2,+ 3,+ 4,+ 5,+ 6,+ 7,+ 8,+ 9,+ 10,+ 11,+ 12,+ 13,+ 14+ ]+ }+ ],+ "sources" :+ [+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "stretch.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Assert.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Fourier.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grain.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grains.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Input.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Instrumentation.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Output.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Partials.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretch.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretcher.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Synthesis.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Timing.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Window.cpp",+ "sourceGroupIndex" : 0+ },+ {+ "backtrace" : 1,+ "compileGroupIndex" : 0,+ "path" : "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/version.cpp",+ "sourceGroupIndex" : 0+ }+ ],+ "type" : "SHARED_LIBRARY"+}diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.ninja_deps b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.ninja_depsnew file mode 100644index 0000000..f0a8707Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.ninja_deps differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.ninja_log b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.ninja_lognew file mode 100644index 0000000..546a5fe--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/.ninja_log@@ -0,0 +1,20 @@+# ninja log v5+1 5569 1785761000877626007 CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o 68027d55983c9452+8 7729 1785761003076160368 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o 2e43e821b2ea564f+7 8405 1785761003759714057 CMakeFiles/spotstretch.dir/stretch.cpp.o 35fdbfe44e943e6d+16 12976 1785761008328714968 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o ca0bf9b97430432+5 13635 1785761008960370867 CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o 1ed7c45bc139e184+13635 14000 1785761009375884000 libpffft.a bb4a5d4a7112ab6c+10 15118 1785761010457539718 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o a49204e9a94980f6+13 15299 1785761010647127487 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o b98296741c3c4db3+15299 15412 1785761010784346658 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o b0c4d88be304141d+14 16607 1785761011878018794 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o a90ce43bedb78bc+17 17524 1785761012830835878 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o 19d6700aa5fb07ac+11 17898 1785761013241275985 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o bc604516fb55c553+5570 19336 1785761014687161534 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o a4762c12adda1f18+7742 20027 1785761015372972170 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o f8b38af35eccf477+12980 23309 1785761018653156033 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o 5c1bc5bb7ba12524+14000 23844 1785761019195174121 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o 1669617b26cd26e7+15118 24488 1785761019836880776 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o dd368edb0bc1de1b+8406 24603 1785761019943659634 CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o 49b0e10753e7a2eb+24603 25184 1785761020501404693 /Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so 4fd422ba14d7bda4diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeCache.txt b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeCache.txtnew file mode 100644index 0000000..fec4000--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeCache.txt@@ -0,0 +1,395 @@+# This is the CMakeCache file.+# For build in directory: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a+# It was generated by CMake: /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake+# You can edit this file to change values found and used by cmake.+# If you do not want to change any of the values, simply exit the editor.+# If you do want to change a value, simply edit, save, and exit the editor.+# The syntax for the file is as follows:+# KEY:TYPE=VALUE+# KEY is the name of a variable in the cache.+# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.+# VALUE is the current value for the KEY.++########################+# EXTERNAL cache entries+########################++//No help, variable specified on the command line.+ANDROID_ABI:UNINITIALIZED=arm64-v8a++//No help, variable specified on the command line.+ANDROID_NDK:UNINITIALIZED=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358++//No help, variable specified on the command line.+ANDROID_PLATFORM:UNINITIALIZED=android-26++//Path to a program.+CMAKE_ADDR2LINE:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-addr2line++//No help, variable specified on the command line.+CMAKE_ANDROID_ARCH_ABI:UNINITIALIZED=arm64-v8a++//No help, variable specified on the command line.+CMAKE_ANDROID_NDK:UNINITIALIZED=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358++//Archiver+CMAKE_AR:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar++//Flags used by the compiler during all build types.+CMAKE_ASM_FLAGS:STRING=++//Flags used by the compiler during debug builds.+CMAKE_ASM_FLAGS_DEBUG:STRING=++//Flags used by the compiler during release builds.+CMAKE_ASM_FLAGS_RELEASE:STRING=++//Choose the type of build, options are: None Debug Release RelWithDebInfo+// MinSizeRel ...+CMAKE_BUILD_TYPE:STRING=RelWithDebInfo++//LLVM archiver+CMAKE_CXX_COMPILER_AR:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar++//Generate index for LLVM archive+CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib++//Flags used by the compiler during all build types.+CMAKE_CXX_FLAGS:STRING=++//Flags used by the compiler during debug builds.+CMAKE_CXX_FLAGS_DEBUG:STRING=++//Flags used by the CXX compiler during MINSIZEREL builds.+CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG++//Flags used by the compiler during release builds.+CMAKE_CXX_FLAGS_RELEASE:STRING=++//Flags used by the CXX compiler during RELWITHDEBINFO builds.+CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG++//Libraries linked by default with all C++ applications.+CMAKE_CXX_STANDARD_LIBRARIES:STRING=-latomic -lm++//LLVM archiver+CMAKE_C_COMPILER_AR:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar++//Generate index for LLVM archive+CMAKE_C_COMPILER_RANLIB:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib++//Flags used by the compiler during all build types.+CMAKE_C_FLAGS:STRING=++//Flags used by the compiler during debug builds.+CMAKE_C_FLAGS_DEBUG:STRING=++//Flags used by the C compiler during MINSIZEREL builds.+CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG++//Flags used by the compiler during release builds.+CMAKE_C_FLAGS_RELEASE:STRING=++//Flags used by the C compiler during RELWITHDEBINFO builds.+CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG++//Libraries linked by default with all C applications.+CMAKE_C_STANDARD_LIBRARIES:STRING=-latomic -lm++//Path to a program.+CMAKE_DLLTOOL:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-dlltool++//Flags used by the linker.+CMAKE_EXE_LINKER_FLAGS:STRING=++//Flags used by the linker during DEBUG builds.+CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=++//Flags used by the linker during MINSIZEREL builds.+CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=++//Flags used by the linker during RELEASE builds.+CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=++//Flags used by the linker during RELWITHDEBINFO builds.+CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=++//No help, variable specified on the command line.+CMAKE_EXPORT_COMPILE_COMMANDS:UNINITIALIZED=ON++//Install path prefix, prepended onto install directories.+CMAKE_INSTALL_PREFIX:PATH=/usr/local++//No help, variable specified on the command line.+CMAKE_LIBRARY_OUTPUT_DIRECTORY:UNINITIALIZED=/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a++//Path to a program.+CMAKE_LINKER:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld++//No help, variable specified on the command line.+CMAKE_MAKE_PROGRAM:UNINITIALIZED=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja++//Flags used by the linker during the creation of modules.+CMAKE_MODULE_LINKER_FLAGS:STRING=++//Flags used by the linker during the creation of modules during+// DEBUG builds.+CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=++//Flags used by the linker during the creation of modules during+// MINSIZEREL builds.+CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=++//Flags used by the linker during the creation of modules during+// RELEASE builds.+CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=++//Flags used by the linker during the creation of modules during+// RELWITHDEBINFO builds.+CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=++//Path to a program.+CMAKE_NM:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-nm++//Path to a program.+CMAKE_OBJCOPY:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objcopy++//Path to a program.+CMAKE_OBJDUMP:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump++//Value Computed by CMake+CMAKE_PROJECT_DESCRIPTION:STATIC=++//Value Computed by CMake+CMAKE_PROJECT_HOMEPAGE_URL:STATIC=++//Value Computed by CMake+CMAKE_PROJECT_NAME:STATIC=spotstretch++//Ranlib+CMAKE_RANLIB:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib++//Path to a program.+CMAKE_READELF:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-readelf++//No help, variable specified on the command line.+CMAKE_RUNTIME_OUTPUT_DIRECTORY:UNINITIALIZED=/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a++//Flags used by the linker during the creation of dll's.+CMAKE_SHARED_LINKER_FLAGS:STRING=++//Flags used by the linker during the creation of shared libraries+// during DEBUG builds.+CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=++//Flags used by the linker during the creation of shared libraries+// during MINSIZEREL builds.+CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=++//Flags used by the linker during the creation of shared libraries+// during RELEASE builds.+CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=++//Flags used by the linker during the creation of shared libraries+// during RELWITHDEBINFO builds.+CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=++//If set, runtime paths are not added when installing shared libraries,+// but are added when building.+CMAKE_SKIP_INSTALL_RPATH:BOOL=NO++//If set, runtime paths are not added when using shared libraries.+CMAKE_SKIP_RPATH:BOOL=NO++//Flags used by the linker during the creation of static libraries+// during all build types.+CMAKE_STATIC_LINKER_FLAGS:STRING=++//Flags used by the linker during the creation of static libraries+// during DEBUG builds.+CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=++//Flags used by the linker during the creation of static libraries+// during MINSIZEREL builds.+CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=++//Flags used by the linker during the creation of static libraries+// during RELEASE builds.+CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=++//Flags used by the linker during the creation of static libraries+// during RELWITHDEBINFO builds.+CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=++//Strip+CMAKE_STRIP:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-strip++//No help, variable specified on the command line.+CMAKE_SYSTEM_NAME:UNINITIALIZED=Android++//No help, variable specified on the command line.+CMAKE_SYSTEM_VERSION:UNINITIALIZED=26++//The CMake toolchain file+CMAKE_TOOLCHAIN_FILE:FILEPATH=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake++//If this value is on, makefiles will be generated without the+// .SILENT directive, and all commands will be echoed to the console+// during the make. This is useful for debugging only. With Visual+// Studio IDE projects all commands are done without /nologo.+CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE++//Value Computed by CMake+spotstretch_BINARY_DIR:STATIC=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a++//Value Computed by CMake+spotstretch_IS_TOP_LEVEL:STATIC=ON++//Value Computed by CMake+spotstretch_SOURCE_DIR:STATIC=/Users/emanuele/Progetto Spotify/app/src/main/cpp+++########################+# INTERNAL cache entries+########################++//ADVANCED property for variable: CMAKE_ADDR2LINE+CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_AR+CMAKE_AR-ADVANCED:INTERNAL=1+//This is the directory where this CMakeCache.txt was created+CMAKE_CACHEFILE_DIR:INTERNAL=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a+//Major version of cmake used to create the current loaded cache+CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3+//Minor version of cmake used to create the current loaded cache+CMAKE_CACHE_MINOR_VERSION:INTERNAL=22+//Patch version of cmake used to create the current loaded cache+CMAKE_CACHE_PATCH_VERSION:INTERNAL=1+//Path to CMake executable.+CMAKE_COMMAND:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake+//Path to cpack program executable.+CMAKE_CPACK_COMMAND:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cpack+//Path to ctest program executable.+CMAKE_CTEST_COMMAND:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ctest+//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR+CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB+CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS+CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG+CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL+CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE+CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO+CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES+CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_COMPILER_AR+CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB+CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS+CMAKE_C_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG+CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL+CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE+CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO+CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES+CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_DLLTOOL+CMAKE_DLLTOOL-ADVANCED:INTERNAL=1+//Path to cache edit program executable.+CMAKE_EDIT_COMMAND:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ccmake+//Executable file format+CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS+CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG+CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL+CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE+CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO+CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//Name of external makefile project generator.+CMAKE_EXTRA_GENERATOR:INTERNAL=+//Name of generator.+CMAKE_GENERATOR:INTERNAL=Ninja+//Generator instance identifier.+CMAKE_GENERATOR_INSTANCE:INTERNAL=+//Name of generator platform.+CMAKE_GENERATOR_PLATFORM:INTERNAL=+//Name of generator toolset.+CMAKE_GENERATOR_TOOLSET:INTERNAL=+//Source directory with the top level CMakeLists.txt file for this+// project+CMAKE_HOME_DIRECTORY:INTERNAL=/Users/emanuele/Progetto Spotify/app/src/main/cpp+//Install .so files without execute permission.+CMAKE_INSTALL_SO_NO_EXE:INTERNAL=0+//ADVANCED property for variable: CMAKE_LINKER+CMAKE_LINKER-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS+CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG+CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL+CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE+CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO+CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_NM+CMAKE_NM-ADVANCED:INTERNAL=1+//number of local generators+CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1+//ADVANCED property for variable: CMAKE_OBJCOPY+CMAKE_OBJCOPY-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_OBJDUMP+CMAKE_OBJDUMP-ADVANCED:INTERNAL=1+//Platform information initialized+CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1+//ADVANCED property for variable: CMAKE_RANLIB+CMAKE_RANLIB-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_READELF+CMAKE_READELF-ADVANCED:INTERNAL=1+//Path to CMake installation.+CMAKE_ROOT:INTERNAL=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS+CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG+CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL+CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE+CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO+CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH+CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_SKIP_RPATH+CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS+CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG+CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL+CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE+CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO+CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1+//ADVANCED property for variable: CMAKE_STRIP+CMAKE_STRIP-ADVANCED:INTERNAL=1+//uname command+CMAKE_UNAME:INTERNAL=/usr/bin/uname+//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE+CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1+diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmakenew file mode 100644index 0000000..d276e52--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake@@ -0,0 +1,72 @@+set(CMAKE_C_COMPILER "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang")+set(CMAKE_C_COMPILER_ARG1 "")+set(CMAKE_C_COMPILER_ID "Clang")+set(CMAKE_C_COMPILER_VERSION "19.0.1")+set(CMAKE_C_COMPILER_VERSION_INTERNAL "")+set(CMAKE_C_COMPILER_WRAPPER "")+set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17")+set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "ON")+set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23")+set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")+set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")+set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")+set(CMAKE_C17_COMPILE_FEATURES "c_std_17")+set(CMAKE_C23_COMPILE_FEATURES "c_std_23")++set(CMAKE_C_PLATFORM_ID "Linux")+set(CMAKE_C_SIMULATE_ID "")+set(CMAKE_C_COMPILER_FRONTEND_VARIANT "GNU")+set(CMAKE_C_SIMULATE_VERSION "")+++++set(CMAKE_AR "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar")+set(CMAKE_C_COMPILER_AR "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar")+set(CMAKE_RANLIB "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib")+set(CMAKE_C_COMPILER_RANLIB "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib")+set(CMAKE_LINKER "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld")+set(CMAKE_MT "")+set(CMAKE_COMPILER_IS_GNUCC )+set(CMAKE_C_COMPILER_LOADED 1)+set(CMAKE_C_COMPILER_WORKS TRUE)+set(CMAKE_C_ABI_COMPILED TRUE)++set(CMAKE_C_COMPILER_ENV_VAR "CC")++set(CMAKE_C_COMPILER_ID_RUN 1)+set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)+set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)+set(CMAKE_C_LINKER_PREFERENCE 10)++# Save compiler ABI information.+set(CMAKE_C_SIZEOF_DATA_PTR "8")+set(CMAKE_C_COMPILER_ABI "ELF")+set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")+set(CMAKE_C_LIBRARY_ARCHITECTURE "")++if(CMAKE_C_SIZEOF_DATA_PTR)+ set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")+endif()++if(CMAKE_C_COMPILER_ABI)+ set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")+endif()++if(CMAKE_C_LIBRARY_ARCHITECTURE)+ set(CMAKE_LIBRARY_ARCHITECTURE "")+endif()++set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")+if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)+ set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")+endif()++++++set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include")+set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "-l:libunwind.a;dl;c;-l:libunwind.a;dl")+set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib")+set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmakenew file mode 100644index 0000000..2ee5c79--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake@@ -0,0 +1,83 @@+set(CMAKE_CXX_COMPILER "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++")+set(CMAKE_CXX_COMPILER_ARG1 "")+set(CMAKE_CXX_COMPILER_ID "Clang")+set(CMAKE_CXX_COMPILER_VERSION "19.0.1")+set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")+set(CMAKE_CXX_COMPILER_WRAPPER "")+set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "17")+set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "ON")+set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20;cxx_std_23")+set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")+set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")+set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")+set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")+set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")+set(CMAKE_CXX23_COMPILE_FEATURES "cxx_std_23")++set(CMAKE_CXX_PLATFORM_ID "Linux")+set(CMAKE_CXX_SIMULATE_ID "")+set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "GNU")+set(CMAKE_CXX_SIMULATE_VERSION "")+++++set(CMAKE_AR "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar")+set(CMAKE_CXX_COMPILER_AR "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar")+set(CMAKE_RANLIB "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib")+set(CMAKE_CXX_COMPILER_RANLIB "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib")+set(CMAKE_LINKER "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld")+set(CMAKE_MT "")+set(CMAKE_COMPILER_IS_GNUCXX )+set(CMAKE_CXX_COMPILER_LOADED 1)+set(CMAKE_CXX_COMPILER_WORKS TRUE)+set(CMAKE_CXX_ABI_COMPILED TRUE)++set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")++set(CMAKE_CXX_COMPILER_ID_RUN 1)+set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm)+set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)++foreach (lang C OBJC OBJCXX)+ if (CMAKE_${lang}_COMPILER_ID_RUN)+ foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)+ list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})+ endforeach()+ endif()+endforeach()++set(CMAKE_CXX_LINKER_PREFERENCE 30)+set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)++# Save compiler ABI information.+set(CMAKE_CXX_SIZEOF_DATA_PTR "8")+set(CMAKE_CXX_COMPILER_ABI "ELF")+set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")+set(CMAKE_CXX_LIBRARY_ARCHITECTURE "")++if(CMAKE_CXX_SIZEOF_DATA_PTR)+ set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")+endif()++if(CMAKE_CXX_COMPILER_ABI)+ set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")+endif()++if(CMAKE_CXX_LIBRARY_ARCHITECTURE)+ set(CMAKE_LIBRARY_ARCHITECTURE "")+endif()++set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")+if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)+ set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")+endif()++++++set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include")+set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "c++;m;-l:libunwind.a;dl;c;-l:libunwind.a;dl")+set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib")+set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.binnew file mode 100755index 0000000..49e5c71Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_C.bin differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.binnew file mode 100755index 0000000..43eb27bBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeDetermineCompilerABI_CXX.bin differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmakenew file mode 100644index 0000000..bcb3600--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake@@ -0,0 +1,15 @@+set(CMAKE_HOST_SYSTEM "Darwin-24.6.0")+set(CMAKE_HOST_SYSTEM_NAME "Darwin")+set(CMAKE_HOST_SYSTEM_VERSION "24.6.0")+set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")++include("/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake")++set(CMAKE_SYSTEM "Android-1")+set(CMAKE_SYSTEM_NAME "Android")+set(CMAKE_SYSTEM_VERSION "1")+set(CMAKE_SYSTEM_PROCESSOR "aarch64")++set(CMAKE_CROSSCOMPILING "TRUE")++set(CMAKE_SYSTEM_LOADED 1)diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.cnew file mode 100644index 0000000..41b99d7--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.c@@ -0,0 +1,803 @@+#ifdef __cplusplus+# error "A C++ compiler has been selected for C."+#endif++#if defined(__18CXX)+# define ID_VOID_MAIN+#endif+#if defined(__CLASSIC_C__)+/* cv-qualifiers did not exist in K&R C */+# define const+# define volatile+#endif++#if !defined(__has_include)+/* If the compiler does not have __has_include, pretend the answer is+ always no. */+# define __has_include(x) 0+#endif+++/* Version number components: V=Version, R=Revision, P=Patch+ Version date components: YYYY=Year, MM=Month, DD=Day */++#if defined(__INTEL_COMPILER) || defined(__ICC)+# define COMPILER_ID "Intel"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# if defined(__GNUC__)+# define SIMULATE_ID "GNU"+# endif+ /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,+ except that a few beta releases use the old format with V=2021. */+# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111+# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)+# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)+# if defined(__INTEL_COMPILER_UPDATE)+# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)+# else+# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)+# endif+# else+# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)+# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)+ /* The third version component from --version is an update index,+ but no macro is provided for it. */+# define COMPILER_VERSION_PATCH DEC(0)+# endif+# if defined(__INTEL_COMPILER_BUILD_DATE)+ /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */+# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)+# endif+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif+# if defined(__GNUC__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)+# elif defined(__GNUG__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)+# endif+# if defined(__GNUC_MINOR__)+# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)+# endif+# if defined(__GNUC_PATCHLEVEL__)+# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+# endif++#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)+# define COMPILER_ID "IntelLLVM"+#if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+#endif+#if defined(__GNUC__)+# define SIMULATE_ID "GNU"+#endif+/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and+ * later. Look for 6 digit vs. 8 digit version number to decide encoding.+ * VVVV is no smaller than the current year when a version is released.+ */+#if __INTEL_LLVM_COMPILER < 1000000L+# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)+# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)+#else+# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)+# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)+# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)+#endif+#if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+#endif+#if defined(__GNUC__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)+#elif defined(__GNUG__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)+#endif+#if defined(__GNUC_MINOR__)+# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)+#endif+#if defined(__GNUC_PATCHLEVEL__)+# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+#endif++#elif defined(__PATHCC__)+# define COMPILER_ID "PathScale"+# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)+# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)+# if defined(__PATHCC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)+# endif++#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)+# define COMPILER_ID "Embarcadero"+# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)+# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)+# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)++#elif defined(__BORLANDC__)+# define COMPILER_ID "Borland"+ /* __BORLANDC__ = 0xVRR */+# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)+# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)++#elif defined(__WATCOMC__) && __WATCOMC__ < 1200+# define COMPILER_ID "Watcom"+ /* __WATCOMC__ = VVRR */+# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)+# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)+# if (__WATCOMC__ % 10) > 0+# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)+# endif++#elif defined(__WATCOMC__)+# define COMPILER_ID "OpenWatcom"+ /* __WATCOMC__ = VVRP + 1100 */+# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)+# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)+# if (__WATCOMC__ % 10) > 0+# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)+# endif++#elif defined(__SUNPRO_C)+# define COMPILER_ID "SunPro"+# if __SUNPRO_C >= 0x5100+ /* __SUNPRO_C = 0xVRRP */+# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)+# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)+# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)+# else+ /* __SUNPRO_CC = 0xVRP */+# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)+# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)+# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)+# endif++#elif defined(__HP_cc)+# define COMPILER_ID "HP"+ /* __HP_cc = VVRRPP */+# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)+# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)+# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)++#elif defined(__DECC)+# define COMPILER_ID "Compaq"+ /* __DECC_VER = VVRRTPPPP */+# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)+# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)+# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)++#elif defined(__IBMC__) && defined(__COMPILER_VER__)+# define COMPILER_ID "zOS"+ /* __IBMC__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)++#elif defined(__ibmxl__) && defined(__clang__)+# define COMPILER_ID "XLClang"+# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)+# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)+# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)+# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)+++#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800+# define COMPILER_ID "XL"+ /* __IBMC__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)++#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800+# define COMPILER_ID "VisualAge"+ /* __IBMC__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)++#elif defined(__NVCOMPILER)+# define COMPILER_ID "NVHPC"+# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)+# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)+# if defined(__NVCOMPILER_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)+# endif++#elif defined(__PGI)+# define COMPILER_ID "PGI"+# define COMPILER_VERSION_MAJOR DEC(__PGIC__)+# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)+# if defined(__PGIC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)+# endif++#elif defined(_CRAYC)+# define COMPILER_ID "Cray"+# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)+# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)++#elif defined(__TI_COMPILER_VERSION__)+# define COMPILER_ID "TI"+ /* __TI_COMPILER_VERSION__ = VVVRRRPPP */+# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)+# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)+# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)++#elif defined(__CLANG_FUJITSU)+# define COMPILER_ID "FujitsuClang"+# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)+# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)+# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)+# define COMPILER_VERSION_INTERNAL_STR __clang_version__+++#elif defined(__FUJITSU)+# define COMPILER_ID "Fujitsu"+# if defined(__FCC_version__)+# define COMPILER_VERSION __FCC_version__+# elif defined(__FCC_major__)+# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)+# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)+# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)+# endif+# if defined(__fcc_version)+# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)+# elif defined(__FCC_VERSION)+# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)+# endif+++#elif defined(__ghs__)+# define COMPILER_ID "GHS"+/* __GHS_VERSION_NUMBER = VVVVRP */+# ifdef __GHS_VERSION_NUMBER+# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)+# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)+# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)+# endif++#elif defined(__TINYC__)+# define COMPILER_ID "TinyCC"++#elif defined(__BCC__)+# define COMPILER_ID "Bruce"++#elif defined(__SCO_VERSION__)+# define COMPILER_ID "SCO"++#elif defined(__ARMCC_VERSION) && !defined(__clang__)+# define COMPILER_ID "ARMCC"+#if __ARMCC_VERSION >= 1000000+ /* __ARMCC_VERSION = VRRPPPP */+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)+#else+ /* __ARMCC_VERSION = VRPPPP */+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)+#endif+++#elif defined(__clang__) && defined(__apple_build_version__)+# define COMPILER_ID "AppleClang"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# define COMPILER_VERSION_MAJOR DEC(__clang_major__)+# define COMPILER_VERSION_MINOR DEC(__clang_minor__)+# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif+# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)++#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)+# define COMPILER_ID "ARMClang"+ # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)+ # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)+# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)++#elif defined(__clang__)+# define COMPILER_ID "Clang"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# define COMPILER_VERSION_MAJOR DEC(__clang_major__)+# define COMPILER_VERSION_MINOR DEC(__clang_minor__)+# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif++#elif defined(__GNUC__)+# define COMPILER_ID "GNU"+# define COMPILER_VERSION_MAJOR DEC(__GNUC__)+# if defined(__GNUC_MINOR__)+# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)+# endif+# if defined(__GNUC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+# endif++#elif defined(_MSC_VER)+# define COMPILER_ID "MSVC"+ /* _MSC_VER = VVRR */+# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)+# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)+# if defined(_MSC_FULL_VER)+# if _MSC_VER >= 1400+ /* _MSC_FULL_VER = VVRRPPPPP */+# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)+# else+ /* _MSC_FULL_VER = VVRRPPPP */+# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)+# endif+# endif+# if defined(_MSC_BUILD)+# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)+# endif++#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)+# define COMPILER_ID "ADSP"+#if defined(__VISUALDSPVERSION__)+ /* __VISUALDSPVERSION__ = 0xVVRRPP00 */+# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)+# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)+# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)+#endif++#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)+# define COMPILER_ID "IAR"+# if defined(__VER__) && defined(__ICCARM__)+# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)+# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)+# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)+# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)+# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))+# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)+# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))+# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)+# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)+# endif++#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)+# define COMPILER_ID "SDCC"+# if defined(__SDCC_VERSION_MAJOR)+# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR)+# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR)+# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH)+# else+ /* SDCC = VRP */+# define COMPILER_VERSION_MAJOR DEC(SDCC/100)+# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)+# define COMPILER_VERSION_PATCH DEC(SDCC % 10)+# endif+++/* These compilers are either not known or too old to define an+ identification macro. Try to identify the platform and guess that+ it is the native compiler. */+#elif defined(__hpux) || defined(__hpua)+# define COMPILER_ID "HP"++#else /* unknown compiler */+# define COMPILER_ID ""+#endif++/* Construct the string literal in pieces to prevent the source from+ getting matched. Store it in a pointer rather than an array+ because some compilers will just produce instructions to fill the+ array rather than assigning a pointer to a static array. */+char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";+#ifdef SIMULATE_ID+char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";+#endif++#ifdef __QNXNTO__+char const* qnxnto = "INFO" ":" "qnxnto[]";+#endif++#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)+char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";+#endif++#define STRINGIFY_HELPER(X) #X+#define STRINGIFY(X) STRINGIFY_HELPER(X)++/* Identify known platforms by name. */+#if defined(__linux) || defined(__linux__) || defined(linux)+# define PLATFORM_ID "Linux"++#elif defined(__MSYS__)+# define PLATFORM_ID "MSYS"++#elif defined(__CYGWIN__)+# define PLATFORM_ID "Cygwin"++#elif defined(__MINGW32__)+# define PLATFORM_ID "MinGW"++#elif defined(__APPLE__)+# define PLATFORM_ID "Darwin"++#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)+# define PLATFORM_ID "Windows"++#elif defined(__FreeBSD__) || defined(__FreeBSD)+# define PLATFORM_ID "FreeBSD"++#elif defined(__NetBSD__) || defined(__NetBSD)+# define PLATFORM_ID "NetBSD"++#elif defined(__OpenBSD__) || defined(__OPENBSD)+# define PLATFORM_ID "OpenBSD"++#elif defined(__sun) || defined(sun)+# define PLATFORM_ID "SunOS"++#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)+# define PLATFORM_ID "AIX"++#elif defined(__hpux) || defined(__hpux__)+# define PLATFORM_ID "HP-UX"++#elif defined(__HAIKU__)+# define PLATFORM_ID "Haiku"++#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)+# define PLATFORM_ID "BeOS"++#elif defined(__QNX__) || defined(__QNXNTO__)+# define PLATFORM_ID "QNX"++#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)+# define PLATFORM_ID "Tru64"++#elif defined(__riscos) || defined(__riscos__)+# define PLATFORM_ID "RISCos"++#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)+# define PLATFORM_ID "SINIX"++#elif defined(__UNIX_SV__)+# define PLATFORM_ID "UNIX_SV"++#elif defined(__bsdos__)+# define PLATFORM_ID "BSDOS"++#elif defined(_MPRAS) || defined(MPRAS)+# define PLATFORM_ID "MP-RAS"++#elif defined(__osf) || defined(__osf__)+# define PLATFORM_ID "OSF1"++#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)+# define PLATFORM_ID "SCO_SV"++#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)+# define PLATFORM_ID "ULTRIX"++#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)+# define PLATFORM_ID "Xenix"++#elif defined(__WATCOMC__)+# if defined(__LINUX__)+# define PLATFORM_ID "Linux"++# elif defined(__DOS__)+# define PLATFORM_ID "DOS"++# elif defined(__OS2__)+# define PLATFORM_ID "OS2"++# elif defined(__WINDOWS__)+# define PLATFORM_ID "Windows3x"++# elif defined(__VXWORKS__)+# define PLATFORM_ID "VxWorks"++# else /* unknown platform */+# define PLATFORM_ID+# endif++#elif defined(__INTEGRITY)+# if defined(INT_178B)+# define PLATFORM_ID "Integrity178"++# else /* regular Integrity */+# define PLATFORM_ID "Integrity"+# endif++#else /* unknown platform */+# define PLATFORM_ID++#endif++/* For windows compilers MSVC and Intel we can determine+ the architecture of the compiler being used. This is because+ the compilers do not have flags that can change the architecture,+ but rather depend on which compiler is being used+*/+#if defined(_WIN32) && defined(_MSC_VER)+# if defined(_M_IA64)+# define ARCHITECTURE_ID "IA64"++# elif defined(_M_ARM64EC)+# define ARCHITECTURE_ID "ARM64EC"++# elif defined(_M_X64) || defined(_M_AMD64)+# define ARCHITECTURE_ID "x64"++# elif defined(_M_IX86)+# define ARCHITECTURE_ID "X86"++# elif defined(_M_ARM64)+# define ARCHITECTURE_ID "ARM64"++# elif defined(_M_ARM)+# if _M_ARM == 4+# define ARCHITECTURE_ID "ARMV4I"+# elif _M_ARM == 5+# define ARCHITECTURE_ID "ARMV5I"+# else+# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)+# endif++# elif defined(_M_MIPS)+# define ARCHITECTURE_ID "MIPS"++# elif defined(_M_SH)+# define ARCHITECTURE_ID "SHx"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__WATCOMC__)+# if defined(_M_I86)+# define ARCHITECTURE_ID "I86"++# elif defined(_M_IX86)+# define ARCHITECTURE_ID "X86"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)+# if defined(__ICCARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__ICCRX__)+# define ARCHITECTURE_ID "RX"++# elif defined(__ICCRH850__)+# define ARCHITECTURE_ID "RH850"++# elif defined(__ICCRL78__)+# define ARCHITECTURE_ID "RL78"++# elif defined(__ICCRISCV__)+# define ARCHITECTURE_ID "RISCV"++# elif defined(__ICCAVR__)+# define ARCHITECTURE_ID "AVR"++# elif defined(__ICC430__)+# define ARCHITECTURE_ID "MSP430"++# elif defined(__ICCV850__)+# define ARCHITECTURE_ID "V850"++# elif defined(__ICC8051__)+# define ARCHITECTURE_ID "8051"++# elif defined(__ICCSTM8__)+# define ARCHITECTURE_ID "STM8"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__ghs__)+# if defined(__PPC64__)+# define ARCHITECTURE_ID "PPC64"++# elif defined(__ppc__)+# define ARCHITECTURE_ID "PPC"++# elif defined(__ARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__x86_64__)+# define ARCHITECTURE_ID "x64"++# elif defined(__i386__)+# define ARCHITECTURE_ID "X86"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__TI_COMPILER_VERSION__)+# if defined(__TI_ARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__MSP430__)+# define ARCHITECTURE_ID "MSP430"++# elif defined(__TMS320C28XX__)+# define ARCHITECTURE_ID "TMS320C28x"++# elif defined(__TMS320C6X__) || defined(_TMS320C6X)+# define ARCHITECTURE_ID "TMS320C6x"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#else+# define ARCHITECTURE_ID+#endif++/* Convert integer to decimal digit literals. */+#define DEC(n) \+ ('0' + (((n) / 10000000)%10)), \+ ('0' + (((n) / 1000000)%10)), \+ ('0' + (((n) / 100000)%10)), \+ ('0' + (((n) / 10000)%10)), \+ ('0' + (((n) / 1000)%10)), \+ ('0' + (((n) / 100)%10)), \+ ('0' + (((n) / 10)%10)), \+ ('0' + ((n) % 10))++/* Convert integer to hex digit literals. */+#define HEX(n) \+ ('0' + ((n)>>28 & 0xF)), \+ ('0' + ((n)>>24 & 0xF)), \+ ('0' + ((n)>>20 & 0xF)), \+ ('0' + ((n)>>16 & 0xF)), \+ ('0' + ((n)>>12 & 0xF)), \+ ('0' + ((n)>>8 & 0xF)), \+ ('0' + ((n)>>4 & 0xF)), \+ ('0' + ((n) & 0xF))++/* Construct a string literal encoding the version number. */+#ifdef COMPILER_VERSION+char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";++/* Construct a string literal encoding the version number components. */+#elif defined(COMPILER_VERSION_MAJOR)+char const info_version[] = {+ 'I', 'N', 'F', 'O', ':',+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',+ COMPILER_VERSION_MAJOR,+# ifdef COMPILER_VERSION_MINOR+ '.', COMPILER_VERSION_MINOR,+# ifdef COMPILER_VERSION_PATCH+ '.', COMPILER_VERSION_PATCH,+# ifdef COMPILER_VERSION_TWEAK+ '.', COMPILER_VERSION_TWEAK,+# endif+# endif+# endif+ ']','\0'};+#endif++/* Construct a string literal encoding the internal version number. */+#ifdef COMPILER_VERSION_INTERNAL+char const info_version_internal[] = {+ 'I', 'N', 'F', 'O', ':',+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',+ 'i','n','t','e','r','n','a','l','[',+ COMPILER_VERSION_INTERNAL,']','\0'};+#elif defined(COMPILER_VERSION_INTERNAL_STR)+char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";+#endif++/* Construct a string literal encoding the version number components. */+#ifdef SIMULATE_VERSION_MAJOR+char const info_simulate_version[] = {+ 'I', 'N', 'F', 'O', ':',+ 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',+ SIMULATE_VERSION_MAJOR,+# ifdef SIMULATE_VERSION_MINOR+ '.', SIMULATE_VERSION_MINOR,+# ifdef SIMULATE_VERSION_PATCH+ '.', SIMULATE_VERSION_PATCH,+# ifdef SIMULATE_VERSION_TWEAK+ '.', SIMULATE_VERSION_TWEAK,+# endif+# endif+# endif+ ']','\0'};+#endif++/* Construct the string literal in pieces to prevent the source from+ getting matched. Store it in a pointer rather than an array+ because some compilers will just produce instructions to fill the+ array rather than assigning a pointer to a static array. */+char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";+char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";++++#if !defined(__STDC__) && !defined(__clang__)+# if defined(_MSC_VER) || defined(__ibmxl__) || defined(__IBMC__)+# define C_VERSION "90"+# else+# define C_VERSION+# endif+#elif __STDC_VERSION__ > 201710L+# define C_VERSION "23"+#elif __STDC_VERSION__ >= 201710L+# define C_VERSION "17"+#elif __STDC_VERSION__ >= 201000L+# define C_VERSION "11"+#elif __STDC_VERSION__ >= 199901L+# define C_VERSION "99"+#else+# define C_VERSION "90"+#endif+const char* info_language_standard_default =+ "INFO" ":" "standard_default[" C_VERSION "]";++const char* info_language_extensions_default = "INFO" ":" "extensions_default["+/* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */+#if (defined(__clang__) || defined(__GNUC__) || \+ defined(__TI_COMPILER_VERSION__)) && \+ !defined(__STRICT_ANSI__) && !defined(_MSC_VER)+ "ON"+#else+ "OFF"+#endif+"]";++/*--------------------------------------------------------------------------*/++#ifdef ID_VOID_MAIN+void main() {}+#else+# if defined(__CLASSIC_C__)+int main(argc, argv) int argc; char *argv[];+# else+int main(int argc, char* argv[])+# endif+{+ int require = 0;+ require += info_compiler[argc];+ require += info_platform[argc];+ require += info_arch[argc];+#ifdef COMPILER_VERSION_MAJOR+ require += info_version[argc];+#endif+#ifdef COMPILER_VERSION_INTERNAL+ require += info_version_internal[argc];+#endif+#ifdef SIMULATE_ID+ require += info_simulate[argc];+#endif+#ifdef SIMULATE_VERSION_MAJOR+ require += info_simulate_version[argc];+#endif+#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)+ require += info_cray[argc];+#endif+ require += info_language_standard_default[argc];+ require += info_language_extensions_default[argc];+ (void)argv;+ return require;+}+#endifdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.onew file mode 100644index 0000000..c952c82Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cppnew file mode 100644index 0000000..25c62a8--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.cpp@@ -0,0 +1,791 @@+/* This source file must have a .cpp extension so that all C++ compilers+ recognize the extension without flags. Borland does not know .cxx for+ example. */+#ifndef __cplusplus+# error "A C compiler has been selected for C++."+#endif++#if !defined(__has_include)+/* If the compiler does not have __has_include, pretend the answer is+ always no. */+# define __has_include(x) 0+#endif+++/* Version number components: V=Version, R=Revision, P=Patch+ Version date components: YYYY=Year, MM=Month, DD=Day */++#if defined(__COMO__)+# define COMPILER_ID "Comeau"+ /* __COMO_VERSION__ = VRR */+# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)+# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)++#elif defined(__INTEL_COMPILER) || defined(__ICC)+# define COMPILER_ID "Intel"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# if defined(__GNUC__)+# define SIMULATE_ID "GNU"+# endif+ /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,+ except that a few beta releases use the old format with V=2021. */+# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111+# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)+# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)+# if defined(__INTEL_COMPILER_UPDATE)+# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)+# else+# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)+# endif+# else+# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)+# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)+ /* The third version component from --version is an update index,+ but no macro is provided for it. */+# define COMPILER_VERSION_PATCH DEC(0)+# endif+# if defined(__INTEL_COMPILER_BUILD_DATE)+ /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */+# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)+# endif+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif+# if defined(__GNUC__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)+# elif defined(__GNUG__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)+# endif+# if defined(__GNUC_MINOR__)+# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)+# endif+# if defined(__GNUC_PATCHLEVEL__)+# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+# endif++#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)+# define COMPILER_ID "IntelLLVM"+#if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+#endif+#if defined(__GNUC__)+# define SIMULATE_ID "GNU"+#endif+/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and+ * later. Look for 6 digit vs. 8 digit version number to decide encoding.+ * VVVV is no smaller than the current year when a version is released.+ */+#if __INTEL_LLVM_COMPILER < 1000000L+# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)+# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)+#else+# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)+# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)+# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)+#endif+#if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+#endif+#if defined(__GNUC__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)+#elif defined(__GNUG__)+# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)+#endif+#if defined(__GNUC_MINOR__)+# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)+#endif+#if defined(__GNUC_PATCHLEVEL__)+# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+#endif++#elif defined(__PATHCC__)+# define COMPILER_ID "PathScale"+# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)+# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)+# if defined(__PATHCC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)+# endif++#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)+# define COMPILER_ID "Embarcadero"+# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)+# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)+# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)++#elif defined(__BORLANDC__)+# define COMPILER_ID "Borland"+ /* __BORLANDC__ = 0xVRR */+# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)+# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)++#elif defined(__WATCOMC__) && __WATCOMC__ < 1200+# define COMPILER_ID "Watcom"+ /* __WATCOMC__ = VVRR */+# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)+# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)+# if (__WATCOMC__ % 10) > 0+# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)+# endif++#elif defined(__WATCOMC__)+# define COMPILER_ID "OpenWatcom"+ /* __WATCOMC__ = VVRP + 1100 */+# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)+# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)+# if (__WATCOMC__ % 10) > 0+# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)+# endif++#elif defined(__SUNPRO_CC)+# define COMPILER_ID "SunPro"+# if __SUNPRO_CC >= 0x5100+ /* __SUNPRO_CC = 0xVRRP */+# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)+# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)+# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)+# else+ /* __SUNPRO_CC = 0xVRP */+# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)+# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)+# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)+# endif++#elif defined(__HP_aCC)+# define COMPILER_ID "HP"+ /* __HP_aCC = VVRRPP */+# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)+# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)+# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)++#elif defined(__DECCXX)+# define COMPILER_ID "Compaq"+ /* __DECCXX_VER = VVRRTPPPP */+# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)+# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)+# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)++#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)+# define COMPILER_ID "zOS"+ /* __IBMCPP__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)++#elif defined(__ibmxl__) && defined(__clang__)+# define COMPILER_ID "XLClang"+# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)+# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)+# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)+# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)+++#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800+# define COMPILER_ID "XL"+ /* __IBMCPP__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)++#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800+# define COMPILER_ID "VisualAge"+ /* __IBMCPP__ = VRP */+# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)+# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)+# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)++#elif defined(__NVCOMPILER)+# define COMPILER_ID "NVHPC"+# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)+# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)+# if defined(__NVCOMPILER_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)+# endif++#elif defined(__PGI)+# define COMPILER_ID "PGI"+# define COMPILER_VERSION_MAJOR DEC(__PGIC__)+# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)+# if defined(__PGIC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)+# endif++#elif defined(_CRAYC)+# define COMPILER_ID "Cray"+# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)+# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)++#elif defined(__TI_COMPILER_VERSION__)+# define COMPILER_ID "TI"+ /* __TI_COMPILER_VERSION__ = VVVRRRPPP */+# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)+# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)+# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)++#elif defined(__CLANG_FUJITSU)+# define COMPILER_ID "FujitsuClang"+# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)+# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)+# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)+# define COMPILER_VERSION_INTERNAL_STR __clang_version__+++#elif defined(__FUJITSU)+# define COMPILER_ID "Fujitsu"+# if defined(__FCC_version__)+# define COMPILER_VERSION __FCC_version__+# elif defined(__FCC_major__)+# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)+# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)+# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)+# endif+# if defined(__fcc_version)+# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)+# elif defined(__FCC_VERSION)+# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)+# endif+++#elif defined(__ghs__)+# define COMPILER_ID "GHS"+/* __GHS_VERSION_NUMBER = VVVVRP */+# ifdef __GHS_VERSION_NUMBER+# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)+# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)+# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)+# endif++#elif defined(__SCO_VERSION__)+# define COMPILER_ID "SCO"++#elif defined(__ARMCC_VERSION) && !defined(__clang__)+# define COMPILER_ID "ARMCC"+#if __ARMCC_VERSION >= 1000000+ /* __ARMCC_VERSION = VRRPPPP */+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)+#else+ /* __ARMCC_VERSION = VRPPPP */+ # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)+ # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)+#endif+++#elif defined(__clang__) && defined(__apple_build_version__)+# define COMPILER_ID "AppleClang"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# define COMPILER_VERSION_MAJOR DEC(__clang_major__)+# define COMPILER_VERSION_MINOR DEC(__clang_minor__)+# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif+# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)++#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)+# define COMPILER_ID "ARMClang"+ # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)+ # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)+ # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)+# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)++#elif defined(__clang__)+# define COMPILER_ID "Clang"+# if defined(_MSC_VER)+# define SIMULATE_ID "MSVC"+# endif+# define COMPILER_VERSION_MAJOR DEC(__clang_major__)+# define COMPILER_VERSION_MINOR DEC(__clang_minor__)+# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)+# if defined(_MSC_VER)+ /* _MSC_VER = VVRR */+# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)+# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)+# endif++#elif defined(__GNUC__) || defined(__GNUG__)+# define COMPILER_ID "GNU"+# if defined(__GNUC__)+# define COMPILER_VERSION_MAJOR DEC(__GNUC__)+# else+# define COMPILER_VERSION_MAJOR DEC(__GNUG__)+# endif+# if defined(__GNUC_MINOR__)+# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)+# endif+# if defined(__GNUC_PATCHLEVEL__)+# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)+# endif++#elif defined(_MSC_VER)+# define COMPILER_ID "MSVC"+ /* _MSC_VER = VVRR */+# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)+# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)+# if defined(_MSC_FULL_VER)+# if _MSC_VER >= 1400+ /* _MSC_FULL_VER = VVRRPPPPP */+# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)+# else+ /* _MSC_FULL_VER = VVRRPPPP */+# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)+# endif+# endif+# if defined(_MSC_BUILD)+# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)+# endif++#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)+# define COMPILER_ID "ADSP"+#if defined(__VISUALDSPVERSION__)+ /* __VISUALDSPVERSION__ = 0xVVRRPP00 */+# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)+# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)+# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)+#endif++#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)+# define COMPILER_ID "IAR"+# if defined(__VER__) && defined(__ICCARM__)+# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)+# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)+# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)+# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)+# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))+# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)+# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))+# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)+# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)+# endif+++/* These compilers are either not known or too old to define an+ identification macro. Try to identify the platform and guess that+ it is the native compiler. */+#elif defined(__hpux) || defined(__hpua)+# define COMPILER_ID "HP"++#else /* unknown compiler */+# define COMPILER_ID ""+#endif++/* Construct the string literal in pieces to prevent the source from+ getting matched. Store it in a pointer rather than an array+ because some compilers will just produce instructions to fill the+ array rather than assigning a pointer to a static array. */+char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";+#ifdef SIMULATE_ID+char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";+#endif++#ifdef __QNXNTO__+char const* qnxnto = "INFO" ":" "qnxnto[]";+#endif++#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)+char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";+#endif++#define STRINGIFY_HELPER(X) #X+#define STRINGIFY(X) STRINGIFY_HELPER(X)++/* Identify known platforms by name. */+#if defined(__linux) || defined(__linux__) || defined(linux)+# define PLATFORM_ID "Linux"++#elif defined(__MSYS__)+# define PLATFORM_ID "MSYS"++#elif defined(__CYGWIN__)+# define PLATFORM_ID "Cygwin"++#elif defined(__MINGW32__)+# define PLATFORM_ID "MinGW"++#elif defined(__APPLE__)+# define PLATFORM_ID "Darwin"++#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)+# define PLATFORM_ID "Windows"++#elif defined(__FreeBSD__) || defined(__FreeBSD)+# define PLATFORM_ID "FreeBSD"++#elif defined(__NetBSD__) || defined(__NetBSD)+# define PLATFORM_ID "NetBSD"++#elif defined(__OpenBSD__) || defined(__OPENBSD)+# define PLATFORM_ID "OpenBSD"++#elif defined(__sun) || defined(sun)+# define PLATFORM_ID "SunOS"++#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)+# define PLATFORM_ID "AIX"++#elif defined(__hpux) || defined(__hpux__)+# define PLATFORM_ID "HP-UX"++#elif defined(__HAIKU__)+# define PLATFORM_ID "Haiku"++#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)+# define PLATFORM_ID "BeOS"++#elif defined(__QNX__) || defined(__QNXNTO__)+# define PLATFORM_ID "QNX"++#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)+# define PLATFORM_ID "Tru64"++#elif defined(__riscos) || defined(__riscos__)+# define PLATFORM_ID "RISCos"++#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)+# define PLATFORM_ID "SINIX"++#elif defined(__UNIX_SV__)+# define PLATFORM_ID "UNIX_SV"++#elif defined(__bsdos__)+# define PLATFORM_ID "BSDOS"++#elif defined(_MPRAS) || defined(MPRAS)+# define PLATFORM_ID "MP-RAS"++#elif defined(__osf) || defined(__osf__)+# define PLATFORM_ID "OSF1"++#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)+# define PLATFORM_ID "SCO_SV"++#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)+# define PLATFORM_ID "ULTRIX"++#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)+# define PLATFORM_ID "Xenix"++#elif defined(__WATCOMC__)+# if defined(__LINUX__)+# define PLATFORM_ID "Linux"++# elif defined(__DOS__)+# define PLATFORM_ID "DOS"++# elif defined(__OS2__)+# define PLATFORM_ID "OS2"++# elif defined(__WINDOWS__)+# define PLATFORM_ID "Windows3x"++# elif defined(__VXWORKS__)+# define PLATFORM_ID "VxWorks"++# else /* unknown platform */+# define PLATFORM_ID+# endif++#elif defined(__INTEGRITY)+# if defined(INT_178B)+# define PLATFORM_ID "Integrity178"++# else /* regular Integrity */+# define PLATFORM_ID "Integrity"+# endif++#else /* unknown platform */+# define PLATFORM_ID++#endif++/* For windows compilers MSVC and Intel we can determine+ the architecture of the compiler being used. This is because+ the compilers do not have flags that can change the architecture,+ but rather depend on which compiler is being used+*/+#if defined(_WIN32) && defined(_MSC_VER)+# if defined(_M_IA64)+# define ARCHITECTURE_ID "IA64"++# elif defined(_M_ARM64EC)+# define ARCHITECTURE_ID "ARM64EC"++# elif defined(_M_X64) || defined(_M_AMD64)+# define ARCHITECTURE_ID "x64"++# elif defined(_M_IX86)+# define ARCHITECTURE_ID "X86"++# elif defined(_M_ARM64)+# define ARCHITECTURE_ID "ARM64"++# elif defined(_M_ARM)+# if _M_ARM == 4+# define ARCHITECTURE_ID "ARMV4I"+# elif _M_ARM == 5+# define ARCHITECTURE_ID "ARMV5I"+# else+# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)+# endif++# elif defined(_M_MIPS)+# define ARCHITECTURE_ID "MIPS"++# elif defined(_M_SH)+# define ARCHITECTURE_ID "SHx"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__WATCOMC__)+# if defined(_M_I86)+# define ARCHITECTURE_ID "I86"++# elif defined(_M_IX86)+# define ARCHITECTURE_ID "X86"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)+# if defined(__ICCARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__ICCRX__)+# define ARCHITECTURE_ID "RX"++# elif defined(__ICCRH850__)+# define ARCHITECTURE_ID "RH850"++# elif defined(__ICCRL78__)+# define ARCHITECTURE_ID "RL78"++# elif defined(__ICCRISCV__)+# define ARCHITECTURE_ID "RISCV"++# elif defined(__ICCAVR__)+# define ARCHITECTURE_ID "AVR"++# elif defined(__ICC430__)+# define ARCHITECTURE_ID "MSP430"++# elif defined(__ICCV850__)+# define ARCHITECTURE_ID "V850"++# elif defined(__ICC8051__)+# define ARCHITECTURE_ID "8051"++# elif defined(__ICCSTM8__)+# define ARCHITECTURE_ID "STM8"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__ghs__)+# if defined(__PPC64__)+# define ARCHITECTURE_ID "PPC64"++# elif defined(__ppc__)+# define ARCHITECTURE_ID "PPC"++# elif defined(__ARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__x86_64__)+# define ARCHITECTURE_ID "x64"++# elif defined(__i386__)+# define ARCHITECTURE_ID "X86"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#elif defined(__TI_COMPILER_VERSION__)+# if defined(__TI_ARM__)+# define ARCHITECTURE_ID "ARM"++# elif defined(__MSP430__)+# define ARCHITECTURE_ID "MSP430"++# elif defined(__TMS320C28XX__)+# define ARCHITECTURE_ID "TMS320C28x"++# elif defined(__TMS320C6X__) || defined(_TMS320C6X)+# define ARCHITECTURE_ID "TMS320C6x"++# else /* unknown architecture */+# define ARCHITECTURE_ID ""+# endif++#else+# define ARCHITECTURE_ID+#endif++/* Convert integer to decimal digit literals. */+#define DEC(n) \+ ('0' + (((n) / 10000000)%10)), \+ ('0' + (((n) / 1000000)%10)), \+ ('0' + (((n) / 100000)%10)), \+ ('0' + (((n) / 10000)%10)), \+ ('0' + (((n) / 1000)%10)), \+ ('0' + (((n) / 100)%10)), \+ ('0' + (((n) / 10)%10)), \+ ('0' + ((n) % 10))++/* Convert integer to hex digit literals. */+#define HEX(n) \+ ('0' + ((n)>>28 & 0xF)), \+ ('0' + ((n)>>24 & 0xF)), \+ ('0' + ((n)>>20 & 0xF)), \+ ('0' + ((n)>>16 & 0xF)), \+ ('0' + ((n)>>12 & 0xF)), \+ ('0' + ((n)>>8 & 0xF)), \+ ('0' + ((n)>>4 & 0xF)), \+ ('0' + ((n) & 0xF))++/* Construct a string literal encoding the version number. */+#ifdef COMPILER_VERSION+char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";++/* Construct a string literal encoding the version number components. */+#elif defined(COMPILER_VERSION_MAJOR)+char const info_version[] = {+ 'I', 'N', 'F', 'O', ':',+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',+ COMPILER_VERSION_MAJOR,+# ifdef COMPILER_VERSION_MINOR+ '.', COMPILER_VERSION_MINOR,+# ifdef COMPILER_VERSION_PATCH+ '.', COMPILER_VERSION_PATCH,+# ifdef COMPILER_VERSION_TWEAK+ '.', COMPILER_VERSION_TWEAK,+# endif+# endif+# endif+ ']','\0'};+#endif++/* Construct a string literal encoding the internal version number. */+#ifdef COMPILER_VERSION_INTERNAL+char const info_version_internal[] = {+ 'I', 'N', 'F', 'O', ':',+ 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',+ 'i','n','t','e','r','n','a','l','[',+ COMPILER_VERSION_INTERNAL,']','\0'};+#elif defined(COMPILER_VERSION_INTERNAL_STR)+char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";+#endif++/* Construct a string literal encoding the version number components. */+#ifdef SIMULATE_VERSION_MAJOR+char const info_simulate_version[] = {+ 'I', 'N', 'F', 'O', ':',+ 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',+ SIMULATE_VERSION_MAJOR,+# ifdef SIMULATE_VERSION_MINOR+ '.', SIMULATE_VERSION_MINOR,+# ifdef SIMULATE_VERSION_PATCH+ '.', SIMULATE_VERSION_PATCH,+# ifdef SIMULATE_VERSION_TWEAK+ '.', SIMULATE_VERSION_TWEAK,+# endif+# endif+# endif+ ']','\0'};+#endif++/* Construct the string literal in pieces to prevent the source from+ getting matched. Store it in a pointer rather than an array+ because some compilers will just produce instructions to fill the+ array rather than assigning a pointer to a static array. */+char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";+char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";++++#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L+# if defined(__INTEL_CXX11_MODE__)+# if defined(__cpp_aggregate_nsdmi)+# define CXX_STD 201402L+# else+# define CXX_STD 201103L+# endif+# else+# define CXX_STD 199711L+# endif+#elif defined(_MSC_VER) && defined(_MSVC_LANG)+# define CXX_STD _MSVC_LANG+#else+# define CXX_STD __cplusplus+#endif++const char* info_language_standard_default = "INFO" ":" "standard_default["+#if CXX_STD > 202002L+ "23"+#elif CXX_STD > 201703L+ "20"+#elif CXX_STD >= 201703L+ "17"+#elif CXX_STD >= 201402L+ "14"+#elif CXX_STD >= 201103L+ "11"+#else+ "98"+#endif+"]";++const char* info_language_extensions_default = "INFO" ":" "extensions_default["+/* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */+#if (defined(__clang__) || defined(__GNUC__) || \+ defined(__TI_COMPILER_VERSION__)) && \+ !defined(__STRICT_ANSI__) && !defined(_MSC_VER)+ "ON"+#else+ "OFF"+#endif+"]";++/*--------------------------------------------------------------------------*/++int main(int argc, char* argv[])+{+ int require = 0;+ require += info_compiler[argc];+ require += info_platform[argc];+#ifdef COMPILER_VERSION_MAJOR+ require += info_version[argc];+#endif+#ifdef COMPILER_VERSION_INTERNAL+ require += info_version_internal[argc];+#endif+#ifdef SIMULATE_ID+ require += info_simulate[argc];+#endif+#ifdef SIMULATE_VERSION_MAJOR+ require += info_simulate_version[argc];+#endif+#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)+ require += info_cray[argc];+#endif+ require += info_language_standard_default[argc];+ require += info_language_extensions_default[argc];+ (void)argv;+ return require;+}diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.onew file mode 100644index 0000000..cdbae0cBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeOutput.log b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeOutput.lognew file mode 100644index 0000000..cff5a5b--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeOutput.log@@ -0,0 +1,264 @@+The target system is: Android - 1 - aarch64+The host system is: Darwin - 24.6.0 - x86_64+Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.+Compiler: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang+++Build flags: -g;-DANDROID;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-D_FORTIFY_SOURCE=2;-Wformat;-Werror=format-security;;+Id flags: -c;--target=aarch64-none-linux-android26++The output was:+0+++Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"++The CXX compiler identification is Clang, found in "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdCXX/CMakeCXXCompilerId.o"++Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.+Compiler: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang+Build flags: -g;-DANDROID;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-D_FORTIFY_SOURCE=2;-Wformat;-Werror=format-security;+Id flags: -c;--target=aarch64-none-linux-android26++The output was:+0+++Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"++The C compiler identification is Clang, found in "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/3.22.1-g37088a8/CompilerIdC/CMakeCCompilerId.o"++Detecting CXX compiler ABI info compiled with the following output:+Change Dir: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp++Run Build Command(s):/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja cmTC_310a8 && [1/2] Building CXX object CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o+Android (13624864, +pgo, -bolt, +lto, -mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)+Target: aarch64-none-linux-android26+Thread model: posix+InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin+ (in-process)+ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++" -cc1 -triple aarch64-none-linux-android26 -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-feature +fix-cortex-a53-835769 -target-abi aapcs -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb "-fdebug-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp" -v -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp" -resource-dir /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19 -dependency-file CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -D ANDROID -D _FORTIFY_SOURCE=2 -isysroot /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1 -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include -Wformat -fdeprecated-macro -ferror-limit 19 -femulated-tls -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -target-feature +outline-atomics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o -x c++ /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp+clang -cc1 version 19.0.1 based upon LLVM 19.0.1 default target x86_64-apple-darwin24.6.0+ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include"+ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include"+#include "..." search starts here:+#include <...> search starts here:+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include+End of search list.+[2/2] Linking CXX executable cmTC_310a8+Android (13624864, +pgo, -bolt, +lto, -mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)+Target: aarch64-none-linux-android26+Thread model: posix+InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin+ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld" --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=16384 --hash-style=gnu --eh-frame-hdr -m aarch64linux -pie -dynamic-linker /system/bin/linker64 -o cmTC_310a8 /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib --build-id=sha1 --no-rosegment --no-undefined-version --fatal-warnings --no-undefined CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o -Bstatic -lc++ -Bdynamic -lm /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl -lc /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o++++Parsed CXX implicit include dir info from above output: rv=done+ found start of include info+ found start of implicit include info+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ end of search list found+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ implicit include dirs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+++Parsed CXX implicit link information from above output:+ link line regex: [^( *|.*[/\])(ld\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]+ ignore line: [Change Dir: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp]+ ignore line: []+ ignore line: [Run Build Command(s):/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja cmTC_310a8 && [1/2] Building CXX object CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o]+ ignore line: [Android (13624864 +pgo -bolt +lto -mlgo based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)]+ ignore line: [Target: aarch64-none-linux-android26]+ ignore line: [Thread model: posix]+ ignore line: [InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin]+ ignore line: [ (in-process)]+ ignore line: [ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++" -cc1 -triple aarch64-none-linux-android26 -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-feature +fix-cortex-a53-835769 -target-abi aapcs -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb "-fdebug-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp" -v -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp" -resource-dir /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19 -dependency-file CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -D ANDROID -D _FORTIFY_SOURCE=2 -isysroot /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1 -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include -Wformat -fdeprecated-macro -ferror-limit 19 -femulated-tls -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -target-feature +outline-atomics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o -x c++ /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp]+ ignore line: [clang -cc1 version 19.0.1 based upon LLVM 19.0.1 default target x86_64-apple-darwin24.6.0]+ ignore line: [ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include"]+ ignore line: [ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include"]+ ignore line: [#include "..." search starts here:]+ ignore line: [#include <...> search starts here:]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ ignore line: [End of search list.]+ ignore line: [[2/2] Linking CXX executable cmTC_310a8]+ ignore line: [Android (13624864 +pgo -bolt +lto -mlgo based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)]+ ignore line: [Target: aarch64-none-linux-android26]+ ignore line: [Thread model: posix]+ ignore line: [InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin]+ link line: [ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld" --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=16384 --hash-style=gnu --eh-frame-hdr -m aarch64linux -pie -dynamic-linker /system/bin/linker64 -o cmTC_310a8 /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib --build-id=sha1 --no-rosegment --no-undefined-version --fatal-warnings --no-undefined CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o -Bstatic -lc++ -Bdynamic -lm /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl -lc /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld] ==> ignore+ arg [--sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot] ==> ignore+ arg [-EL] ==> ignore+ arg [--fix-cortex-a53-843419] ==> ignore+ arg [-znow] ==> ignore+ arg [-zrelro] ==> ignore+ arg [-zmax-page-size=16384] ==> ignore+ arg [--hash-style=gnu] ==> ignore+ arg [--eh-frame-hdr] ==> ignore+ arg [-m] ==> ignore+ arg [aarch64linux] ==> ignore+ arg [-pie] ==> ignore+ arg [-dynamic-linker] ==> ignore+ arg [/system/bin/linker64] ==> ignore+ arg [-o] ==> ignore+ arg [cmTC_310a8] ==> ignore+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o] ==> obj [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ arg [--build-id=sha1] ==> ignore+ arg [--no-rosegment] ==> ignore+ arg [--no-undefined-version] ==> ignore+ arg [--fatal-warnings] ==> ignore+ arg [--no-undefined] ==> ignore+ arg [CMakeFiles/cmTC_310a8.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore+ arg [-Bstatic] ==> search static+ arg [-lc++] ==> lib [c++]+ arg [-Bdynamic] ==> search dynamic+ arg [-lm] ==> lib [m]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a] ==> lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ arg [-l:libunwind.a] ==> lib [-l:libunwind.a]+ arg [-ldl] ==> lib [dl]+ arg [-lc] ==> lib [c]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a] ==> lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ arg [-l:libunwind.a] ==> lib [-l:libunwind.a]+ arg [-ldl] ==> lib [dl]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o] ==> obj [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ remove lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ remove lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ implicit libs: [c++;m;-l:libunwind.a;dl;c;-l:libunwind.a;dl]+ implicit objs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ implicit dirs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ implicit fwks: []+++Detecting C compiler ABI info compiled with the following output:+Change Dir: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp++Run Build Command(s):/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja cmTC_540e0 && [1/2] Building C object CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o+Android (13624864, +pgo, -bolt, +lto, -mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)+Target: aarch64-none-linux-android26+Thread model: posix+InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin+ (in-process)+ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang" -cc1 -triple aarch64-none-linux-android26 -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-feature +fix-cortex-a53-835769 -target-abi aapcs -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb "-fdebug-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp" -v -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp" -resource-dir /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19 -dependency-file CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o -sys-header-deps -D ANDROID -D _FORTIFY_SOURCE=2 -isysroot /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include -Wformat -ferror-limit 19 -femulated-tls -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -target-feature +outline-atomics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o -x c /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c+clang -cc1 version 19.0.1 based upon LLVM 19.0.1 default target x86_64-apple-darwin24.6.0+ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include"+ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include"+#include "..." search starts here:+#include <...> search starts here:+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android+ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include+End of search list.+[2/2] Linking C executable cmTC_540e0+Android (13624864, +pgo, -bolt, +lto, -mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)+Target: aarch64-none-linux-android26+Thread model: posix+InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin+ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld" --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=16384 --hash-style=gnu --eh-frame-hdr -m aarch64linux -pie -dynamic-linker /system/bin/linker64 -o cmTC_540e0 /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib --build-id=sha1 --no-rosegment --no-undefined-version --fatal-warnings --no-undefined CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl -lc /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o++++Parsed C implicit include dir info from above output: rv=done+ found start of include info+ found start of implicit include info+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ add: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ end of search list found+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ collapse include dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ implicit include dirs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+++Parsed C implicit link information from above output:+ link line regex: [^( *|.*[/\])(ld\.lld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]+ ignore line: [Change Dir: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp]+ ignore line: []+ ignore line: [Run Build Command(s):/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja cmTC_540e0 && [1/2] Building C object CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o]+ ignore line: [Android (13624864 +pgo -bolt +lto -mlgo based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)]+ ignore line: [Target: aarch64-none-linux-android26]+ ignore line: [Thread model: posix]+ ignore line: [InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin]+ ignore line: [ (in-process)]+ ignore line: [ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang" -cc1 -triple aarch64-none-linux-android26 -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic -target-feature +v8a -target-feature +fp-armv8 -target-feature +neon -target-feature +fix-cortex-a53-835769 -target-abi aapcs -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb "-fdebug-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp" -v -ffunction-sections -fdata-sections "-fcoverage-compilation-dir=/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/CMakeTmp" -resource-dir /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19 -dependency-file CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o -sys-header-deps -D ANDROID -D _FORTIFY_SOURCE=2 -isysroot /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include -internal-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include -internal-externc-isystem /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include -Wformat -ferror-limit 19 -femulated-tls -stack-protector 2 -fno-signed-char -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -target-feature +outline-atomics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o -x c /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c]+ ignore line: [clang -cc1 version 19.0.1 based upon LLVM 19.0.1 default target x86_64-apple-darwin24.6.0]+ ignore line: [ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/local/include"]+ ignore line: [ignoring nonexistent directory "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/include"]+ ignore line: [#include "..." search starts here:]+ ignore line: [#include <...> search starts here:]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/include]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/aarch64-linux-android]+ ignore line: [ /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include]+ ignore line: [End of search list.]+ ignore line: [[2/2] Linking C executable cmTC_540e0]+ ignore line: [Android (13624864 +pgo -bolt +lto -mlgo based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)]+ ignore line: [Target: aarch64-none-linux-android26]+ ignore line: [Thread model: posix]+ ignore line: [InstalledDir: /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin]+ link line: [ "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld" --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -EL --fix-cortex-a53-843419 -z now -z relro -z max-page-size=16384 --hash-style=gnu --eh-frame-hdr -m aarch64linux -pie -dynamic-linker /system/bin/linker64 -o cmTC_540e0 /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26 -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android -L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib --build-id=sha1 --no-rosegment --no-undefined-version --fatal-warnings --no-undefined CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl -lc /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a -l:libunwind.a -ldl /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/ld.lld] ==> ignore+ arg [--sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot] ==> ignore+ arg [-EL] ==> ignore+ arg [--fix-cortex-a53-843419] ==> ignore+ arg [-znow] ==> ignore+ arg [-zrelro] ==> ignore+ arg [-zmax-page-size=16384] ==> ignore+ arg [--hash-style=gnu] ==> ignore+ arg [--eh-frame-hdr] ==> ignore+ arg [-m] ==> ignore+ arg [aarch64linux] ==> ignore+ arg [-pie] ==> ignore+ arg [-dynamic-linker] ==> ignore+ arg [/system/bin/linker64] ==> ignore+ arg [-o] ==> ignore+ arg [cmTC_540e0] ==> ignore+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o] ==> obj [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android]+ arg [-L/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib] ==> dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ arg [--build-id=sha1] ==> ignore+ arg [--no-rosegment] ==> ignore+ arg [--no-undefined-version] ==> ignore+ arg [--fatal-warnings] ==> ignore+ arg [--no-undefined] ==> ignore+ arg [CMakeFiles/cmTC_540e0.dir/CMakeCCompilerABI.c.o] ==> ignore+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a] ==> lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ arg [-l:libunwind.a] ==> lib [-l:libunwind.a]+ arg [-ldl] ==> lib [dl]+ arg [-lc] ==> lib [c]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a] ==> lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ arg [-l:libunwind.a] ==> lib [-l:libunwind.a]+ arg [-ldl] ==> lib [dl]+ arg [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o] ==> obj [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ remove lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ remove lib [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/libclang_rt.builtins-aarch64-android.a]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android]+ collapse library dir [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib] ==> [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ implicit libs: [-l:libunwind.a;dl;c;-l:libunwind.a;dl]+ implicit objs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtbegin_dynamic.o;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26/crtend_android.o]+ implicit dirs: [/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/19/lib/linux/aarch64;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/26;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android;/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib]+ implicit fwks: []++diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/TargetDirectories.txt b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/TargetDirectories.txtnew file mode 100644index 0000000..28ca684--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/TargetDirectories.txt@@ -0,0 +1,4 @@+/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/pffft.dir+/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir+/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/edit_cache.dir+/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/rebuild_cache.dirdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/cmake.check_cache b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/cmake.check_cachenew file mode 100644index 0000000..3dccd73--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/cmake.check_cache@@ -0,0 +1 @@+# This file is generated by cmake for dependency checking of the CMakeCache.txt filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.onew file mode 100644index 0000000..a8ae2cfBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.onew file mode 100644index 0000000..f3a2f75Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/rules.ninja b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/rules.ninjanew file mode 100644index 0000000..84c92a4--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/rules.ninja@@ -0,0 +1,83 @@+# CMAKE generated file: DO NOT EDIT!+# Generated by "Ninja" Generator, CMake Version 3.22++# This file contains all the rules used to get the outputs files+# built from the input files.+# It is included in the main 'build.ninja'.++# =============================================================================+# Project: spotstretch+# Configurations: RelWithDebInfo+# =============================================================================+# =============================================================================++#############################################+# Rule for compiling C files.++rule C_COMPILER__pffft_RelWithDebInfo+ depfile = $DEP_FILE+ deps = gcc+ command = /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in+ description = Building C object $out+++#############################################+# Rule for linking C static library.++rule C_STATIC_LIBRARY_LINKER__pffft_RelWithDebInfo+ command = $PRE_LINK && /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake -E rm -f $TARGET_FILE && /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar qc $TARGET_FILE $LINK_FLAGS $in && /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib $TARGET_FILE && /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake -E touch $TARGET_FILE && $POST_BUILD+ description = Linking C static library $TARGET_FILE+ restat = $RESTAT+++#############################################+# Rule for compiling CXX files.++rule CXX_COMPILER__spotstretch_RelWithDebInfo+ depfile = $DEP_FILE+ deps = gcc+ command = /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in+ description = Building CXX object $out+++#############################################+# Rule for linking CXX shared library.++rule CXX_SHARED_LIBRARY_LINKER__spotstretch_RelWithDebInfo+ command = $PRE_LINK && /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS $LINK_FLAGS -shared $SONAME_FLAG$SONAME -o $TARGET_FILE $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD+ description = Linking CXX shared library $TARGET_FILE+ restat = $RESTAT+++#############################################+# Rule for running custom commands.++rule CUSTOM_COMMAND+ command = $COMMAND+ description = $DESC+++#############################################+# Rule for re-running cmake.++rule RERUN_CMAKE+ command = /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake --regenerate-during-build -S"/Users/emanuele/Progetto Spotify/app/src/main/cpp" -B"/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a"+ description = Re-running CMake...+ generator = 1+++#############################################+# Rule for cleaning all built files.++rule CLEAN+ command = /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja $FILE_ARG -t clean $TARGETS+ description = Cleaning all built files...+++#############################################+# Rule for printing all primary targets available.++rule HELP+ command = /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja -t targets+ description = All primary targets available:+diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.onew file mode 100644index 0000000..6bc3199Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.onew file mode 100644index 0000000..88f804eBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.onew file mode 100644index 0000000..3c90631Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.onew file mode 100644index 0000000..a09d6d5Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.onew file mode 100644index 0000000..beec059Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.onew file mode 100644index 0000000..7c6dcefBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.onew file mode 100644index 0000000..651680bBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.onew file mode 100644index 0000000..82e6e7aBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.onew file mode 100644index 0000000..50f2234Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.onew file mode 100644index 0000000..2f8d0f1Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.onew file mode 100644index 0000000..eb0b83eBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.onew file mode 100644index 0000000..964bd20Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.onew file mode 100644index 0000000..ab6d1a1Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.onew file mode 100644index 0000000..0daf11cBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/stretch.cpp.o b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/stretch.cpp.onew file mode 100644index 0000000..dc25cc2Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/CMakeFiles/spotstretch.dir/stretch.cpp.o differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/additional_project_files.txt b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/additional_project_files.txtnew file mode 100644index 0000000..e69de29diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/android_gradle_build.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/android_gradle_build.jsonnew file mode 100644index 0000000..a6ca304--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/android_gradle_build.json@@ -0,0 +1,46 @@+{+ "buildFiles": [+ "/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt"+ ],+ "cleanCommandsComponents": [+ [+ "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja",+ "-C",+ "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "clean"+ ]+ ],+ "buildTargetsCommandComponents": [+ "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja",+ "-C",+ "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "{LIST_OF_TARGETS_TO_BUILD}"+ ],+ "libraries": {+ "pffft::@6890427a1f51a3e7e1df": {+ "toolchain": "toolchain",+ "abi": "arm64-v8a",+ "artifactName": "pffft",+ "output": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/libpffft.a"+ },+ "spotstretch::@6890427a1f51a3e7e1df": {+ "toolchain": "toolchain",+ "abi": "arm64-v8a",+ "artifactName": "spotstretch",+ "output": "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so",+ "runtimeFiles": []+ }+ },+ "toolchains": {+ "toolchain": {+ "cCompilerExecutable": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang.lld",+ "cppCompilerExecutable": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++.lld"+ }+ },+ "cFileExtensions": [+ "c"+ ],+ "cppFileExtensions": [+ "cpp"+ ]+}\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/android_gradle_build_mini.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/android_gradle_build_mini.jsonnew file mode 100644index 0000000..c08c58e--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/android_gradle_build_mini.json@@ -0,0 +1,33 @@+{+ "buildFiles": [+ "/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt"+ ],+ "cleanCommandsComponents": [+ [+ "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja",+ "-C",+ "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "clean"+ ]+ ],+ "buildTargetsCommandComponents": [+ "/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja",+ "-C",+ "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "{LIST_OF_TARGETS_TO_BUILD}"+ ],+ "libraries": {+ "pffft::@6890427a1f51a3e7e1df": {+ "artifactName": "pffft",+ "abi": "arm64-v8a",+ "output": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/libpffft.a",+ "runtimeFiles": []+ },+ "spotstretch::@6890427a1f51a3e7e1df": {+ "artifactName": "spotstretch",+ "abi": "arm64-v8a",+ "output": "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so",+ "runtimeFiles": []+ }+ }+}\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/build.ninja b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/build.ninjanew file mode 100644index 0000000..9eb6fc6--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/build.ninja@@ -0,0 +1,340 @@+# CMAKE generated file: DO NOT EDIT!+# Generated by "Ninja" Generator, CMake Version 3.22++# This file contains all the build statements describing the+# compilation DAG.++# =============================================================================+# Write statements declared in CMakeLists.txt:+#+# Which is the root file.+# =============================================================================++# =============================================================================+# Project: spotstretch+# Configurations: RelWithDebInfo+# =============================================================================++#############################################+# Minimal version of Ninja required by this file++ninja_required_version = 1.5+++#############################################+# Set configuration variable for custom commands.++CONFIGURATION = RelWithDebInfo+# =============================================================================+# Include auxiliary files.+++#############################################+# Include rules file.++include CMakeFiles/rules.ninja++# =============================================================================++#############################################+# Logical path to working directory; prefix for absolute paths.++cmake_ninja_workdir = /Users/emanuele/Progetto$ Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/+# =============================================================================+# Object build statements for STATIC_LIBRARY target pffft+++#############################################+# Order-only phony target for pffft++build cmake_object_order_depends_target_pffft: phony || CMakeFiles/pffft.dir++build CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o: C_COMPILER__pffft_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/submodules/pffft/pffft.c || cmake_object_order_depends_target_pffft+ DEP_FILE = CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions+ OBJECT_DIR = CMakeFiles/pffft.dir+ OBJECT_FILE_DIR = CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft+ TARGET_COMPILE_PDB = CMakeFiles/pffft.dir/pffft.pdb+ TARGET_PDB = libpffft.pdb++build CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o: C_COMPILER__pffft_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/submodules/pffft/fftpack.c || cmake_object_order_depends_target_pffft+ DEP_FILE = CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions+ OBJECT_DIR = CMakeFiles/pffft.dir+ OBJECT_FILE_DIR = CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft+ TARGET_COMPILE_PDB = CMakeFiles/pffft.dir/pffft.pdb+ TARGET_PDB = libpffft.pdb+++# =============================================================================+# Link build statements for STATIC_LIBRARY target pffft+++#############################################+# Link the static library libpffft.a++build libpffft.a: C_STATIC_LIBRARY_LINKER__pffft_RelWithDebInfo CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o+ LANGUAGE_COMPILE_FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG+ OBJECT_DIR = CMakeFiles/pffft.dir+ POST_BUILD = :+ PRE_LINK = :+ TARGET_COMPILE_PDB = CMakeFiles/pffft.dir/pffft.pdb+ TARGET_FILE = libpffft.a+ TARGET_PDB = libpffft.pdb++# =============================================================================+# Object build statements for SHARED_LIBRARY target spotstretch+++#############################################+# Order-only phony target for spotstretch++build cmake_object_order_depends_target_spotstretch: phony || cmake_object_order_depends_target_pffft++build CMakeFiles/spotstretch.dir/stretch.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/app/src/main/cpp/stretch.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/stretch.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Assert.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Fourier.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Grain.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Grains.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Input.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Instrumentation.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Output.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Partials.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Stretch.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Stretcher.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Synthesis.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Timing.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/Window.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"++build CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o: CXX_COMPILER__spotstretch_RelWithDebInfo /Users/emanuele/Progetto$ Spotify/native-dsp/bungee/src/version.cpp || cmake_object_order_depends_target_spotstretch+ DEFINES = -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\"\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS+ DEP_FILE = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o.d+ FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20+ INCLUDES = -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules" -I"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen"+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ OBJECT_FILE_DIR = CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"+++# =============================================================================+# Link build statements for SHARED_LIBRARY target spotstretch+++#############################################+# Link the shared library /Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so++build /Users/emanuele/Progetto$ Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so: CXX_SHARED_LIBRARY_LINKER__spotstretch_RelWithDebInfo CMakeFiles/spotstretch.dir/stretch.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o | libpffft.a || libpffft.a+ LANGUAGE_COMPILE_FLAGS = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG+ LINK_FLAGS = -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections+ LINK_LIBRARIES = libpffft.a -llog -latomic -lm+ OBJECT_DIR = CMakeFiles/spotstretch.dir+ POST_BUILD = :+ PRE_LINK = :+ SONAME = libspotstretch.so+ SONAME_FLAG = -Wl,-soname,+ TARGET_COMPILE_PDB = CMakeFiles/spotstretch.dir/+ TARGET_FILE = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so"+ TARGET_PDB = "/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.pdb"+++#############################################+# Utility command for edit_cache++build CMakeFiles/edit_cache.util: CUSTOM_COMMAND+ COMMAND = cd "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a" && /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ccmake -S"/Users/emanuele/Progetto Spotify/app/src/main/cpp" -B"/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a"+ DESC = Running CMake cache editor...+ pool = console+ restat = 1++build edit_cache: phony CMakeFiles/edit_cache.util+++#############################################+# Utility command for rebuild_cache++build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND+ COMMAND = cd "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a" && /Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/cmake --regenerate-during-build -S"/Users/emanuele/Progetto Spotify/app/src/main/cpp" -B"/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a"+ DESC = Running CMake to regenerate build system...+ pool = console+ restat = 1++build rebuild_cache: phony CMakeFiles/rebuild_cache.util++# =============================================================================+# Target aliases.++build libspotstretch.so: phony /Users/emanuele/Progetto$ Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so++build pffft: phony libpffft.a++build spotstretch: phony /Users/emanuele/Progetto$ Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so++# =============================================================================+# Folder targets.++# =============================================================================++#############################################+# Folder: /Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a++build all: phony libpffft.a /Users/emanuele/Progetto$ Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a/libspotstretch.so++# =============================================================================+# Built-in targets+++#############################################+# Re-run CMake if any of its inputs changed.++build build.ninja: RERUN_CMAKE | /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompiler.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeGenericSystem.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystem.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Bruce-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-FindBinUtils.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SDCC-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Initialize.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android/Determine-Compiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Linux.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/UnixPaths.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/abis.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android-legacy.toolchain.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/flags.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Clang.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Determine.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Initialize.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Determine-Compiler.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/platforms.cmake /Users/emanuele/Progetto$ Spotify/app/src/main/cpp/CMakeLists.txt CMakeCache.txt CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake+ pool = console+++#############################################+# A missing CMake input file is not an error.++build /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompiler.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCCompilerABI.c /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCXXInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeGenericSystem.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystem.cmake.in /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Bruce-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang-FindBinUtils.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Clang.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/GNU.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/HP-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SDCC-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XL-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-C-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Clang.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-C.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine-CXX.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Initialize.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android/Determine-Compiler.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Linux.cmake /Users/emanuele/Library/Android/sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/UnixPaths.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/abis.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android-legacy.toolchain.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/flags.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Clang.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Determine.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android-Initialize.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Android.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/hooks/pre/Determine-Compiler.cmake /Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/platforms.cmake /Users/emanuele/Progetto$ Spotify/app/src/main/cpp/CMakeLists.txt CMakeCache.txt CMakeFiles/3.22.1-g37088a8/CMakeCCompiler.cmake CMakeFiles/3.22.1-g37088a8/CMakeCXXCompiler.cmake CMakeFiles/3.22.1-g37088a8/CMakeSystem.cmake: phony+++#############################################+# Clean all the built files.++build clean: CLEAN+++#############################################+# Print all primary targets available.++build help: HELP+++#############################################+# Make the all target the default.++default alldiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/build_file_index.txt b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/build_file_index.txtnew file mode 100644index 0000000..ab898e8--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/build_file_index.txt@@ -0,0 +1 @@+/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/cmake_install.cmake b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/cmake_install.cmakenew file mode 100644index 0000000..34f81bb--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/cmake_install.cmake@@ -0,0 +1,54 @@+# Install script for directory: /Users/emanuele/Progetto Spotify/app/src/main/cpp++# Set the install prefix+if(NOT DEFINED CMAKE_INSTALL_PREFIX)+ set(CMAKE_INSTALL_PREFIX "/usr/local")+endif()+string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")++# Set the install configuration name.+if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)+ if(BUILD_TYPE)+ string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""+ CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")+ else()+ set(CMAKE_INSTALL_CONFIG_NAME "RelWithDebInfo")+ endif()+ message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")+endif()++# Set the component getting installed.+if(NOT CMAKE_INSTALL_COMPONENT)+ if(COMPONENT)+ message(STATUS "Install component: \"${COMPONENT}\"")+ set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")+ else()+ set(CMAKE_INSTALL_COMPONENT)+ endif()+endif()++# Install shared libraries without execute permission?+if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)+ set(CMAKE_INSTALL_SO_NO_EXE "0")+endif()++# Is this installation the result of a crosscompile?+if(NOT DEFINED CMAKE_CROSSCOMPILING)+ set(CMAKE_CROSSCOMPILING "TRUE")+endif()++# Set default install directory permissions.+if(NOT DEFINED CMAKE_OBJDUMP)+ set(CMAKE_OBJDUMP "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump")+endif()++if(CMAKE_INSTALL_COMPONENT)+ set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")+else()+ set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")+endif()++string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT+ "${CMAKE_INSTALL_MANIFEST_FILES}")+file(WRITE "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/${CMAKE_INSTALL_MANIFEST}"+ "${CMAKE_INSTALL_MANIFEST_CONTENT}")diff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/compile_commands.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/compile_commands.jsonnew file mode 100644index 0000000..b17184f--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/compile_commands.json@@ -0,0 +1,87 @@+[+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions -o CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/pffft.c\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/pffft.c"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions -o CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/fftpack.c\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/fftpack.c"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/stretch.cpp.o -c \"/Users/emanuele/Progetto Spotify/app/src/main/cpp/stretch.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/app/src/main/cpp/stretch.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Assert.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Assert.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Fourier.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Fourier.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grain.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grain.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grains.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grains.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Input.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Input.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Instrumentation.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Instrumentation.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Output.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Output.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Partials.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Partials.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretch.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretch.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretcher.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretcher.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Synthesis.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Synthesis.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Timing.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Timing.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Window.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Window.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/version.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/version.cpp"+}+]\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/compile_commands.json.bin b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/compile_commands.json.binnew file mode 100644index 0000000..272cbedBinary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/compile_commands.json.bin differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/configure_fingerprint.bin b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/configure_fingerprint.binnew file mode 100644index 0000000..8563a8a--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/configure_fingerprint.bin@@ -0,0 +1,28 @@+C/C++ Structured Logl+j+h/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/additional_project_files.txtC+A+?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint �����3 䬙��3i+g+e/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/android_gradle_build.json �����3� �����3n+l+j/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/android_gradle_build_mini.json �����3� ��3[+Y+W/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/build.ninja �����3�� 髙��3_+]+[/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/build.ninja.txt �����3d+b+`/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/build_file_index.txt �����3 @ �����3e+c+a/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/compile_commands.json �����3�� 髙��3i+g+e/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/compile_commands.json.bin �����3 �" 髙��3o+m+k/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/metadata_generation_command.txt �����3+� �����3b+`+^/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/prefab_config.json �����3 ( �����3g+e+c/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/symbol_folder_index.txt �����3 b �����3D+B+@/Users/emanuele/Progetto Spotify/app/src/main/cpp/CMakeLists.txt �����3 � �Ȅ��3\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/libpffft.a b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/libpffft.anew file mode 100644index 0000000..6363414Binary files /dev/null and b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/libpffft.a differdiff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/metadata_generation_command.txt b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/metadata_generation_command.txtnew file mode 100644index 0000000..758b3e6--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/metadata_generation_command.txt@@ -0,0 +1,18 @@+ -H/Users/emanuele/Progetto Spotify/app/src/main/cpp+-DCMAKE_SYSTEM_NAME=Android+-DCMAKE_EXPORT_COMPILE_COMMANDS=ON+-DCMAKE_SYSTEM_VERSION=26+-DANDROID_PLATFORM=android-26+-DANDROID_ABI=arm64-v8a+-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a+-DANDROID_NDK=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358+-DCMAKE_ANDROID_NDK=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358+-DCMAKE_TOOLCHAIN_FILE=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/build/cmake/android.toolchain.cmake+-DCMAKE_MAKE_PROGRAM=/Users/emanuele/Library/Android/sdk/cmake/3.22.1/bin/ninja+-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a+-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a+-DCMAKE_BUILD_TYPE=RelWithDebInfo+-B/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a+-GNinja+ Build command args: []+ Version: 2\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/prefab_config.json b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/prefab_config.jsonnew file mode 100644index 0000000..e799de8--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/prefab_config.json@@ -0,0 +1,4 @@+{+ "enabled": false,+ "packages": []+}\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/symbol_folder_index.txt b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/symbol_folder_index.txtnew file mode 100644index 0000000..c97a795--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/arm64-v8a/symbol_folder_index.txt@@ -0,0 +1 @@+/Users/emanuele/Progetto Spotify/app/build/intermediates/cxx/RelWithDebInfo/2i6al211/obj/arm64-v8a\ No newline at end of filediff --git a/app/.cxx/RelWithDebInfo/2i6al211/hash_key.txt b/app/.cxx/RelWithDebInfo/2i6al211/hash_key.txtnew file mode 100644index 0000000..3fdd672--- /dev/null+++ b/app/.cxx/RelWithDebInfo/2i6al211/hash_key.txt@@ -0,0 +1,25 @@+# Values used to calculate the hash in this folder name.+# Should not depend on the absolute path of the project itself.+# - AGP: 8.7.3.+# - $NDK is the path to NDK 28.2.13676358.+# - $PROJECT is the path to the parent folder of the root Gradle build file.+# - $ABI is the ABI to be built with. The specific value doesn't contribute to the value of the hash.+# - $HASH is the hash value computed from this text.+# - $CMAKE is the path to CMake 3.22.1.+# - $NINJA is the path to Ninja.+-H$PROJECT/app/src/main/cpp+-DCMAKE_SYSTEM_NAME=Android+-DCMAKE_EXPORT_COMPILE_COMMANDS=ON+-DCMAKE_SYSTEM_VERSION=26+-DANDROID_PLATFORM=android-26+-DANDROID_ABI=$ABI+-DCMAKE_ANDROID_ARCH_ABI=$ABI+-DANDROID_NDK=$NDK+-DCMAKE_ANDROID_NDK=$NDK+-DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake+-DCMAKE_MAKE_PROGRAM=$NINJA+-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=$PROJECT/app/build/intermediates/cxx/RelWithDebInfo/$HASH/obj/$ABI+-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$PROJECT/app/build/intermediates/cxx/RelWithDebInfo/$HASH/obj/$ABI+-DCMAKE_BUILD_TYPE=RelWithDebInfo+-B$PROJECT/app/.cxx/RelWithDebInfo/$HASH/$ABI+-GNinja\ No newline at end of filediff --git a/app/.cxx/tools/release/arm64-v8a/compile_commands.json b/app/.cxx/tools/release/arm64-v8a/compile_commands.jsonnew file mode 100644index 0000000..87d5878--- /dev/null+++ b/app/.cxx/tools/release/arm64-v8a/compile_commands.json@@ -0,0 +1,87 @@+[+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions -o CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/pffft.c.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/pffft.c\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/pffft.c"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -ffast-math -fno-finite-math-only -fno-exceptions -o CMakeFiles/pffft.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/submodules/pffft/fftpack.c.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/fftpack.c\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/submodules/pffft/fftpack.c"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/stretch.cpp.o -c \"/Users/emanuele/Progetto Spotify/app/src/main/cpp/stretch.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/app/src/main/cpp/stretch.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Assert.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Assert.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Assert.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Fourier.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Fourier.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Fourier.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grain.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grain.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grain.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Grains.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grains.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Grains.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Input.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Input.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Input.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Instrumentation.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Instrumentation.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Instrumentation.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Output.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Output.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Output.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Partials.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Partials.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Partials.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretch.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretch.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretch.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Stretcher.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretcher.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Stretcher.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Synthesis.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Synthesis.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Synthesis.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Timing.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Timing.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Timing.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/Window.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Window.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/Window.cpp"+},+{+ "directory": "/Users/emanuele/Progetto Spotify/app/.cxx/RelWithDebInfo/151m4dr6/arm64-v8a",+ "command": "/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android26 --sysroot=/Users/emanuele/Library/Android/sdk/ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DBUNGEE_SELF_TEST=0 -DBUNGEE_VERSION=\\\"\\\" -Deigen_assert=BUNGEE_ASSERT1 -Dspotstretch_EXPORTS -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules\" -I\"/Users/emanuele/Progetto Spotify/app/src/main/cpp/../../../../native-dsp/bungee/submodules/eigen\" -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O2 -g -DNDEBUG -fPIC -std=gnu++20 -o CMakeFiles/spotstretch.dir/Users/emanuele/Progetto_Spotify/native-dsp/bungee/src/version.cpp.o -c \"/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/version.cpp\"",+ "file": "/Users/emanuele/Progetto Spotify/native-dsp/bungee/src/version.cpp"+}+]\ No newline at end of filediff --git a/app/build.gradle.kts b/app/build.gradle.ktsnew file mode 100644index 0000000..4201041--- /dev/null+++ b/app/build.gradle.kts@@ -0,0 +1,272 @@+plugins {+ alias(libs.plugins.android.application)+ alias(libs.plugins.kotlin.android)+ alias(libs.plugins.kotlin.compose)+ alias(libs.plugins.kotlin.serialization)+}++/**+ * ABIs to build the native core for.+ *+ * arm64 covers every phone made in the last decade, and each extra ABI is a full+ * extra Rust build (~2 min from cold), so the default is deliberately just the+ * one. Add "x86_64" for the emulator and "armeabi-v7a" for pre-2015 hardware.+ */+val nativeAbis = listOf("arm64-v8a")++/** NDK used for both AGP and the Cargo cross-build; keep the two in step. */+val ndkVersionForCargo = "28.2.13676358"++/** Maps Android ABI names to Rust target triples. */+val rustTargets = mapOf(+ "arm64-v8a" to "aarch64-linux-android",+ "armeabi-v7a" to "armv7-linux-androideabi",+ "x86_64" to "x86_64-linux-android",+)++android {+ namespace = "dev.emanuele.spot"+ compileSdk = 37+ ndkVersion = ndkVersionForCargo++ defaultConfig {+ applicationId = "dev.emanuele.spot"+ // cpal's Android host is AAudio, which the ndk crate gates at API 26.+ minSdk = 26+ targetSdk = 35+ versionCode = 1+ versionName = "0.1.0"++ ndk {+ abiFilters += nativeAbis+ }+ }++ buildTypes {+ debug {+ isMinifyEnabled = false+ }+ release {+ isMinifyEnabled = true+ isShrinkResources = true+ proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")+ // Signed with the debug key so a release build can be installed and+ // measured locally. Compose is much slower in a debuggable build, so+ // judging scroll performance on `debug` is misleading; replace this+ // with a real key before distributing anything.+ signingConfig = signingConfigs.getByName("debug")+ }++ /**+ * What to build while working on the app.+ *+ * A profile of a one-line-change build: R8 3m43s of a 4m12s total, then+ * lint-vital at 50s and the Compose mapping at 32s. Compiling the actual+ * Kotlin was ten seconds. Shrinking a build that is going straight onto+ * a test phone buys nothing and costs almost the entire wall clock.+ *+ * Not `debug`, though — a debuggable build turns off the ART optimiser+ * and leaves Compose's own debug instrumentation in, so scrolling and+ * animation measure far worse than they really are, which is the thing+ * this app is mostly being judged on. This is release without the+ * shrinker: same runtime behaviour, none of the wait.+ *+ * Verify on `release` before shipping — R8 is also what would surface a+ * missing keep rule (reflection over the Retrofit and serialization+ * models above all), and that failure only ever appears in a minified+ * build.+ */+ create("dev") {+ initWith(getByName("release"))+ isMinifyEnabled = false+ isShrinkResources = false+ signingConfig = signingConfigs.getByName("debug")+ }+ }++ lint {+ // Runs on demand (`./gradlew lint`) rather than inside every release+ // build. It is 50 seconds of a build whose output is a local test+ // install, and it has never been the thing that caught a problem here.+ checkReleaseBuilds = false+ }++ compileOptions {+ sourceCompatibility = JavaVersion.VERSION_17+ targetCompatibility = JavaVersion.VERSION_17+ }++ kotlin {+ compilerOptions {+ jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)+ }+ }++ buildFeatures {+ compose = true+ // Off by default since AGP 8; SpotApplication reads BuildConfig.DEBUG.+ buildConfig = true+ }++ // Bungee and its JNI wrapper. The Rust core is not built here — it is+ // cross-compiled by the cargoBuild task and dropped into jniLibs.+ externalNativeBuild {+ cmake {+ path = file("src/main/cpp/CMakeLists.txt")+ }+ }++ sourceSets["main"].jniLibs.srcDirs("src/main/jniLibs")++ packaging {+ // The Rust cdylib is already stripped by the release profile; letting+ // Gradle re-strip it with the wrong tool breaks the arm64 build.+ jniLibs.keepDebugSymbols += "**/libspotcore.so"+ }+}++dependencies {+ implementation(libs.androidx.core.ktx)+ implementation(libs.androidx.activity.compose)+ implementation(libs.androidx.browser)+ implementation(libs.androidx.security.crypto)+ implementation(libs.androidx.lifecycle.runtime.compose)+ implementation(libs.androidx.lifecycle.viewmodel.compose)++ implementation(platform(libs.compose.bom))+ implementation(libs.compose.ui)+ implementation(libs.compose.material3)+ implementation(libs.compose.icons.extended)+ implementation(libs.compose.ui.tooling.preview)+ debugImplementation(libs.compose.ui.tooling)++ implementation(libs.media3.common)+ implementation(libs.media3.session)+ implementation(libs.media3.exoplayer)+ implementation(libs.media3.ui)++ implementation(libs.kotlinx.coroutines.android)+ implementation(libs.kotlinx.serialization.json)+ implementation(libs.okhttp)+ implementation(libs.okhttp.logging)+ implementation(libs.retrofit)+ implementation(libs.retrofit.serialization)+ implementation(libs.coil.compose)+ implementation(libs.androidx.palette)+ implementation(libs.androidx.navigation.compose)+ implementation(libs.backdrop)+ implementation(libs.kyant.shapes)+}++/** Pinned so a build is not at the mercy of upstream's next commit. */+val bungeeTag = "v2.4.24"++/**+ * Clones Bungee, the time-stretching library behind the speed and pitch+ * controls.+ *+ * Fetched rather than vendored: Bungee is MPL-2.0, and keeping the licensed+ * sources exactly as upstream published them — pinned to a tag, never edited —+ * keeps the obligation simple. The build only compiles them; the patched copy+ * of librespot under native/vendor is vendored precisely because it *is*+ * modified, and that difference is the reason for treating the two differently.+ */+val fetchBungee by tasks.registering {+ group = "build"+ description = "Clones the Bungee time-stretch library if it is not present"++ // Everything is resolved here rather than inside the action: a task action+ // that touches the build script gets captured with it, which the+ // configuration cache refuses to serialize.+ val target = rootProject.file("native-dsp/bungee")+ val marker = target.resolve("bungee/Bungee.h")+ val tag = bungeeTag+ outputs.dir(target)++ doLast {+ if (marker.exists()) return@doLast+ target.deleteRecursively()+ target.parentFile.mkdirs()++ val process = ProcessBuilder(+ "git", "clone",+ "--depth", "1",+ "--branch", tag,+ "--recurse-submodules", "--shallow-submodules",+ "https://github.com/bungee-audio-stretch/bungee.git",+ target.absolutePath,+ ).inheritIO().start()++ check(process.waitFor() == 0) { "could not clone Bungee $tag into $target" }+ }+}+++/**+ * Cross-compiles the Rust core and drops the resulting `.so` files straight into+ * `jniLibs`.+ *+ * This shells out to `cargo-ndk` instead of using externalNativeBuild because+ * the crate is Cargo-driven, not CMake-driven. Install it once with+ * `cargo install cargo-ndk` and add the targets with `rustup target add`.+ */+val cargoBuild by tasks.registering(Exec::class) {+ group = "build"+ description = "Cross-compiles the librespot core for all configured ABIs"++ val nativeDir = rootProject.file("native")+ workingDir = nativeDir++ // Gradle can skip this entirely when nothing in the crate changed.+ inputs.dir(nativeDir.resolve("src"))+ inputs.file(nativeDir.resolve("Cargo.toml"))+ inputs.file(nativeDir.resolve("Cargo.lock"))+ outputs.dir(layout.projectDirectory.dir("src/main/jniLibs"))++ val outputDir = layout.projectDirectory.dir("src/main/jniLibs").asFile.absolutePath+ val abiArgs = nativeAbis.flatMap { listOf("-t", it) }+ // -P 26 must match minSdk: libaaudio.so only exists in the sysroot from API+ // 26 up, and cargo-ndk otherwise links against API 21 and fails with+ // "unable to find library -laaudio".+ // The rustup cargo by absolute path, not whatever `cargo` resolves to first.+ // A Homebrew rust earlier on PATH has neither the Android targets nor a new+ // enough rustc for the dependency tree, and the failure it produces+ // ("requires rustc 1.88") points at the crates rather than at the toolchain.+ val cargo = File(System.getProperty("user.home"), ".cargo/bin/cargo")+ .takeIf { it.canExecute() }?.absolutePath ?: "cargo"+ commandLine(+ listOf(cargo, "ndk") + abiArgs ++ listOf("-P", "26", "-o", outputDir, "build", "--release"),+ )++ // Everything is resolved here rather than in a doFirst block: a task action+ // closure would capture the build script instance, which the configuration+ // cache refuses to serialize.+ val ndkDir = File(android.sdkDirectory, "ndk/$ndkVersionForCargo")+ val unmappedAbis = nativeAbis.filterNot { rustTargets.containsKey(it) }+ require(unmappedAbis.isEmpty()) { "No Rust target mapped for ABI(s): $unmappedAbis" }+ require(ndkDir.isDirectory) {+ "NDK $ndkVersionForCargo not found at $ndkDir — install it with " ++ "sdkmanager --install \"ndk;$ndkVersionForCargo\""+ }++ // cargo-ndk finds the toolchain through this; AGP's own ndkVersion is not+ // visible to an external process.+ environment("ANDROID_NDK_HOME", ndkDir.absolutePath)++ // cargo-ndk re-invokes plain `cargo` for each target, so pointing the task+ // at the rustup binary is not enough on its own: the child would still pick+ // up a Homebrew rust earlier on PATH, which has neither the Android targets+ // nor a new enough rustc, and reports it as "requires rustc 1.88".+ File(System.getProperty("user.home"), ".cargo/bin").takeIf { it.isDirectory }?.let {+ environment("PATH", "${it.absolutePath}:${System.getenv("PATH")}")+ }+}++tasks.matching { it.name.startsWith("merge") && it.name.endsWith("JniLibFolders") }+ .configureEach { dependsOn(cargoBuild) }++// CMake reads Bungee's sources at configure time, so the clone has to have+// happened before any of the native build tasks run.+tasks.matching { it.name.startsWith("configureCMake") || it.name.startsWith("buildCMake") }+ .configureEach { dependsOn(fetchBungee) }diff --git a/app/proguard-rules.pro b/app/proguard-rules.pronew file mode 100644index 0000000..2a0c3cf--- /dev/null+++ b/app/proguard-rules.pro@@ -0,0 +1,35 @@+# Anything the native library reaches by name must survive R8 untouched: JNI+# resolves methods from strings, so a renamed or inlined member fails only at+# runtime, with "NoSuchMethodError: no non-static method ...".+#+# Every entry here has a counterpart in native/src — keep the two in step when+# adding a call across the boundary.++# native fn declarations resolved against this class+-keepclasseswithmembernames class dev.emanuele.spot.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 { *; }++# start / stop / write, called from the audio sink (native/src/sink.rs)+-keep class dev.emanuele.spot.playback.AudioOutput { *; }++# kotlinx.serialization generates serializers reflectively from these.+-keepattributes *Annotation*, InnerClasses+-dontnote kotlinx.serialization.**+-keepclassmembers class dev.emanuele.spot.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++# 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 { *; }diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xmlnew file mode 100644index 0000000..7865176--- /dev/null+++ b/app/src/main/AndroidManifest.xml@@ -0,0 +1,44 @@+<?xml version="1.0" encoding="utf-8"?>+<manifest xmlns:android="http://schemas.android.com/apk/res/android">++ <uses-permission android:name="android.permission.INTERNET" />+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />+ <uses-permission android:name="android.permission.WAKE_LOCK" />+ <!-- Required to attach the reverb effect to our own audio session. -->+ <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />+ <!-- Required from API 33 for the playback notification to be visible. -->+ <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />++ <application+ android:name=".SpotApplication"+ android:allowBackup="false"+ android:icon="@mipmap/ic_launcher"+ android:label="@string/app_name"+ android:supportsRtl="true"+ android:theme="@style/Theme.Spot">++ <activity+ android:name=".ui.MainActivity"+ android:exported="true"+ android:launchMode="singleTask"+ android:windowSoftInputMode="adjustResize">+ <intent-filter>+ <action android:name="android.intent.action.MAIN" />+ <category android:name="android.intent.category.LAUNCHER" />+ </intent-filter>+ </activity>++ <service+ android:name=".playback.PlaybackService"+ android:exported="true"+ android:foregroundServiceType="mediaPlayback">+ <intent-filter>+ <action android:name="androidx.media3.session.MediaSessionService" />+ </intent-filter>+ </service>++ </application>++</manifest>diff --git a/app/src/main/cpp/CMakeLists.txt b/app/src/main/cpp/CMakeLists.txtnew file mode 100644index 0000000..f864bfd--- /dev/null+++ b/app/src/main/cpp/CMakeLists.txt@@ -0,0 +1,48 @@+# Time stretching and pitch shifting, on top of Bungee.+#+# Bungee's own CMakeLists is deliberately not used: it requires CMake 3.30 (the+# NDK ships 3.22) and unconditionally builds a command-line tool we have no use+# for on a phone. Its sources are compiled here instead, unmodified, with the+# same include paths and definitions its own build uses.+#+# Bungee is MPL-2.0. It is fetched from upstream rather than copied into this+# repository so the licensed sources stay exactly as published; see the+# fetchBungee task in app/build.gradle.kts.++cmake_minimum_required(VERSION 3.22)+project(spotstretch CXX C)++set(CMAKE_CXX_STANDARD 20)+set(CMAKE_CXX_STANDARD_REQUIRED ON)++set(BUNGEE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../../native-dsp/bungee)++if(NOT EXISTS ${BUNGEE_DIR}/bungee/Bungee.h)+ message(FATAL_ERROR+ "Bungee sources missing at ${BUNGEE_DIR}. The fetchBungee Gradle task "+ "should have cloned them; run ./gradlew :app:fetchBungee.")+endif()++# Bungee's FFT backend, built with the same flags its own CMakeLists uses.+add_library(pffft STATIC+ ${BUNGEE_DIR}/submodules/pffft/pffft.c+ ${BUNGEE_DIR}/submodules/pffft/fftpack.c)+target_compile_options(pffft PRIVATE -ffast-math -fno-finite-math-only -fno-exceptions)++file(GLOB BUNGEE_SOURCES ${BUNGEE_DIR}/src/*.cpp)++add_library(spotstretch SHARED stretch.cpp ${BUNGEE_SOURCES})++target_include_directories(spotstretch PRIVATE+ ${BUNGEE_DIR}+ ${BUNGEE_DIR}/submodules+ ${BUNGEE_DIR}/submodules/eigen)++# eigen_assert is redirected the same way Bungee's own build does it, so Eigen+# failures surface through Bungee's assertion handler instead of calling abort.+target_compile_definitions(spotstretch PRIVATE+ BUNGEE_SELF_TEST=0+ eigen_assert=BUNGEE_ASSERT1+ BUNGEE_VERSION="${BUNGEE_VERSION}")++target_link_libraries(spotstretch PRIVATE pffft log)diff --git a/app/src/main/cpp/stretch.cpp b/app/src/main/cpp/stretch.cppnew file mode 100644index 0000000..87119fb--- /dev/null+++ b/app/src/main/cpp/stretch.cpp@@ -0,0 +1,143 @@+// JNI wrapper around Bungee's streaming time stretcher.+//+// Replaces AudioTrack.setPlaybackParams, which uses the platform's Sonic+// implementation: Sonic is cheap and fine for speech, but on music at anything+// beyond a few percent it smears transients and adds a metallic edge. Bungee is+// a phase-vocoder and holds up far better at the ratios this app offers.+//+// Audio arrives here as interleaved 16-bit PCM because that is what the Rust+// sink produces and what AudioTrack consumes; Bungee works in planar float, so+// this file is mostly the conversion either side of one process() call.++#include <jni.h>++#include <bungee/Bungee.h>+#include <bungee/Stream.h>++#include <algorithm>+#include <cmath>+#include <vector>++namespace {++using Edition = Bungee::Basic;++/// One stretcher plus the scratch buffers its planar float API needs.+struct Context+{+ Bungee::Stretcher<Edition> stretcher;+ Bungee::Stream<Edition> stream;+ int channels;+ int maxInputFrames;+ int maxOutputFrames;+ std::vector<float> input;+ std::vector<float> output;+ std::vector<const float *> inputPointers;+ std::vector<float *> outputPointers;++ Context(int sampleRate, int channelCount, int maxInput, int maxOutput) :+ stretcher({sampleRate, sampleRate}, channelCount),+ stream(stretcher, maxInput, channelCount),+ channels(channelCount),+ maxInputFrames(maxInput),+ maxOutputFrames(maxOutput),+ input(static_cast<size_t>(maxInput) * channelCount),+ output(static_cast<size_t>(maxOutput) * channelCount),+ inputPointers(channelCount),+ outputPointers(channelCount)+ {+ for (int c = 0; c < channelCount; ++c)+ {+ inputPointers[c] = input.data() + static_cast<size_t>(c) * maxInput;+ outputPointers[c] = output.data() + static_cast<size_t>(c) * maxOutput;+ }+ }+};++constexpr float kInt16Scale = 32768.f;++} // namespace++extern "C" {++JNIEXPORT jlong JNICALL+Java_dev_emanuele_spot_playback_Stretcher_nativeCreate(+ JNIEnv *, jclass, jint sampleRate, jint channels, jint maxInputFrames, jint maxOutputFrames)+{+ if (sampleRate <= 0 || channels <= 0 || maxInputFrames <= 0 || maxOutputFrames <= 0)+ return 0;++ auto *context = new (std::nothrow) Context(sampleRate, channels, maxInputFrames, maxOutputFrames);+ return reinterpret_cast<jlong>(context);+}++JNIEXPORT void JNICALL+Java_dev_emanuele_spot_playback_Stretcher_nativeDestroy(JNIEnv *, jclass, jlong handle)+{+ delete reinterpret_cast<Context *>(handle);+}++/**+ * Stretches one packet.+ *+ * @return frames written to `outputBuffer`, or -1 if the call was rejected.+ */+JNIEXPORT jint JNICALL+Java_dev_emanuele_spot_playback_Stretcher_nativeProcess(+ JNIEnv *env,+ jclass,+ jlong handle,+ jobject inputBuffer,+ jint inputFrames,+ jfloat speed,+ jfloat pitch,+ jobject outputBuffer)+{+ auto *context = reinterpret_cast<Context *>(handle);+ if (!context || inputFrames <= 0 || inputFrames > context->maxInputFrames)+ return -1;++ auto *in = static_cast<const int16_t *>(env->GetDirectBufferAddress(inputBuffer));+ auto *out = static_cast<int16_t *>(env->GetDirectBufferAddress(outputBuffer));+ if (!in || !out)+ return -1;++ const int channels = context->channels;++ // Interleaved 16-bit to planar float.+ for (int frame = 0; frame < inputFrames; ++frame)+ for (int c = 0; c < channels; ++c)+ context->input[static_cast<size_t>(c) * context->maxInputFrames + frame] =+ in[frame * channels + c] / kInt16Scale;++ // Bungee derives speed from the ratio of input to output frames, so this is+ // where tempo is actually set: fewer output frames than input means faster.+ double outputFrameCount = inputFrames / static_cast<double>(speed);+ if (outputFrameCount > context->maxOutputFrames)+ outputFrameCount = context->maxOutputFrames;++ const int produced = context->stream.process(+ context->inputPointers.data(),+ context->outputPointers.data(),+ inputFrames,+ outputFrameCount,+ pitch);++ const int frames = std::min(produced, context->maxOutputFrames);++ // Planar float back to interleaved 16-bit. Clamped rather than wrapped:+ // a phase vocoder can overshoot the input's peak, and letting that wrap+ // around turns a loud moment into a burst of noise.+ for (int frame = 0; frame < frames; ++frame)+ for (int c = 0; c < channels; ++c)+ {+ const float sample =+ context->outputPointers[c][frame] * kInt16Scale;+ out[frame * channels + c] = static_cast<int16_t>(+ std::clamp(sample, -kInt16Scale, kInt16Scale - 1.f));+ }++ return frames;+}++} // extern "C"diff --git a/app/src/main/java/dev/emanuele/spot/SpotApplication.kt b/app/src/main/java/dev/emanuele/spot/SpotApplication.ktnew file mode 100644index 0000000..00d6aab--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/SpotApplication.kt@@ -0,0 +1,33 @@+package dev.emanuele.spot++import android.app.Application+import dev.emanuele.spot.auth.TokenStore+import dev.emanuele.spot.auth.WebApiAccount+import dev.emanuele.spot.data.RecentStore+import dev.emanuele.spot.playback.EffectPresetStore+import dev.emanuele.spot.data.ApiFactory+import dev.emanuele.spot.data.SpotifyApi++/**+ * Manual dependency container.+ *+ * Small enough not to need a DI framework, and keeping it explicit makes the+ * one thing that matters obvious: a single [TokenStore] instance, so token+ * refreshes really are serialised across the whole process.+ */+class SpotApplication : Application() {++ val tokenStore: TokenStore by lazy { TokenStore(this) }+ val recentStore: RecentStore by lazy { RecentStore(this) }++ /**+ * The user's own Spotify application. Web API calls go through it so they+ * are metered against a quota nobody else shares — see [WebApiAccount].+ */+ val webApi: WebApiAccount by lazy { WebApiAccount(this) }++ val api: SpotifyApi by lazy { ApiFactory.create(webApi.tokens, debug = BuildConfig.DEBUG) }++ /** The user's saved speed / pitch / reverb combinations. */+ val effectPresets: EffectPresetStore by lazy { EffectPresetStore(this) }+}diff --git a/app/src/main/java/dev/emanuele/spot/auth/SpotifyOAuth.kt b/app/src/main/java/dev/emanuele/spot/auth/SpotifyOAuth.ktnew file mode 100644index 0000000..b4976ed--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/auth/SpotifyOAuth.kt@@ -0,0 +1,305 @@+package dev.emanuele.spot.auth++import android.content.Context+import android.content.Intent+import android.net.Uri+import androidx.browser.customtabs.CustomTabsIntent+import kotlinx.coroutines.Dispatchers+import kotlinx.coroutines.withContext+import okhttp3.FormBody+import okhttp3.OkHttpClient+import okhttp3.Request+import org.json.JSONObject+import java.net.InetAddress+import java.net.ServerSocket+import java.security.MessageDigest+import java.security.SecureRandom+import java.util.Base64++/**+ * Authorization Code + PKCE against Spotify's accounts service.+ *+ * The redirect target is a loopback listener rather than a custom scheme or an+ * App Link. That is not a shortcut: the client id below is librespot's, and the+ * only redirect URIs registered for it are `http://127.0.0.1:{port}/login`, so+ * an app-owned scheme would be rejected by the authorize endpoint. Loopback+ * redirects for native apps are the pattern described in RFC 8252 §7.3, and the+ * port is chosen at runtime because Spotify ignores it for loopback hosts.+ *+ * Using librespot's client id is what makes streaming work at all — a client id+ * registered in the Spotify developer dashboard authenticates fine against the+ * Web API but is refused by the access point. It is also the point at which this+ * app stops being something Spotify's terms permit.+ */+object SpotifyOAuth {++ /**+ * librespot's "keymaster" client id.+ *+ * The session must be configured with this same id — see the cache note in+ * the native engine — because login5 issues the access point's HTTP token+ * against whichever id the session carries, and it has to match the one the+ * OAuth token was minted for.+ */+ const val CLIENT_ID = "65b708073fc0480ea92a077233ca87bd"++ /**+ * Loopback port registered for [CLIENT_ID].+ *+ * Fixed rather than ephemeral: Spotify rejects unregistered redirect URIs+ * with "redirect_uri: not matching configuration".+ */+ private const val REDIRECT_PORT = 5588++ /**+ * The exact URI the user must register in their own dashboard application.+ *+ * Shown in the settings screen: Spotify matches redirect URIs literally, so+ * a typed-from-memory variant is the likeliest way for the setup to fail.+ */+ const val REDIRECT_URI = "http://127.0.0.1:$REDIRECT_PORT/login"++ private const val AUTHORIZE_URL = "https://accounts.spotify.com/authorize"+ private const val TOKEN_URL = "https://accounts.spotify.com/api/token"++ /**+ * Scopes librespot requests. `streaming` is the one the access point checks;+ * the rest back the library and playback-state screens in the UI.+ */+ private val SCOPES = listOf(+ "app-remote-control",+ "playlist-modify",+ "playlist-modify-private",+ "playlist-modify-public",+ "playlist-read",+ "playlist-read-collaborative",+ "playlist-read-private",+ "streaming",+ "user-follow-modify",+ "user-follow-read",+ "user-library-modify",+ "user-library-read",+ "user-modify",+ "user-modify-playback-state",+ "user-modify-private",+ "user-personalized",+ "user-read-currently-playing",+ "user-read-email",+ "user-read-play-history",+ "user-read-playback-position",+ "user-read-playback-state",+ "user-read-private",+ "user-read-recently-played",+ "user-top-read",+ )++ private const val TAG = "SpotOAuth"++ private val http = OkHttpClient()+ private val random = SecureRandom()++ data class Tokens(+ val accessToken: String,+ val refreshToken: String?,+ val expiresAtMillis: Long,+ )++ /**+ * The stored session is gone for good — revoked, or superseded by a newer+ * login. Distinguished from other failures because retrying can never+ * succeed: the only way out is a fresh OAuth flow, so callers must discard+ * the saved tokens rather than back off and try again.+ */+ class SessionExpired(message: String) : IllegalStateException(message)++ /**+ * Runs the full interactive flow: opens a Custom Tab, waits for Spotify to+ * redirect back to the loopback listener, then exchanges the code.+ *+ * Suspends until the user finishes or the listener times out. Cancelling the+ * calling coroutine closes the socket and aborts.+ */+ suspend fun authorize(+ context: Context,+ clientId: String = CLIENT_ID,+ scopes: List<String> = SCOPES,+ ): Tokens = withContext(Dispatchers.IO) {+ val verifier = randomVerifier()+ val challenge = challengeFor(verifier)+ val state = randomState()++ LoopbackReceiver(REDIRECT_PORT).use { receiver ->+ val redirectUri = receiver.redirectUri+ // The port is ephemeral, so without this there is no way to tell a+ // listener that never accepted from a browser that refused to load+ // the redirect.+ android.util.Log.i(TAG, "listening for OAuth redirect on $redirectUri")++ val authUri = Uri.parse(AUTHORIZE_URL).buildUpon()+ .appendQueryParameter("client_id", clientId)+ .appendQueryParameter("response_type", "code")+ .appendQueryParameter("redirect_uri", redirectUri)+ .appendQueryParameter("scope", scopes.joinToString(" "))+ .appendQueryParameter("code_challenge_method", "S256")+ .appendQueryParameter("code_challenge", challenge)+ .appendQueryParameter("state", state)+ .build()++ withContext(Dispatchers.Main) {+ CustomTabsIntent.Builder().build().apply {+ // The caller is a ViewModel, so this is the application+ // context; starting an activity from one without+ // FLAG_ACTIVITY_NEW_TASK throws. Launching the tab in its+ // own task is also what we want — the redirect comes back+ // over the loopback socket, not through an activity result,+ // so the browser has no reason to sit on our stack.+ intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)+ }.launchUrl(context, authUri)+ }++ val callback = receiver.awaitRedirect()+ android.util.Log.i(TAG, "redirect received")+ check(callback.state == state) { "OAuth state mismatch — request was not ours" }+ val code = callback.code ?: error("authorization denied: ${callback.error}")++ exchangeCode(code, verifier, redirectUri, clientId)+ }+ }++ /** Trades a refresh token for a fresh access token. */+ suspend fun refresh(+ refreshToken: String,+ clientId: String = CLIENT_ID,+ ): Tokens = withContext(Dispatchers.IO) {+ val form = FormBody.Builder()+ .add("grant_type", "refresh_token")+ .add("refresh_token", refreshToken)+ .add("client_id", clientId)+ .build()+ // Spotify may or may not rotate the refresh token; keep the old one when+ // the response omits it, otherwise the next refresh has nothing to use.+ postToken(form).let { it.copy(refreshToken = it.refreshToken ?: refreshToken) }+ }++ private fun exchangeCode(+ code: String,+ verifier: String,+ redirectUri: String,+ clientId: String,+ ): Tokens {+ val form = FormBody.Builder()+ .add("grant_type", "authorization_code")+ .add("code", code)+ .add("redirect_uri", redirectUri)+ .add("client_id", clientId)+ .add("code_verifier", verifier)+ .build()+ return postToken(form)+ }++ private fun postToken(form: FormBody): Tokens {+ val request = Request.Builder().url(TOKEN_URL).post(form).build()+ http.newCall(request).execute().use { response ->+ val body = response.body?.string().orEmpty()+ if (!response.isSuccessful) {+ // `invalid_grant` is Spotify saying the refresh token is dead —+ // revoked, or replaced by a later login. Retrying is pointless.+ if (body.contains("invalid_grant")) {+ throw SessionExpired("sessione scaduta o revocata: accedi di nuovo")+ }+ error("token request failed (${response.code}): $body")+ }+ val json = JSONObject(body)+ val expiresIn = json.optLong("expires_in", 3600)+ return Tokens(+ accessToken = json.getString("access_token"),+ refreshToken = json.optString("refresh_token").takeIf { it.isNotEmpty() },+ expiresAtMillis = System.currentTimeMillis() + expiresIn * 1000,+ )+ }+ }++ private fun randomVerifier(): String = ByteArray(64)+ .also(random::nextBytes)+ .let(::base64Url)++ private fun randomState(): String = ByteArray(16)+ .also(random::nextBytes)+ .let(::base64Url)++ private fun challengeFor(verifier: String): String =+ base64Url(MessageDigest.getInstance("SHA-256").digest(verifier.toByteArray()))++ private fun base64Url(bytes: ByteArray): String =+ Base64.getUrlEncoder().withoutPadding().encodeToString(bytes)+}++/**+ * Single-shot loopback HTTP listener for the OAuth redirect.+ *+ * Binds an ephemeral port on 127.0.0.1, serves exactly one request, and closes.+ * Only the device's own browser can reach it.+ */+private class LoopbackReceiver(port: Int) : AutoCloseable {++ data class Callback(val code: String?, val state: String?, val error: String?)++ /**+ * Bound to the IPv4 loopback explicitly, on the exact registered port.+ *+ * `InetAddress.getLoopbackAddress()` returns `::1` on Android, so binding+ * through it leaves nothing listening on `127.0.0.1` — which is the literal+ * Spotify's registered redirect URIs use, and the browser then fails the+ * redirect with ERR_CONNECTION_REFUSED.+ */+ private val server = ServerSocket(port, 1, InetAddress.getByName("127.0.0.1"))++ /** Derived from the socket, so the URI can never disagree with the bind. */+ val redirectUri: String =+ "http://${server.inetAddress.hostAddress}:${server.localPort}/login"++ init {+ // If the user abandons the browser we must not leak the thread forever.+ server.soTimeout = REDIRECT_TIMEOUT_MS+ }++ fun awaitRedirect(): Callback {+ val socket = server.accept()+ socket.use {+ val reader = it.getInputStream().bufferedReader()+ val requestLine = reader.readLine() ?: error("empty redirect request")+ // "GET /login?code=...&state=... HTTP/1.1"+ val target = requestLine.split(' ').getOrNull(1)+ ?: error("malformed redirect request: $requestLine")+ val uri = Uri.parse("http://127.0.0.1$target")++ it.getOutputStream().writer().apply {+ write(RESPONSE)+ flush()+ }++ return Callback(+ code = uri.getQueryParameter("code"),+ state = uri.getQueryParameter("state"),+ error = uri.getQueryParameter("error"),+ )+ }+ }++ override fun close() {+ runCatching { server.close() }+ }++ private companion object {+ const val REDIRECT_TIMEOUT_MS = 5 * 60 * 1000++ val RESPONSE = buildString {+ val page = "<html><body><h2>Puoi tornare all'app.</h2></body></html>"+ append("HTTP/1.1 200 OK\r\n")+ append("Content-Type: text/html; charset=utf-8\r\n")+ append("Content-Length: ${page.toByteArray().size}\r\n")+ append("Connection: close\r\n\r\n")+ append(page)+ }+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/auth/TokenStore.kt b/app/src/main/java/dev/emanuele/spot/auth/TokenStore.ktnew file mode 100644index 0000000..4d9c908--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/auth/TokenStore.kt@@ -0,0 +1,111 @@+package dev.emanuele.spot.auth++import android.content.Context+import android.content.SharedPreferences+import androidx.security.crypto.EncryptedSharedPreferences+import androidx.security.crypto.MasterKey+import kotlinx.coroutines.sync.Mutex+import kotlinx.coroutines.sync.withLock++/**+ * Persists OAuth tokens in an AES-GCM encrypted preferences file backed by a+ * keystore master key, and hands out access tokens that are guaranteed fresh.+ *+ * [validAccessToken] serialises refreshes behind a mutex. Without it, several+ * screens hitting a just-expired token would each start their own refresh, and+ * because Spotify may rotate the refresh token the losers would persist a token+ * the server has already invalidated — the failure mode that makes most of these+ * clients log you out at random.+ */+class TokenStore(+ context: Context,+ fileName: String = FILE_NAME,+ /**+ * Which OAuth application these tokens belong to.+ *+ * A lambda rather than a value because the Web API session's client id is+ * supplied by the user at runtime and can change without the store being+ * rebuilt. Refreshing against the wrong id fails, so it must be read fresh+ * on every refresh.+ */+ private val clientId: () -> String = { SpotifyOAuth.CLIENT_ID },+) {++ private val prefs: SharedPreferences = EncryptedSharedPreferences.create(+ context,+ fileName,+ MasterKey.Builder(context).setKeyScheme(MasterKey.KeyScheme.AES256_GCM).build(),+ EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV,+ EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM,+ )++ private val refreshLock = Mutex()++ /**+ * True when a request can be authenticated right now.+ *+ * A refresh token is the normal case, but Spotify is not obliged to issue+ * one; keying only off it would make a successful login that returned just+ * an access token look logged out.+ */+ val isLoggedIn: Boolean+ get() = prefs.contains(KEY_REFRESH) || currentIfFresh() != null++ fun save(tokens: SpotifyOAuth.Tokens) {+ prefs.edit()+ .putString(KEY_ACCESS, tokens.accessToken)+ .apply {+ tokens.refreshToken?.let { putString(KEY_REFRESH, it) }+ }+ .putLong(KEY_EXPIRES_AT, tokens.expiresAtMillis)+ .apply()+ }++ fun clear() = prefs.edit().clear().apply()++ /**+ * Returns an access token valid for at least [SKEW_MILLIS], refreshing it+ * first if needed.+ *+ * @throws IllegalStateException if there is no stored session+ */+ suspend fun validAccessToken(): String {+ currentIfFresh()?.let { return it }++ return refreshLock.withLock {+ // Another caller may have refreshed while we waited for the lock.+ currentIfFresh()?.let { return@withLock it }++ val refreshToken = prefs.getString(KEY_REFRESH, null)+ ?: error("not logged in")++ val tokens = try {+ SpotifyOAuth.refresh(refreshToken, clientId())+ } catch (e: SpotifyOAuth.SessionExpired) {+ // Drop the dead session here rather than leaving callers to+ // recognise it: otherwise every later attempt retries the same+ // revoked token forever and the app never offers a way back in.+ clear()+ throw e+ }+ save(tokens)+ tokens.accessToken+ }+ }++ private fun currentIfFresh(): String? {+ val token = prefs.getString(KEY_ACCESS, null) ?: return null+ val expiresAt = prefs.getLong(KEY_EXPIRES_AT, 0)+ return token.takeIf { System.currentTimeMillis() < expiresAt - SKEW_MILLIS }+ }++ private companion object {+ const val FILE_NAME = "spot_tokens"+ const val KEY_ACCESS = "access_token"+ const val KEY_REFRESH = "refresh_token"+ const val KEY_EXPIRES_AT = "expires_at"++ /** Refresh early so a token cannot expire mid-request. */+ const val SKEW_MILLIS = 60_000L+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/auth/WebApiAccount.kt b/app/src/main/java/dev/emanuele/spot/auth/WebApiAccount.ktnew file mode 100644index 0000000..232fc06--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/auth/WebApiAccount.kt@@ -0,0 +1,75 @@+package dev.emanuele.spot.auth++import android.content.Context+import kotlinx.coroutines.flow.MutableStateFlow+import kotlinx.coroutines.flow.StateFlow+import kotlinx.coroutines.flow.asStateFlow++/**+ * The user's own Spotify application, used for Web API calls only.+ *+ * Playback authenticates as librespot's shared "keymaster" client, which is the+ * only id the access point accepts. That same id is useless for+ * `api.spotify.com`: the Web API meters requests per application over a rolling+ * window, and since every librespot-based client in the world shares that id,+ * its quota is permanently spent — which is why search answered 429 here no+ * matter how little this app asked for.+ *+ * The fix is the one Outify settled on: the user registers their own app in the+ * Spotify developer dashboard and pastes its client id, so Web API calls are+ * metered against a quota only they use. No client secret is involved — the flow+ * is PKCE, so nothing confidential is stored on the device.+ *+ * The two sessions are kept deliberately separate. Tokens are not+ * interchangeable between client ids, and mixing them is what would produce the+ * "logged in but every request is 401" state.+ */+class WebApiAccount(context: Context) {++ private val prefs = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE)++ private val _clientId = MutableStateFlow(prefs.getString(KEY_CLIENT_ID, null))++ /** The registered client id, or null while the user has not set one. */+ val clientId: StateFlow<String?> = _clientId.asStateFlow()++ /**+ * Tokens for that application.+ *+ * A store of its own rather than a second set of keys in the playback+ * store: [TokenStore.clear] wipes the file, and a dead Web API session must+ * not log the user out of playback.+ */+ val tokens = TokenStore(+ context,+ fileName = FILE_NAME_TOKENS,+ clientId = { _clientId.value ?: SpotifyOAuth.CLIENT_ID },+ )++ /** True when search and the rest of the Web API can be used. */+ val isReady: Boolean get() = _clientId.value != null && tokens.isLoggedIn++ /**+ * Records a client id, discarding any tokens issued for a previous one.+ *+ * Keeping them would leave a refresh token that only the old application can+ * redeem, and the failure surfaces much later as an unexplained 400.+ */+ fun setClientId(value: String) {+ val trimmed = value.trim()+ if (trimmed == _clientId.value) return+ tokens.clear()+ prefs.edit().putString(KEY_CLIENT_ID, trimmed.ifEmpty { null }).apply()+ _clientId.value = trimmed.ifEmpty { null }+ }++ fun disconnect() {+ tokens.clear()+ }++ private companion object {+ const val FILE_NAME = "spot_webapi"+ const val FILE_NAME_TOKENS = "spot_webapi_tokens"+ const val KEY_CLIENT_ID = "client_id"+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/data/ApiFactory.kt b/app/src/main/java/dev/emanuele/spot/data/ApiFactory.ktnew file mode 100644index 0000000..abaf82d--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/data/ApiFactory.kt@@ -0,0 +1,124 @@+package dev.emanuele.spot.data++import dev.emanuele.spot.auth.TokenStore+import kotlinx.coroutines.runBlocking+import kotlinx.serialization.json.Json+import okhttp3.MediaType.Companion.toMediaType+import okhttp3.OkHttpClient+import okhttp3.Interceptor+import okhttp3.Response+import retrofit2.Retrofit+import retrofit2.converter.kotlinx.serialization.asConverterFactory+import java.io.IOException+import java.util.concurrent.TimeUnit++/**+ * Builds the Web API client.+ *+ * The auth interceptor is where most third-party clients go wrong: they attach a+ * token captured at construction time and never notice it expiring. Here every+ * request asks [TokenStore] for a token, and [TokenStore] refreshes under a+ * mutex, so a burst of parallel requests around expiry produces exactly one+ * refresh and no lost rotation.+ */+object ApiFactory {++ private const val BASE_URL = "https://api.spotify.com/"++ private val json = Json {+ ignoreUnknownKeys = true+ coerceInputValues = true+ }++ fun create(tokens: TokenStore, debug: Boolean = false): SpotifyApi {+ val client = OkHttpClient.Builder()+ .addInterceptor(AuthInterceptor(tokens))+ .addInterceptor(RateLimitInterceptor())+ .connectTimeout(15, TimeUnit.SECONDS)+ .readTimeout(30, TimeUnit.SECONDS)+ .apply {+ if (debug) {+ addInterceptor(+ okhttp3.logging.HttpLoggingInterceptor().setLevel(+ okhttp3.logging.HttpLoggingInterceptor.Level.BASIC,+ ),+ )+ }+ }+ .build()++ return Retrofit.Builder()+ .baseUrl(BASE_URL)+ .client(client)+ .addConverterFactory(json.asConverterFactory("application/json".toMediaType()))+ .build()+ .create(SpotifyApi::class.java)+ }++ /**+ * Waits out a single 429 when Spotify says how long to wait.+ *+ * Spotify rate-limits per app over a rolling window and answers with+ * `Retry-After` in seconds. Retrying once, only when the wait is short+ * enough to be worth blocking on, turns the common brief throttle into a+ * slow request instead of a visible error — while a long back-off is still+ * surfaced rather than silently stalling the UI.+ */+ private class RateLimitInterceptor : Interceptor {+ override fun intercept(chain: Interceptor.Chain): Response {+ val response = chain.proceed(chain.request())+ if (response.code != 429) return response++ val retryAfter = response.header("Retry-After")?.toLongOrNull()+ android.util.Log.w(TAG, "rate limited, Retry-After=${retryAfter ?: "absent"}")+ if (retryAfter == null || retryAfter > MAX_WAIT_SECONDS) return response++ response.close()+ try {+ // +1s: Retry-After is whole seconds, so waiting exactly that+ // long can land a hair inside the window and burn the retry.+ Thread.sleep((retryAfter + 1) * 1000)+ } catch (e: InterruptedException) {+ Thread.currentThread().interrupt()+ throw IOException("interrupted while waiting out a rate limit", e)+ }+ return chain.proceed(chain.request())+ }++ private companion object {+ /**+ * Spotify's back-offs on this client id run to tens of seconds.+ * Blocking a background OkHttp thread that long is cheaper than+ * showing an error the user can only answer by tapping retry —+ * which costs another request against the same quota.+ */+ const val MAX_WAIT_SECONDS = 90L+ const val TAG = "SpotApi"+ }+ }++ private class AuthInterceptor(private val tokens: TokenStore) : Interceptor {+ override fun intercept(chain: Interceptor.Chain): Response {+ // OkHttp interceptors are blocking by contract and always run on a+ // background thread, so bridging into the suspending token store+ // with runBlocking is safe here.+ //+ // Everything must leave as an IOException: OkHttp's async dispatcher+ // only routes IOException to onFailure and rethrows anything else on+ // its own thread, which takes the whole process down instead of+ // failing the one call.+ val token = try {+ runBlocking { tokens.validAccessToken() }+ } catch (e: IOException) {+ throw e+ } catch (e: Exception) {+ throw IOException("could not obtain a Spotify access token", e)+ }++ val request = chain.request().newBuilder()+ .header("Authorization", "Bearer $token")+ .build()+ return chain.proceed(request)+ }+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/data/Catalog.kt b/app/src/main/java/dev/emanuele/spot/data/Catalog.ktnew file mode 100644index 0000000..f5685af--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/data/Catalog.kt@@ -0,0 +1,168 @@+package dev.emanuele.spot.data++import dev.emanuele.spot.nativecore.NativeBridge+import kotlinx.coroutines.Dispatchers+import kotlinx.coroutines.withContext+import kotlinx.serialization.Serializable+import kotlinx.serialization.builtins.ListSerializer+import kotlinx.serialization.builtins.serializer+import kotlinx.serialization.json.Json+import kotlinx.serialization.json.JsonArray+import kotlinx.serialization.json.JsonObject+import kotlinx.serialization.json.jsonPrimitive++/**+ * A track as shown in the UI.+ *+ * Deliberately flat and free of Web API shapes: it is produced by the native+ * catalogue, and nothing above this layer should care which transport supplied+ * it.+ */+@Serializable+data class CatalogTrack(+ val uri: String,+ val name: String,+ val artist: String,+ val album: String = "",+ val durationMs: Long = 0,+ val explicit: Boolean = false,+ val artworkUrl: String? = null,+)++/**+ * One line of lyrics.+ *+ * @param startTimeMs when the line begins, or null for unsynced lyrics — the+ * distinction decides whether the view can highlight along with playback.+ */+data class LyricLine(val startTimeMs: Long?, val text: String)++data class Lyrics(val lines: List<LyricLine>, val synced: Boolean)++/**+ * A track's Canvas.+ *+ * @param isVideo false for the handful of canvases that are a still image; those+ * are shown as a picture rather than handed to a video surface.+ */+data class CanvasClip(val url: String, val isVideo: Boolean)++/** A playlist owned by the logged-in account. */+@Serializable+data class CatalogPlaylist(+ val uri: String,+ val name: String,+ /** Null when the playlist has no custom cover; the UI draws a tile instead. */+ val artworkUrl: String? = null,+)++/** Bridges a Web API track into the model the UI and the queue already use. */+fun TrackDto.toCatalogTrack(): CatalogTrack = CatalogTrack(+ uri = uri,+ name = name,+ artist = artists.joinToString(", ") { it.name },+ album = album?.name.orEmpty(),+ durationMs = durationMs,+ explicit = explicit,+ artworkUrl = album?.images?.firstOrNull()?.url,+)++/**+ * Catalogue reads over the Spotify access point.+ *+ * This exists instead of [SpotifyApi] because `api.spotify.com` meters requests+ * per application, and the client id librespot uses is shared with every other+ * user of it — so the quota runs out regardless of how this app behaves. The+ * access point returns the same data for the logged-in user without that limit.+ *+ * Every call blocks on native code, so all are confined to [Dispatchers.IO].+ */+object Catalog {++ private val json = Json { ignoreUnknownKeys = true }++ suspend fun username(): String = withContext(Dispatchers.IO) {+ NativeBridge.username()+ }++ /** Track URIs in a playlist, album, or the account's Liked Songs. */+ suspend fun contextTrackUris(contextUri: String): List<String> = withContext(Dispatchers.IO) {+ json.decodeFromString<List<String>>(NativeBridge.contextTracks(contextUri))+ }++ suspend fun tracks(uris: List<String>): List<CatalogTrack> = withContext(Dispatchers.IO) {+ if (uris.isEmpty()) return@withContext emptyList()+ val urisJson = json.encodeToString(ListSerializer(String.serializer()), uris)+ json.decodeFromString<List<CatalogTrack>>(NativeBridge.tracksMetadata(urisJson))+ }++ /**+ * Lyrics for a track, or null when Spotify has none.+ *+ * Most of the catalogue has no lyrics, so absence is an ordinary answer+ * rather than a failure; the native side already turns a missing-lyrics+ * response into a null instead of an error.+ */+ suspend fun lyrics(trackUri: String): Lyrics? = withContext(Dispatchers.IO) {+ val raw = NativeBridge.lyrics(trackUri)+ val root = runCatching { json.parseToJsonElement(raw) }.getOrNull() ?: return@withContext null+ val body = root as? JsonObject ?: return@withContext null+ val lyrics = body["lyrics"] as? JsonObject ?: return@withContext null++ // "LINE_SYNCED" means every line carries a timestamp; anything else is+ // a plain block of text.+ val synced = lyrics["syncType"]?.jsonPrimitive?.content == "LINE_SYNCED"++ val lines = (lyrics["lines"] as? JsonArray).orEmpty().mapNotNull { element ->+ val line = element as? JsonObject ?: return@mapNotNull null+ val words = line["words"]?.jsonPrimitive?.content.orEmpty()+ if (words.isBlank()) return@mapNotNull null+ LyricLine(+ startTimeMs = line["startTimeMs"]?.jsonPrimitive?.content?.toLongOrNull()+ ?.takeIf { synced },+ text = words,+ )+ }++ lines.takeIf { it.isNotEmpty() }?.let { Lyrics(it, synced) }+ }++ /**+ * The Canvas clip for a track, or null when there is none.+ *+ * Most of the catalogue has no canvas, so a null here is an ordinary answer+ * and the player falls back to the cover rather than showing an error.+ */+ suspend fun canvas(trackUri: String): CanvasClip? = withContext(Dispatchers.IO) {+ val raw = runCatching { NativeBridge.canvas(trackUri) }.getOrNull() ?: return@withContext null+ val root = runCatching { json.parseToJsonElement(raw) }.getOrNull() as? JsonObject+ ?: return@withContext null+ val url = root["url"]?.jsonPrimitive?.content?.takeIf { it.isNotBlank() }+ ?: return@withContext null+ CanvasClip(+ url = url,+ isVideo = root["isVideo"]?.jsonPrimitive?.content?.toBooleanStrictOrNull() ?: true,+ )+ }++ /** The account's own playlists. */+ suspend fun playlists(): List<CatalogPlaylist> = withContext(Dispatchers.IO) {+ json.decodeFromString<List<CatalogPlaylist>>(NativeBridge.rootlist())+ }++ /**+ * Tracks of the account's first playlist.+ *+ * A placeholder for a real browse screen, and currently the only listing+ * that works: `spotify:user:{id}:collection` — Liked Songs — is not a valid+ * context for the access point's context endpoint and answers 503, so the+ * collection needs a different call than the one playlists use.+ *+ * @param limit how many tracks to resolve. Each is its own access-point+ * round trip, so a whole playlist is not something to fetch eagerly.+ */+ suspend fun firstPlaylistTracks(limit: Int = 50): List<CatalogTrack> {+ val first = playlists().firstOrNull() ?: error("nessuna playlist trovata nell'account")+ return tracks(contextTrackUris(first.uri).take(limit))+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/data/PlaybackStore.kt b/app/src/main/java/dev/emanuele/spot/data/PlaybackStore.ktnew file mode 100644index 0000000..6e0d810--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/data/PlaybackStore.kt@@ -0,0 +1,76 @@+package dev.emanuele.spot.data++import android.content.Context+import kotlinx.serialization.Serializable+import kotlinx.serialization.json.Json++/** A queue and where playback had got to in it. */+@Serializable+data class SavedPlayback(+ /** In the queue's *original* order, before any shuffle. */+ val tracks: List<CatalogTrack>,+ /**+ * The shuffle permutation in force, or null when not shuffled.+ *+ * Saved as a permutation rather than a boolean because re-enabling shuffle+ * on restore would draw a new random order, losing the queue the user had.+ */+ val shuffleOrder: List<Int>? = null,+ /** Index into the *current* (possibly shuffled) order. */+ val index: Int,+ val positionMs: Long,+ val repeatMode: Int = 0,+)++/**+ * Persists the playing queue so a restart resumes where the user left off.+ *+ * Deliberately never records that playback was *running*: an app that starts+ * playing music by itself when opened is worse than one that forgets. The+ * restored session is always paused, ready at the right position.+ */+class PlaybackStore(context: Context) {++ private val prefs = context.applicationContext+ .getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE)++ private val json = Json { ignoreUnknownKeys = true }++ fun save(state: SavedPlayback) {+ if (state.tracks.isEmpty()) {+ clear()+ return+ }+ // Trimmed: a queue can be hundreds of tracks, and writing all of them a+ // few times a minute is a lot of I/O for something only the first screen+ // of which is ever seen again.+ // Trimming a shuffled queue would invalidate the permutation, so the+ // cap only applies when there is no order to keep consistent.+ val trimmed = if (state.shuffleOrder != null || state.tracks.size <= MAX_TRACKS) {+ state+ } else {+ state.copy(+ tracks = state.tracks.take(MAX_TRACKS),+ index = state.index.coerceIn(0, MAX_TRACKS - 1),+ )+ }+ prefs.edit()+ .putString(KEY_STATE, json.encodeToString(SavedPlayback.serializer(), trimmed))+ .apply()+ }++ fun load(): SavedPlayback? {+ val raw = prefs.getString(KEY_STATE, null) ?: return null+ return runCatching { json.decodeFromString(SavedPlayback.serializer(), raw) }+ .getOrNull()+ ?.takeIf { it.tracks.isNotEmpty() }+ }++ fun clear() = prefs.edit().remove(KEY_STATE).apply()++ private companion object {+ const val FILE_NAME = "spot_playback"+ const val KEY_STATE = "state"+ const val MAX_TRACKS = 200+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/data/RecentStore.kt b/app/src/main/java/dev/emanuele/spot/data/RecentStore.ktnew file mode 100644index 0000000..bd1d0e2--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/data/RecentStore.kt@@ -0,0 +1,62 @@+package dev.emanuele.spot.data++import android.content.Context+import kotlinx.coroutines.Dispatchers+import kotlinx.coroutines.flow.MutableStateFlow+import kotlinx.coroutines.flow.StateFlow+import kotlinx.coroutines.flow.asStateFlow+import kotlinx.coroutines.withContext+import kotlinx.serialization.builtins.ListSerializer+import kotlinx.serialization.json.Json++/**+ * Recently played tracks, kept locally.+ *+ * Spotify does expose listening history, but only through the Web API, whose+ * quota is shared across every user of this client id and is the reason the rest+ * of the app reads from the access point instead. Recording locally gives the+ * same thing for this device without spending that budget — and it is honest+ * data rather than a section filled with something that only looks personal.+ */+class RecentStore(context: Context) {++ private val prefs = context.applicationContext+ .getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE)++ private val json = Json { ignoreUnknownKeys = true }+ private val serializer = ListSerializer(CatalogTrack.serializer())++ private val _tracks = MutableStateFlow(load())+ val tracks: StateFlow<List<CatalogTrack>> = _tracks.asStateFlow()++ /**+ * Records a play, moving it to the front if it is already there.+ *+ * De-duplicating by URI keeps a repeated track from filling the whole list,+ * which is what makes the section useless in practice.+ */+ suspend fun record(track: CatalogTrack) = withContext(Dispatchers.IO) {+ val updated = (listOf(track) + _tracks.value.filterNot { it.uri == track.uri })+ .take(LIMIT)+ _tracks.value = updated+ prefs.edit()+ .putString(KEY_TRACKS, json.encodeToString(serializer, updated))+ .apply()+ }++ fun clear() {+ _tracks.value = emptyList()+ prefs.edit().remove(KEY_TRACKS).apply()+ }++ private fun load(): List<CatalogTrack> {+ val raw = prefs.getString(KEY_TRACKS, null) ?: return emptyList()+ return runCatching { json.decodeFromString(serializer, raw) }.getOrDefault(emptyList())+ }++ private companion object {+ const val FILE_NAME = "spot_recent"+ const val KEY_TRACKS = "tracks"+ const val LIMIT = 20+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/data/SearchResults.kt b/app/src/main/java/dev/emanuele/spot/data/SearchResults.ktnew file mode 100644index 0000000..06f6abe--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/data/SearchResults.kt@@ -0,0 +1,57 @@+package dev.emanuele.spot.data++/** Anything a search result can point at, flattened for the UI. */+data class SearchItem(+ val uri: String,+ val title: String,+ val subtitle: String,+ val artworkUrl: String?,+)++data class SearchResults(+ val tracks: List<CatalogTrack> = emptyList(),+ val artists: List<SearchItem> = emptyList(),+ val albums: List<SearchItem> = emptyList(),+ val playlists: List<SearchItem> = emptyList(),+) {+ val isEmpty: Boolean+ get() = tracks.isEmpty() && artists.isEmpty() && albums.isEmpty() && playlists.isEmpty()+}++/**+ * Maps a Web API search response.+ *+ * Tracks are asked for in greater number than the rest and shown first: finding+ * a song is what a search box in a music player is mostly for, and burying it+ * under artist and album rows makes the common case the slow one.+ */+fun SearchDto.toResults(): SearchResults = SearchResults(+ tracks = tracks?.items.orEmpty().map { it.toCatalogTrack() },+ artists = artists?.items.orEmpty().mapNotNull { artist ->+ SearchItem(+ uri = artist.uri ?: return@mapNotNull null,+ title = artist.name,+ subtitle = "Artista",+ artworkUrl = artist.images.firstOrNull()?.url,+ )+ },+ albums = albums?.items.orEmpty().mapNotNull { album ->+ SearchItem(+ uri = album.uri ?: return@mapNotNull null,+ title = album.name,+ subtitle = "Album",+ artworkUrl = album.images.firstOrNull()?.url,+ )+ },+ // Spotify returns nulls in this array for playlists it will not serve, so+ // the element type is nullable and the nulls are dropped rather than+ // crashing the whole response.+ playlists = playlists?.items.orEmpty().filterNotNull().map { playlist ->+ SearchItem(+ uri = playlist.uri,+ title = playlist.name,+ subtitle = "Playlist",+ artworkUrl = playlist.images.firstOrNull()?.url,+ )+ },+)diff --git a/app/src/main/java/dev/emanuele/spot/data/SpotifyApi.kt b/app/src/main/java/dev/emanuele/spot/data/SpotifyApi.ktnew file mode 100644index 0000000..0e4ca9b--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/data/SpotifyApi.kt@@ -0,0 +1,156 @@+package dev.emanuele.spot.data++import kotlinx.serialization.SerialName+import kotlinx.serialization.Serializable+import retrofit2.http.GET+import retrofit2.http.Path+import retrofit2.http.Query++/**+ * The subset of the Web API this client uses.+ *+ * The Web API supplies every piece of metadata — search, library, playlists,+ * artwork. It cannot supply audio; that is the native engine's job. Keeping the+ * two strictly separated is what stops the "metadata says one thing, player says+ * another" desync that plagues the existing clients.+ */+interface SpotifyApi {++ @GET("v1/me")+ suspend fun me(): UserDto++ @GET("v1/me/tracks")+ suspend fun savedTracks(+ @Query("limit") limit: Int = 50,+ @Query("offset") offset: Int = 0,+ ): PageDto<SavedTrackDto>++ @GET("v1/me/playlists")+ suspend fun playlists(+ @Query("limit") limit: Int = 50,+ @Query("offset") offset: Int = 0,+ ): PageDto<PlaylistDto>++ @GET("v1/playlists/{id}/tracks")+ suspend fun playlistTracks(+ @Path("id") playlistId: String,+ @Query("limit") limit: Int = 100,+ @Query("offset") offset: Int = 0,+ ): PageDto<PlaylistTrackDto>++ /**+ * An artist's most-played tracks.+ *+ * The access point serves playlists and albums as contexts, but an artist is+ * not a context — there is no track list to resolve — so this one has to go+ * through the Web API and therefore needs the user's own application.+ *+ * `from_token` picks the market from the logged-in account; without a market+ * the endpoint answers 400.+ */+ @GET("v1/artists/{id}/top-tracks")+ suspend fun artistTopTracks(+ @Path("id") artistId: String,+ @Query("market") market: String = "from_token",+ ): TopTracksDto++ @GET("v1/artists/{id}/albums")+ suspend fun artistAlbums(+ @Path("id") artistId: String,+ @Query("include_groups") groups: String = "album,single",+ @Query("limit") limit: Int = 20,+ ): PageDto<AlbumDto>++ @GET("v1/search")+ suspend fun search(+ @Query("q") query: String,+ @Query("type") type: String = "track,album,artist,playlist",+ @Query("limit") limit: Int = 20,+ ): SearchDto+}++@Serializable+data class PageDto<T>(+ val items: List<T>,+ val total: Int = 0,+ val next: String? = null,+)++@Serializable+data class UserDto(+ val id: String,+ @SerialName("display_name") val displayName: String? = null,+ /** `premium` or `free`; the engine only works for the former. */+ val product: String? = null,+ val images: List<ImageDto> = emptyList(),+)++@Serializable+data class SavedTrackDto(+ @SerialName("added_at") val addedAt: String? = null,+ val track: TrackDto,+)++@Serializable+data class PlaylistTrackDto(+ /** Null for episodes and for tracks removed from the catalogue. */+ val track: TrackDto? = null,+)++@Serializable+data class TrackDto(+ val id: String? = null,+ val uri: String,+ val name: String,+ @SerialName("duration_ms") val durationMs: Long = 0,+ @SerialName("is_playable") val isPlayable: Boolean? = null,+ val explicit: Boolean = false,+ val artists: List<ArtistDto> = emptyList(),+ val album: AlbumDto? = null,+)++@Serializable+data class ArtistDto(+ val id: String? = null,+ val uri: String? = null,+ val name: String,+ val images: List<ImageDto> = emptyList(),+)++@Serializable+data class AlbumDto(+ val id: String? = null,+ val uri: String? = null,+ val name: String,+ val images: List<ImageDto> = emptyList(),+ /** ISO date, and not always a full one — Spotify returns bare years too. */+ @SerialName("release_date") val releaseDate: String? = null,+ @SerialName("total_tracks") val totalTracks: Int = 0,+)++@Serializable+data class TopTracksDto(val tracks: List<TrackDto> = emptyList())++@Serializable+data class PlaylistDto(+ val id: String,+ val uri: String,+ val name: String,+ val description: String? = null,+ val images: List<ImageDto> = emptyList(),+ val tracks: PlaylistTracksRefDto? = null,+)++@Serializable+data class PlaylistTracksRefDto(val total: Int = 0)++@Serializable+data class ImageDto(val url: String, val width: Int? = null, val height: Int? = null)++@Serializable+data class SearchDto(+ val tracks: PageDto<TrackDto>? = null,+ val albums: PageDto<AlbumDto>? = null,+ val artists: PageDto<ArtistDto>? = null,+ val playlists: PageDto<PlaylistDto?>? = null,+)diff --git a/app/src/main/java/dev/emanuele/spot/nativecore/NativeBridge.kt b/app/src/main/java/dev/emanuele/spot/nativecore/NativeBridge.ktnew file mode 100644index 0000000..77eaed4--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/nativecore/NativeBridge.kt@@ -0,0 +1,142 @@+package dev.emanuele.spot.nativecore++/**+ * Events pushed from the librespot engine. Called on a native tokio worker+ * thread, never on the main thread — implementations must marshal themselves.+ */+interface NativeEvents {+ /**+ * @param type one of `loading`, `playing`, `paused`, `position`, `stopped`,+ * `end_of_track`, `unavailable`+ * @param uri the Spotify URI the event refers to, possibly empty+ * @param positionMs playback position, 0 for events that carry no position+ */+ fun onEvent(type: String, uri: String, positionMs: Long)+}++/**+ * Thin JNI surface over the Rust playback core.+ *+ * All methods throw [IllegalStateException] with the native error message on+ * failure. None of them block on network I/O except [start], which completes+ * the Spotify access-point handshake and must not be called from the main+ * thread.+ */+object NativeBridge {++ init {+ System.loadLibrary("spotcore")+ }++ /**+ * Publishes the application [android.content.Context] to the native side so+ * cpal can open an AAudio stream. Call once, before [start].+ */+ fun initContext(context: android.content.Context) =+ nativeInitContext(context.applicationContext)++ /**+ * Registers the object the native sink writes PCM to.+ *+ * Must be called before [start]; the sink has nowhere to send audio without+ * it. The object must expose `start()`, `stop()` and+ * `write(ByteBuffer, Int, Int, Int)` — see `native/src/sink.rs`.+ */+ fun setAudioOutput(output: Any) = nativeSetAudioOutput(output)++ /**+ * Authenticates and builds the player.+ *+ * @param clientId must match the client id the [accessToken] was issued for,+ * otherwise login5 rejects the token. Pass an empty string to fall back to+ * the platform default baked into librespot.+ * @param credentialsDir where librespot persists reusable credentials —+ * required, not optional: catalogue requests fail without it+ * @param cacheDir writable directory for librespot's temporary audio files+ */+ fun start(+ clientId: String,+ deviceName: String,+ accessToken: String,+ credentialsDir: String,+ cacheDir: String,+ listener: NativeEvents,+ ) = nativeStart(clientId, deviceName, accessToken, credentialsDir, cacheDir, listener)++ fun load(uri: String, startPlaying: Boolean, positionMs: Int = 0) =+ nativeLoad(uri, startPlaying, positionMs)++ fun play() = nativePlay()+ fun pause() = nativePause()+ fun stop() = nativeStop()+ fun seek(positionMs: Long) = nativeSeek(positionMs)++ /** Volume in librespot's raw 0..65535 range. */+ var volume: Int+ get() = nativeVolume()+ set(value) = nativeSetVolume(value)++ val isConnected: Boolean get() = nativeIsConnected()++ fun shutdown() = nativeShutdown()++ // --- Catalogue, served by the access point rather than api.spotify.com ---++ /** Logged-in account name. */+ fun username(): String = nativeUsername()++ /** URI of the account's "Liked Songs" pseudo-playlist. */+ fun collectionUri(): String = nativeCollectionUri()++ /** The account's own playlists, as raw JSON from the access point. */+ fun rootlist(): String = nativeRootlist()++ /** JSON array of track URIs contained in a playlist, album or collection. */+ fun contextTracks(contextUri: String): String = nativeContextTracks(contextUri)++ /**+ * Display metadata for the given tracks.+ *+ * @param urisJson JSON array of Spotify track URIs+ * @return JSON array of objects; tracks that cannot be resolved are omitted,+ * so the result may be shorter than the input+ */+ fun tracksMetadata(urisJson: String): String = nativeTracksMetadata(urisJson)++ /** Lyrics JSON for a track, or the string `null` when Spotify has none. */+ fun lyrics(trackUri: String): String = nativeLyrics(trackUri)++ /**+ * Canvas JSON for a track — the short looping clip shown behind the player —+ * or the string `null` when the track has none, which is the common case.+ */+ fun canvas(trackUri: String): String = nativeCanvas(trackUri)++ private external fun nativeInitContext(context: android.content.Context)+ private external fun nativeSetAudioOutput(output: Any)+ private external fun nativeStart(+ clientId: String,+ deviceName: String,+ accessToken: String,+ credentialsDir: String,+ cacheDir: String,+ listener: NativeEvents,+ )++ private external fun nativeLoad(uri: String, startPlaying: Boolean, positionMs: Int)+ private external fun nativePlay()+ private external fun nativePause()+ private external fun nativeStop()+ private external fun nativeSeek(positionMs: Long)+ private external fun nativeSetVolume(volume: Int)+ private external fun nativeVolume(): Int+ private external fun nativeIsConnected(): Boolean+ private external fun nativeShutdown()+ private external fun nativeUsername(): String+ private external fun nativeCollectionUri(): String+ private external fun nativeRootlist(): String+ private external fun nativeContextTracks(contextUri: String): String+ private external fun nativeTracksMetadata(urisJson: String): String+ private external fun nativeLyrics(trackUri: String): String+ private external fun nativeCanvas(trackUri: String): String+}diff --git a/app/src/main/java/dev/emanuele/spot/playback/AudioEffects.kt b/app/src/main/java/dev/emanuele/spot/playback/AudioEffects.ktnew file mode 100644index 0000000..fa3dce4--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/playback/AudioEffects.kt@@ -0,0 +1,79 @@+package dev.emanuele.spot.playback++import android.content.Context+import kotlinx.coroutines.flow.MutableStateFlow+import kotlinx.coroutines.flow.StateFlow+import kotlinx.coroutines.flow.asStateFlow++/**+ * Effect settings shared between the player UI and the playback service.+ *+ * A process-wide object rather than something passed through the media session:+ * the service and the UI run in the same process here, and reverb is not part of+ * the Media3 player interface, so there is no session command that carries it.+ * Speed and pitch deliberately do *not* live here — those are real+ * [androidx.media3.common.Player] state and go through `setPlaybackParameters`,+ * so the notification and any connected controller see them too.+ *+ * Persisted, on second thoughts. The first version deliberately reset on every+ * launch, on the reasoning that an app which reopened sounding altered would+ * seem broken. In use that was the wrong call: setting a slowed-and-reverbed+ * mood and losing it on the next launch — or on the next playlist — is the more+ * annoying of the two, and the effects panel makes the current state plain.+ *+ * [load] has to be called once before the values mean anything; the service does+ * it on creation.+ */+object AudioEffects {++ private var prefs: android.content.SharedPreferences? = null++ private val _reverb = MutableStateFlow(0f)++ /** How much reverb, 0 (dry) to 1 (largest space). */+ val reverb: StateFlow<Float> = _reverb.asStateFlow()++ private val _speed = MutableStateFlow(1f)++ /**+ * Tempo, mirrored here only so it can be saved.+ *+ * The player remains the source of truth for playback: speed and pitch are+ * real [androidx.media3.common.Player] state and reach the engine through+ * `setPlaybackParameters`, so the notification and any connected controller+ * see them. This copy exists to survive a restart, not to drive anything.+ */+ val speed: StateFlow<Float> = _speed.asStateFlow()++ private val _pitch = MutableStateFlow(1f)+ val pitch: StateFlow<Float> = _pitch.asStateFlow()++ fun load(context: Context) {+ if (prefs != null) return+ val store = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE)+ prefs = store+ _reverb.value = store.getFloat(KEY_REVERB, 0f)+ _speed.value = store.getFloat(KEY_SPEED, 1f)+ _pitch.value = store.getFloat(KEY_PITCH, 1f)+ }++ fun setReverb(amount: Float) {+ _reverb.value = amount.coerceIn(0f, 1f)+ prefs?.edit()?.putFloat(KEY_REVERB, _reverb.value)?.apply()+ }++ /** Records what was last sent to the player, so a restart can restore it. */+ fun rememberSpeedAndPitch(speed: Float, pitch: Float) {+ _speed.value = speed+ _pitch.value = pitch+ prefs?.edit()+ ?.putFloat(KEY_SPEED, speed)+ ?.putFloat(KEY_PITCH, pitch)+ ?.apply()+ }++ private const val FILE_NAME = "spot_audio_effects"+ private const val KEY_REVERB = "reverb"+ private const val KEY_SPEED = "speed"+ private const val KEY_PITCH = "pitch"+}diff --git a/app/src/main/java/dev/emanuele/spot/playback/AudioFocusController.kt b/app/src/main/java/dev/emanuele/spot/playback/AudioFocusController.ktnew file mode 100644index 0000000..a6aedc1--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/playback/AudioFocusController.kt@@ -0,0 +1,132 @@+package dev.emanuele.spot.playback++import android.content.BroadcastReceiver+import android.content.Context+import android.content.Intent+import android.content.IntentFilter+import android.media.AudioAttributes+import android.media.AudioFocusRequest+import android.media.AudioManager+import androidx.core.content.ContextCompat++/**+ * Audio focus and the "becoming noisy" broadcast.+ *+ * ExoPlayer does this for you; [SimpleBasePlayer][androidx.media3.common.SimpleBasePlayer]+ * does not, so a custom engine has to handle it or it will talk over phone calls+ * and keep playing out loud after the headphones are unplugged.+ *+ * Everything here runs on the main thread, which is where the player lives.+ */+class AudioFocusController(+ context: Context,+ private val onPause: () -> Unit,+ private val onResume: () -> Unit,+ private val onDuck: (ducked: Boolean) -> Unit,+) {++ private val appContext = context.applicationContext+ private val audioManager = appContext.getSystemService(AudioManager::class.java)++ /** True when we paused ourselves and should resume once focus returns. */+ private var pausedByFocusLoss = false+ private var holdsFocus = false+ private var noisyReceiverRegistered = false++ private val request = AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN)+ .setAudioAttributes(+ AudioAttributes.Builder()+ .setUsage(AudioAttributes.USAGE_MEDIA)+ .setContentType(AudioAttributes.CONTENT_TYPE_MUSIC)+ .build(),+ )+ // Duck rather than pause for notifications: pausing for a two-second+ // chime is more disruptive than briefly dropping the volume.+ .setWillPauseWhenDucked(false)+ .setOnAudioFocusChangeListener(::onFocusChange)+ .build()++ private val noisyReceiver = object : BroadcastReceiver() {+ override fun onReceive(context: Context?, intent: Intent?) {+ if (intent?.action != AudioManager.ACTION_AUDIO_BECOMING_NOISY) return+ // A deliberate disconnect: do not resume when focus comes back.+ pausedByFocusLoss = false+ onPause()+ }+ }++ /**+ * Ask for focus before starting playback.+ *+ * @return false when the system refuses, in which case playback must not+ * start — something else owns the output.+ */+ fun requestFocus(): Boolean {+ if (holdsFocus) return true++ val granted = audioManager.requestAudioFocus(request) ==+ AudioManager.AUDIOFOCUS_REQUEST_GRANTED+ if (granted) {+ holdsFocus = true+ registerNoisyReceiver()+ }+ return granted+ }++ /** Release focus when playback stops or the user pauses. */+ fun abandonFocus() {+ if (!holdsFocus) return+ audioManager.abandonAudioFocusRequest(request)+ holdsFocus = false+ pausedByFocusLoss = false+ unregisterNoisyReceiver()+ }++ private fun onFocusChange(change: Int) {+ when (change) {+ AudioManager.AUDIOFOCUS_GAIN -> {+ onDuck(false)+ if (pausedByFocusLoss) {+ pausedByFocusLoss = false+ onResume()+ }+ }++ // Someone took the output for good — a different player started.+ // Give up focus entirely rather than waiting for a return.+ AudioManager.AUDIOFOCUS_LOSS -> {+ pausedByFocusLoss = false+ onPause()+ abandonFocus()+ }++ // A call, or another app that will hand focus back.+ AudioManager.AUDIOFOCUS_LOSS_TRANSIENT -> {+ pausedByFocusLoss = true+ onPause()+ }++ AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK -> onDuck(true)+ }+ }++ private fun registerNoisyReceiver() {+ if (noisyReceiverRegistered) return+ ContextCompat.registerReceiver(+ appContext,+ noisyReceiver,+ IntentFilter(AudioManager.ACTION_AUDIO_BECOMING_NOISY),+ ContextCompat.RECEIVER_NOT_EXPORTED,+ )+ noisyReceiverRegistered = true+ }++ private fun unregisterNoisyReceiver() {+ if (!noisyReceiverRegistered) return+ runCatching { appContext.unregisterReceiver(noisyReceiver) }+ noisyReceiverRegistered = false+ }++ /** Call from the service's onDestroy. */+ fun release() = abandonFocus()+}diff --git a/app/src/main/java/dev/emanuele/spot/playback/AudioOutput.kt b/app/src/main/java/dev/emanuele/spot/playback/AudioOutput.ktnew file mode 100644index 0000000..2692c74--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/playback/AudioOutput.kt@@ -0,0 +1,519 @@+package dev.emanuele.spot.playback++import android.media.AudioAttributes+import android.media.AudioFormat+import android.media.AudioTrack+import android.media.audiofx.EnvironmentalReverb+import java.nio.ByteBuffer++/**+ * PCM output for the native engine.+ *+ * The Rust sink calls [write] from librespot's playback thread with interleaved+ * little-endian 16-bit samples. Writes are blocking, which is deliberate: the+ * track's own buffer is the only queue in the pipeline, and blocking on it is+ * what paces the decoder. Adding a queue here would just move the underrun.+ *+ * Every method is called from native code and must keep its name and signature+ * in step with `native/src/sink.rs`.+ */+class AudioOutput {++ private var track: AudioTrack? = null+ private var configuredSampleRate = 0+ private var configuredChannels = 0++ private var reverb: EnvironmentalReverb? = null++ /**+ * Tempo and pitch, independently, done by [Stretcher] rather than by+ * AudioTrack.+ *+ * `setPlaybackParams` was the first implementation and is not used any more:+ * it runs the platform's Sonic stretcher, which is tuned for speech and+ * audibly poor on music. Bungee costs a buffer copy and some CPU per packet+ * and sounds like the same recording played differently, which is the point.+ */+ @Volatile+ private var speed = 1f++ @Volatile+ private var pitch = 1f++ private var stretcher: Stretcher? = null++ /** Logged once rather than per packet, which would be several a second. */+ private var stretchFailureReported = false++ /** Reverb amount, 0 (off) to 1. */+ @Volatile+ private var reverbAmount = 0f++ /** Where the fade currently is, so a new ramp starts from it. */+ @Volatile+ private var currentGain = 1f++ /**+ * Drops incoming PCM instead of writing it.+ *+ * Set while a track change is in flight. Fading the volume down and flushing+ * the buffer is not enough on its own: librespot's decoder keeps pushing the+ * *old* track's packets for as long as it takes the load to take effect on+ * its side, and those land in the freshly emptied buffer and play at full+ * level the moment the fade-in starts. That is the fragment of the previous+ * song heard after the silence. Discarding at the door is the only place+ * that can tell the two apart, because by the time audio is in the track's+ * buffer it is just samples.+ */+ @Volatile+ private var discarding = false++ /**+ * Runs fade-ins off the caller's thread.+ *+ * Fade-*outs* deliberately block instead: they have to finish before the+ * track is flushed.+ */+ private val fadeExecutor = java.util.concurrent.Executors.newSingleThreadExecutor { task ->+ Thread(task, "SpotFade").apply { isDaemon = true }+ }++ fun setSpeedAndPitch(speed: Float, pitch: Float) {+ // Outside this range the stretcher produces artefacts bad enough to be+ // mistaken for a bug, and AudioTrack throws outright on non-positive+ // values.+ this.speed = speed.coerceIn(MIN_RATE, MAX_RATE)+ this.pitch = pitch.coerceIn(MIN_RATE, MAX_RATE)+ }++ fun setReverbAmount(amount: Float) {+ reverbAmount = amount.coerceIn(0f, 1f)+ synchronized(this) { applyReverb() }+ }++ /**+ * Attaches, tunes or detaches the reverb.+ *+ * [EnvironmentalReverb] rather than PresetReverb: the preset version only+ * exposes a handful of named rooms, so a slider over it would quantise into+ * four steps and pretend to be continuous. This one takes the room's decay+ * and level directly, which is what makes a real amount control possible.+ *+ * Wired as an **auxiliary** effect, not an insert one. That distinction is+ * why the first attempt was silent: an effect built on the track's own+ * session is created, enabled and reports no error, but nothing is routed+ * into it. A reverb needs a send — the track has to be pointed at the effect+ * with `attachAuxEffect` and given a send level above zero. Auxiliary+ * effects live on the global output mix, hence session 0.+ */+ private fun applyReverb() {+ val output = track+ val amount = reverbAmount++ if (output == null || amount <= 0f) {+ output?.runCatching {+ setAuxEffectSendLevel(0f)+ attachAuxEffect(0)+ }+ reverb?.runCatching {+ enabled = false+ release()+ }+ reverb = null+ return+ }++ val effect = reverb ?: runCatching {+ // Priority 0: no reason to outbid anything else on the mix.+ EnvironmentalReverb(0, 0)+ }.onFailure {+ android.util.Log.w(TAG, "reverb unavailable: ${it.message}")+ }.getOrNull() ?: return++ reverb = effect+ runCatching {+ // The room grows with the amount: a longer tail and a louder+ // reflection, from a small live room up to a hall.+ effect.decayTime = (MIN_DECAY_MS + amount * (MAX_DECAY_MS - MIN_DECAY_MS)).toInt()+ effect.reverbLevel = (MIN_LEVEL_MB + amount * (MAX_LEVEL_MB - MIN_LEVEL_MB)).toInt().toShort()+ // This is the one that made the effect nearly inaudible. An+ // EnvironmentalReverb starts with roomLevel at -9000 mB — ninety+ // decibels down, which is silence — and it is a master attenuation+ // sitting in front of everything else, so raising reverbLevel and+ // the send alone changed almost nothing.+ effect.roomLevel = (MIN_ROOM_MB + amount * (MAX_ROOM_MB - MIN_ROOM_MB)).toInt().toShort()+ // Keeps the tail from being all low end, which is what a room with+ // its highs rolled off sounds like: muddy rather than spacious.+ effect.roomHFLevel = (-400).toShort()+ // Held steady: these shape the character of the room rather than its+ // size, and moving them with the slider makes the low end swell as+ // well as the tail, which reads as the track getting muddier rather+ // than more distant.+ effect.decayHFRatio = 700+ effect.density = 1000+ effect.diffusion = 1000+ effect.enabled = true++ output.attachAuxEffect(effect.id)+ // The dry path is untouched, so this is purely how much goes to the+ // tail. Curved rather than linear: the first part of the range is+ // where the audible change happens, and a straight mapping leaves+ // most of the slider doing almost nothing.+ output.setAuxEffectSendLevel(amount * amount * 0.85f + amount * 0.15f)+ }.onFailure { android.util.Log.w(TAG, "reverb not applied: ${it.message}") }+ }++ /** Called by the sink when playback begins. */+ @Suppress("unused")+ fun start() {+ // A gate left closed by a load that never got its fade-in — a track+ // loaded paused, say — would otherwise silence the next play outright.+ discarding = false+ val output = synchronized(this) {+ track?.takeIf { it.state == AudioTrack.STATE_INITIALIZED }+ } ?: return++ runCatching {+ output.setVolume(0f)+ output.play()+ }+ fadeExecutor.execute { ramp(output, 1f, FADE_IN_MS) }+ }++ /**+ * Called by the sink when playback stops; fades out, then drops anything+ * still buffered.+ *+ * The fade is run here, on the caller's thread, and finishes before the+ * track is flushed — the whole point is that the last samples are quiet+ * before they are thrown away. It is the librespot playback thread, and+ * holding it for the length of a fade is exactly the delay being asked for.+ */+ @Suppress("unused")+ fun stop() {+ discarding = false+ val output = synchronized(this) {+ track?.takeIf { it.state == AudioTrack.STATE_INITIALIZED }+ }++ if (output != null) {+ ramp(output, 0f, FADE_OUT_MS)+ runCatching {+ output.pause()+ output.flush()+ }+ }++ synchronized(this) {+ // The stretcher holds a window of the *previous* track. Kept across+ // a change, those grains are resynthesised over the first moments of+ // the next one — which is the half-second of the old song audible+ // under the new one when effects are on.+ stretcher?.release()+ stretcher = null+ }+ }++ /**+ * Fades out, then runs [action] — used when the player is about to load a+ * different track.+ *+ * librespot does not stop the sink on every transition, so [stop] alone+ * would leave skips as hard cuts. Off the caller's thread because this is+ * called from the main looper.+ */+ fun fadeOutThen(action: () -> Unit) {+ val output = synchronized(this) {+ track?.takeIf { it.state == AudioTrack.STATE_INITIALIZED }+ }+ if (output == null) {+ action()+ return+ }+ fadeExecutor.execute {+ ramp(output, 0f, FADE_OUT_MS)+ // Order matters: the gate closes before the buffer is emptied, so+ // nothing can slip back in between the two.+ discarding = true+ discardBuffered(output)+ action()+ }+ }++ /** Brings the level back up after a load. */+ fun fadeIn() {+ val output = synchronized(this) {+ track?.takeIf { it.state == AudioTrack.STATE_INITIALIZED }+ } ?: return+ fadeExecutor.execute {+ // Whatever arrived while the gate was closing is still old audio.+ discardBuffered(output)+ discarding = false+ ramp(output, 1f, FADE_IN_MS)+ }+ }++ /**+ * Empties the track's buffer and leaves it running again.+ *+ * `flush` is only honoured on a paused track, and the track has to be put+ * back into play afterwards or every following write blocks forever.+ */+ private fun discardBuffered(output: AudioTrack) {+ runCatching {+ output.pause()+ output.flush()+ output.play()+ }+ synchronized(this) {+ // The stretcher holds a window of the track being left behind; kept+ // across the change, those grains are resynthesised over the first+ // moments of the next one.+ stretcher?.release()+ stretcher = null+ }+ }++ /**+ * Walks the track's volume to [target].+ *+ * A volume ramp rather than a gain applied to the samples: it costs nothing+ * per frame, and it reaches the audio already queued in the track's buffer —+ * scaling the PCM on the way in would leave whatever is already buffered+ * playing at full level after the fade had supposedly finished.+ */+ private fun ramp(output: AudioTrack, target: Float, durationMs: Long) {+ val steps = (durationMs / FADE_STEP_MS).toInt().coerceAtLeast(1)+ val start = currentGain+ for (step in 1..steps) {+ val gain = start + (target - start) * step / steps+ currentGain = gain+ if (runCatching { output.setVolume(gain) }.isFailure) return+ try {+ Thread.sleep(FADE_STEP_MS)+ } catch (e: InterruptedException) {+ Thread.currentThread().interrupt()+ return+ }+ }+ currentGain = target+ }++ /**+ * Writes one packet of PCM.+ *+ * @param data direct buffer owned by the caller, valid only for this call+ * @param sizeInBytes bytes to consume from [data]+ */+ @Suppress("unused")+ fun write(data: ByteBuffer, sizeInBytes: Int, sampleRate: Int, channels: Int) {+ // Returning rather than blocking: the sink is being told this audio is+ // unwanted, and holding the decoder here would only delay the load that+ // closed the gate in the first place.+ if (discarding) return++ val output = synchronized(this) { ensureTrack(sampleRate, channels) } ?: return++ val currentSpeed = speed+ val currentPitch = pitch++ // Only pay for the stretcher when it would actually change something.+ // At 1.0/1.0 Bungee is not a no-op — it still analyses and resynthesises+ // every grain — so bypassing it keeps normal playback exactly as it was.+ val stretched = if (currentSpeed != 1f || currentPitch != 1f) {+ synchronized(this) {+ stretcher(sampleRate, channels)+ ?.process(data, sizeInBytes, currentSpeed, currentPitch)+ }+ } else {+ null+ }++ if (stretched != null) {+ writeAll(output, stretched, stretched.remaining())+ return+ }++ writeAll(output, data, sizeInBytes)+ }++ private fun writeAll(output: AudioTrack, buffer: ByteBuffer, sizeInBytes: Int) {+ var written = 0+ while (written < sizeInBytes) {+ // WRITE_BLOCKING returns short only on error or when the track is+ // stopped, so a non-positive result must break the loop or this+ // spins.+ val result = output.write(buffer, sizeInBytes - written, AudioTrack.WRITE_BLOCKING)+ if (result <= 0) return+ written += result+ }+ }++ /**+ * The stretcher for the current stream format, built on first use.+ *+ * Tied to the format because the native side is constructed with a sample+ * rate and channel count and keeps streaming state across calls; a format+ * change has to start a new one rather than reuse the old.+ */+ private fun stretcher(sampleRate: Int, channels: Int): Stretcher? {+ stretcher?.let { return it }++ val created = Stretcher.create(sampleRate, channels, MAX_STRETCH_FRAMES)+ if (created == null) {+ if (!stretchFailureReported) {+ stretchFailureReported = true+ android.util.Log.w(TAG, "stretcher unavailable; playing at normal speed")+ }+ return null+ }+ stretcher = created+ return created+ }++ fun release() {+ synchronized(this) {+ reverb?.runCatching { release() }+ reverb = null+ stretcher?.release()+ stretcher = null+ track?.run {+ runCatching { pause() }+ runCatching { flush() }+ release()+ }+ track = null+ configuredSampleRate = 0+ configuredChannels = 0+ }+ }++ /** Rebuilds the track when the stream format changes, otherwise reuses it. */+ private fun ensureTrack(sampleRate: Int, channels: Int): AudioTrack? {+ val existing = track+ if (existing != null &&+ configuredSampleRate == sampleRate &&+ configuredChannels == channels+ ) {+ return existing+ }++ existing?.run {+ runCatching { pause() }+ release()+ }+ // Bound to the old format's rate and channel count.+ stretcher?.release()+ stretcher = null++ val channelMask = if (channels == 1) {+ AudioFormat.CHANNEL_OUT_MONO+ } else {+ AudioFormat.CHANNEL_OUT_STEREO+ }++ val minBuffer = AudioTrack.getMinBufferSize(+ sampleRate,+ channelMask,+ AudioFormat.ENCODING_PCM_16BIT,+ )+ if (minBuffer <= 0) {+ android.util.Log.e(TAG, "unsupported output format: $sampleRate Hz, $channels ch")+ track = null+ return null+ }++ // Four times the reported minimum. The minimum is the point at which the+ // track underruns if anything at all is late, and decoding competes with+ // the UI and the network on a phone; the extra latency is irrelevant for+ // music playback and buys enough slack to stop the dropouts.+ val bufferSize = minBuffer * BUFFER_MULTIPLIER++ val created = AudioTrack.Builder()+ .setAudioAttributes(+ AudioAttributes.Builder()+ .setUsage(AudioAttributes.USAGE_MEDIA)+ .setContentType(AudioAttributes.CONTENT_TYPE_MUSIC)+ .build(),+ )+ .setAudioFormat(+ AudioFormat.Builder()+ .setEncoding(AudioFormat.ENCODING_PCM_16BIT)+ .setSampleRate(sampleRate)+ .setChannelMask(channelMask)+ .build(),+ )+ .setBufferSizeInBytes(bufferSize)+ .setTransferMode(AudioTrack.MODE_STREAM)+ .build()++ if (created.state != AudioTrack.STATE_INITIALIZED) {+ android.util.Log.e(TAG, "AudioTrack failed to initialise")+ created.release()+ track = null+ return null+ }++ android.util.Log.i(+ TAG,+ "AudioTrack ready: $sampleRate Hz, $channels ch, buffer ${bufferSize}B " ++ "(min ${minBuffer}B)",+ )++ // Silent until something fades it up, so the first track of a session+ // arrives the same way every later one does.+ runCatching { created.setVolume(0f) }+ currentGain = 0f+ created.play()+ track = created+ configuredSampleRate = sampleRate+ configuredChannels = channels+ // The old track took its effect and its playback params with it, so both+ // have to be put back or a format change silently resets the sound.+ applyReverb()+ return created+ }++ private companion object {+ const val TAG = "SpotAudio"+ const val BUFFER_MULTIPLIER = 4++ const val MIN_RATE = 0.25f+ const val MAX_RATE = 3f++ /**+ * Fade lengths. Long enough to soften the edge, short enough that+ * pressing pause still feels like it happened when you pressed it —+ * past about a quarter of a second the control starts to feel laggy+ * rather than smooth.+ */+ const val FADE_IN_MS = 260L+ const val FADE_OUT_MS = 200L+ const val FADE_STEP_MS = 10L++ /** Decay range, in milliseconds: a live room up to a large hall. */+ const val MIN_DECAY_MS = 500f+ const val MAX_DECAY_MS = 4500f++ /**+ * Reverb level in millibels. The API allows down to -9000, which is+ * inaudible, so the useful part of the range starts much higher.+ */+ const val MIN_LEVEL_MB = -2600f+ const val MAX_LEVEL_MB = -200f++ /**+ * Master room level, in millibels. 0 is unattenuated; the API default+ * of -9000 is inaudible.+ */+ const val MIN_ROOM_MB = -2000f+ const val MAX_ROOM_MB = 0f++ /**+ * Largest packet the stretcher is sized for. librespot's packets are a+ * few thousand frames; this leaves generous room, and anything larger+ * falls back to unmodified playback rather than being dropped.+ */+ const val MAX_STRETCH_FRAMES = 16384+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/playback/EffectPresets.kt b/app/src/main/java/dev/emanuele/spot/playback/EffectPresets.ktnew file mode 100644index 0000000..cd43d5d--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/playback/EffectPresets.kt@@ -0,0 +1,141 @@+package dev.emanuele.spot.playback++import android.content.Context+import kotlinx.coroutines.flow.MutableStateFlow+import kotlinx.coroutines.flow.StateFlow+import kotlinx.coroutines.flow.asStateFlow+import kotlinx.serialization.Serializable+import kotlinx.serialization.builtins.ListSerializer+import kotlinx.serialization.json.Json++/**+ * A named speed / pitch / reverb combination.+ *+ * @param id stable across renames and restarts; the name is not unique because+ * nothing stops the user from saving "test" twice.+ */+@Serializable+data class EffectPreset(+ val id: String,+ val name: String,+ val speed: Float,+ val pitch: Float,+ /**+ * Reverb amount, 0 to 1.+ *+ * Named differently from the enum this replaced, and given a default, so a+ * preset saved by an older build still loads: the unknown key is ignored and+ * the amount falls back to dry rather than the whole stored list failing to+ * parse.+ */+ val reverbAmount: Float = 0f,+ /** Built-ins cannot be deleted, so the UI hides the control for them. */+ val builtIn: Boolean = false,+) {+ /** True when playback currently sounds like this preset. */+ fun matches(speed: Float, pitch: Float, reverb: Float): Boolean =+ kotlin.math.abs(this.speed - speed) < TOLERANCE &&+ kotlin.math.abs(this.pitch - pitch) < TOLERANCE &&+ kotlin.math.abs(this.reverbAmount - reverb) < TOLERANCE++ companion object {+ /**+ * Sliders produce values like 0.8499999; comparing them exactly would+ * leave a preset looking unselected right after it was applied.+ */+ private const val TOLERANCE = 0.005f+ }+}++/**+ * The presets everyone gets.+ *+ * Named the way these edits are actually labelled rather than translated. Both+ * move pitch and tempo together, which is the convention they follow: changing+ * only tempo is a different effect and sounds wrong to anyone expecting these.+ */+val BuiltInPresets = listOf(+ EffectPreset(+ id = "original",+ name = "Originale",+ speed = 1f,+ pitch = 1f,+ reverbAmount = 0f,+ builtIn = true,+ ),+ EffectPreset(+ id = "slowed",+ name = "Slowed + Reverb",+ // A slowed edit is usually somewhere near 0.85; further down and vocals+ // start to sound obviously dragged rather than dreamy.+ speed = 0.85f,+ pitch = 0.92f,+ reverbAmount = 0.55f,+ builtIn = true,+ ),+ EffectPreset(+ id = "sped_up",+ name = "Sped Up",+ // 1.25 is where these edits sit: fast enough to be the point, short of+ // the chipmunk register that starts around 1.4.+ speed = 1.25f,+ pitch = 1.25f,+ reverbAmount = 0f,+ builtIn = true,+ ),+)++/**+ * Stores the user's own presets.+ *+ * Only the saved *library* is persisted, not which one is playing: an app that+ * reopened already pitched down would look broken, and the cause would not be+ * obvious. Applying a preset stays an explicit action.+ */+class EffectPresetStore(context: Context) {++ private val prefs = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE)+ private val json = Json { ignoreUnknownKeys = true }++ private val _custom = MutableStateFlow(load())++ /** Built-ins first, then the user's own in the order they were saved. */+ val presets: StateFlow<List<EffectPreset>> = _custom.asStateFlow()++ fun save(name: String, speed: Float, pitch: Float, reverb: Float): EffectPreset {+ val preset = EffectPreset(+ id = java.util.UUID.randomUUID().toString(),+ name = name.trim().ifEmpty { "Senza nome" },+ speed = speed,+ pitch = pitch,+ reverbAmount = reverb,+ )+ _custom.value = _custom.value + preset+ persist()+ return preset+ }++ fun delete(id: String) {+ _custom.value = _custom.value.filterNot { it.id == id }+ persist()+ }++ private fun persist() {+ prefs.edit()+ .putString(KEY_PRESETS, json.encodeToString(serializer, _custom.value))+ .apply()+ }++ private fun load(): List<EffectPreset> {+ val raw = prefs.getString(KEY_PRESETS, null) ?: return emptyList()+ // A stored list that no longer parses is dropped rather than crashing+ // the player: these are conveniences, not data worth failing over.+ return runCatching { json.decodeFromString(serializer, raw) }.getOrDefault(emptyList())+ }++ private companion object {+ const val FILE_NAME = "spot_effect_presets"+ const val KEY_PRESETS = "presets"+ val serializer = ListSerializer(EffectPreset.serializer())+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/playback/LibrespotPlayer.kt b/app/src/main/java/dev/emanuele/spot/playback/LibrespotPlayer.ktnew file mode 100644index 0000000..bd5618d--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/playback/LibrespotPlayer.kt@@ -0,0 +1,513 @@+package dev.emanuele.spot.playback++import android.os.Looper+import androidx.media3.common.MediaItem+import androidx.media3.common.MediaMetadata+import androidx.media3.common.Player+import androidx.media3.common.SimpleBasePlayer+import androidx.media3.common.util.UnstableApi+import com.google.common.util.concurrent.Futures+import com.google.common.util.concurrent.ListenableFuture+import dev.emanuele.spot.nativecore.NativeBridge+import dev.emanuele.spot.nativecore.NativeEvents++/**+ * Adapts the native librespot engine to the Media3 [Player] interface.+ *+ * Extending [SimpleBasePlayer] rather than implementing [Player] directly means+ * Media3 owns the listener bookkeeping, command masking and threading rules; we+ * only describe the current state and handle the four operations the engine+ * actually supports. Everything the engine does not support is simply left out+ * of the available-commands set, so the notification and any connected+ * controller grey out the right buttons instead of failing at runtime.+ *+ * All mutation happens on [applicationLooper]; native events are marshalled onto+ * it before touching state.+ */+@UnstableApi+class LibrespotPlayer(+ context: android.content.Context,+ looper: Looper,+ private val queue: PlayQueue,+ /**+ * Applies tempo and pitch to the output. Passed in rather than reached for+ * because the audio device belongs to the service, not to this adapter.+ */+ private val onSpeedAndPitch: (speed: Float, pitch: Float) -> Unit,+ /**+ * Fades the output down, runs the load, and lets it come back up.+ *+ * Track changes go through here so a skip dissolves instead of cutting.+ * Note this is a fade *through silence*, not a true crossfade: librespot+ * decodes one track at a time and the sink carries a single stream, so+ * there is no second source to overlap with. Overlapping would mean running+ * two engines and mixing them.+ */+ private val fadeOutThen: (() -> Unit) -> Unit,+ private val fadeIn: () -> Unit,+) : SimpleBasePlayer(looper), NativeEvents {++ /** Loads a track with the fade around it. */+ private fun loadFaded(uri: String, startPlaying: Boolean, positionMs: Int = 0) {+ fadeOutThen {+ NativeBridge.load(uri, startPlaying, positionMs)+ if (startPlaying) fadeIn()+ }+ }++ /**+ * Built here rather than injected because its callbacks have to reach back+ * into this player, and passing it in would need the two to be constructed+ * in a cycle.+ */+ private val focus = AudioFocusController(+ context,+ onPause = { NativeBridge.pause() },+ onResume = { NativeBridge.play() },+ onDuck = ::applyDuck,+ )++ /** Volume before ducking, so it can be put back exactly. */+ private var volumeBeforeDuck: Int? = null++ /** Mirrors what the engine last told us. Only touched on the app looper. */+ private var playbackState: @Player.State Int = Player.STATE_IDLE+ private var playWhenReady = false+ private var positionMs = 0L+ private var released = false+ private var repeatMode: @Player.RepeatMode Int = Player.REPEAT_MODE_OFF++ /**+ * Shuffle as a *mode*, held here rather than inferred from the queue.+ *+ * The queue loses its shuffled order whenever it is replaced, and every+ * play action replaces it — so reading the flag off the queue turned shuffle+ * off the moment the user picked a track. Shuffle belongs to the player and+ * is re-applied to each new queue by [reapplyShuffle].+ */+ private var shuffleEnabled = false++ private var playbackParameters = androidx.media3.common.PlaybackParameters.DEFAULT++ /** See [playlistSnapshot]; null means "rebuild on next read". */+ private var cachedPlaylist: List<MediaItemData>? = null++ private val handler = android.os.Handler(looper)++ override fun getState(): State {+ val builder = State.Builder()+ .setAvailableCommands(COMMANDS)+ .setPlaybackState(playbackState)+ .setPlayWhenReady(playWhenReady, Player.PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST)+ .setContentPositionMs(positionMs)+ .setRepeatMode(repeatMode)+ .setShuffleModeEnabled(shuffleEnabled)+ .setPlaybackParameters(playbackParameters)++ val items = queue.items+ if (items.isNotEmpty()) {+ builder.setPlaylist(playlistSnapshot())+ .setCurrentMediaItemIndex(queue.currentIndex.coerceIn(0, items.lastIndex))+ }+ return builder.build()+ }++ /**+ * The playlist as Media3 items, rebuilt only when the queue actually changes.+ *+ * `getState` runs on every `invalidateState`, which includes each position+ * update while playing. Rebuilding a 50-track playlist twice a second+ * allocates several hundred objects per second describing data that did not+ * change — enough GC churn to make the audio stutter. The cache is dropped+ * by [onQueueChanged] at the few points that mutate the queue.+ */+ private fun playlistSnapshot(): List<MediaItemData> =+ cachedPlaylist ?: queue.items+ .mapIndexed(::toMediaItemData)+ .also { cachedPlaylist = it }++ /**+ * Puts a saved tempo and pitch back without routing through the output+ * again — the service has already applied them there.+ */+ fun restorePlaybackParameters(speed: Float, pitch: Float) {+ playbackParameters = androidx.media3.common.PlaybackParameters(speed, pitch)+ invalidateState()+ }++ /**+ * Tempo and pitch changes.+ *+ * Note the engine keeps reporting position in *decoded* time, so at a speed+ * other than 1.0 the reported position and the wall clock drift apart. Left+ * as it is deliberately: the alternative is scaling every position the engine+ * sends, which would put the seek bar and the engine's own idea of the track+ * out of step and break seeking.+ */+ override fun handleSetPlaybackParameters(+ playbackParameters: androidx.media3.common.PlaybackParameters,+ ): ListenableFuture<*> {+ this.playbackParameters = playbackParameters+ onSpeedAndPitch(playbackParameters.speed, playbackParameters.pitch)+ AudioEffects.rememberSpeedAndPitch(playbackParameters.speed, playbackParameters.pitch)+ return Futures.immediateVoidFuture()+ }++ /** Call after any queue mutation, before [invalidateState]. */+ private fun onQueueChanged() {+ cachedPlaylist = null+ }++ /**+ * Restores the shuffled order after the queue has been rebuilt.+ *+ * A new queue arrives unshuffled, and the mode has to be stamped back onto+ * it or turning shuffle on would last exactly until the next tap.+ */+ private fun reapplyShuffle() {+ if (shuffleEnabled && !queue.isShuffled) queue.setShuffled(true)+ }++ /**+ * There is nothing to prepare: the engine buffers on load. Reporting the+ * state the caller expects is enough, and without this override+ * [SimpleBasePlayer] throws for the advertised [Player.COMMAND_PREPARE].+ */+ override fun handlePrepare(): ListenableFuture<*> {+ if (playbackState == Player.STATE_IDLE && queue.items.isNotEmpty()) {+ playbackState = Player.STATE_BUFFERING+ invalidateState()+ }+ return Futures.immediateVoidFuture()+ }++ override fun handleStop(): ListenableFuture<*> {+ NativeBridge.stop()+ focus.abandonFocus()+ playbackState = Player.STATE_IDLE+ playWhenReady = false+ invalidateState()+ return Futures.immediateVoidFuture()+ }++ override fun handleSetPlayWhenReady(playWhenReady: Boolean): ListenableFuture<*> {+ if (playWhenReady) {+ // Refusing focus means something else owns the output — starting+ // anyway would talk over it.+ if (!focus.requestFocus()) return Futures.immediateVoidFuture()+ NativeBridge.play()+ } else {+ NativeBridge.pause()+ focus.abandonFocus()+ }+ // Do not update local state here: the engine confirms via onEvent, and+ // reporting "playing" before audio actually starts makes the seek bar+ // run ahead of the sound.+ return Futures.immediateVoidFuture()+ }++ /**+ * Lower the volume for a transient interruption instead of pausing.+ *+ * librespot's volume is a raw 0..65535 value, so the previous one is kept+ * verbatim and restored rather than recomputed.+ */+ private fun applyDuck(ducked: Boolean) {+ if (ducked) {+ if (volumeBeforeDuck != null) return+ val current = NativeBridge.volume+ volumeBeforeDuck = current+ NativeBridge.volume = (current * DUCK_FACTOR).toInt()+ } else {+ volumeBeforeDuck?.let { NativeBridge.volume = it }+ volumeBeforeDuck = null+ }+ }++ override fun handleSeek(+ mediaItemIndex: Int,+ newPositionMs: Long,+ seekCommand: @Player.Command Int,+ ): ListenableFuture<*> {+ val target = queue.items.getOrNull(mediaItemIndex)+ ?: return Futures.immediateVoidFuture()++ if (mediaItemIndex != queue.currentIndex) {+ queue.currentIndex = mediaItemIndex+ loadFaded(target.uri, startPlaying = true, positionMs = newPositionMs.toInt())+ } else {+ NativeBridge.seek(newPositionMs)+ }+ positionMs = newPositionMs+ return Futures.immediateVoidFuture()+ }++ override fun handleSetMediaItems(+ mediaItems: List<MediaItem>,+ startIndex: Int,+ startPositionMs: Long,+ ): ListenableFuture<*> {+ queue.replaceFromMediaItems(mediaItems, startIndex)+ // Shuffle before picking the track to load: with the mode on, the tapped+ // track moves to the front and the rest are reordered behind it.+ reapplyShuffle()+ onQueueChanged()++ val first = queue.items.getOrNull(queue.currentIndex) ?: run {+ // Every item was rejected for lacking a Spotify URI as its media id.+ android.util.Log.w(+ "SpotPlayer",+ "nothing playable in ${mediaItems.size} items; " ++ "first id=${mediaItems.firstOrNull()?.mediaId}",+ )+ return Futures.immediateVoidFuture()+ }++ // Starts only if playback was already meant to be running. Loading with+ // startPlaying always true would make a restored session play by itself+ // on launch; when the user taps a track, Media3 follows this with+ // play(), which resumes the loaded-but-paused engine.+ // Report the start position immediately. Leaving it at zero makes the+ // seek bar read 0:00 while the engine is already further in, and nothing+ // corrects it until the first position event — which never arrives at+ // all while paused.+ positionMs = startPositionMs+ playbackState = Player.STATE_BUFFERING+ NativeBridge.load(+ first.uri,+ startPlaying = playWhenReady,+ positionMs = startPositionMs.toInt(),+ )+ invalidateState()+ return Futures.immediateVoidFuture()+ }++ /**+ * The next three exist because [Player.COMMAND_CHANGE_MEDIA_ITEMS] is+ * advertised. They only reorder the queue — the engine plays one track at a+ * time and is untouched unless the current track itself moved out from under+ * it, which [PlayQueue] handles by index.+ */+ override fun handleAddMediaItems(+ index: Int,+ mediaItems: List<MediaItem>,+ ): ListenableFuture<*> {+ queue.addFromMediaItems(index, mediaItems)+ reapplyShuffle()+ onQueueChanged()+ invalidateState()+ return Futures.immediateVoidFuture()+ }++ override fun handleRemoveMediaItems(fromIndex: Int, toIndex: Int): ListenableFuture<*> {+ queue.remove(fromIndex, toIndex)+ reapplyShuffle()+ onQueueChanged()+ invalidateState()+ return Futures.immediateVoidFuture()+ }++ override fun handleMoveMediaItems(+ fromIndex: Int,+ toIndex: Int,+ newIndex: Int,+ ): ListenableFuture<*> {+ queue.move(fromIndex, toIndex, newIndex)+ reapplyShuffle()+ onQueueChanged()+ invalidateState()+ return Futures.immediateVoidFuture()+ }++ /**+ * Puts a saved session back: queue, order, position and modes at once.+ *+ * Deliberately not expressed as a sequence of ordinary commands. Setting the+ * shuffle flag before the queue exists is a no-op, and setting it after+ * would draw a fresh random order instead of the one that was saved, so the+ * whole thing has to be applied as a unit.+ */+ fun restore(+ tracks: List<PlayQueue.Track>,+ shuffleOrder: List<Int>?,+ index: Int,+ positionMs: Long,+ repeatMode: @Player.RepeatMode Int,+ ) {+ if (tracks.isEmpty()) return++ queue.replace(tracks, 0)+ shuffleOrder?.let(queue::applyShuffleOrder)+ queue.currentIndex = index.coerceIn(0, queue.items.lastIndex)++ shuffleEnabled = shuffleOrder != null+ this.repeatMode = repeatMode+ this.positionMs = positionMs+ playWhenReady = false+ playbackState = Player.STATE_READY+ onQueueChanged()++ queue.items.getOrNull(queue.currentIndex)?.let { track ->+ // Paused: an app that starts playing by itself when opened is worse+ // than one that forgets where it was.+ loadFaded(track.uri, startPlaying = false, positionMs = positionMs.toInt())+ }+ invalidateState()+ }++ /**+ * Reorders the queue rather than only recording a flag; see [PlayQueue].+ */+ override fun handleSetShuffleModeEnabled(shuffleModeEnabled: Boolean): ListenableFuture<*> {+ shuffleEnabled = shuffleModeEnabled+ queue.setShuffled(shuffleModeEnabled)+ onQueueChanged()+ invalidateState()+ return Futures.immediateVoidFuture()+ }++ override fun handleSetRepeatMode(repeatMode: @Player.RepeatMode Int): ListenableFuture<*> {+ this.repeatMode = repeatMode+ invalidateState()+ return Futures.immediateVoidFuture()+ }++ override fun handleRelease(): ListenableFuture<*> {+ released = true+ focus.release()+ NativeBridge.shutdown()+ return Futures.immediateVoidFuture()+ }++ // --- NativeEvents: arrives on a tokio worker thread ---++ override fun onEvent(type: String, uri: String, positionMs: Long) {+ handler.post { applyEvent(type, positionMs) }+ }++ private fun applyEvent(type: String, eventPositionMs: Long) {+ if (released) return++ when (type) {+ "loading" -> {+ playbackState = Player.STATE_BUFFERING+ }+ "playing" -> {+ playbackState = Player.STATE_READY+ playWhenReady = true+ positionMs = eventPositionMs+ }+ "paused" -> {+ playbackState = Player.STATE_READY+ playWhenReady = false+ positionMs = eventPositionMs+ }+ "position" -> {+ positionMs = eventPositionMs+ }+ "stopped" -> {+ playbackState = Player.STATE_IDLE+ playWhenReady = false+ }+ "end_of_track" -> {+ advance()+ return+ }+ // The track is region-locked or otherwise unplayable; skipping keeps+ // a bad item in a playlist from stalling the whole queue.+ "unavailable" -> {+ advance()+ return+ }+ else -> return+ }+ invalidateState()+ }++ /**+ * Moves to whatever should play next, honouring the repeat mode.+ *+ * Done here rather than left to Media3 because end-of-track comes from the+ * engine, not from a controller command.+ */+ private fun advance() {+ val nextIndex = when {+ repeatMode == Player.REPEAT_MODE_ONE -> queue.currentIndex+ queue.currentIndex + 1 <= queue.items.lastIndex -> queue.currentIndex + 1+ repeatMode == Player.REPEAT_MODE_ALL -> 0+ else -> null+ }++ val next = nextIndex?.let(queue.items::getOrNull)+ if (next == null) {+ playbackState = Player.STATE_ENDED+ playWhenReady = false+ } else {+ queue.currentIndex = nextIndex+ positionMs = 0+ playbackState = Player.STATE_BUFFERING+ loadFaded(next.uri, startPlaying = true)+ }+ invalidateState()+ }++ /**+ * @param index part of the uid because Media3 requires uids to be unique+ * across the playlist, and a playlist may legitimately contain the same+ * track more than once — using the URI alone crashes with+ * "Duplicate MediaItemData UID in playlist".+ */+ private fun toMediaItemData(index: Int, track: PlayQueue.Track) =+ MediaItemData.Builder("$index ${track.uri}")+ .setMediaItem(+ MediaItem.Builder()+ .setMediaId(track.uri)+ .setMediaMetadata(+ MediaMetadata.Builder()+ .setTitle(track.title)+ .setArtist(track.artist)+ .setArtworkUri(track.artworkUri)+ .build(),+ )+ .build(),+ )+ .setDurationUs(track.durationMs * 1_000)+ .setIsSeekable(true)+ .setIsDynamic(false)+ .build()++ private companion object {+ /** Ducked volume, as a fraction of the current one. */+ const val DUCK_FACTOR = 0.3++ /** Everything the engine and this queue can actually carry out. */+ val COMMANDS: Player.Commands = Player.Commands.Builder()+ .addAll(+ Player.COMMAND_PLAY_PAUSE,+ Player.COMMAND_PREPARE,+ Player.COMMAND_STOP,+ Player.COMMAND_SEEK_TO_NEXT,+ Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM,+ Player.COMMAND_SEEK_TO_PREVIOUS,+ Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM,+ Player.COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM,+ Player.COMMAND_SEEK_TO_MEDIA_ITEM,+ Player.COMMAND_SET_MEDIA_ITEM,+ // Required for setMediaItems(list, index, position). Without it+ // SimpleBasePlayer drops the call silently, so the queue is+ // never handed over and the following play() reaches a stopped+ // engine: "Player::play called from invalid state: Stopped".+ Player.COMMAND_CHANGE_MEDIA_ITEMS,+ Player.COMMAND_GET_CURRENT_MEDIA_ITEM,+ Player.COMMAND_GET_TIMELINE,+ Player.COMMAND_GET_METADATA,+ Player.COMMAND_SET_SHUFFLE_MODE,+ Player.COMMAND_SET_REPEAT_MODE,+ // Speed and pitch are done by the platform's time stretcher in+ // AudioOutput, not by the engine, so this is genuinely supported.+ Player.COMMAND_SET_SPEED_AND_PITCH,+ Player.COMMAND_RELEASE,+ )+ .build()+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/playback/PlayQueue.kt b/app/src/main/java/dev/emanuele/spot/playback/PlayQueue.ktnew file mode 100644index 0000000..cb6d837--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/playback/PlayQueue.kt@@ -0,0 +1,184 @@+package dev.emanuele.spot.playback++import android.net.Uri+import androidx.media3.common.MediaItem++/**+ * The queue the engine plays through.+ *+ * librespot loads one track at a time and has no notion of a playlist, so the+ * queue lives here and [LibrespotPlayer] advances it on `end_of_track`.+ *+ * Shuffle is implemented by reordering the list itself rather than keeping a+ * separate play order. `SimpleBasePlayer`'s timeline does not implement shuffle+ * ("TODO: Support shuffle order" upstream), so its next/previous would keep+ * walking the list linearly while end-of-track followed a shuffled order —+ * leaving the two disagreeing. Reordering the queue keeps one order for both.+ *+ * Not thread-safe by design: only the player's application looper touches it.+ */+class PlayQueue {++ data class Track(+ /** Spotify URI, e.g. `spotify:track:4cOdK2wGLETKBW3PvgPWqT`. */+ val uri: String,+ val title: String,+ val artist: String,+ val durationMs: Long,+ val artworkUri: Uri?,+ )++ private val _items = mutableListOf<Track>()+ val items: List<Track> get() = _items++ var currentIndex: Int = 0++ /** Unshuffled queue, kept so the order can be restored exactly. */+ private var originalOrder: List<Track>? = null++ /** For each current position, its index in [originalOrder]. */+ private var originalIndices: List<Int>? = null++ val isShuffled: Boolean get() = originalOrder != null++ /** The queue as it was before shuffling, which is what gets persisted. */+ val originalTracks: List<Track> get() = originalOrder ?: _items++ /** The permutation currently applied, or null when not shuffled. */+ val shuffleOrder: List<Int>? get() = originalIndices++ /**+ * Re-applies a previously saved permutation.+ *+ * Restoring a shuffled queue cannot simply re-enable shuffle: that would+ * draw a *new* random order, and the queue the user left would be gone.+ */+ fun applyShuffleOrder(order: List<Int>) {+ val original = _items.toList()+ if (order.size != original.size || order.toSet() != original.indices.toSet()) return++ _items.clear()+ _items.addAll(order.map(original::get))+ originalOrder = original+ originalIndices = order+ }++ fun replace(tracks: List<Track>, startIndex: Int) {+ _items.clear()+ _items.addAll(tracks)+ currentIndex = startIndex.coerceIn(0, maxOf(0, _items.lastIndex))+ clearShuffle()+ }++ /**+ * Shuffles the queue, or restores the original order.+ *+ * The current track moves to the front rather than staying in place: it is+ * still playing, and anything before it in a freshly shuffled order would be+ * a "previous" the listener never heard.+ */+ fun setShuffled(shuffled: Boolean) {+ if (shuffled == isShuffled || _items.isEmpty()) return++ if (shuffled) {+ val original = _items.toList()+ val rest = original.indices.filter { it != currentIndex }.shuffled()+ val order = listOf(currentIndex) + rest++ _items.clear()+ _items.addAll(order.map(original::get))+ originalOrder = original+ originalIndices = order+ currentIndex = 0+ } else {+ val original = originalOrder ?: return+ // Index, not track identity: a playlist may hold the same track more+ // than once, and searching would land on the wrong copy.+ val restored = originalIndices?.getOrNull(currentIndex) ?: 0+ _items.clear()+ _items.addAll(original)+ currentIndex = restored.coerceIn(0, maxOf(0, _items.lastIndex))+ clearShuffle()+ }+ }++ private fun clearShuffle() {+ originalOrder = null+ originalIndices = null+ }++ fun add(index: Int, tracks: List<Track>) {+ val at = index.coerceIn(0, _items.size)+ _items.addAll(at, tracks)+ if (at <= currentIndex) currentIndex += tracks.size+ // The saved order no longer describes this queue.+ clearShuffle()+ }++ fun remove(fromIndex: Int, toIndex: Int) {+ val from = fromIndex.coerceIn(0, _items.size)+ val to = toIndex.coerceIn(from, _items.size)+ if (from == to) return++ _items.subList(from, to).clear()+ currentIndex = when {+ currentIndex >= to -> currentIndex - (to - from)+ currentIndex >= from -> from+ else -> currentIndex+ }.coerceIn(0, maxOf(0, _items.lastIndex))+ clearShuffle()+ }++ fun move(fromIndex: Int, toIndex: Int, newIndex: Int) {+ val from = fromIndex.coerceIn(0, _items.size)+ val to = toIndex.coerceIn(from, _items.size)+ if (from == to) return++ val moved = ArrayList(_items.subList(from, to))+ val target = newIndex.coerceIn(0, _items.size - moved.size)+ val current = currentIndex++ _items.subList(from, to).clear()+ _items.addAll(target, moved)++ // Recomputed arithmetically rather than by searching for the playing+ // track: a playlist may hold the same track twice, and indexOf would+ // latch onto the wrong copy.+ currentIndex = if (current in from until to) {+ target + (current - from)+ } else {+ var shifted = if (current >= to) current - moved.size else current+ if (shifted >= target) shifted += moved.size+ shifted+ }.coerceIn(0, maxOf(0, _items.lastIndex))+ clearShuffle()+ }++ /**+ * Rebuilds the queue from Media3 items handed over by a controller.+ *+ * Anything a controller sends must already carry a Spotify URI as its media+ * id — there is no way to play an arbitrary [MediaItem] here — so items+ * without one are dropped rather than queued and skipped later.+ */+ fun replaceFromMediaItems(mediaItems: List<MediaItem>, startIndex: Int) {+ replace(mediaItems.mapNotNull(::toTrack), startIndex)+ }++ /** Insert controller-supplied items; see [replaceFromMediaItems] for the id rule. */+ fun addFromMediaItems(index: Int, mediaItems: List<MediaItem>) {+ add(index, mediaItems.mapNotNull(::toTrack))+ }++ private fun toTrack(item: MediaItem): Track? {+ val uri = item.mediaId.takeIf { it.startsWith("spotify:") } ?: return null+ val metadata = item.mediaMetadata+ return Track(+ uri = uri,+ title = metadata.title?.toString().orEmpty(),+ artist = metadata.artist?.toString().orEmpty(),+ durationMs = metadata.durationMs ?: 0L,+ artworkUri = metadata.artworkUri,+ )+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/playback/PlaybackService.kt b/app/src/main/java/dev/emanuele/spot/playback/PlaybackService.ktnew file mode 100644index 0000000..5b710fe--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/playback/PlaybackService.kt@@ -0,0 +1,322 @@+package dev.emanuele.spot.playback++import android.content.Intent+import androidx.media3.common.MediaItem+import androidx.media3.common.util.UnstableApi+import com.google.common.util.concurrent.Futures+import com.google.common.util.concurrent.ListenableFuture+import androidx.media3.session.MediaSession+import androidx.media3.session.MediaSessionService+import dev.emanuele.spot.auth.SpotifyOAuth+import dev.emanuele.spot.auth.TokenStore+import dev.emanuele.spot.data.CatalogTrack+import dev.emanuele.spot.data.PlaybackStore+import dev.emanuele.spot.data.SavedPlayback+import dev.emanuele.spot.nativecore.NativeBridge+import kotlinx.coroutines.CoroutineScope+import kotlinx.coroutines.Job+import kotlinx.coroutines.delay+import kotlinx.coroutines.Dispatchers+import kotlinx.coroutines.SupervisorJob+import kotlinx.coroutines.cancel+import kotlinx.coroutines.launch+import kotlinx.coroutines.withContext++/**+ * Hosts the media session and owns the lifetime of the native engine.+ *+ * The engine lives in the service rather than in an activity or a singleton so+ * that playback survives the UI being destroyed, and so a single `shutdown()`+ * in [onDestroy] is guaranteed to run.+ */+@UnstableApi+class PlaybackService : MediaSessionService() {++ private val scope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)++ private lateinit var tokens: TokenStore+ private lateinit var queue: PlayQueue+ private lateinit var player: LibrespotPlayer+ private var session: MediaSession? = null+ private var engineStarted = false++ /** Owns the AudioTrack the native sink writes into. */+ private val audioOutput = AudioOutput()++ private lateinit var playbackStore: PlaybackStore+ private var saveJob: Job? = null++ override fun onCreate() {+ super.onCreate()+ tokens = TokenStore(this)+ playbackStore = PlaybackStore(this)+ queue = PlayQueue()+ player = LibrespotPlayer(+ this,+ mainLooper,+ queue,+ audioOutput::setSpeedAndPitch,+ audioOutput::fadeOutThen,+ audioOutput::fadeIn,+ )+ session = MediaSession.Builder(this, player)+ .setCallback(MediaItemsCallback)+ .build()++ AudioEffects.load(this)+ // Applied straight to the output rather than waiting for the UI: the+ // service can be running with no activity attached at all.+ audioOutput.setSpeedAndPitch(AudioEffects.speed.value, AudioEffects.pitch.value)+ player.restorePlaybackParameters(AudioEffects.speed.value, AudioEffects.pitch.value)++ NativeBridge.initContext(this)+ // Before connectEngine: the sink is built as soon as playback starts and+ // has nowhere to write without it.+ NativeBridge.setAudioOutput(audioOutput)++ // Reverb is not part of the Player interface, so it arrives here rather+ // than through the media session.+ scope.launch {+ AudioEffects.reverb.collect(audioOutput::setReverbAmount)+ }++ connectEngine()+ }++ /**+ * Re-runs [connectEngine] on demand.+ *+ * The service is created when the UI binds its controller, which happens+ * before the user has logged in, so the engine cannot be started once in+ * [onCreate] and left alone. The login flow sends this action when it has a+ * session.+ */+ override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {+ if (intent?.action == ACTION_CONNECT) connectEngine()+ return super.onStartCommand(intent, flags, startId)+ }++ /**+ * Authenticates the native session. Runs off the main thread because the+ * access-point handshake is blocking.+ */+ private fun connectEngine() = scope.launch {+ // Guards against the repeated ACTION_CONNECT the UI may send: the native+ // side rejects a second start, and that error would look like a login+ // failure and clear a perfectly good session.+ if (engineStarted || !tokens.isLoggedIn) return@launch+ engineStarted = true++ runCatching {+ val accessToken = tokens.validAccessToken()+ withContext(Dispatchers.IO) {+ NativeBridge.start(+ // Must match the id the OAuth token was minted for.+ // `Login5Manager::auth_token` always asks as a stored+ // credential, and that path signs the request with the+ // session's client id — so the two have to agree or the+ // access point rejects every catalogue call.+ clientId = SpotifyOAuth.CLIENT_ID,+ deviceName = android.os.Build.MODEL ?: "Android",+ accessToken = accessToken,+ // filesDir, not cacheDir: credentials must survive the+ // system reclaiming cache space, or the next launch loses+ // catalogue access until the user logs in again.+ credentialsDir = filesDir.resolve("librespot").absolutePath,+ cacheDir = cacheDir.absolutePath,+ listener = player,+ )+ }+ }.onFailure { error ->+ engineStarted = false+ android.util.Log.e(TAG, "engine start failed: $error", error)+ // The access point rejecting the token means the session is no+ // longer usable, so send the user back through OAuth rather than+ // retrying with the same credentials. A revoked refresh token is+ // already cleared by TokenStore before it gets here.+ if (error.message?.contains("login failed") == true) {+ tokens.clear()+ }+ }.onSuccess {+ android.util.Log.i(TAG, "engine connected")+ restoreQueue()+ observeForSaving()+ }+ }++ /**+ * Puts the last queue back, paused at the saved position.+ *+ * Skipped when something is already loaded: the user opened the app, played+ * something and only then did the engine finish connecting, and overwriting+ * that would be worse than not restoring at all.+ */+ private fun restoreQueue() {+ if (player.mediaItemCount > 0) return+ val saved = playbackStore.load() ?: return++ // One call rather than a sequence of commands: see LibrespotPlayer.restore+ // for why the order, position and modes have to be applied together.+ player.restore(+ tracks = saved.tracks.map(::toQueueTrack),+ shuffleOrder = saved.shuffleOrder,+ index = saved.index,+ positionMs = saved.positionMs,+ repeatMode = saved.repeatMode,+ )+ android.util.Log.i(TAG, "restored ${saved.tracks.size} tracks at ${saved.index}")+ }++ /**+ * Writes the queue back on every meaningful change, and on a slow tick while+ * playing.+ *+ * The tick is what makes the *position* survive being force-stopped, which+ * fires no lifecycle callback at all; events alone would only ever save the+ * position at the moment playback started.+ */+ private fun observeForSaving() {+ player.addListener(object : androidx.media3.common.Player.Listener {+ override fun onEvents(+ p: androidx.media3.common.Player,+ events: androidx.media3.common.Player.Events,+ ) {+ if (events.containsAny(+ androidx.media3.common.Player.EVENT_TIMELINE_CHANGED,+ androidx.media3.common.Player.EVENT_MEDIA_ITEM_TRANSITION,+ androidx.media3.common.Player.EVENT_IS_PLAYING_CHANGED,+ androidx.media3.common.Player.EVENT_SHUFFLE_MODE_ENABLED_CHANGED,+ androidx.media3.common.Player.EVENT_REPEAT_MODE_CHANGED,+ )+ ) {+ savePlayback()+ }+ }+ })++ saveJob?.cancel()+ saveJob = scope.launch {+ while (true) {+ delay(SAVE_INTERVAL_MS)+ if (player.isPlaying) savePlayback()+ }+ }+ }++ /**+ * Snapshots the queue.+ *+ * Read from [PlayQueue] rather than through the Media3 timeline because only+ * the queue knows the pre-shuffle order and the permutation on top of it;+ * the timeline exposes just the current sequence.+ */+ private fun savePlayback() {+ if (queue.items.isEmpty()) {+ playbackStore.clear()+ return+ }++ playbackStore.save(+ SavedPlayback(+ tracks = queue.originalTracks.map(::toCatalogTrack),+ shuffleOrder = queue.shuffleOrder,+ index = queue.currentIndex,+ positionMs = player.currentPosition.coerceAtLeast(0),+ repeatMode = player.repeatMode,+ ),+ )+ }++ private fun toCatalogTrack(track: PlayQueue.Track) = CatalogTrack(+ uri = track.uri,+ name = track.title,+ artist = track.artist,+ durationMs = track.durationMs,+ artworkUrl = track.artworkUri?.toString(),+ )++ private fun toQueueTrack(track: CatalogTrack) = PlayQueue.Track(+ uri = track.uri,+ title = track.name,+ artist = track.artist,+ durationMs = track.durationMs,+ artworkUri = track.artworkUrl?.let(android.net.Uri::parse),+ )++ override fun onGetSession(controllerInfo: MediaSession.ControllerInfo): MediaSession? = session++ override fun onTaskRemoved(rootIntent: Intent?) {+ runCatching { savePlayback() }+ // Swiping the app away should not kill audio mid-track, but it should+ // stop an idle service from lingering in the notification shade.+ val current = session?.player+ if (current == null || !current.isPlaying) {+ stopSelf()+ }+ }++ override fun onDestroy() {+ // Before cancelling the scope: the last position is the one worth having.+ runCatching { savePlayback() }+ scope.cancel()+ session?.run {+ player.release()+ release()+ }+ session = null+ NativeBridge.shutdown()+ audioOutput.release()+ super.onDestroy()+ }++ /**+ * Accepts media items sent by controllers.+ *+ * Required, not optional. A session never hands a controller's items to the+ * player directly: it asks the app to resolve them first, and the default+ * implementation *rejects* every item whose `localConfiguration` is null —+ * i.e. that carries no playback URI. Ours carry a Spotify URI as their media+ * id and nothing else, so without this the whole `setMediaItems` call is+ * dropped with no error, and only the following `play()` reaches the engine:+ * "Player::play called from invalid state: Stopped".+ *+ * Nothing needs resolving here — [PlayQueue] reads the media id — so the+ * items are returned unchanged.+ */+ private object MediaItemsCallback : MediaSession.Callback {++ override fun onAddMediaItems(+ mediaSession: MediaSession,+ controller: MediaSession.ControllerInfo,+ mediaItems: MutableList<MediaItem>,+ ): ListenableFuture<MutableList<MediaItem>> = Futures.immediateFuture(mediaItems)++ /** Overridden as well so the start index and position are not discarded. */+ override fun onSetMediaItems(+ mediaSession: MediaSession,+ controller: MediaSession.ControllerInfo,+ mediaItems: MutableList<MediaItem>,+ startIndex: Int,+ startPositionMs: Long,+ ): ListenableFuture<MediaSession.MediaItemsWithStartPosition> =+ Futures.immediateFuture(+ MediaSession.MediaItemsWithStartPosition(mediaItems, startIndex, startPositionMs),+ )+ }++ companion object {+ private const val TAG = "PlaybackService"++ /** How often the position is written back while playing. */+ private const val SAVE_INTERVAL_MS = 10_000L++ /** Tells the service a Spotify session now exists. */+ const val ACTION_CONNECT = "dev.emanuele.spot.action.CONNECT"++ fun connect(context: android.content.Context) {+ context.startService(+ Intent(context, PlaybackService::class.java).setAction(ACTION_CONNECT),+ )+ }+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/playback/Stretcher.kt b/app/src/main/java/dev/emanuele/spot/playback/Stretcher.ktnew file mode 100644index 0000000..0e4abe6--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/playback/Stretcher.kt@@ -0,0 +1,115 @@+package dev.emanuele.spot.playback++import java.nio.ByteBuffer+import java.nio.ByteOrder++/**+ * Time stretching and pitch shifting, backed by Bungee.+ *+ * This replaces `AudioTrack.setPlaybackParams`. That path was free, but it runs+ * the platform's Sonic implementation, which is built for speech: on music it+ * smears transients and adds a metallic ring at anything beyond a few percent.+ * Bungee is a phase vocoder and holds together across the range this app offers.+ *+ * Not thread-safe: the native stretcher carries streaming state between calls,+ * so every method must be called from the one thread that writes audio.+ */+class Stretcher private constructor(+ private var handle: Long,+ private val channels: Int,+ private val maxInputFrames: Int,+ maxOutputFrames: Int,+) {++ /**+ * Direct buffers so the native side can read and write them without a copy.+ * Reused across calls: allocating one per packet would mean a few hundred+ * direct allocations a second.+ */+ private val input: ByteBuffer = ByteBuffer+ .allocateDirect(maxInputFrames * channels * BYTES_PER_SAMPLE)+ .order(ByteOrder.nativeOrder())++ private val output: ByteBuffer = ByteBuffer+ .allocateDirect(maxOutputFrames * channels * BYTES_PER_SAMPLE)+ .order(ByteOrder.nativeOrder())++ /**+ * Stretches one packet of interleaved 16-bit PCM.+ *+ * @param source read from its current position; fully consumed+ * @param sizeInBytes bytes to take from [source]+ * @return a buffer positioned at zero and limited to the bytes produced, or+ * null when the packet could not be processed — the caller should then+ * pass the audio through untouched rather than drop it.+ */+ fun process(source: ByteBuffer, sizeInBytes: Int, speed: Float, pitch: Float): ByteBuffer? {+ if (handle == 0L) return null++ val frames = sizeInBytes / (channels * BYTES_PER_SAMPLE)+ if (frames <= 0 || frames > maxInputFrames) return null++ input.clear()+ val sourceLimit = source.limit()+ source.limit(source.position() + sizeInBytes)+ input.put(source)+ source.limit(sourceLimit)++ val produced = nativeProcess(handle, input, frames, speed, pitch, output)+ if (produced <= 0) return null++ output.limit(produced * channels * BYTES_PER_SAMPLE)+ output.position(0)+ return output+ }++ fun release() {+ if (handle != 0L) {+ nativeDestroy(handle)+ handle = 0+ }+ }++ companion object {+ private const val BYTES_PER_SAMPLE = 2++ /**+ * Slowest speed the stretcher is sized for. Output is longer than input+ * below 1.0, and the output buffer has to cover the worst case.+ */+ private const val MIN_SPEED = 0.25f++ init {+ System.loadLibrary("spotstretch")+ }++ /** Returns null when the native stretcher cannot be created. */+ fun create(sampleRate: Int, channels: Int, maxInputFrames: Int): Stretcher? {+ val maxOutputFrames = (maxInputFrames / MIN_SPEED).toInt() + 1+ val handle = nativeCreate(sampleRate, channels, maxInputFrames, maxOutputFrames)+ if (handle == 0L) return null+ return Stretcher(handle, channels, maxInputFrames, maxOutputFrames)+ }++ @JvmStatic+ private external fun nativeCreate(+ sampleRate: Int,+ channels: Int,+ maxInputFrames: Int,+ maxOutputFrames: Int,+ ): Long++ @JvmStatic+ private external fun nativeDestroy(handle: Long)++ @JvmStatic+ private external fun nativeProcess(+ handle: Long,+ input: ByteBuffer,+ inputFrames: Int,+ speed: Float,+ pitch: Float,+ output: ByteBuffer,+ ): Int+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/MainActivity.kt b/app/src/main/java/dev/emanuele/spot/ui/MainActivity.ktnew file mode 100644index 0000000..8192b3f--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/MainActivity.kt@@ -0,0 +1,110 @@+package dev.emanuele.spot.ui++import android.content.ComponentName+import android.os.Bundle+import androidx.activity.ComponentActivity+import androidx.activity.compose.setContent+import androidx.activity.SystemBarStyle+import androidx.activity.enableEdgeToEdge+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.setValue+import androidx.media3.common.MediaItem+import androidx.media3.common.MediaMetadata+import androidx.media3.common.util.UnstableApi+import androidx.media3.session.MediaController+import androidx.media3.session.SessionToken+import com.google.common.util.concurrent.MoreExecutors+import dev.emanuele.spot.data.CatalogTrack+import dev.emanuele.spot.playback.PlaybackService++/**+ * Owns the connection to the playback service; everything visual lives in+ * [SpotApp].+ *+ * The controller is activity-scoped rather than kept in a ViewModel because it+ * has to be released when the UI goes away — the session keeps playing without+ * it, and holding one from a backgrounded app leaks a binder connection.+ */+@UnstableApi+class MainActivity : ComponentActivity() {++ private var controller by mutableStateOf<MediaController?>(null)++ override fun onCreate(savedInstanceState: Bundle?) {+ super.onCreate(savedInstanceState)+ // Transparent bars; SpotTheme sets the icon colour, because it is the+ // only place that knows whether the app is currently light or dark.+ enableEdgeToEdge(+ statusBarStyle = SystemBarStyle.auto(+ android.graphics.Color.TRANSPARENT,+ android.graphics.Color.TRANSPARENT,+ ),+ navigationBarStyle = SystemBarStyle.auto(+ android.graphics.Color.TRANSPARENT,+ android.graphics.Color.TRANSPARENT,+ ),+ )+ setContent {+ SpotApp(player = controller, onPlay = ::play, onEnqueue = ::enqueue)+ }+ }++ override fun onStart() {+ super.onStart()+ val token = SessionToken(this, ComponentName(this, PlaybackService::class.java))+ val future = MediaController.Builder(this, token).buildAsync()+ future.addListener(+ {+ // The activity may already be stopping by the time this lands.+ controller = runCatching { future.get() }.getOrNull()+ },+ MoreExecutors.directExecutor(),+ )+ }++ override fun onStop() {+ controller?.release()+ controller = null+ super.onStop()+ }++ /** Sends the visible list to the session, starting at the tapped track. */+ private fun play(tracks: List<CatalogTrack>, index: Int) {+ val player = controller ?: return+ player.setMediaItems(tracks.map(::toMediaItem), index, 0L)+ player.prepare()+ player.play()+ }++ /**+ * Appends one track to the end of the queue.+ *+ * Starts playback when nothing is loaded: queueing onto an idle player and+ * having nothing happen reads as the gesture having failed.+ */+ private fun enqueue(track: CatalogTrack) {+ val player = controller ?: return+ val wasEmpty = player.mediaItemCount == 0+ player.addMediaItem(toMediaItem(track))+ if (wasEmpty) {+ player.prepare()+ player.play()+ }+ }++ private fun toMediaItem(track: CatalogTrack): MediaItem =+ MediaItem.Builder()+ // The media id carries the Spotify URI; PlayQueue refuses anything else.+ .setMediaId(track.uri)+ .setMediaMetadata(+ MediaMetadata.Builder()+ .setTitle(track.name)+ .setArtist(track.artist)+ .setAlbumTitle(track.album)+ .setDurationMs(track.durationMs)+ .setArtworkUri(track.artworkUrl?.let(android.net.Uri::parse))+ .build(),+ )+ .build()+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/MainViewModel.kt b/app/src/main/java/dev/emanuele/spot/ui/MainViewModel.ktnew file mode 100644index 0000000..3cac1f3--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/MainViewModel.kt@@ -0,0 +1,401 @@+package dev.emanuele.spot.ui++import android.app.Application+import androidx.lifecycle.AndroidViewModel+import androidx.lifecycle.viewModelScope+import dev.emanuele.spot.SpotApplication+import dev.emanuele.spot.auth.SpotifyOAuth+import dev.emanuele.spot.data.Catalog+import dev.emanuele.spot.data.CatalogPlaylist+import dev.emanuele.spot.data.CatalogTrack+import dev.emanuele.spot.data.SearchItem+import dev.emanuele.spot.data.SearchResults+import dev.emanuele.spot.data.toCatalogTrack+import dev.emanuele.spot.data.toResults+import dev.emanuele.spot.nativecore.NativeBridge+import dev.emanuele.spot.playback.BuiltInPresets+import dev.emanuele.spot.playback.EffectPreset+import dev.emanuele.spot.playback.PlaybackService+import kotlinx.coroutines.Job+import kotlinx.coroutines.delay+import kotlinx.coroutines.flow.MutableStateFlow+import kotlinx.coroutines.flow.StateFlow+import kotlinx.coroutines.flow.SharingStarted+import kotlinx.coroutines.flow.asStateFlow+import kotlinx.coroutines.flow.map+import kotlinx.coroutines.flow.stateIn+import kotlinx.coroutines.launch+import kotlinx.coroutines.withTimeoutOrNull++/**+ * Login gate and library browsing.+ *+ * Playback commands are deliberately absent: the UI talks to the media session+ * controller directly, so the notification, the lock screen and the app all read+ * one source of truth instead of two copies that can drift.+ */+class MainViewModel(app: Application) : AndroidViewModel(app) {++ sealed interface UiState {+ data object LoggedOut : UiState++ /** Waiting for the access-point handshake. */+ data object Connecting : UiState+ data object Loading : UiState+ data class Ready(val displayName: String, val playlists: List<CatalogPlaylist>) : UiState+ data class Failed(val message: String) : UiState+ }++ /** What kind of thing the detail screen is showing. */+ enum class DetailKind(val label: String) {+ PLAYLIST("Playlist"),+ ALBUM("Album"),+ ARTIST("Artista"),+ }++ /**+ * The playlist, album or artist currently open, keyed by its URI.+ *+ * One state and one screen for all three: they differ in where the tracks+ * come from and in a strip of albums the artist has and the other two do+ * not, which is not enough to justify three near-identical screens that+ * would then drift apart.+ */+ data class PlaylistState(+ val uri: String? = null,+ val name: String = "",+ val artworkUrl: String? = null,+ val tracks: List<CatalogTrack> = emptyList(),+ val loading: Boolean = false,+ val error: String? = null,+ val kind: DetailKind = DetailKind.PLAYLIST,+ /** Populated for artists only. */+ val albums: List<SearchItem> = emptyList(),+ )++ private val container get() = getApplication<SpotApplication>()++ private var inFlight: Job? = null+ private var playlistJob: Job? = null++ private val _state = MutableStateFlow<UiState>(+ if (container.tokenStore.isLoggedIn) UiState.Connecting else UiState.LoggedOut,+ )+ val state: StateFlow<UiState> = _state.asStateFlow()++ private val _playlist = MutableStateFlow(PlaylistState())+ val playlist: StateFlow<PlaylistState> = _playlist.asStateFlow()++ /** Search box contents and results. */+ data class SearchState(+ val query: String = "",+ val loading: Boolean = false,+ val results: SearchResults = SearchResults(),+ val error: String? = null,+ /**+ * False until the user has registered their own Spotify application.+ * Search cannot work without one, so the screen offers the setup instead+ * of a search box that would only ever answer 429.+ */+ val needsSetup: Boolean = false,+ )++ private val _search = MutableStateFlow(SearchState(needsSetup = !container.webApi.isReady))+ val search: StateFlow<SearchState> = _search.asStateFlow()+ private var searchJob: Job? = null++ /**+ * Runs a search, debounced.+ *+ * Firing on every keystroke would spend the Web API quota several times per+ * word, mostly on prefixes nobody wanted results for.+ */+ fun onSearchQuery(query: String) {+ val ready = container.webApi.isReady+ _search.value = _search.value.copy(query = query, needsSetup = !ready)+ searchJob?.cancel()++ if (query.isBlank() || !ready) {+ _search.value = SearchState(query = query, needsSetup = !ready)+ return+ }++ searchJob = viewModelScope.launch {+ delay(SEARCH_DEBOUNCE_MS)+ _search.value = _search.value.copy(loading = true, error = null)+ runCatching { container.api.search(query.trim()).toResults() }+ .onSuccess { results ->+ _search.value = _search.value.copy(loading = false, results = results)+ }+ .onFailure {+ android.util.Log.e(TAG, "search failed: ${chain(it)}", it)+ _search.value = _search.value.copy(loading = false, error = describe(it))+ }+ }+ }++ /** The user's own Spotify application, used for search. */+ data class WebApiState(+ val clientId: String = "",+ val connected: Boolean = false,+ val connecting: Boolean = false,+ val error: String? = null,+ /** What the user must register as a redirect URI in their dashboard. */+ val redirectUri: String = SpotifyOAuth.REDIRECT_URI,+ )++ private val _webApi = MutableStateFlow(+ WebApiState(+ clientId = container.webApi.clientId.value.orEmpty(),+ connected = container.webApi.isReady,+ ),+ )+ val webApi: StateFlow<WebApiState> = _webApi.asStateFlow()++ fun onWebApiClientIdChange(value: String) {+ _webApi.value = _webApi.value.copy(clientId = value, error = null)+ }++ /**+ * Registers the client id and runs a second OAuth flow against it.+ *+ * A separate authorization from the playback login by necessity: an access+ * token is only valid for the application it was issued to, so the Web API+ * needs its own even though it is the same Spotify account behind both.+ */+ fun connectWebApi() = viewModelScope.launch {+ val clientId = _webApi.value.clientId.trim()+ if (clientId.isEmpty()) {+ _webApi.value = _webApi.value.copy(error = "Inserisci il client id.")+ return@launch+ }++ _webApi.value = _webApi.value.copy(connecting = true, error = null)+ container.webApi.setClientId(clientId)+ runCatching {+ // No scopes: search reads public catalogue data, and asking for+ // permissions the feature does not use would put a consent screen in+ // front of the user for nothing.+ SpotifyOAuth.authorize(getApplication(), clientId = clientId, scopes = emptyList())+ }+ .onSuccess {+ container.webApi.tokens.save(it)+ _webApi.value = _webApi.value.copy(connecting = false, connected = true)+ _search.value = _search.value.copy(needsSetup = false)+ // Re-run whatever the user had already typed.+ _search.value.query.takeIf { q -> q.isNotBlank() }?.let(::onSearchQuery)+ }+ .onFailure {+ android.util.Log.e(TAG, "web api login failed: ${chain(it)}", it)+ _webApi.value = _webApi.value.copy(connecting = false, error = describe(it))+ }+ }++ fun disconnectWebApi() {+ container.webApi.disconnect()+ _webApi.value = _webApi.value.copy(connected = false, error = null)+ _search.value = _search.value.copy(needsSetup = true)+ }++ /**+ * Saved effect presets: the built-in ones followed by the user's own.+ *+ * Combined here rather than stored together so the built-ins can be changed+ * or added to in a later version without migrating what the user saved.+ */+ val effectPresets: StateFlow<List<EffectPreset>> =+ container.effectPresets.presets+ .map { BuiltInPresets + it }+ .stateIn(viewModelScope, SharingStarted.Eagerly, BuiltInPresets)++ fun saveEffectPreset(name: String, speed: Float, pitch: Float, reverb: Float) {+ container.effectPresets.save(name, speed, pitch, reverb)+ }++ fun deleteEffectPreset(id: String) = container.effectPresets.delete(id)++ /** Locally recorded listening history; see [dev.emanuele.spot.data.RecentStore]. */+ val recent: StateFlow<List<CatalogTrack>> get() = container.recentStore.tracks++ /** Called when a track starts, to keep the home page's history current. */+ fun recordPlayed(track: CatalogTrack) = viewModelScope.launch {+ container.recentStore.record(track)+ }++ init {+ if (container.tokenStore.isLoggedIn) {+ PlaybackService.connect(app)+ refresh()+ }+ }++ fun logIn() = viewModelScope.launch {+ _state.value = UiState.Loading+ runCatching { SpotifyOAuth.authorize(getApplication()) }+ .onSuccess {+ container.tokenStore.save(it)+ // The service was created before this session existed, so it has+ // to be told to authenticate the native engine now.+ PlaybackService.connect(getApplication())+ refresh()+ }+ .onFailure {+ android.util.Log.e(TAG, "login failed: ${chain(it)}", it)+ _state.value = UiState.Failed(describe(it))+ }+ }++ fun logOut() {+ container.tokenStore.clear()+ container.recentStore.clear()+ _playlist.value = PlaylistState()+ _state.value = UiState.LoggedOut+ }++ fun refresh(): Job {+ inFlight?.takeIf { it.isActive }?.let { return it }+ return launchRefresh().also { inFlight = it }+ }++ private fun launchRefresh() = viewModelScope.launch {+ if (!container.tokenStore.isLoggedIn) {+ _state.value = UiState.LoggedOut+ return@launch+ }++ _state.value = UiState.Connecting+ if (!awaitEngine()) {+ _state.value = if (container.tokenStore.isLoggedIn) {+ UiState.Failed("Impossibile connettersi a Spotify.")+ } else {+ UiState.LoggedOut+ }+ return@launch+ }++ _state.value = UiState.Loading+ runCatching { UiState.Ready(Catalog.username(), Catalog.playlists()) }+ .onSuccess { _state.value = it }+ .onFailure {+ android.util.Log.e(TAG, "library load failed: ${chain(it)}", it)+ _state.value = UiState.Failed(describe(it))+ }+ }++ /**+ * Loads a playlist's tracks.+ *+ * Reloading the playlist already shown is skipped: it is a few dozen+ * access-point round trips, and returning to a playlist from the player is+ * the common case.+ */+ fun openContext(uri: String, name: String, artworkUrl: String? = null) =+ openPlaylist(CatalogPlaylist(uri = uri, name = name, artworkUrl = artworkUrl))++ fun openPlaylist(playlist: CatalogPlaylist) {+ if (_playlist.value.uri == playlist.uri && _playlist.value.tracks.isNotEmpty()) return++ val kind = kindOf(playlist.uri)+ playlistJob?.cancel()+ val base = PlaylistState(+ uri = playlist.uri,+ name = playlist.name,+ artworkUrl = playlist.artworkUrl,+ kind = kind,+ )+ _playlist.value = base.copy(loading = true)+ playlistJob = viewModelScope.launch {+ runCatching {+ if (kind == DetailKind.ARTIST) loadArtist(playlist.uri) else loadContext(playlist.uri)+ }+ .onSuccess { loaded ->+ _playlist.value = base.copy(tracks = loaded.first, albums = loaded.second)+ }+ .onFailure {+ android.util.Log.e(TAG, "detail load failed: ${chain(it)}", it)+ _playlist.value = base.copy(error = describe(it))+ }+ }+ }++ /** Playlists and albums are both contexts the access point can resolve. */+ private suspend fun loadContext(uri: String): Pair<List<CatalogTrack>, List<SearchItem>> =+ Catalog.tracks(Catalog.contextTrackUris(uri).take(PLAYLIST_LIMIT)) to emptyList()++ /**+ * Top tracks and albums for an artist.+ *+ * Web API rather than the access point: an artist is not a playable context,+ * so there is no track list to resolve there. That also means this is the one+ * screen which cannot work until the user has registered their own+ * application, hence the explicit message rather than a raw 401.+ */+ private suspend fun loadArtist(uri: String): Pair<List<CatalogTrack>, List<SearchItem>> {+ if (!container.webApi.isReady) {+ error("Per aprire un artista serve la tua applicazione Spotify, configurala in Cerca.")+ }+ val id = uri.substringAfterLast(':')+ val tracks = container.api.artistTopTracks(id).tracks.map { it.toCatalogTrack() }+ val albums = container.api.artistAlbums(id).items.mapNotNull { album ->+ SearchItem(+ uri = album.uri ?: return@mapNotNull null,+ title = album.name,+ subtitle = album.releaseDate?.take(4).orEmpty(),+ artworkUrl = album.images.firstOrNull()?.url,+ )+ }+ return tracks to albums+ }++ private fun kindOf(uri: String): DetailKind = when {+ uri.startsWith("spotify:artist:") -> DetailKind.ARTIST+ uri.startsWith("spotify:album:") -> DetailKind.ALBUM+ else -> DetailKind.PLAYLIST+ }++ /**+ * Waits for the native session to finish authenticating.+ *+ * Every catalogue call fails outright without it, so polling here is what+ * stops a cold start from showing a spurious error. Polling rather than a+ * callback because readiness lives behind a JNI boolean.+ */+ private suspend fun awaitEngine(): Boolean = withTimeoutOrNull(ENGINE_TIMEOUT_MS) {+ while (!NativeBridge.isConnected) {+ // The service clears the session when Spotify rejects it. Without+ // this check the UI would sit on "connecting" for the full timeout+ // and then report a connection problem, when the real answer is+ // that the user has to log in again.+ if (!container.tokenStore.isLoggedIn) return@withTimeoutOrNull false+ delay(POLL_INTERVAL_MS)+ }+ true+ } ?: false++ /** Full `Class: message` chain, for the log. */+ private fun chain(error: Throwable): String =+ generateSequence(error, Throwable::cause)+ .joinToString(" <- ") { "${it::class.java.name}: ${it.message}" }++ /**+ * A message worth putting on screen. `Throwable.message` alone is often null+ * or an empty wrapper, which is how "unknown error" screens happen.+ */+ private fun describe(error: Throwable): String {+ val parts = generateSequence(error, Throwable::cause)+ .mapNotNull { it.message?.takeIf(String::isNotBlank) }+ .toList()+ return parts.firstOrNull() ?: error::class.java.simpleName+ }++ private companion object {+ const val TAG = "SpotUi"+ const val ENGINE_TIMEOUT_MS = 30_000L+ const val POLL_INTERVAL_MS = 250L++ /** Each track is its own access-point round trip. */+ const val PLAYLIST_LIMIT = 100++ const val SEARCH_DEBOUNCE_MS = 350L+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/SpotApp.kt b/app/src/main/java/dev/emanuele/spot/ui/SpotApp.ktnew file mode 100644index 0000000..1b45f57--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/SpotApp.kt@@ -0,0 +1,587 @@+package dev.emanuele.spot.ui++import androidx.compose.animation.slideInVertically+import androidx.compose.animation.slideOutVertically+import androidx.compose.foundation.background+import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.PaddingValues+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.Spacer+import androidx.compose.foundation.layout.WindowInsets+import androidx.compose.foundation.layout.asPaddingValues+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.navigationBars+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.layout.statusBars+import androidx.compose.foundation.layout.width+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.material.icons.Icons+import androidx.compose.material.icons.filled.Home+import androidx.compose.material.icons.filled.LibraryMusic+import androidx.compose.material.icons.filled.Search+import androidx.compose.material.icons.outlined.Home+import androidx.compose.material.icons.outlined.LibraryMusic+import androidx.compose.material.icons.outlined.Search+import androidx.compose.material3.Icon+import androidx.compose.material3.LocalContentColor+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.runtime.CompositionLocalProvider+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.rememberUpdatedState+import androidx.compose.runtime.setValue+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.blur+import androidx.compose.ui.draw.clip+import androidx.compose.ui.graphics.Brush+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.vector.ImageVector+import androidx.compose.ui.layout.ContentScale+import androidx.compose.ui.text.font.FontWeight+import androidx.compose.ui.unit.Dp+import androidx.compose.ui.unit.dp+import androidx.lifecycle.compose.collectAsStateWithLifecycle+import androidx.lifecycle.viewmodel.compose.viewModel+import androidx.media3.common.PlaybackParameters+import androidx.media3.common.Player+import androidx.media3.common.util.UnstableApi+import androidx.navigation.NavHostController+import androidx.navigation.compose.NavHost+import androidx.navigation.compose.composable+import androidx.navigation.compose.currentBackStackEntryAsState+import androidx.navigation.compose.rememberNavController+import coil.compose.AsyncImage+import com.kyant.backdrop.Backdrop+import com.kyant.backdrop.backdrops.layerBackdrop+import com.kyant.backdrop.backdrops.rememberLayerBackdrop+import dev.emanuele.spot.data.CanvasClip+import dev.emanuele.spot.data.Catalog+import dev.emanuele.spot.data.CatalogPlaylist+import dev.emanuele.spot.data.CatalogTrack+import dev.emanuele.spot.data.Lyrics+import dev.emanuele.spot.playback.AudioEffects+import dev.emanuele.spot.ui.glass.LiquidBottomTabs+import dev.emanuele.spot.ui.glass.LiquidButton+import dev.emanuele.spot.ui.home.HomeScreen+import dev.emanuele.spot.ui.library.LibraryScreen+import dev.emanuele.spot.ui.library.PlaylistScreen+import dev.emanuele.spot.ui.player.MiniPlayer+import dev.emanuele.spot.ui.player.MiniPlayerHeight+import dev.emanuele.spot.ui.player.PlayerScreen+import dev.emanuele.spot.ui.player.progressOf+import dev.emanuele.spot.ui.player.rememberPlaybackState+import dev.emanuele.spot.ui.player.rememberPositionMs+import dev.emanuele.spot.ui.player.rememberQueue+import dev.emanuele.spot.ui.search.SearchScreen+import dev.emanuele.spot.ui.theme.Ink+import dev.emanuele.spot.ui.theme.SpotTheme+import dev.emanuele.spot.ui.theme.rememberArtworkColor++object Routes {+ const val HOME = "home"+ const val SEARCH = "search"+ const val LIBRARY = "library"+ const val PLAYLIST = "playlist"+ const val PLAYER = "player"+}++private val BottomBarHeight = 62.dp++@UnstableApi+@Composable+fun SpotApp(+ player: Player?,+ onPlay: (List<CatalogTrack>, Int) -> Unit,+ /** Appends one track to the end of the queue; see the swipe gesture on rows. */+ onEnqueue: (CatalogTrack) -> Unit,+ viewModel: MainViewModel = viewModel(),+) {+ val state by viewModel.state.collectAsStateWithLifecycle()+ val playlist by viewModel.playlist.collectAsStateWithLifecycle()+ val playback by rememberPlaybackState(player)+ // Held as State, not read here: reading the position at this level would+ // recompose the whole app — lists included — several times a second.+ val positionMs = rememberPositionMs(player, playback.isPlaying)+ val queue by rememberQueue(player)+ val accent by rememberArtworkColor(playback.artworkUrl)+ val recent by viewModel.recent.collectAsStateWithLifecycle()+ val search by viewModel.search.collectAsStateWithLifecycle()+ val webApi by viewModel.webApi.collectAsStateWithLifecycle()+ val reverb by AudioEffects.reverb.collectAsStateWithLifecycle()+ val presets by viewModel.effectPresets.collectAsStateWithLifecycle()+ // Two layers, and the split is not optional.+ //+ // `pageBackdrop` records the artwork *and* the screen on top of it, and is+ // what the floating bars refract — that is how the list underneath shows+ // through them. Those bars therefore have to be drawn outside it: a layer+ // that contains something which draws that same layer recurses until the+ // render thread's stack runs out, which is exactly the SIGSEGV this caused.+ //+ // `artBackdrop` records only the blurred artwork, and is what glass *inside*+ // a screen uses — the playlist buttons, the search button — for the same+ // reason: they cannot sample a layer they are part of.+ val artBackdrop = rememberLayerBackdrop()+ val pageBackdrop = rememberLayerBackdrop()++ // Recorded here rather than at the tap: this fires for auto-advance and for+ // controls outside the app too, so the history matches what was actually+ // heard instead of only what was tapped.+ LaunchedEffect(playback.mediaId) {+ val uri = playback.mediaId ?: return@LaunchedEffect+ viewModel.recordPlayed(+ CatalogTrack(+ uri = uri,+ name = playback.title,+ artist = playback.artist,+ durationMs = playback.durationMs,+ artworkUrl = playback.artworkUrl,+ ),+ )+ }++ var canvas by remember { mutableStateOf<CanvasClip?>(null) }++ // Fetched per track, like the lyrics. Most tracks have none, so a null is an+ // ordinary answer and the player falls back to the cover.+ LaunchedEffect(playback.mediaId) {+ val uri = playback.mediaId+ canvas = null+ if (uri != null) canvas = Catalog.canvas(uri)+ }++ var lyrics by remember { mutableStateOf<Lyrics?>(null) }+ var lyricsLoading by remember { mutableStateOf(false) }++ // Fetched per track. Most of the catalogue has none, so a null result is an+ // ordinary answer that shows an empty state rather than an error.+ LaunchedEffect(playback.mediaId) {+ val uri = playback.mediaId+ lyrics = null+ if (uri == null) return@LaunchedEffect+ lyricsLoading = true+ lyrics = runCatching { Catalog.lyrics(uri) }.getOrNull()+ lyricsLoading = false+ }++ SpotTheme(seed = accent) {+ // Material's default content colour is black, and it used to arrive from+ // the Surface that wrapped this tree. That Surface is gone — it painted+ // an opaque page over the backdrop — so the colour has to be provided+ // here, or every Text that does not set one explicitly stays black on+ // the darkened artwork.+ CompositionLocalProvider(LocalContentColor provides Ink) {+ Box(Modifier.fillMaxSize()) {+ val navController = rememberNavController()+ val currentEntry by navController.currentBackStackEntryAsState()+ val route = currentEntry?.destination?.route+ val onPlayer = route == Routes.PLAYER++ val statusBar = WindowInsets.statusBars.asPaddingValues().calculateTopPadding()+ val navBar = WindowInsets.navigationBars.asPaddingValues().calculateBottomPadding()++ // Lists end above the bottom bar and the mini player rather than+ // scrolling behind them.+ val listPadding = PaddingValues(+ top = statusBar,+ bottom = navBar + BottomBarHeight ++ if (playback.hasItem) MiniPlayerHeight else 0.dp,+ )++ // The screens are recorded into the backdrop layer along with+ // the artwork behind them, and the bars that float over them are+ // not.+ //+ // That split is the whole point. Recording only the artwork —+ // which is what this did at first — meant the mini player and+ // the tab bar refracted a blurred cover no matter what was+ // actually beneath them, so they looked like frosted panels+ // rather than like glass: nothing of the list underneath ever+ // showed through.+ Box(+ Modifier+ .fillMaxSize()+ .layerBackdrop(pageBackdrop),+ ) {+ Box(+ Modifier+ .fillMaxSize()+ .layerBackdrop(artBackdrop),+ ) {+ AppBackdrop(playback.artworkUrl)+ }++ NavHost(navController, startDestination = Routes.HOME) {+ composable(Routes.HOME) {+ HomeScreen(+ state = state,+ playback = playback,+ contentPadding = listPadding,+ onLogIn = viewModel::logIn,+ onRetry = { viewModel.refresh() },+ onLogOut = viewModel::logOut,+ onOpenPlaylist = { navController.openPlaylist(viewModel, it) },+ onOpenPlayer = { navController.navigate(Routes.PLAYER) },+ recent = recent,+ onPlayRecent = onPlay,+ )+ }++ composable(Routes.SEARCH) {+ SearchScreen(+ state = search,+ webApi = webApi,+ contentPadding = listPadding,+ nowPlayingUri = playback.mediaId,+ onQueryChange = viewModel::onSearchQuery,+ onClientIdChange = viewModel::onWebApiClientIdChange,+ onConnectWebApi = { viewModel.connectWebApi() },+ onPlayTrack = onPlay,+ onEnqueue = onEnqueue,+ onOpenContext = { item ->+ viewModel.openContext(item.uri, item.title, item.artworkUrl)+ navController.navigate(Routes.PLAYLIST)+ },+ backdrop = artBackdrop,+ )+ }++ composable(Routes.LIBRARY) {+ LibraryScreen(+ state = state,+ contentPadding = listPadding,+ onLogIn = viewModel::logIn,+ onRetry = { viewModel.refresh() },+ onLogOut = viewModel::logOut,+ onOpenPlaylist = { navController.openPlaylist(viewModel, it) },+ )+ }++ composable(Routes.PLAYLIST) {+ // Re-seeded from the open playlist, album or artist.+ // The rest of the app is themed after whatever is+ // playing, which is right for the home page and+ // wrong here: an album page tinted by an unrelated+ // track reads as belonging to something else.+ val detailAccent by rememberArtworkColor(playlist.artworkUrl)+ SpotTheme(seed = detailAccent) {+ PlaylistScreen(+ state = playlist,+ contentPadding = listPadding,+ nowPlayingUri = playback.mediaId,+ onBack = { navController.popBackStack() },+ onPlay = onPlay,+ onEnqueue = onEnqueue,+ onShuffle = { tracks ->+ // Order does not matter: the player+ // treats shuffle as a mode and stamps it+ // onto whatever queue arrives next.+ player?.shuffleModeEnabled = true+ onPlay(tracks, 0)+ },+ backdrop = artBackdrop,+ onOpenItem = { item ->+ viewModel.openContext(+ item.uri,+ item.title,+ item.artworkUrl,+ )+ },+ )+ }+ }++ composable(+ Routes.PLAYER,+ // Rises from the bottom, like the bar it grew out of.+ enterTransition = { slideInVertically { it } },+ exitTransition = { slideOutVertically { it } },+ popEnterTransition = { slideInVertically { it } },+ popExitTransition = { slideOutVertically { it } },+ ) {+ PlayerScreen(+ state = playback,+ positionMs = positionMs,+ onCollapse = { navController.popBackStack() },+ onTogglePlay = { player?.togglePlay() },+ onNext = { player?.seekToNextMediaItem() },+ onPrevious = { player?.seekToPreviousMediaItem() },+ onSeek = { player?.seekTo(it) },+ onToggleShuffle = {+ player?.let { it.shuffleModeEnabled = !it.shuffleModeEnabled }+ },+ onCycleRepeat = { player?.cycleRepeatMode() },+ queue = queue,+ lyrics = lyrics,+ lyricsLoading = lyricsLoading,+ onPlayQueueItem = { player?.seekTo(it, 0L) },+ reverb = reverb,+ // Speed and pitch are set as a pair because+ // PlaybackParameters carries both; changing one+ // has to carry the other through unchanged.+ onSpeed = {+ player?.playbackParameters =+ PlaybackParameters(it, playback.pitch)+ },+ onPitch = {+ player?.playbackParameters =+ PlaybackParameters(playback.speed, it)+ },+ onReverb = AudioEffects::setReverb,+ presets = presets,+ onApplyPreset = { preset ->+ player?.playbackParameters =+ PlaybackParameters(preset.speed, preset.pitch)+ AudioEffects.setReverb(preset.reverb)+ },+ onSavePreset = {+ viewModel.saveEffectPreset(+ it,+ playback.speed,+ playback.pitch,+ reverb,+ )+ },+ onDeletePreset = viewModel::deleteEffectPreset,+ backdrop = artBackdrop,+ canvas = canvas,+ )+ }+ }+ }++ // Outside the recorded layer, and that is structural rather than+ // stylistic: these refract `pageBackdrop`, and a pane drawn+ // inside the layer it samples recurses on the render thread+ // until the process dies.+ //+ // Both survive navigation, and both step aside on the full+ // player, which already carries the same controls.+ if (!onPlayer) {+ Column(+ Modifier+ .align(Alignment.BottomCenter)+ .fillMaxWidth(),+ ) {+ if (playback.hasItem) {+ MiniPlayer(+ state = playback,+ progress = { progressOf(positionMs.value, playback.durationMs) },+ backdrop = pageBackdrop,+ modifier = Modifier.padding(horizontal = 16.dp),+ onExpand = { navController.navigate(Routes.PLAYER) },+ onTogglePlay = { player?.togglePlay() },+ onNext = { player?.seekToNextMediaItem() },+ )+ }+ BottomBar(+ route = route,+ bottomInset = navBar,+ backdrop = pageBackdrop,+ onSelect = navController::switchTab,+ )+ }+ }+ }+ }+ }+}++/**+ * The blurred artwork every screen sits on.+ *+ * Blurred here rather than by the backdrop library: this is the *page*+ * background, not a glass pane, and it has to be soft even where no glass is+ * drawn over it. The scrim on top is what keeps text legible over a bright+ * cover — the palette is built for a dark page.+ */+@Composable+private fun AppBackdrop(artworkUrl: String?) {+ Box(+ Modifier+ .fillMaxSize()+ .background(Color(0xFF0A0A0C)),+ ) {+ if (artworkUrl != null) {+ AsyncImage(+ model = artworkUrl,+ contentDescription = null,+ contentScale = ContentScale.Crop,+ modifier = Modifier+ .fillMaxSize()+ // Well past the point where the cover is recognisable: this+ // is meant to read as light coming off the artwork, not as+ // an out-of-focus photograph.+ .blur(80.dp),+ )+ }++ Box(+ Modifier+ .fillMaxSize()+ .background(+ Brush.verticalGradient(+ 0f to Color.Black.copy(alpha = 0.45f),+ 0.5f to Color.Black.copy(alpha = 0.60f),+ 1f to Color.Black.copy(alpha = 0.78f),+ ),+ ),+ )+ }+}++@Composable+private fun BottomBar(+ route: String?,+ bottomInset: Dp,+ backdrop: Backdrop,+ onSelect: (String) -> Unit,+) {+ // Search sits outside the capsule as its own round button, the way the+ // reference has it: it is a different kind of destination — you go there to+ // do something and come back — and giving it the same weight as Home and+ // Library made all three read as places.+ val routes = remember { listOf(Routes.HOME, Routes.LIBRARY) }+ // Falls back to Home rather than -1 while on a screen that is not a tab —+ // the playlist detail, say — so the indicator has somewhere to sit.+ val selected = routes.indexOf(route).coerceAtLeast(0)++ // A *stable* lambda, deliberately. LiquidBottomTabs keys its internal state+ // on this reference, so a fresh closure on every recomposition threw that+ // state away and the indicator arrived at the new tab without ever+ // animating — which is exactly the bug where tapping snapped and only+ // dragging moved.+ val selectedState = rememberUpdatedState(selected)+ val selectedTabIndex = remember { { selectedState.value } }++ Row(+ Modifier+ .fillMaxWidth()+ .padding(horizontal = 16.dp)+ .padding(bottom = bottomInset + 8.dp, top = 4.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ LiquidBottomTabs(+ selectedTabIndex = selectedTabIndex,+ onTabSelected = { onSelect(routes[it]) },+ backdrop = backdrop,+ tabsCount = routes.size,+ modifier = Modifier.weight(1f),+ ) {+ BottomItem("Home", Icons.Filled.Home, Icons.Outlined.Home, selected == 0) {+ onSelect(Routes.HOME)+ }+ BottomItem(+ "Libreria",+ Icons.Filled.LibraryMusic,+ Icons.Outlined.LibraryMusic,+ selected == 1,+ ) { onSelect(Routes.LIBRARY) }+ }++ Spacer(Modifier.width(10.dp))++ val searching = route == Routes.SEARCH+ LiquidButton(+ onClick = { onSelect(Routes.SEARCH) },+ backdrop = backdrop,+ tint = if (searching) MaterialTheme.colorScheme.primary else Color.Unspecified,+ modifier = Modifier.size(64.dp),+ contentHeight = 64.dp,+ contentPadding = 0.dp,+ blurRadius = 8.dp,+ ) {+ Icon(+ imageVector = if (searching) Icons.Filled.Search else Icons.Outlined.Search,+ contentDescription = "Cerca",+ tint = Ink,+ modifier = Modifier.size(24.dp),+ )+ }+ }+}++/**+ * Selected tabs switch to the filled icon as well as to ink.+ *+ * Weight carries the selection, not just colour: the difference between a+ * filled and an outlined glyph survives at a glance and for anyone who cannot+ * separate the two tints.+ */+@Composable+private fun BottomItem(+ label: String,+ filled: ImageVector,+ outlined: ImageVector,+ selected: Boolean,+ onClick: () -> Unit,+) {+ // Fixed ink rather than the artwork accent. Tinting the label after the+ // playing track put an arbitrary colour on the one control that has to stay+ // readable, and some of those colours have almost no contrast against the+ // glass.+ val tint = if (selected) Ink else Ink.copy(alpha = 0.62f)+ Column(+ Modifier+ .clip(RoundedCornerShape(14.dp))+ .clickable(onClick = onClick)+ .padding(horizontal = 22.dp, vertical = 4.dp),+ horizontalAlignment = Alignment.CenterHorizontally,+ ) {+ Icon(+ imageVector = if (selected) filled else outlined,+ contentDescription = label,+ tint = tint,+ modifier = Modifier.size(23.dp),+ )+ Text(+ label,+ style = MaterialTheme.typography.bodySmall,+ fontWeight = if (selected) FontWeight.SemiBold else FontWeight.Normal,+ color = tint,+ modifier = Modifier.padding(top = 3.dp),+ )+ }+}++/** Loads the playlist and shows it, from whichever tab asked. */+private fun NavHostController.openPlaylist(viewModel: MainViewModel, playlist: CatalogPlaylist) {+ viewModel.openPlaylist(playlist)+ navigate(Routes.PLAYLIST)+}++/**+ * Switches tab without stacking destinations.+ *+ * Without popping back to the start, tapping between tabs would grow the back+ * stack forever and the system back button would walk the entire history.+ */+private fun NavHostController.switchTab(route: String) {+ if (currentDestination?.route == route) return+ navigate(route) {+ popUpTo(Routes.HOME) { saveState = true }+ launchSingleTop = true+ restoreState = true+ }+}++private fun Player.togglePlay() {+ if (isPlaying) pause() else play()+}++/** off → all → one → off, the order every player uses. */+private fun Player.cycleRepeatMode() {+ repeatMode = when (repeatMode) {+ Player.REPEAT_MODE_OFF -> Player.REPEAT_MODE_ALL+ Player.REPEAT_MODE_ALL -> Player.REPEAT_MODE_ONE+ else -> Player.REPEAT_MODE_OFF+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/components/Artwork.kt b/app/src/main/java/dev/emanuele/spot/ui/components/Artwork.ktnew file mode 100644index 0000000..0b27f51--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/components/Artwork.kt@@ -0,0 +1,163 @@+package dev.emanuele.spot.ui.components++import androidx.compose.foundation.Canvas+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.runtime.remember+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.graphics.Brush+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.layout.ContentScale+import androidx.compose.ui.platform.LocalContext+import androidx.compose.ui.platform.LocalDensity+import androidx.compose.ui.text.style.TextAlign+import androidx.compose.ui.unit.Dp+import androidx.compose.ui.unit.dp+import coil.compose.AsyncImage+import coil.request.ImageRequest+import coil.size.Scale+import kotlin.math.absoluteValue+import kotlin.math.roundToInt++/**+ * Square artwork, falling back to a generated cover.+ *+ * The fallback is derived from the title rather than one grey placeholder: a+ * wall of identical squares makes a list unreadable, while a stable per-title+ * colour gives each row something to recognise.+ */+@Composable+fun Artwork(+ url: String?,+ title: String,+ modifier: Modifier = Modifier,+ corner: Dp = 10.dp,+ /**+ * Decode size. Covers arrive at up to 640px; decoding one of those into a+ * 48dp row costs both memory and time on the scrolling frame, and a hundred+ * rows of it is what makes a list stutter.+ */+ decodeSize: Dp = 0.dp,+) {+ val shape = remember(corner) { RoundedCornerShape(corner) }+ val context = LocalContext.current+ val density = LocalDensity.current++ Box(modifier.clip(shape), contentAlignment = Alignment.Center) {+ if (url != null) {+ val request = remember(url, decodeSize) {+ ImageRequest.Builder(context)+ .data(url)+ .scale(Scale.FILL)+ .apply {+ if (decodeSize > 0.dp) {+ val px = with(density) { decodeSize.toPx() }.roundToInt()+ size(px, px)+ }+ }+ // No crossfade: it animates every row that scrolls into view,+ // which is exactly when frames are scarcest.+ .crossfade(false)+ .build()+ }++ AsyncImage(+ model = request,+ contentDescription = null,+ contentScale = ContentScale.Crop,+ modifier = Modifier.fillMaxSize(),+ )+ } else {+ GeneratedCover(title, corner)+ }+ }+}++/**+ * The cover for something that has none.+ *+ * The previous version picked a saturated hue per title. It did make rows+ * distinguishable, but it put a random colour next to real album art in a+ * palette that is otherwise neutral, so the placeholders were the loudest thing+ * on a screen despite being the least important. This keeps the same idea —+ * stable and different per title — and spends it on tone and geometry instead:+ * a dark neutral gradient whose angle and lightness come from the title, one+ * soft off-centre highlight, and the initial set large and dimmed so it reads as+ * texture rather than as a label.+ */+@Composable+private fun GeneratedCover(title: String, corner: Dp) {+ val seed = remember(title) { title.hashCode().absoluteValue }+ val initial = remember(title) {+ title.trim().firstOrNull { it.isLetterOrDigit() }?.uppercase() ?: "♪"+ }++ Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {+ Canvas(Modifier.fillMaxSize()) {+ // Four fixed diagonals rather than a free angle: a gradient that can+ // land at any rotation makes a grid of these look accidental.+ val direction = seed % 4+ val start = when (direction) {+ 0 -> Offset(0f, 0f)+ 1 -> Offset(size.width, 0f)+ 2 -> Offset(0f, size.height)+ else -> Offset(size.width, size.height)+ }+ val end = Offset(size.width - start.x, size.height - start.y)++ // Narrow range: these have to sit together in a row without one+ // looking like a hole and the next like a light box.+ val lightness = 0.16f + (seed / 4 % 5) * 0.035f++ drawRect(+ Brush.linearGradient(+ listOf(+ Color.hsl(220f, 0.06f, lightness + 0.07f),+ Color.hsl(230f, 0.08f, lightness),+ ),+ start = start,+ end = end,+ ),+ )++ // A single diffuse highlight, placed off centre so the square does+ // not read as flat fill.+ drawRect(+ Brush.radialGradient(+ listOf(Color.White.copy(alpha = 0.10f), Color.Transparent),+ center = Offset(+ size.width * (0.25f + (seed / 20 % 4) * 0.17f),+ size.height * 0.22f,+ ),+ radius = size.minDimension * 0.85f,+ ),+ )+ }++ Text(+ text = initial,+ style = MaterialTheme.typography.displayLarge,+ // Sized to the tile: the same absolute type looks like a label on a+ // large cover and fills a 46dp row edge to edge.+ fontSize = with(LocalDensity.current) { (sizeHint(corner)).toSp() },+ color = Color.White.copy(alpha = 0.20f),+ textAlign = TextAlign.Center,+ )+ }+}++/**+ * Type size for the initial, inferred from the corner radius.+ *+ * A hack, and a deliberate one: the alternative is threading a size through+ * every call site, and corner radius already scales with the tile everywhere+ * this is used.+ */+private fun sizeHint(corner: Dp): Dp = (corner * 2.6f).coerceIn(16.dp, 96.dp)diff --git a/app/src/main/java/dev/emanuele/spot/ui/components/SwipeToQueue.kt b/app/src/main/java/dev/emanuele/spot/ui/components/SwipeToQueue.ktnew file mode 100644index 0000000..9b20917--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/components/SwipeToQueue.kt@@ -0,0 +1,122 @@+package dev.emanuele.spot.ui.components++import androidx.compose.animation.core.Animatable+import androidx.compose.animation.core.tween+import androidx.compose.foundation.background+import androidx.compose.foundation.gestures.detectHorizontalDragGestures+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.material.icons.Icons+import androidx.compose.material.icons.filled.PlaylistAdd+import androidx.compose.material3.Icon+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.runtime.remember+import androidx.compose.runtime.rememberCoroutineScope+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.graphics.graphicsLayer+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.platform.LocalDensity+import androidx.compose.ui.platform.LocalHapticFeedback+import androidx.compose.ui.hapticfeedback.HapticFeedbackType+import androidx.compose.ui.unit.dp+import kotlinx.coroutines.launch+import kotlin.math.abs+import kotlin.math.roundToInt++/**+ * Wraps a row so dragging it to the left queues the track.+ *+ * A hand-rolled drag rather than Material's SwipeToDismiss: that component is+ * built around the row *leaving* the list, and here the row stays exactly where+ * it was — the gesture is a command, not a deletion. It also has to share the+ * vertical axis with a scrolling list, so only horizontal drags are consumed and+ * a mostly-vertical movement is left for the list to handle.+ *+ * The row springs back either way; the action fires once, on release, past a+ * threshold. Committing partway through the drag would fire on every+ * accidental brush of the list.+ */+@Composable+fun SwipeToQueue(+ onQueue: () -> Unit,+ modifier: Modifier = Modifier,+ content: @Composable () -> Unit,+) {+ val offset = remember { Animatable(0f) }+ val scope = rememberCoroutineScope()+ val haptics = LocalHapticFeedback.current+ val density = LocalDensity.current++ val threshold = with(density) { THRESHOLD.toPx() }+ val maximum = with(density) { MAX_DRAG.toPx() }++ Box(modifier) {+ // Revealed behind the row, and only drawn once the drag is far enough+ // to mean something — a label flickering under every scroll would be+ // noise.+ val progress = (abs(offset.value) / threshold).coerceIn(0f, 1f)+ if (progress > 0f) {+ Row(+ Modifier+ .matchParentSize()+ .padding(horizontal = 30.dp)+ .graphicsLayer { alpha = progress },+ horizontalArrangement = Arrangement.End,+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Icon(+ Icons.Filled.PlaylistAdd,+ contentDescription = null,+ tint = MaterialTheme.colorScheme.primary,+ modifier = Modifier.size(20.dp),+ )+ Text(+ "In coda",+ style = MaterialTheme.typography.labelLarge,+ color = MaterialTheme.colorScheme.primary,+ modifier = Modifier.padding(start = 8.dp),+ )+ }+ }++ Box(+ Modifier+ .fillMaxWidth()+ .graphicsLayer { translationX = offset.value }+ .background(MaterialTheme.colorScheme.background)+ .pointerInput(Unit) {+ detectHorizontalDragGestures(+ onDragEnd = {+ val commit = -offset.value >= threshold+ if (commit) {+ haptics.performHapticFeedback(HapticFeedbackType.LongPress)+ onQueue()+ }+ scope.launch { offset.animateTo(0f, tween(220)) }+ },+ onDragCancel = { scope.launch { offset.animateTo(0f, tween(220)) } },+ ) { change, dragAmount ->+ change.consume()+ // Left only, and increasingly resistant: the row can be+ // pulled clearly past the threshold but never far enough+ // to look like it is being torn out of the list.+ val next = (offset.value + dragAmount).coerceIn(-maximum, 0f)+ scope.launch { offset.snapTo(next) }+ }+ },+ ) {+ content()+ }+ }+}++private val THRESHOLD = 84.dp+private val MAX_DRAG = 132.dpdiff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/Coroutines.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/Coroutines.ktnew file mode 100644index 0000000..fd15cf3--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/Coroutines.kt@@ -0,0 +1,11 @@+// Replaces the Backdrop catalog's `expect suspend fun awaitFrame()`, which only+// compiles in a multiplatform project. This app is Android-only, so it calls the+// coroutines-android implementation the catalog's Android source set uses.+//+// From https://github.com/Kyant0/AndroidLiquidGlass (Apache-2.0);+// see LICENSE-backdrop.txt.++package dev.emanuele.spot.ui.glass++/** Suspends until the next frame is drawn. */+suspend fun awaitFrame() = kotlinx.coroutines.android.awaitFrame()diff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/DampedDragAnimation.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/DampedDragAnimation.ktnew file mode 100644index 0000000..d14e024--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/DampedDragAnimation.kt@@ -0,0 +1,147 @@+// Vendored from the Backdrop catalog app, Apache-2.0.+//+// https://github.com/Kyant0/AndroidLiquidGlass+// commit b18eb0ff12c616546a68c72e7d0097f1ab286c87+//+// These are the library author's own example components rather than part of the+// published artifact, so there is nothing to depend on — they have to be copied.+// Kept as close to upstream as possible (package line and a few Material+// swaps aside) so a later upstream fix can be diffed in; see LICENSE-backdrop.txt.++package dev.emanuele.spot.ui.glass++import androidx.compose.animation.core.Animatable+import androidx.compose.animation.core.spring+import androidx.compose.foundation.MutatorMutex+import androidx.compose.runtime.snapshotFlow+import androidx.compose.ui.Modifier+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.input.pointer.util.VelocityTracker+import androidx.compose.ui.unit.IntSize+import kotlinx.coroutines.CoroutineScope+import kotlinx.coroutines.flow.filter+import kotlinx.coroutines.flow.first+import kotlinx.coroutines.launch+import kotlin.math.abs+import kotlin.time.Clock++class DampedDragAnimation(+ private val animationScope: CoroutineScope,+ val initialValue: Float,+ val valueRange: ClosedRange<Float>,+ val visibilityThreshold: Float,+ val initialScale: Float,+ val pressedScale: Float,+ val onDragStarted: DampedDragAnimation.(position: Offset) -> Unit,+ val onDragStopped: DampedDragAnimation.() -> Unit,+ val onDrag: DampedDragAnimation.(size: IntSize, dragAmount: Offset) -> Unit,+) {++ private val valueAnimationSpec =+ spring(1f, 1000f, visibilityThreshold)+ private val velocityAnimationSpec =+ spring(0.5f, 300f, visibilityThreshold * 10f)+ private val pressProgressAnimationSpec =+ spring(1f, 1000f, 0.001f)+ private val scaleXAnimationSpec =+ spring(0.6f, 250f, 0.001f)+ private val scaleYAnimationSpec =+ spring(0.7f, 250f, 0.001f)++ private val valueAnimation =+ Animatable(initialValue, visibilityThreshold)+ private val velocityAnimation =+ Animatable(0f, 5f)+ private val pressProgressAnimation =+ Animatable(0f, 0.001f)+ private val scaleXAnimation =+ Animatable(initialScale, 0.001f)+ private val scaleYAnimation =+ Animatable(initialScale, 0.001f)++ private val mutatorMutex = MutatorMutex()++ private val velocityTracker = VelocityTracker()++ val value: Float get() = valueAnimation.value+ val progress: Float get() = (value - valueRange.start) / (valueRange.endInclusive - valueRange.start)+ val targetValue: Float get() = valueAnimation.targetValue+ val pressProgress: Float get() = pressProgressAnimation.value+ val scaleX: Float get() = scaleXAnimation.value+ val scaleY: Float get() = scaleYAnimation.value+ val velocity: Float get() = velocityAnimation.value++ val modifier: Modifier = Modifier.pointerInput(Unit) {+ inspectDragGestures(+ onDragStart = { down ->+ onDragStarted(down.position)+ press()+ },+ onDragEnd = {+ onDragStopped()+ release()+ },+ onDragCancel = {+ onDragStopped()+ release()+ }+ ) { change, dragAmount ->+ onDrag(size, dragAmount)+ }+ }++ fun press() {+ velocityTracker.resetTracking()+ animationScope.launch {+ launch { pressProgressAnimation.animateTo(1f, pressProgressAnimationSpec) }+ launch { scaleXAnimation.animateTo(pressedScale, scaleXAnimationSpec) }+ launch { scaleYAnimation.animateTo(pressedScale, scaleYAnimationSpec) }+ }+ }++ fun release() {+ animationScope.launch {+ awaitFrame()+ if (value != targetValue) {+ val threshold = (valueRange.endInclusive - valueRange.start) * 0.025f+ snapshotFlow { valueAnimation.value }+ .filter { abs(it - valueAnimation.targetValue) < threshold }+ .first()+ }+ launch { pressProgressAnimation.animateTo(0f, pressProgressAnimationSpec) }+ launch { scaleXAnimation.animateTo(initialScale, scaleXAnimationSpec) }+ launch { scaleYAnimation.animateTo(initialScale, scaleYAnimationSpec) }+ }+ }++ fun updateValue(value: Float) {+ val targetValue = value.coerceIn(valueRange)+ animationScope.launch {+ launch { valueAnimation.animateTo(targetValue, valueAnimationSpec) { updateVelocity() } }+ }+ }++ fun animateToValue(value: Float) {+ animationScope.launch {+ mutatorMutex.mutate {+ press()+ val targetValue = value.coerceIn(valueRange)+ launch { valueAnimation.animateTo(targetValue, valueAnimationSpec) }+ if (velocity != 0f) {+ launch { velocityAnimation.animateTo(0f, velocityAnimationSpec) }+ }+ release()+ }+ }+ }++ private fun updateVelocity() {+ velocityTracker.addPosition(+ Clock.System.now().toEpochMilliseconds(),+ Offset(value, 0f)+ )+ val targetVelocity = velocityTracker.calculateVelocity().x / (valueRange.endInclusive - valueRange.start)+ animationScope.launch { velocityAnimation.animateTo(targetVelocity, velocityAnimationSpec) }+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/DragGestureInspector.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/DragGestureInspector.ktnew file mode 100644index 0000000..2c64fb2--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/DragGestureInspector.kt@@ -0,0 +1,92 @@+// Vendored from the Backdrop catalog app, Apache-2.0.+//+// https://github.com/Kyant0/AndroidLiquidGlass+// commit b18eb0ff12c616546a68c72e7d0097f1ab286c87+//+// See LICENSE-backdrop.txt.++package dev.emanuele.spot.ui.glass++import androidx.compose.foundation.gestures.awaitEachGesture+import androidx.compose.foundation.gestures.awaitFirstDown+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.input.pointer.AwaitPointerEventScope+import androidx.compose.ui.input.pointer.PointerEventPass+import androidx.compose.ui.input.pointer.PointerId+import androidx.compose.ui.input.pointer.PointerInputChange+import androidx.compose.ui.input.pointer.PointerInputScope+import androidx.compose.ui.input.pointer.changedToUpIgnoreConsumed+import androidx.compose.ui.input.pointer.positionChange+import androidx.compose.ui.util.fastFirstOrNull++suspend fun PointerInputScope.inspectDragGestures(+ onDragStart: (down: PointerInputChange) -> Unit = {},+ onDragEnd: (change: PointerInputChange) -> Unit = {},+ onDragCancel: () -> Unit = {},+ onDrag: (change: PointerInputChange, dragAmount: Offset) -> Unit+) {+ awaitEachGesture {+ val initialDown = awaitFirstDown(false, PointerEventPass.Initial)++ val down = awaitFirstDown(false)+ val drag = initialDown++ onDragStart(down)+ onDrag(drag, Offset.Zero)+ val upEvent =+ drag(+ pointerId = drag.id,+ onDrag = { onDrag(it, it.positionChange()) }+ )+ if (upEvent == null) {+ onDragCancel()+ } else {+ onDragEnd(upEvent)+ }+ }+}++private suspend inline fun AwaitPointerEventScope.drag(+ pointerId: PointerId,+ onDrag: (PointerInputChange) -> Unit+): PointerInputChange? {+ val isPointerUp = currentEvent.changes.fastFirstOrNull { it.id == pointerId }?.pressed != true+ if (isPointerUp) {+ return null+ }+ var pointer = pointerId+ while (true) {+ val change = awaitDragOrUp(pointer) ?: return null+ if (change.isConsumed) {+ return null+ }+ if (change.changedToUpIgnoreConsumed()) {+ return change+ }+ onDrag(change)+ pointer = change.id+ }+}++private suspend inline fun AwaitPointerEventScope.awaitDragOrUp(+ pointerId: PointerId+): PointerInputChange? {+ var pointer = pointerId+ while (true) {+ val event = awaitPointerEvent()+ val dragEvent = event.changes.fastFirstOrNull { it.id == pointer } ?: return null+ if (dragEvent.changedToUpIgnoreConsumed()) {+ val otherDown = event.changes.fastFirstOrNull { it.pressed }+ if (otherDown == null) {+ return dragEvent+ } else {+ pointer = otherDown.id+ }+ } else {+ val hasDragged = dragEvent.previousPosition != dragEvent.position+ if (hasDragged) {+ return dragEvent+ }+ }+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/InteractiveHighlight.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/InteractiveHighlight.ktnew file mode 100644index 0000000..ce5f6c9--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/InteractiveHighlight.kt@@ -0,0 +1,131 @@+// Vendored from the Backdrop catalog app, Apache-2.0.+//+// https://github.com/Kyant0/AndroidLiquidGlass+// commit b18eb0ff12c616546a68c72e7d0097f1ab286c87+//+// These are the library author's own example components rather than part of the+// published artifact, so there is nothing to depend on — they have to be copied.+// Kept as close to upstream as possible (package line and a few Material+// swaps aside) so a later upstream fix can be diffed in; see LICENSE-backdrop.txt.++package dev.emanuele.spot.ui.glass++import androidx.compose.animation.core.Animatable+import androidx.compose.animation.core.VectorConverter+import androidx.compose.animation.core.VisibilityThreshold+import androidx.compose.animation.core.spring+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.drawWithContent+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.geometry.Size+import androidx.compose.ui.graphics.BlendMode+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.ShaderBrush+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.util.fastCoerceIn+import com.kyant.backdrop.RuntimeShader+import com.kyant.backdrop.asComposeShader+import com.kyant.backdrop.isRuntimeShaderSupported+import kotlinx.coroutines.CoroutineScope+import kotlinx.coroutines.launch++class InteractiveHighlight(+ val animationScope: CoroutineScope,+ val position: (size: Size, offset: Offset) -> Offset = { _, offset -> offset }+) {++ private val pressProgressAnimationSpec =+ spring(0.5f, 300f, 0.001f)+ private val positionAnimationSpec =+ spring(0.5f, 300f, Offset.VisibilityThreshold)++ private val pressProgressAnimation =+ Animatable(0f, 0.001f)+ private val positionAnimation =+ Animatable(Offset.Zero, Offset.VectorConverter, Offset.VisibilityThreshold)++ private var startPosition = Offset.Zero+ val pressProgress: Float get() = pressProgressAnimation.value+ val offset: Offset get() = positionAnimation.value - startPosition++ private val shader =+ if (isRuntimeShaderSupported()) {+ RuntimeShader(+ """+uniform float2 size;+layout(color) uniform half4 color;+uniform float radius;+uniform float2 position;++half4 main(float2 coord) {+ float dist = distance(coord, position);+ float intensity = smoothstep(radius, radius * 0.5, dist);+ return color * intensity;+}"""+ )+ } else {+ null+ }++ val modifier: Modifier =+ Modifier.drawWithContent {+ val progress = pressProgressAnimation.value+ if (progress > 0f) {+ if (shader != null) {+ drawRect(+ Color.White.copy(0.08f * progress),+ blendMode = BlendMode.Plus+ )+ shader.apply {+ val position = position(size, positionAnimation.value)+ setFloatUniform("size", size.width, size.height)+ setColorUniform("color", Color.White.copy(0.15f * progress))+ setFloatUniform("radius", size.minDimension * 1.5f)+ setFloatUniform(+ "position",+ position.x.fastCoerceIn(0f, size.width),+ position.y.fastCoerceIn(0f, size.height)+ )+ }+ drawRect(+ ShaderBrush(shader.asComposeShader()),+ blendMode = BlendMode.Plus+ )+ } else {+ drawRect(+ Color.White.copy(0.25f * progress),+ blendMode = BlendMode.Plus+ )+ }+ }++ drawContent()+ }++ val gestureModifier: Modifier =+ Modifier.pointerInput(animationScope) {+ inspectDragGestures(+ onDragStart = { down ->+ startPosition = down.position+ animationScope.launch {+ launch { pressProgressAnimation.animateTo(1f, pressProgressAnimationSpec) }+ launch { positionAnimation.snapTo(startPosition) }+ }+ },+ onDragEnd = {+ animationScope.launch {+ launch { pressProgressAnimation.animateTo(0f, pressProgressAnimationSpec) }+ launch { positionAnimation.animateTo(startPosition, positionAnimationSpec) }+ }+ },+ onDragCancel = {+ animationScope.launch {+ launch { pressProgressAnimation.animateTo(0f, pressProgressAnimationSpec) }+ launch { positionAnimation.animateTo(startPosition, positionAnimationSpec) }+ }+ }+ ) { change, _ ->+ animationScope.launch { positionAnimation.snapTo(change.position) }+ }+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/LICENSE-backdrop.txt b/app/src/main/java/dev/emanuele/spot/ui/glass/LICENSE-backdrop.txtnew file mode 100644index 0000000..e29d7cc--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/LICENSE-backdrop.txt@@ -0,0 +1,191 @@++ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONS++ Copyright 2025 Kyant++ Licensed under the Apache License, Version 2.0 (the "License");+ you may not use this file except in compliance with the License.+ You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.\ No newline at end of filediff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTab.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTab.ktnew file mode 100644index 0000000..3f98372--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTab.kt@@ -0,0 +1,59 @@+// Vendored from the Backdrop catalog app, Apache-2.0.+//+// https://github.com/Kyant0/AndroidLiquidGlass+// commit b18eb0ff12c616546a68c72e7d0097f1ab286c87+//+// These are the library author's own example components rather than part of the+// published artifact, so there is nothing to depend on — they have to be copied.+// Kept as close to upstream as possible (package line and a few Material+// swaps aside) so a later upstream fix can be diffed in; see LICENSE-backdrop.txt.++package dev.emanuele.spot.ui.glass++import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.ColumnScope+import androidx.compose.foundation.layout.RowScope+import androidx.compose.foundation.layout.fillMaxHeight+import androidx.compose.runtime.Composable+import androidx.compose.runtime.staticCompositionLocalOf+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.graphics.graphicsLayer+import androidx.compose.ui.semantics.Role+import androidx.compose.ui.unit.dp+import com.kyant.shapes.Capsule++internal val LocalLiquidBottomTabScale =+ staticCompositionLocalOf { { 1f } }++@Composable+fun RowScope.LiquidBottomTab(+ onClick: () -> Unit,+ modifier: Modifier = Modifier,+ content: @Composable ColumnScope.() -> Unit+) {+ val scale = LocalLiquidBottomTabScale.current+ Column(+ modifier+ .clip(Capsule())+ .clickable(+ interactionSource = null,+ indication = null,+ role = Role.Tab,+ onClick = onClick+ )+ .fillMaxHeight()+ .weight(1f)+ .graphicsLayer {+ val scale = scale()+ scaleX = scale+ scaleY = scale+ },+ verticalArrangement = Arrangement.spacedBy(2f.dp, Alignment.CenterVertically),+ horizontalAlignment = Alignment.CenterHorizontally,+ content = content+ )+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTabs.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTabs.ktnew file mode 100644index 0000000..f43a5ae--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidBottomTabs.kt@@ -0,0 +1,297 @@+// Vendored from the Backdrop catalog app, Apache-2.0.+//+// https://github.com/Kyant0/AndroidLiquidGlass+// commit b18eb0ff12c616546a68c72e7d0097f1ab286c87+//+// These are the library author's own example components rather than part of the+// published artifact, so there is nothing to depend on — they have to be copied.+// Kept as close to upstream as possible (package line and a few Material+// swaps aside) so a later upstream fix can be diffed in; see LICENSE-backdrop.txt.++package dev.emanuele.spot.ui.glass++import androidx.compose.animation.core.Animatable+import androidx.compose.animation.core.EaseOut+import androidx.compose.animation.core.spring+import androidx.compose.foundation.isSystemInDarkTheme+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.BoxWithConstraints+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.RowScope+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.runtime.Composable+import androidx.compose.runtime.CompositionLocalProvider+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.derivedStateOf+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.rememberCoroutineScope+import androidx.compose.runtime.setValue+import androidx.compose.runtime.snapshotFlow+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.alpha+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.ColorFilter+import androidx.compose.ui.graphics.graphicsLayer+import androidx.compose.ui.platform.LocalDensity+import androidx.compose.ui.platform.LocalLayoutDirection+import androidx.compose.ui.semantics.clearAndSetSemantics+import androidx.compose.ui.unit.LayoutDirection+import androidx.compose.ui.unit.dp+import androidx.compose.ui.util.fastCoerceIn+import androidx.compose.ui.util.fastRoundToInt+import androidx.compose.ui.util.lerp+import com.kyant.backdrop.Backdrop+import com.kyant.backdrop.backdrops.layerBackdrop+import com.kyant.backdrop.backdrops.rememberCombinedBackdrop+import com.kyant.backdrop.backdrops.rememberLayerBackdrop+import com.kyant.backdrop.drawBackdrop+import com.kyant.backdrop.effects.blur+import com.kyant.backdrop.effects.lens+import com.kyant.backdrop.effects.vibrancy+import com.kyant.backdrop.highlight.Highlight+import com.kyant.backdrop.shadow.InnerShadow+import com.kyant.backdrop.shadow.Shadow+import com.kyant.shapes.Capsule+import kotlinx.coroutines.flow.collectLatest+import kotlinx.coroutines.flow.drop+import kotlinx.coroutines.launch+import kotlin.math.abs+import kotlin.math.sign++@Composable+fun LiquidBottomTabs(+ selectedTabIndex: () -> Int,+ onTabSelected: (index: Int) -> Unit,+ backdrop: Backdrop,+ tabsCount: Int,+ modifier: Modifier = Modifier,+ // LOCAL CHANGE: upstream picks these from the system light/dark setting and+ // fills the capsule at 40% opacity, which made this bar read as a solid+ // white slab next to the other glass on screen. They are parameters now, and+ // this app passes a much lighter film so the bar is the same material as+ // everything else. Upstream values kept as the defaults.+ accentColor: Color = Color(0xFF0091FF),+ containerColor: Color = Color(0xFF121212).copy(0.4f),+ content: @Composable RowScope.() -> Unit+) {+ val isLightTheme = !isSystemInDarkTheme()++ val tabsBackdrop = rememberLayerBackdrop()++ BoxWithConstraints(+ modifier,+ contentAlignment = Alignment.CenterStart+ ) {+ val density = LocalDensity.current+ val tabWidth = with(density) {+ (constraints.maxWidth.toFloat() - 8f.dp.toPx()) / tabsCount+ }++ val offsetAnimation = remember { Animatable(0f) }+ val panelOffset by remember(density) {+ derivedStateOf {+ val fraction = (offsetAnimation.value / constraints.maxWidth).fastCoerceIn(-1f, 1f)+ with(density) {+ 4f.dp.toPx() * fraction.sign * EaseOut.transform(abs(fraction))+ }+ }+ }++ val isLtr = LocalLayoutDirection.current == LayoutDirection.Ltr+ val animationScope = rememberCoroutineScope()+ var currentIndex by remember(selectedTabIndex) {+ mutableIntStateOf(selectedTabIndex())+ }+ val dampedDragAnimation = remember(animationScope) {+ DampedDragAnimation(+ animationScope = animationScope,+ initialValue = selectedTabIndex().toFloat(),+ valueRange = 0f..(tabsCount - 1).toFloat(),+ visibilityThreshold = 0.001f,+ initialScale = 1f,+ pressedScale = 78f / 56f,+ onDragStarted = {},+ onDragStopped = {+ val targetIndex = targetValue.fastRoundToInt().fastCoerceIn(0, tabsCount - 1)+ currentIndex = targetIndex+ animateToValue(targetIndex.toFloat())+ animationScope.launch {+ offsetAnimation.animateTo(+ 0f,+ spring(1f, 300f, 0.5f)+ )+ }+ },+ onDrag = { _, dragAmount ->+ updateValue(+ (targetValue + dragAmount.x / tabWidth * if (isLtr) 1f else -1f)+ .fastCoerceIn(0f, (tabsCount - 1).toFloat())+ )+ animationScope.launch {+ offsetAnimation.snapTo(offsetAnimation.value + dragAmount.x)+ }+ }+ )+ }+ LaunchedEffect(selectedTabIndex) {+ snapshotFlow { selectedTabIndex() }+ .collectLatest { index ->+ currentIndex = index+ }+ }+ LaunchedEffect(dampedDragAnimation) {+ snapshotFlow { currentIndex }+ .drop(1)+ .collectLatest { index ->+ dampedDragAnimation.animateToValue(index.toFloat())+ onTabSelected(index)+ }+ }++ val interactiveHighlight = remember(animationScope) {+ InteractiveHighlight(+ animationScope = animationScope,+ position = { size, offset ->+ Offset(+ if (isLtr) (dampedDragAnimation.value + 0.5f) * tabWidth + panelOffset+ else size.width - (dampedDragAnimation.value + 0.5f) * tabWidth + panelOffset,+ size.height / 2f+ )+ }+ )+ }++ Row(+ Modifier+ .graphicsLayer {+ translationX = panelOffset+ }+ .drawBackdrop(+ backdrop = backdrop,+ shape = { Capsule() },+ effects = {+ vibrancy()+ blur(8f.dp.toPx())+ lens(24f.dp.toPx(), 24f.dp.toPx())+ },+ layerBlock = {+ val progress = dampedDragAnimation.pressProgress+ val scale = lerp(1f, 1f + 16f.dp.toPx() / size.width, progress)+ scaleX = scale+ scaleY = scale+ },+ onDrawSurface = { drawRect(containerColor) }+ )+ .then(interactiveHighlight.modifier)+ .height(64f.dp)+ .fillMaxWidth()+ .padding(4f.dp),+ verticalAlignment = Alignment.CenterVertically,+ content = content+ )++ CompositionLocalProvider(+ LocalLiquidBottomTabScale provides {+ lerp(1f, 1.2f, dampedDragAnimation.pressProgress)+ }+ ) {+ Row(+ Modifier+ .clearAndSetSemantics {}+ .alpha(0f)+ .layerBackdrop(tabsBackdrop)+ .graphicsLayer {+ translationX = panelOffset+ }+ .drawBackdrop(+ backdrop = backdrop,+ shape = { Capsule() },+ effects = {+ val progress = dampedDragAnimation.pressProgress+ vibrancy()+ blur(8f.dp.toPx())+ lens(+ 24f.dp.toPx() * progress,+ 24f.dp.toPx() * progress+ )+ },+ highlight = {+ val progress = dampedDragAnimation.pressProgress+ Highlight.Default.copy(alpha = progress)+ },+ onDrawSurface = { drawRect(containerColor) }+ )+ .then(interactiveHighlight.modifier)+ .height(56f.dp)+ .fillMaxWidth()+ .padding(horizontal = 4f.dp)+ .graphicsLayer(colorFilter = ColorFilter.tint(accentColor)),+ verticalAlignment = Alignment.CenterVertically,+ content = content+ )+ }++ Box(+ Modifier+ .padding(horizontal = 4f.dp)+ .graphicsLayer {+ translationX =+ if (isLtr) dampedDragAnimation.value * tabWidth + panelOffset+ else size.width - (dampedDragAnimation.value + 1f) * tabWidth + panelOffset+ }+ .then(interactiveHighlight.gestureModifier)+ .then(dampedDragAnimation.modifier)+ .drawBackdrop(+ backdrop = rememberCombinedBackdrop(backdrop, tabsBackdrop),+ shape = { Capsule() },+ effects = {+ val progress = dampedDragAnimation.pressProgress+ lens(+ 10f.dp.toPx() * progress,+ 14f.dp.toPx() * progress,+ chromaticAberration = true+ )+ },+ highlight = {+ val progress = dampedDragAnimation.pressProgress+ Highlight.Default.copy(alpha = progress)+ },+ shadow = {+ val progress = dampedDragAnimation.pressProgress+ Shadow(alpha = progress)+ },+ innerShadow = {+ val progress = dampedDragAnimation.pressProgress+ InnerShadow(+ radius = 8f.dp * progress,+ alpha = progress+ )+ },+ layerBlock = {+ scaleX = dampedDragAnimation.scaleX+ scaleY = dampedDragAnimation.scaleY+ val velocity = dampedDragAnimation.velocity / 10f+ scaleX /= 1f - (velocity * 0.75f).fastCoerceIn(-0.2f, 0.2f)+ scaleY *= 1f - (velocity * 0.25f).fastCoerceIn(-0.2f, 0.2f)+ },+ onDrawSurface = {+ val progress = dampedDragAnimation.pressProgress+ drawRect(+ if (isLightTheme) Color.Black.copy(0.1f)+ else Color.White.copy(0.1f),+ alpha = 1f - progress+ )+ drawRect(Color.Black.copy(alpha = 0.03f * progress))+ }+ )+ .height(56f.dp)+ .fillMaxWidth(1f / tabsCount)+ )+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidButton.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidButton.ktnew file mode 100644index 0000000..ec856cc--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidButton.kt@@ -0,0 +1,143 @@+// Vendored from the Backdrop catalog app, Apache-2.0.+//+// https://github.com/Kyant0/AndroidLiquidGlass+// commit b18eb0ff12c616546a68c72e7d0097f1ab286c87+//+// These are the library author's own example components rather than part of the+// published artifact, so there is nothing to depend on — they have to be copied.+// Kept as close to upstream as possible (package line and a few Material+// swaps aside) so a later upstream fix can be diffed in; see LICENSE-backdrop.txt.++package dev.emanuele.spot.ui.glass++import androidx.compose.foundation.LocalIndication+import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.RowScope+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.runtime.Composable+import androidx.compose.runtime.remember+import androidx.compose.runtime.rememberCoroutineScope+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.graphics.BlendMode+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.isSpecified+import androidx.compose.ui.semantics.Role+import androidx.compose.ui.unit.Dp+import androidx.compose.ui.unit.dp+import androidx.compose.ui.util.fastCoerceAtMost+import androidx.compose.ui.util.lerp+import com.kyant.backdrop.Backdrop+import com.kyant.backdrop.drawBackdrop+import com.kyant.backdrop.effects.blur+import com.kyant.backdrop.effects.lens+import com.kyant.backdrop.effects.vibrancy+import com.kyant.shapes.Capsule+import kotlin.math.abs+import kotlin.math.atan2+import kotlin.math.cos+import kotlin.math.sin+import kotlin.math.tanh++@Composable+fun LiquidButton(+ onClick: () -> Unit,+ backdrop: Backdrop,+ modifier: Modifier = Modifier,+ isInteractive: Boolean = true,+ tint: Color = Color.Unspecified,+ surfaceColor: Color = Color.Unspecified,+ // LOCAL CHANGE: upstream pins the height at 48dp and the horizontal padding+ // at 16dp, which silently overrode any size the caller asked for — a 62dp+ // round button came out 48 tall with its icon squeezed by the padding. Both+ // are parameters now, with the upstream values as defaults.+ contentHeight: Dp = 48f.dp,+ contentPadding: Dp = 16f.dp,+ // LOCAL CHANGE: upstream frosts these by 2dp, which is nearly clear. Next to+ // LiquidBottomTabs — 8dp — the two read as different materials: the bar looks+ // frosted and the buttons look like bare refraction. A parameter rather than+ // a new default so the upstream value is still what you get by not asking.+ blurRadius: Dp = 2f.dp,+ content: @Composable RowScope.() -> Unit+) {+ val animationScope = rememberCoroutineScope()++ val interactiveHighlight = remember(animationScope) {+ InteractiveHighlight(+ animationScope = animationScope+ )+ }++ Row(+ modifier+ .drawBackdrop(+ backdrop = backdrop,+ shape = { Capsule() },+ effects = {+ vibrancy()+ blur(blurRadius.toPx())+ lens(12f.dp.toPx(), 24f.dp.toPx())+ },+ layerBlock = if (isInteractive) {+ {+ val width = size.width+ val height = size.height++ val progress = interactiveHighlight.pressProgress+ val scale = lerp(1f, 1f + 4f.dp.toPx() / size.height, progress)++ val maxOffset = size.minDimension+ val initialDerivative = 0.05f+ val offset = interactiveHighlight.offset+ translationX = maxOffset * tanh(initialDerivative * offset.x / maxOffset)+ translationY = maxOffset * tanh(initialDerivative * offset.y / maxOffset)++ val maxDragScale = 4f.dp.toPx() / size.height+ val offsetAngle = atan2(offset.y, offset.x)+ scaleX =+ scale ++ maxDragScale * abs(cos(offsetAngle) * offset.x / size.maxDimension) *+ (width / height).fastCoerceAtMost(1f)+ scaleY =+ scale ++ maxDragScale * abs(sin(offsetAngle) * offset.y / size.maxDimension) *+ (height / width).fastCoerceAtMost(1f)+ }+ } else {+ null+ },+ onDrawSurface = {+ if (tint.isSpecified) {+ drawRect(tint, blendMode = BlendMode.Hue)+ drawRect(tint.copy(alpha = 0.75f))+ }+ if (surfaceColor.isSpecified) {+ drawRect(surfaceColor)+ }+ }+ )+ .clickable(+ interactionSource = null,+ indication = if (isInteractive) null else LocalIndication.current,+ role = Role.Button,+ onClick = onClick+ )+ .then(+ if (isInteractive) {+ Modifier+ .then(interactiveHighlight.modifier)+ .then(interactiveHighlight.gestureModifier)+ } else {+ Modifier+ }+ )+ .height(contentHeight)+ .padding(horizontal = contentPadding),+ horizontalArrangement = Arrangement.spacedBy(8f.dp, Alignment.CenterHorizontally),+ verticalAlignment = Alignment.CenterVertically,+ content = content+ )+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidSlider.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidSlider.ktnew file mode 100644index 0000000..c173f28--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidSlider.kt@@ -0,0 +1,255 @@+// Vendored from the Backdrop catalog app, Apache-2.0.+//+// https://github.com/Kyant0/AndroidLiquidGlass+// commit b18eb0ff12c616546a68c72e7d0097f1ab286c87+//+// These are the library author's own example components rather than part of the+// published artifact, so there is nothing to depend on — they have to be copied.+// Kept as close to upstream as possible (package line and a few Material+// swaps aside) so a later upstream fix can be diffed in; see LICENSE-backdrop.txt.++package dev.emanuele.spot.ui.glass++import androidx.compose.foundation.background+import androidx.compose.foundation.gestures.detectHorizontalDragGestures+import androidx.compose.foundation.gestures.detectTapGestures+import androidx.compose.foundation.isSystemInDarkTheme+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.BoxWithConstraints+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.size+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.rememberCoroutineScope+import androidx.compose.runtime.setValue+import androidx.compose.runtime.snapshotFlow+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.drawscope.scale+import androidx.compose.ui.graphics.graphicsLayer+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.layout.layout+import androidx.compose.ui.zIndex+import androidx.compose.ui.platform.LocalLayoutDirection+import androidx.compose.ui.unit.LayoutDirection+import androidx.compose.ui.unit.dp+import androidx.compose.ui.util.fastCoerceIn+import androidx.compose.ui.util.fastRoundToInt+import androidx.compose.ui.util.lerp+import com.kyant.backdrop.Backdrop+import com.kyant.backdrop.backdrops.layerBackdrop+import com.kyant.backdrop.backdrops.rememberBackdrop+import com.kyant.backdrop.backdrops.rememberCombinedBackdrop+import com.kyant.backdrop.backdrops.rememberLayerBackdrop+import com.kyant.backdrop.drawBackdrop+import com.kyant.backdrop.effects.blur+import com.kyant.backdrop.effects.lens+import com.kyant.backdrop.highlight.Highlight+import com.kyant.backdrop.shadow.InnerShadow+import com.kyant.backdrop.shadow.Shadow+import com.kyant.shapes.Capsule+import kotlinx.coroutines.flow.collectLatest++@Composable+fun LiquidSlider(+ value: () -> Float,+ onValueChange: (Float) -> Unit,+ valueRange: ClosedFloatingPointRange<Float>,+ visibilityThreshold: Float,+ backdrop: Backdrop,+ modifier: Modifier = Modifier,+ // LOCAL CHANGE: upstream hardcodes an iOS blue. This app tints from the+ // current cover, so the colours are parameters with the upstream values as+ // defaults.+ accentColor: Color = Color(0xFF0091FF),+ trackColor: Color = Color(0xFF787880).copy(0.36f)+) {++ val trackBackdrop = rememberLayerBackdrop()++ BoxWithConstraints(+ modifier.fillMaxWidth(),+ contentAlignment = Alignment.CenterStart+ ) {+ val trackWidth = constraints.maxWidth++ val isLtr = LocalLayoutDirection.current == LayoutDirection.Ltr+ val animationScope = rememberCoroutineScope()+ var didDrag by remember { mutableStateOf(false) }+ val dampedDragAnimation = remember(animationScope) {+ DampedDragAnimation(+ animationScope = animationScope,+ initialValue = value(),+ valueRange = valueRange,+ visibilityThreshold = visibilityThreshold,+ initialScale = 1f,+ pressedScale = 1.5f,+ onDragStarted = {},+ onDragStopped = {+ if (didDrag) {+ onValueChange(targetValue)+ }+ },+ onDrag = { _, dragAmount ->+ if (!didDrag) {+ didDrag = dragAmount.x != 0f+ }+ val delta = (valueRange.endInclusive - valueRange.start) * (dragAmount.x / trackWidth)+ onValueChange(+ if (isLtr) (targetValue + delta).coerceIn(valueRange)+ else (targetValue - delta).coerceIn(valueRange)+ )+ }+ )+ }+ LaunchedEffect(dampedDragAnimation) {+ snapshotFlow { value() }+ .collectLatest { value ->+ if (dampedDragAnimation.targetValue != value) {+ dampedDragAnimation.updateValue(value)+ }+ }+ }++ // LOCAL CHANGE, not upstream: one drag handler over the whole slider.+ //+ // Upstream drags only from the thumb, and its detector never consumes+ // the pointer, so in this app a press that landed on the thumb was+ // picked up by nothing and the thumb sat still — while a press on the+ // bare track worked. One handler on the root, mapping the finger's+ // absolute position and consuming, removes the distinction: grabbing+ // anywhere jumps there and then tracks, thumb included.+ Box(+ Modifier+ .matchParentSize()+ .pointerInput(animationScope, trackWidth) {+ fun seekTo(x: Float) {+ val delta =+ (valueRange.endInclusive - valueRange.start) * (x / trackWidth)+ val target =+ (if (isLtr) valueRange.start + delta+ else valueRange.endInclusive - delta)+ .coerceIn(valueRange)+ dampedDragAnimation.updateValue(target)+ onValueChange(target)+ }+ detectHorizontalDragGestures(+ onDragStart = { offset -> seekTo(offset.x) },+ ) { change, _ ->+ change.consume()+ seekTo(change.position.x)+ }+ }+ // Drawn above the thumb so it sees the press first, but with no+ // content of its own.+ .zIndex(1f),+ )++ Box(Modifier.layerBackdrop(trackBackdrop)) {+ Box(+ Modifier+ .clip(Capsule())+ .background(trackColor)+ .pointerInput(animationScope) {+ detectTapGestures { position ->+ val delta = (valueRange.endInclusive - valueRange.start) * (position.x / trackWidth)+ val targetValue =+ (if (isLtr) valueRange.start + delta+ else valueRange.endInclusive - delta)+ .coerceIn(valueRange)+ dampedDragAnimation.animateToValue(targetValue)+ onValueChange(targetValue)+ }+ }+ .height(6f.dp)+ .fillMaxWidth()+ )++ Box(+ Modifier+ .clip(Capsule())+ .background(accentColor)+ .height(6f.dp)+ .layout { measurable, constraints ->+ val placeable = measurable.measure(constraints)+ val width = (constraints.maxWidth * dampedDragAnimation.progress).fastRoundToInt()+ layout(width, placeable.height) {+ placeable.place(0, 0)+ }+ }+ )+ }++ Box(+ Modifier+ .graphicsLayer {+ translationX =+ (-size.width / 2f + trackWidth * dampedDragAnimation.progress)+ .fastCoerceIn(-size.width / 4f, trackWidth - size.width * 3f / 4f) * if (isLtr) 1f else -1f+ }+ .then(dampedDragAnimation.modifier)+ .drawBackdrop(+ backdrop = rememberCombinedBackdrop(+ backdrop,+ rememberBackdrop(trackBackdrop) { drawBackdrop ->+ val progress = dampedDragAnimation.pressProgress+ val scaleX = lerp(2f / 3f, 1f, progress)+ val scaleY = lerp(0f, 1f, progress)+ scale(scaleX, scaleY) {+ drawBackdrop()+ }+ }+ ),+ shape = { Capsule() },+ effects = {+ val progress = dampedDragAnimation.pressProgress+ blur(8f.dp.toPx() * (1f - progress))+ lens(+ 10f.dp.toPx() * progress,+ 14f.dp.toPx() * progress,+ chromaticAberration = true+ )+ },+ highlight = {+ val progress = dampedDragAnimation.pressProgress+ Highlight.Ambient.copy(+ width = Highlight.Ambient.width / 1.5f,+ blurRadius = Highlight.Ambient.blurRadius / 1.5f,+ alpha = progress+ )+ },+ shadow = {+ Shadow(+ radius = 4f.dp,+ color = Color.Black.copy(alpha = 0.05f)+ )+ },+ innerShadow = {+ val progress = dampedDragAnimation.pressProgress+ InnerShadow(+ radius = 4f.dp * progress,+ alpha = progress+ )+ },+ layerBlock = {+ scaleX = dampedDragAnimation.scaleX+ scaleY = dampedDragAnimation.scaleY+ val velocity = dampedDragAnimation.velocity / 10f+ scaleX /= 1f - (velocity * 0.75f).fastCoerceIn(-0.2f, 0.2f)+ scaleY *= 1f - (velocity * 0.25f).fastCoerceIn(-0.2f, 0.2f)+ },+ onDrawSurface = {+ val progress = dampedDragAnimation.pressProgress+ drawRect(Color.White.copy(alpha = 1f - progress))+ }+ )+ .size(40f.dp, 24f.dp)+ )+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidToggle.kt b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidToggle.ktnew file mode 100644index 0000000..8fe3a1c--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/glass/LiquidToggle.kt@@ -0,0 +1,212 @@+// Vendored from the Backdrop catalog app, Apache-2.0.+//+// https://github.com/Kyant0/AndroidLiquidGlass+// commit b18eb0ff12c616546a68c72e7d0097f1ab286c87+//+// These are the library author's own example components rather than part of the+// published artifact, so there is nothing to depend on — they have to be copied.+// Kept as close to upstream as possible (package line and a few Material+// swaps aside) so a later upstream fix can be diffed in; see LICENSE-backdrop.txt.++package dev.emanuele.spot.ui.glass++import androidx.compose.foundation.isSystemInDarkTheme+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.size+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableFloatStateOf+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.rememberCoroutineScope+import androidx.compose.runtime.setValue+import androidx.compose.runtime.snapshotFlow+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.draw.drawBehind+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.drawscope.scale+import androidx.compose.ui.graphics.graphicsLayer+import androidx.compose.ui.graphics.lerp+import androidx.compose.ui.platform.LocalDensity+import androidx.compose.ui.platform.LocalLayoutDirection+import androidx.compose.ui.semantics.Role+import androidx.compose.ui.semantics.role+import androidx.compose.ui.semantics.semantics+import androidx.compose.ui.unit.LayoutDirection+import androidx.compose.ui.unit.dp+import androidx.compose.ui.util.fastCoerceIn+import androidx.compose.ui.util.lerp+import com.kyant.backdrop.Backdrop+import com.kyant.backdrop.backdrops.layerBackdrop+import com.kyant.backdrop.backdrops.rememberBackdrop+import com.kyant.backdrop.backdrops.rememberCombinedBackdrop+import com.kyant.backdrop.backdrops.rememberLayerBackdrop+import com.kyant.backdrop.drawBackdrop+import com.kyant.backdrop.effects.blur+import com.kyant.backdrop.effects.lens+import com.kyant.backdrop.highlight.Highlight+import com.kyant.backdrop.shadow.InnerShadow+import com.kyant.backdrop.shadow.Shadow+import com.kyant.shapes.Capsule+import kotlinx.coroutines.flow.collectLatest++@Composable+fun LiquidToggle(+ selected: () -> Boolean,+ onSelect: (Boolean) -> Unit,+ backdrop: Backdrop,+ modifier: Modifier = Modifier+) {+ val isLightTheme = !isSystemInDarkTheme()+ val accentColor =+ if (isLightTheme) Color(0xFF34C759)+ else Color(0xFF30D158)+ val trackColor =+ if (isLightTheme) Color(0xFF787878).copy(0.2f)+ else Color(0xFF787880).copy(0.36f)++ val density = LocalDensity.current+ val isLtr = LocalLayoutDirection.current == LayoutDirection.Ltr+ val dragWidth = with(density) { 20f.dp.toPx() }+ val animationScope = rememberCoroutineScope()+ var didDrag by remember { mutableStateOf(false) }+ var fraction by remember { mutableFloatStateOf(if (selected()) 1f else 0f) }+ val dampedDragAnimation = remember(animationScope) {+ DampedDragAnimation(+ animationScope = animationScope,+ initialValue = fraction,+ valueRange = 0f..1f,+ visibilityThreshold = 0.001f,+ initialScale = 1f,+ pressedScale = 1.5f,+ onDragStarted = {},+ onDragStopped = {+ if (didDrag) {+ fraction = if (targetValue >= 0.5f) 1f else 0f+ onSelect(fraction == 1f)+ didDrag = false+ } else {+ fraction = if (selected()) 0f else 1f+ onSelect(fraction == 1f)+ }+ },+ onDrag = { _, dragAmount ->+ if (!didDrag) {+ didDrag = dragAmount.x != 0f+ }+ val delta = dragAmount.x / dragWidth+ fraction =+ if (isLtr) (fraction + delta).fastCoerceIn(0f, 1f)+ else (fraction - delta).fastCoerceIn(0f, 1f)+ }+ )+ }+ LaunchedEffect(dampedDragAnimation) {+ snapshotFlow { fraction }+ .collectLatest { fraction ->+ dampedDragAnimation.updateValue(fraction)+ }+ }+ LaunchedEffect(selected) {+ snapshotFlow { selected() }+ .collectLatest { isSelected ->+ val target = if (isSelected) 1f else 0f+ if (target != fraction) {+ fraction = target+ dampedDragAnimation.animateToValue(target)+ }+ }+ }++ val trackBackdrop = rememberLayerBackdrop()++ Box(+ modifier,+ contentAlignment = Alignment.CenterStart+ ) {+ Box(+ Modifier+ .layerBackdrop(trackBackdrop)+ .clip(Capsule())+ .drawBehind {+ val fraction = dampedDragAnimation.value+ drawRect(lerp(trackColor, accentColor, fraction))+ }+ .size(64f.dp, 28f.dp)+ )++ Box(+ Modifier+ .graphicsLayer {+ val fraction = dampedDragAnimation.value+ val padding = 2f.dp.toPx()+ translationX =+ if (isLtr) lerp(padding, padding + dragWidth, fraction)+ else lerp(-padding, -(padding + dragWidth), fraction)+ }+ .semantics {+ role = Role.Switch+ }+ .then(dampedDragAnimation.modifier)+ .drawBackdrop(+ backdrop = rememberCombinedBackdrop(+ backdrop,+ rememberBackdrop(trackBackdrop) { drawBackdrop ->+ val progress = dampedDragAnimation.pressProgress+ val scaleX = lerp(2f / 3f, 0.75f, progress)+ val scaleY = lerp(0f, 0.75f, progress)+ scale(scaleX, scaleY) {+ drawBackdrop()+ }+ }+ ),+ shape = { Capsule() },+ effects = {+ val progress = dampedDragAnimation.pressProgress+ blur(8f.dp.toPx() * (1f - progress))+ lens(+ 5f.dp.toPx() * progress,+ 10f.dp.toPx() * progress,+ chromaticAberration = true+ )+ },+ highlight = {+ val progress = dampedDragAnimation.pressProgress+ Highlight.Ambient.copy(+ width = Highlight.Ambient.width / 1.5f,+ blurRadius = Highlight.Ambient.blurRadius / 1.5f,+ alpha = progress+ )+ },+ shadow = {+ Shadow(+ radius = 4f.dp,+ color = Color.Black.copy(alpha = 0.05f)+ )+ },+ innerShadow = {+ val progress = dampedDragAnimation.pressProgress+ InnerShadow(+ radius = 4f.dp * progress,+ alpha = progress+ )+ },+ layerBlock = {+ scaleX = dampedDragAnimation.scaleX+ scaleY = dampedDragAnimation.scaleY+ val velocity = dampedDragAnimation.velocity / 50f+ scaleX /= 1f - (velocity * 0.75f).fastCoerceIn(-0.2f, 0.2f)+ scaleY *= 1f - (velocity * 0.25f).fastCoerceIn(-0.2f, 0.2f)+ },+ onDrawSurface = {+ val progress = dampedDragAnimation.pressProgress+ drawRect(Color.White.copy(alpha = 1f - progress))+ }+ )+ .size(40f.dp, 24f.dp)+ )+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/home/HomeScreen.kt b/app/src/main/java/dev/emanuele/spot/ui/home/HomeScreen.ktnew file mode 100644index 0000000..22007ee--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/home/HomeScreen.kt@@ -0,0 +1,322 @@+package dev.emanuele.spot.ui.home++import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.PaddingValues+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.layout.width+import androidx.compose.foundation.lazy.LazyColumn+import androidx.compose.foundation.lazy.LazyRow+import androidx.compose.foundation.lazy.items+import androidx.compose.foundation.lazy.itemsIndexed+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.material3.Button+import androidx.compose.material3.CircularProgressIndicator+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.Text+import androidx.compose.material3.TextButton+import androidx.compose.runtime.Composable+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.text.style.TextOverflow+import androidx.compose.ui.unit.dp+import dev.emanuele.spot.data.CatalogPlaylist+import dev.emanuele.spot.data.CatalogTrack+import dev.emanuele.spot.ui.MainViewModel+import dev.emanuele.spot.ui.components.Artwork+import dev.emanuele.spot.ui.player.PlaybackState+import dev.emanuele.spot.ui.theme.softShadow+import java.util.Calendar++@Composable+fun HomeScreen(+ state: MainViewModel.UiState,+ playback: PlaybackState,+ contentPadding: PaddingValues,+ onLogIn: () -> Unit,+ onRetry: () -> Unit,+ onLogOut: () -> Unit,+ onOpenPlaylist: (CatalogPlaylist) -> Unit,+ onOpenPlayer: () -> Unit,+ recent: List<CatalogTrack>,+ onPlayRecent: (List<CatalogTrack>, Int) -> Unit,+) {+ when (state) {+ MainViewModel.UiState.LoggedOut -> Centered {+ Text("Spot", style = MaterialTheme.typography.displayLarge)+ Text(+ "Client non ufficiale per account Premium",+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ )+ Button(onClick = onLogIn, modifier = Modifier.padding(top = 14.dp)) {+ Text("Accedi con Spotify")+ }+ }++ MainViewModel.UiState.Connecting,+ MainViewModel.UiState.Loading,+ -> Centered {+ CircularProgressIndicator(+ color = MaterialTheme.colorScheme.primary,+ strokeWidth = 2.dp,+ )+ }++ is MainViewModel.UiState.Failed -> Centered {+ Text(+ state.message,+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ modifier = Modifier.padding(horizontal = 40.dp),+ )+ Button(onClick = onRetry) { Text("Riprova") }+ TextButton(onClick = onLogOut) { Text("Esci") }+ }++ is MainViewModel.UiState.Ready -> LazyColumn(+ Modifier.fillMaxSize(),+ contentPadding = contentPadding,+ ) {+ item(contentType = "greeting") {+ Column(Modifier.padding(start = 24.dp, end = 24.dp, top = 40.dp)) {+ Text(+ greeting().uppercase(),+ style = MaterialTheme.typography.labelLarge,+ color = MaterialTheme.colorScheme.primary,+ )+ Text(+ state.displayName,+ style = MaterialTheme.typography.displayLarge,+ modifier = Modifier.padding(top = 2.dp),+ )+ }+ }++ if (playback.hasItem) {+ item(contentType = "resume") {+ ResumeCard(playback, onOpenPlayer)+ }+ }++ item(contentType = "section") {+ SectionTitle("Le tue playlist", Modifier.padding(top = 30.dp))+ }++ item(contentType = "carousel") {+ LazyRow(+ contentPadding = PaddingValues(horizontal = 24.dp),+ horizontalArrangement = Arrangement.spacedBy(14.dp),+ modifier = Modifier.padding(top = 14.dp),+ ) {+ items(state.playlists.take(CAROUSEL_SIZE), key = { it.uri }) { playlist ->+ PlaylistTile(playlist) { onOpenPlaylist(playlist) }+ }+ }+ }++ if (recent.isNotEmpty()) {+ item(contentType = "section") {+ SectionTitle("Riascolta", Modifier.padding(top = 34.dp))+ }+ item(contentType = "recent") {+ LazyRow(+ contentPadding = PaddingValues(horizontal = 24.dp),+ horizontalArrangement = Arrangement.spacedBy(14.dp),+ modifier = Modifier.padding(top = 14.dp),+ ) {+ itemsIndexed(recent, key = { _, track -> track.uri }) { index, track ->+ TrackTile(track) { onPlayRecent(recent, index) }+ }+ }+ }+ }++ item(contentType = "section") {+ SectionTitle("Il resto della libreria", Modifier.padding(top = 34.dp))+ }++ // A deliberately short list rather than all 62: the home page is for+ // getting somewhere quickly, and the library tab already holds the+ // full set.+ items(+ state.playlists.drop(CAROUSEL_SIZE).take(REST_SIZE),+ key = { it.uri },+ contentType = { "row" },+ ) { playlist ->+ CompactRow(playlist) { onOpenPlaylist(playlist) }+ }+ }+ }+}++@Composable+private fun ResumeCard(playback: PlaybackState, onClick: () -> Unit) {+ Row(+ Modifier+ .padding(start = 24.dp, end = 24.dp, top = 26.dp)+ .fillMaxWidth()+ .clip(RoundedCornerShape(20.dp))+ .clickable(onClick = onClick)+ .padding(4.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Artwork(+ url = playback.artworkUrl,+ title = playback.title,+ modifier = Modifier.size(74.dp),+ corner = 16.dp,+ decodeSize = 74.dp,+ )+ Column(+ Modifier+ .padding(start = 16.dp)+ .weight(1f),+ ) {+ Text(+ if (playback.isPlaying) "IN RIPRODUZIONE" else "IN PAUSA",+ style = MaterialTheme.typography.labelLarge,+ color = MaterialTheme.colorScheme.primary,+ )+ Text(+ playback.title,+ style = MaterialTheme.typography.titleLarge,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ modifier = Modifier.padding(top = 4.dp),+ )+ Text(+ playback.artist,+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ }+ }+}++@Composable+private fun TrackTile(track: CatalogTrack, onClick: () -> Unit) {+ Column(+ // No clip on the column: it would cut off the artwork's drop shadow,+ // which spreads wider than the tile itself.+ Modifier+ .width(132.dp)+ .clickable(onClick = onClick),+ ) {+ Artwork(+ url = track.artworkUrl,+ title = track.name,+ modifier = Modifier+ .size(132.dp)+ .softShadow(RoundedCornerShape(16.dp), elevation = 14.dp),+ corner = 16.dp,+ decodeSize = 132.dp,+ )+ Text(+ track.name,+ style = MaterialTheme.typography.titleMedium,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ modifier = Modifier.padding(top = 10.dp, start = 2.dp, end = 2.dp),+ )+ Text(+ track.artist,+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ modifier = Modifier.padding(start = 2.dp, end = 2.dp),+ )+ }+}++@Composable+private fun PlaylistTile(playlist: CatalogPlaylist, onClick: () -> Unit) {+ Column(+ Modifier+ .width(150.dp)+ .clickable(onClick = onClick),+ ) {+ Artwork(+ url = playlist.artworkUrl,+ title = playlist.name,+ modifier = Modifier+ .size(150.dp)+ .softShadow(RoundedCornerShape(18.dp), elevation = 16.dp),+ corner = 18.dp,+ )+ Text(+ playlist.name,+ style = MaterialTheme.typography.titleMedium,+ maxLines = 2,+ overflow = TextOverflow.Ellipsis,+ modifier = Modifier.padding(top = 10.dp, start = 2.dp, end = 2.dp),+ )+ }+}++@Composable+private fun CompactRow(playlist: CatalogPlaylist, onClick: () -> Unit) {+ Row(+ Modifier+ .fillMaxWidth()+ .clickable(onClick = onClick)+ .padding(horizontal = 24.dp, vertical = 8.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Artwork(+ url = playlist.artworkUrl,+ title = playlist.name,+ modifier = Modifier.size(46.dp),+ corner = 12.dp,+ decodeSize = 46.dp,+ )+ Text(+ playlist.name,+ style = MaterialTheme.typography.titleMedium,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ modifier = Modifier+ .padding(start = 16.dp)+ .weight(1f),+ )+ }+}++@Composable+private fun SectionTitle(text: String, modifier: Modifier = Modifier) {+ Text(+ text,+ style = MaterialTheme.typography.headlineLarge,+ modifier = modifier.padding(horizontal = 24.dp),+ )+}++@Composable+private fun Centered(content: @Composable () -> Unit) {+ Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {+ Column(+ horizontalAlignment = Alignment.CenterHorizontally,+ verticalArrangement = Arrangement.spacedBy(12.dp),+ ) { content() }+ }+}++private fun greeting(): String = when (Calendar.getInstance().get(Calendar.HOUR_OF_DAY)) {+ in 5..12 -> "Buongiorno"+ in 13..17 -> "Buon pomeriggio"+ else -> "Buonasera"+}++private const val CAROUSEL_SIZE = 8+private const val REST_SIZE = 6diff --git a/app/src/main/java/dev/emanuele/spot/ui/library/LibraryScreen.kt b/app/src/main/java/dev/emanuele/spot/ui/library/LibraryScreen.ktnew file mode 100644index 0000000..8fdad9c--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/library/LibraryScreen.kt@@ -0,0 +1,158 @@+package dev.emanuele.spot.ui.library++import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.PaddingValues+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.lazy.LazyColumn+import androidx.compose.foundation.lazy.items+import androidx.compose.material3.Button+import androidx.compose.material3.CircularProgressIndicator+import androidx.compose.material3.HorizontalDivider+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.Text+import androidx.compose.material3.TextButton+import androidx.compose.runtime.Composable+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.text.style.TextOverflow+import androidx.compose.ui.unit.dp+import dev.emanuele.spot.data.CatalogPlaylist+import dev.emanuele.spot.ui.MainViewModel+import dev.emanuele.spot.ui.components.Artwork++@Composable+fun LibraryScreen(+ state: MainViewModel.UiState,+ contentPadding: PaddingValues,+ onLogIn: () -> Unit,+ onRetry: () -> Unit,+ onLogOut: () -> Unit,+ onOpenPlaylist: (CatalogPlaylist) -> Unit,+) {+ when (state) {+ MainViewModel.UiState.LoggedOut -> Centered {+ Text("Spot", style = MaterialTheme.typography.displayLarge)+ Text(+ "Client non ufficiale per account Premium",+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ )+ Button(onClick = onLogIn, modifier = Modifier.padding(top = 14.dp)) {+ Text("Accedi con Spotify")+ }+ }++ MainViewModel.UiState.Connecting -> Centered {+ CircularProgressIndicator(+ color = MaterialTheme.colorScheme.primary,+ strokeWidth = 2.dp,+ )+ Text(+ "Connessione…",+ style = MaterialTheme.typography.labelLarge,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ )+ }++ MainViewModel.UiState.Loading -> Centered {+ CircularProgressIndicator(+ color = MaterialTheme.colorScheme.primary,+ strokeWidth = 2.dp,+ )+ }++ is MainViewModel.UiState.Failed -> Centered {+ Text(+ state.message,+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ modifier = Modifier.padding(horizontal = 40.dp),+ )+ Button(onClick = onRetry) { Text("Riprova") }+ TextButton(onClick = onLogOut) { Text("Esci") }+ }++ is MainViewModel.UiState.Ready -> LazyColumn(+ modifier = Modifier.fillMaxSize(),+ contentPadding = contentPadding,+ ) {+ item(contentType = "header") {+ Column(Modifier.padding(start = 24.dp, end = 24.dp, top = 40.dp, bottom = 28.dp)) {+ Text(+ state.displayName.uppercase(),+ style = MaterialTheme.typography.labelLarge,+ color = MaterialTheme.colorScheme.primary,+ )+ Text(+ "Libreria",+ style = MaterialTheme.typography.displayLarge,+ modifier = Modifier.padding(top = 2.dp),+ )+ Text(+ "${state.playlists.size} playlist",+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ modifier = Modifier.padding(top = 6.dp),+ )+ }+ }++ // contentType lets the lazy list reuse row layouts instead of+ // rebuilding one per item as it scrolls.+ items(state.playlists, key = { it.uri }, contentType = { "playlist" }) { playlist ->+ PlaylistRow(playlist) { onOpenPlaylist(playlist) }+ }+ }+ }+}++@Composable+private fun PlaylistRow(playlist: CatalogPlaylist, onClick: () -> Unit) {+ Column {+ Row(+ modifier = Modifier+ .fillMaxWidth()+ .clickable(onClick = onClick)+ .padding(horizontal = 24.dp, vertical = 12.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Artwork(+ url = playlist.artworkUrl,+ title = playlist.name,+ modifier = Modifier.size(46.dp),+ corner = 14.dp,+ decodeSize = 46.dp,+ )+ Text(+ text = playlist.name,+ style = MaterialTheme.typography.titleMedium,+ maxLines = 2,+ overflow = TextOverflow.Ellipsis,+ modifier = Modifier+ .padding(start = 16.dp)+ .weight(1f),+ )+ }+ HorizontalDivider(+ modifier = Modifier.padding(start = 86.dp, end = 24.dp),+ color = MaterialTheme.colorScheme.outlineVariant,+ )+ }+}++@Composable+private fun Centered(content: @Composable () -> Unit) {+ Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {+ Column(+ horizontalAlignment = Alignment.CenterHorizontally,+ verticalArrangement = Arrangement.spacedBy(12.dp),+ ) { content() }+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/library/PlaylistScreen.kt b/app/src/main/java/dev/emanuele/spot/ui/library/PlaylistScreen.ktnew file mode 100644index 0000000..b392e04--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/library/PlaylistScreen.kt@@ -0,0 +1,662 @@+package dev.emanuele.spot.ui.library++import androidx.compose.animation.AnimatedVisibility+import androidx.compose.animation.core.animateFloatAsState+import androidx.compose.animation.core.tween+import androidx.compose.foundation.background+import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.PaddingValues+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.Spacer+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.layout.width+import androidx.compose.foundation.lazy.LazyColumn+import androidx.compose.foundation.lazy.items+import androidx.compose.foundation.lazy.itemsIndexed+import androidx.compose.foundation.shape.CircleShape+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.material.icons.Icons+import androidx.compose.material.icons.automirrored.filled.ArrowBack+import androidx.compose.material.icons.filled.Check+import androidx.compose.material.icons.filled.Close+import androidx.compose.material.icons.filled.Equalizer+import androidx.compose.material.icons.filled.MoreHoriz+import androidx.compose.material.icons.filled.PlayArrow+import androidx.compose.material.icons.filled.Search+import androidx.compose.material.icons.filled.Shuffle+import androidx.compose.material.icons.filled.SwapVert+import androidx.compose.material3.CircularProgressIndicator+import androidx.compose.material3.DropdownMenu+import androidx.compose.material3.DropdownMenuItem+import androidx.compose.material3.Icon+import androidx.compose.material3.IconButton+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.OutlinedTextField+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.graphics.Brush+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.lerp+import androidx.compose.ui.text.font.FontWeight+import androidx.compose.ui.text.style.TextAlign+import androidx.compose.ui.text.style.TextOverflow+import androidx.compose.ui.unit.dp+import dev.emanuele.spot.data.CatalogTrack+import dev.emanuele.spot.ui.MainViewModel+import com.kyant.backdrop.Backdrop+import dev.emanuele.spot.ui.components.Artwork+import dev.emanuele.spot.ui.components.SwipeToQueue+import dev.emanuele.spot.ui.glass.LiquidButton+import dev.emanuele.spot.ui.theme.rememberArtworkColor+import dev.emanuele.spot.ui.theme.softShadow+import java.util.Locale+import java.util.concurrent.TimeUnit++/** How the track list is ordered. */+enum class TrackSort(val label: String) {+ ORIGINAL("Ordine della playlist"),+ TITLE("Titolo"),+ ARTIST("Artista"),+ DURATION("Durata"),+}++@Composable+fun PlaylistScreen(+ state: MainViewModel.PlaylistState,+ contentPadding: PaddingValues,+ nowPlayingUri: String?,+ onBack: () -> Unit,+ onPlay: (List<CatalogTrack>, Int) -> Unit,+ onEnqueue: (CatalogTrack) -> Unit,+ onShuffle: (List<CatalogTrack>) -> Unit,+ backdrop: Backdrop,+ onOpenItem: (dev.emanuele.spot.data.SearchItem) -> Unit = {},+) {+ var query by remember { mutableStateOf("") }+ var searching by remember { mutableStateOf(false) }+ var sort by remember { mutableStateOf(TrackSort.ORIGINAL) }+ var sortOpen by remember { mutableStateOf(false) }++ // Derived, not stored: keeping a second list in state would leave the two+ // able to disagree after a reload.+ val visible = remember(state.tracks, query, sort) {+ state.tracks+ .filter { it.matches(query) }+ .sortedWith(sort.comparator())+ }++ // Taken from *this* screen's cover, not from whatever is playing. The two+ // are usually different things, and colouring an album page after an+ // unrelated track makes the page look like it belongs to something else.+ val accent by rememberArtworkColor(state.artworkUrl)+ val pageColor = remember(accent) { pageColorFor(accent) }++ Box(+ Modifier+ .fillMaxSize()+ // Opaque, so the app-wide blurred artwork of the playing track does+ // not show through and re-tint the page.+ .background(+ Brush.verticalGradient(+ // Held flat over the top half rather than falling away+ // immediately: the header has to end on the same colour the+ // page starts with, and the list scrolls, so the meeting+ // point moves. A slow gradient makes that seam impossible+ // to catch.+ 0f to pageColor,+ 0.45f to pageColor,+ 1f to PageFloor,+ ),+ ),+ ) {+ // No top content padding: the hero runs under the status bar, which is+ // the whole point of the layout — the picture is the top of the screen,+ // not something sitting below a gap.+ LazyColumn(+ contentPadding = PaddingValues(bottom = contentPadding.calculateBottomPadding()),+ ) {+ item(contentType = "header") {+ DetailHeader(+ name = state.name,+ artworkUrl = state.artworkUrl,+ kind = state.kind,+ trackCount = state.tracks.size,+ totalMs = state.tracks.sumOf { it.durationMs },+ pageColor = pageColor,+ backdrop = backdrop,+ onPlay = { visible.takeIf { it.isNotEmpty() }?.let { onPlay(it, 0) } },+ onShuffle = { visible.takeIf { it.isNotEmpty() }?.let(onShuffle) },+ onToggleSearch = {+ searching = !searching+ if (!searching) query = ""+ },+ searching = searching,+ )+ }++ if (state.albums.isNotEmpty()) {+ item(contentType = "albums") {+ AlbumStrip(albums = state.albums, onOpen = onOpenItem)+ }+ }++ if (state.tracks.isNotEmpty()) {+ item(contentType = "sectionTitle") {+ SectionHeader(+ title = if (state.kind == MainViewModel.DetailKind.ARTIST) {+ "Brani principali"+ } else {+ "Brani"+ },+ sort = sort,+ sortOpen = sortOpen,+ onSortOpen = { sortOpen = it },+ onSort = { sort = it },+ )+ }++ item(contentType = "search") {+ AnimatedVisibility(visible = searching) {+ OutlinedTextField(+ value = query,+ onValueChange = { query = it },+ placeholder = { Text("Cerca fra i brani") },+ singleLine = true,+ leadingIcon = { Icon(Icons.Filled.Search, contentDescription = null) },+ trailingIcon = {+ if (query.isNotEmpty()) {+ IconButton(onClick = { query = "" }) {+ Icon(Icons.Filled.Close, contentDescription = "Cancella")+ }+ }+ },+ shape = RoundedCornerShape(14.dp),+ modifier = Modifier+ .fillMaxWidth()+ .padding(horizontal = 24.dp, vertical = 6.dp),+ )+ }+ }+ }++ when {+ state.loading -> item(contentType = "status") {+ StatusBox { CircularProgressIndicator(strokeWidth = 2.dp) }+ }++ state.error != null -> item(contentType = "status") {+ StatusBox {+ Text(+ state.error,+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ textAlign = TextAlign.Center,+ )+ }+ }++ visible.isEmpty() -> item(contentType = "status") {+ StatusBox {+ Text(+ if (query.isBlank()) "Nessun brano" else "Nessun risultato per “$query”",+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ )+ }+ }++ else -> itemsIndexed(+ items = visible,+ // Index in the key as well as the URI: a playlist may hold+ // the same track twice, and duplicate keys crash the list.+ key = { index, track -> "$index ${track.uri}" },+ contentType = { _, _ -> "track" },+ ) { index, track ->+ SwipeToQueue(onQueue = { onEnqueue(track) }) {+ TrackRow(+ track = track,+ position = index + 1,+ isCurrent = track.uri == nowPlayingUri,+ onClick = { onPlay(visible, index) },+ )+ }+ }+ }+ }++ // Floating rather than a top bar: the list scrolls under it, so the+ // picture stays uninterrupted.+ LiquidButton(+ onClick = onBack,+ backdrop = backdrop,+ modifier = Modifier+ .padding(top = contentPadding.calculateTopPadding() + 8.dp, start = 14.dp)+ .align(Alignment.TopStart)+ .size(42.dp),+ contentHeight = 42.dp,+ contentPadding = 0.dp,+ blurRadius = 8.dp,+ ) {+ Icon(+ Icons.AutoMirrored.Filled.ArrowBack,+ contentDescription = "Indietro",+ tint = Color.White,+ modifier = Modifier.size(20.dp),+ )+ }+ }+}++/**+ * The picture-first header: cover full bleed, everything else on top of it.+ *+ * The old header put a 118dp thumbnail beside the title. This is the layout the+ * reference uses, and the reason to prefer it is not decoration — the cover is+ * the fastest thing to recognise, and at thumbnail size it is doing none of that+ * work. The gradient is what makes it usable: without it the title and the+ * controls sit on whatever happens to be in the bottom of the image, which for+ * a light cover means white on white.+ */+@Composable+private fun DetailHeader(+ name: String,+ artworkUrl: String?,+ kind: MainViewModel.DetailKind,+ trackCount: Int,+ totalMs: Long,+ pageColor: Color,+ backdrop: Backdrop,+ searching: Boolean,+ onPlay: () -> Unit,+ onShuffle: () -> Unit,+ onToggleSearch: () -> Unit,+) {+ Box(+ Modifier+ .fillMaxWidth()+ .height(HERO_HEIGHT),+ ) {+ Artwork(+ url = artworkUrl,+ title = name,+ modifier = Modifier.fillMaxSize(),+ corner = 0.dp,+ )++ // The bottom stops fade to the page colour itself, not to black. That is+ // what makes the cover run into the page instead of ending on an edge:+ // the last row of the image and the first row of the background are the+ // same colour. Fading to black over a page that is not black just moves+ // the seam and adds a dark band.+ Box(+ Modifier+ .fillMaxSize()+ .background(+ Brush.verticalGradient(+ // Only there to keep the floating back button legible+ // over a bright cover.+ 0f to Color.Black.copy(alpha = 0.35f),+ 0.28f to Color.Transparent,+ 0.58f to pageColor.copy(alpha = 0.55f),+ 0.82f to pageColor.copy(alpha = 0.94f),+ 1f to pageColor,+ ),+ ),+ )++ Column(+ Modifier+ .align(Alignment.BottomCenter)+ .fillMaxWidth()+ .padding(horizontal = 24.dp, vertical = 18.dp),+ horizontalAlignment = Alignment.CenterHorizontally,+ ) {+ Text(+ text = buildString {+ append(kind.label)+ if (trackCount > 0) append(" · $trackCount brani · ${formatTotal(totalMs)}")+ },+ style = MaterialTheme.typography.labelMedium,+ color = Color.White.copy(alpha = 0.72f),+ )++ Text(+ text = name,+ style = MaterialTheme.typography.displayLarge,+ color = Color.White,+ textAlign = TextAlign.Center,+ maxLines = 2,+ overflow = TextOverflow.Ellipsis,+ modifier = Modifier.padding(top = 6.dp),+ )++ Row(+ Modifier.padding(top = 18.dp),+ horizontalArrangement = Arrangement.spacedBy(18.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ CircleAction(+ icon = Icons.Filled.Shuffle,+ description = "Casuale",+ size = 46.dp,+ backdrop = backdrop,+ onClick = onShuffle,+ )+ // The one solid control on the screen. Everything else here is+ // glass, so weight has to come from the fill rather than from+ // size alone.+ Box(+ Modifier+ .size(68.dp)+ .softShadow(CircleShape, elevation = 18.dp, spot = 0.3f)+ .clip(CircleShape)+ .background(Color.White)+ .clickable(onClick = onPlay),+ contentAlignment = Alignment.Center,+ ) {+ Icon(+ Icons.Filled.PlayArrow,+ contentDescription = "Riproduci",+ tint = Color.Black,+ modifier = Modifier.size(34.dp),+ )+ }+ CircleAction(+ icon = if (searching) Icons.Filled.Close else Icons.Filled.Search,+ description = "Cerca fra i brani",+ size = 46.dp,+ backdrop = backdrop,+ onClick = onToggleSearch,+ )+ }+ }+ }+}++@Composable+private fun CircleAction(+ icon: androidx.compose.ui.graphics.vector.ImageVector,+ description: String,+ size: androidx.compose.ui.unit.Dp,+ backdrop: Backdrop,+ onClick: () -> Unit,+) {+ LiquidButton(+ onClick = onClick,+ backdrop = backdrop,+ modifier = Modifier.size(size),+ contentHeight = size,+ contentPadding = 0.dp,+ blurRadius = 8.dp,+ ) {+ Icon(+ icon,+ contentDescription = description,+ tint = Color.White,+ modifier = Modifier.size(size * 0.44f),+ )+ }+}++/** The artist's albums, which is the one part playlists and albums have no use for. */+@Composable+private fun AlbumStrip(+ albums: List<dev.emanuele.spot.data.SearchItem>,+ onOpen: (dev.emanuele.spot.data.SearchItem) -> Unit,+) {+ Column(Modifier.padding(top = 18.dp)) {+ Text(+ "Album",+ style = MaterialTheme.typography.titleMedium,+ modifier = Modifier.padding(start = 24.dp, bottom = 10.dp),+ )+ androidx.compose.foundation.lazy.LazyRow(+ contentPadding = PaddingValues(horizontal = 24.dp),+ horizontalArrangement = Arrangement.spacedBy(14.dp),+ ) {+ items(items = albums, key = { it.uri }) { album ->+ Column(+ Modifier+ .width(132.dp)+ .clickable { onOpen(album) },+ ) {+ Artwork(+ url = album.artworkUrl,+ title = album.title,+ modifier = Modifier+ .size(132.dp)+ .softShadow(RoundedCornerShape(14.dp), elevation = 14.dp),+ corner = 14.dp,+ decodeSize = 132.dp,+ )+ Text(+ album.title,+ style = MaterialTheme.typography.bodyMedium,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ modifier = Modifier.padding(top = 8.dp),+ )+ if (album.subtitle.isNotBlank()) {+ Text(+ album.subtitle,+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ )+ }+ }+ }+ }+ }+}++@Composable+private fun SectionHeader(+ title: String,+ sort: TrackSort,+ sortOpen: Boolean,+ onSortOpen: (Boolean) -> Unit,+ onSort: (TrackSort) -> Unit,+) {+ Row(+ Modifier+ .fillMaxWidth()+ .padding(start = 24.dp, end = 14.dp, top = 22.dp, bottom = 6.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Text(title, style = MaterialTheme.typography.titleMedium, modifier = Modifier.weight(1f))++ Box {+ IconButton(onClick = { onSortOpen(true) }) {+ Icon(+ Icons.Filled.SwapVert,+ contentDescription = "Ordina",+ tint = if (sort == TrackSort.ORIGINAL) {+ MaterialTheme.colorScheme.onSurfaceVariant+ } else {+ MaterialTheme.colorScheme.primary+ },+ modifier = Modifier.size(20.dp),+ )+ }+ DropdownMenu(expanded = sortOpen, onDismissRequest = { onSortOpen(false) }) {+ TrackSort.entries.forEach { option ->+ DropdownMenuItem(+ text = { Text(option.label) },+ trailingIcon = {+ if (option == sort) Icon(Icons.Filled.Check, contentDescription = null)+ },+ onClick = {+ onSort(option)+ onSortOpen(false)+ },+ )+ }+ }+ }+ }+}++/** Tall enough to be the top of the screen rather than a banner above a list. */+private val HERO_HEIGHT = 420.dp++/** Where the page ends up once the cover's colour has faded out of it. */+private val PageFloor = Color(0xFF0A0A0C)++/**+ * The page tone for a cover.+ *+ * The dominant colour arrives at full saturation — it has to, it is picked to+ * identify the artwork — and using it as a background would put text on a+ * fluorescent field. Most of the way to black keeps the hue recognisable and+ * nothing else. A null cover falls back to the floor rather than to grey.+ */+private fun pageColorFor(accent: Color?): Color =+ accent?.let { lerp(it, PageFloor, 0.78f) } ?: PageFloor++@Composable+private fun TrackRow(+ track: CatalogTrack,+ position: Int,+ isCurrent: Boolean,+ onClick: () -> Unit,+) {+ val shape = RoundedCornerShape(14.dp)+ // Eased rather than snapped: rows change state on every track advance, and+ // a hard cut in the middle of a list draws the eye more than the change+ // deserves.+ val highlight by animateFloatAsState(+ targetValue = if (isCurrent) 1f else 0f,+ animationSpec = tween(260),+ label = "row",+ )+ Row(+ modifier = Modifier+ .fillMaxWidth()+ .padding(horizontal = 18.dp, vertical = 2.dp)+ // The playing row lifts onto its own card. With covers gone from the+ // list, a tint alone was too quiet to find while scrolling.+ .clip(shape)+ // `surface` is already a 10%-alpha white film. Passing the animation+ // value to `copy(alpha = …)` *replaced* that alpha instead of+ // scaling it, so the playing row finished the animation as solid+ // white — a paper card in the middle of a glass UI.+ .background(+ MaterialTheme.colorScheme.surface.copy(+ alpha = MaterialTheme.colorScheme.surface.alpha * highlight,+ ),+ )+ .clickable(onClick = onClick)+ .padding(horizontal = 12.dp, vertical = 11.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ // The number is replaced by a level meter on the playing row, so the+ // state survives without relying on the accent being distinguishable.+ Box(Modifier.width(30.dp), contentAlignment = Alignment.CenterStart) {+ if (isCurrent) {+ Icon(+ Icons.Filled.Equalizer,+ contentDescription = "In riproduzione",+ tint = MaterialTheme.colorScheme.primary,+ modifier = Modifier.size(18.dp),+ )+ } else {+ Text(+ text = "%02d".format(position),+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.6f),+ )+ }+ }++ Column(Modifier.weight(1f)) {+ Text(+ text = track.name,+ style = MaterialTheme.typography.titleMedium,+ color = if (isCurrent) {+ MaterialTheme.colorScheme.primary+ } else {+ MaterialTheme.colorScheme.onSurface+ },+ fontWeight = if (isCurrent) FontWeight.SemiBold else FontWeight.Medium,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ Text(+ // Artist and length on one line, as the reference has it: two+ // stacked grey lines under every title turn the list into a wall+ // of secondary text.+ text = "${track.artist} · ${formatDuration(track.durationMs)}",+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ modifier = Modifier.padding(top = 2.dp),+ )+ }++ Icon(+ Icons.Filled.MoreHoriz,+ contentDescription = null,+ tint = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.6f),+ modifier = Modifier+ .padding(start = 10.dp)+ .size(18.dp),+ )+ }+}++@Composable+private fun StatusBox(content: @Composable () -> Unit) {+ Box(+ Modifier+ .fillMaxWidth()+ .height(180.dp)+ .padding(horizontal = 24.dp),+ contentAlignment = Alignment.Center,+ ) { content() }+}++/** Case- and accent-insensitive enough for a phone search box. */+private fun CatalogTrack.matches(query: String): Boolean {+ if (query.isBlank()) return true+ val needle = query.trim().lowercase(Locale.getDefault())+ return name.lowercase(Locale.getDefault()).contains(needle) ||+ artist.lowercase(Locale.getDefault()).contains(needle) ||+ album.lowercase(Locale.getDefault()).contains(needle)+}++private fun TrackSort.comparator(): Comparator<CatalogTrack> = when (this) {+ // Stable no-op: the list is already in playlist order.+ TrackSort.ORIGINAL -> Comparator { _, _ -> 0 }+ TrackSort.TITLE -> compareBy(String.CASE_INSENSITIVE_ORDER) { it.name }+ TrackSort.ARTIST -> compareBy(String.CASE_INSENSITIVE_ORDER) { it.artist }+ TrackSort.DURATION -> compareBy { it.durationMs }+}++fun formatDuration(ms: Long): String {+ if (ms <= 0) return "--:--"+ val minutes = TimeUnit.MILLISECONDS.toMinutes(ms)+ val seconds = TimeUnit.MILLISECONDS.toSeconds(ms) % 60+ return "%d:%02d".format(minutes, seconds)+}++/** Total playlist length, in hours and minutes rather than a running clock. */+private fun formatTotal(ms: Long): String {+ val hours = TimeUnit.MILLISECONDS.toHours(ms)+ val minutes = TimeUnit.MILLISECONDS.toMinutes(ms) % 60+ return if (hours > 0) "${hours}h ${minutes}min" else "${minutes}min"+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/CanvasSurface.kt b/app/src/main/java/dev/emanuele/spot/ui/player/CanvasSurface.ktnew file mode 100644index 0000000..6c7b1e4--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/CanvasSurface.kt@@ -0,0 +1,80 @@+package dev.emanuele.spot.ui.player++import androidx.compose.runtime.Composable+import androidx.compose.runtime.DisposableEffect+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.remember+import androidx.compose.ui.Modifier+import androidx.compose.ui.platform.LocalContext+import androidx.compose.ui.viewinterop.AndroidView+import androidx.media3.common.MediaItem+import androidx.media3.common.Player+import androidx.media3.common.util.UnstableApi+import androidx.media3.exoplayer.ExoPlayer+import androidx.media3.ui.PlayerView+import dev.emanuele.spot.R++/**+ * The track's Canvas: a few seconds of video, looping behind the player.+ *+ * A second player instance, deliberately. The audio still comes from librespot —+ * this one is muted and only ever renders pictures. Feeding the clip through the+ * media session's player instead would mean the notification, the lock screen+ * and the queue all thought a video was the current item.+ *+ * Rendered into a TextureView, which is the whole reason this is inflated from a+ * layout instead of built in code — `surface_type` has no setter.+ *+ * A SurfaceView, the default, does render the clip: that much was checked, and+ * an earlier note here recorded it as proof that the surface type did not+ * matter. It does. A SurfaceView is composited by the system in its own window,+ * beneath the app's, and is therefore invisible to anything that records the+ * view hierarchy into a graphics layer — which is exactly what the glass panes+ * sample. They were refracting an empty layer, so they came out as flat+ * translucent rectangles with the video showing through them rather than in+ * them. A TextureView draws like any other view and can be recorded.+ *+ * Follows [isPlaying] so pausing the music stills the picture too; a clip that+ * keeps looping over a paused track reads as the app having lost track of+ * itself.+ */+@UnstableApi+@Composable+fun CanvasSurface(url: String, isPlaying: Boolean, modifier: Modifier = Modifier) {+ val context = LocalContext.current++ val exoPlayer = remember(url) {+ ExoPlayer.Builder(context).build().apply {+ setMediaItem(MediaItem.fromUri(url))+ repeatMode = Player.REPEAT_MODE_ONE+ // Canvases ship with an audio track often enough to matter, and+ // playing it would put a second sound over the music.+ volume = 0f+ prepare()+ }+ }++ LaunchedEffect(exoPlayer, isPlaying) {+ exoPlayer.playWhenReady = isPlaying+ }++ DisposableEffect(exoPlayer) {+ onDispose { exoPlayer.release() }+ }++ AndroidView(+ factory = { ctx ->+ // Cropping to fill and the transparent shutter come from the layout;+ // canvases are 9:16 and the screen rarely is, so the alternative to+ // cropping is bars.+ val view = android.view.LayoutInflater.from(ctx)+ .inflate(R.layout.canvas_surface, null) as PlayerView+ view.player = exoPlayer+ view+ },+ // Nothing here changes with recomposition; the player is swapped by+ // remember(url) when the track does.+ update = {},+ modifier = modifier,+ )+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/CoverGestures.kt b/app/src/main/java/dev/emanuele/spot/ui/player/CoverGestures.ktnew file mode 100644index 0000000..bf91fa5--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/CoverGestures.kt@@ -0,0 +1,99 @@+package dev.emanuele.spot.ui.player++import androidx.compose.animation.core.Animatable+import androidx.compose.animation.core.spring+import androidx.compose.animation.core.tween+import androidx.compose.foundation.gestures.detectHorizontalDragGestures+import androidx.compose.foundation.layout.Box+import androidx.compose.runtime.Composable+import androidx.compose.runtime.remember+import androidx.compose.runtime.rememberCoroutineScope+import androidx.compose.ui.Modifier+import androidx.compose.ui.graphics.graphicsLayer+import androidx.compose.ui.hapticfeedback.HapticFeedbackType+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.platform.LocalConfiguration+import androidx.compose.ui.platform.LocalDensity+import androidx.compose.ui.platform.LocalHapticFeedback+import androidx.compose.ui.unit.dp+import kotlinx.coroutines.launch+import kotlin.math.abs++/**+ * Horizontal drag on the cover: left for the next track, right for the previous.+ *+ * Only this axis. Closing the screen used to live here too, which meant the+ * gesture worked on the cover alone and dragged the cover out from under the+ * rest of the screen — see [DismissibleScreen], which now owns the vertical axis+ * for the whole player.+ *+ * The cover follows the finger and fades as it goes, so the gesture is+ * discoverable: a swipe that does nothing visible until it completes gives no+ * hint that it exists.+ */+@Composable+fun CoverGestures(+ onNext: () -> Unit,+ onPrevious: () -> Unit,+ canGoNext: Boolean,+ canGoPrevious: Boolean,+ modifier: Modifier = Modifier,+ content: @Composable () -> Unit,+) {+ val offsetX = remember { Animatable(0f) }+ val scope = rememberCoroutineScope()+ val haptics = LocalHapticFeedback.current+ val density = LocalDensity.current++ val screenWidth = with(density) { LocalConfiguration.current.screenWidthDp.dp.toPx() }+ val threshold = screenWidth * 0.22f++ Box(+ modifier+ .graphicsLayer {+ translationX = offsetX.value+ // Dimmest exactly where releasing would act.+ val travel = abs(offsetX.value) / threshold+ alpha = (1f - travel * 0.45f).coerceIn(0.4f, 1f)+ val shrink = (1f - travel * 0.06f).coerceIn(0.9f, 1f)+ scaleX = shrink+ scaleY = shrink+ }+ .pointerInput(canGoNext, canGoPrevious) {+ detectHorizontalDragGestures(+ onDragEnd = {+ val committed = when {+ offsetX.value <= -threshold && canGoNext -> {+ onNext(); true+ }++ offsetX.value >= threshold && canGoPrevious -> {+ onPrevious(); true+ }++ else -> false+ }+ if (committed) {+ haptics.performHapticFeedback(HapticFeedbackType.LongPress)+ }+ // Always springs back, including on a commit: the cover+ // is about to be replaced by the next track's, and+ // leaving it parked off-screen would show the new art+ // already displaced.+ scope.launch { offsetX.animateTo(0f, spring()) }+ },+ onDragCancel = { scope.launch { offsetX.animateTo(0f, tween(200)) } },+ ) { change, drag ->+ change.consume()+ // Resists in the direction that has nowhere to go rather+ // than refusing to move: a dead gesture is indistinguishable+ // from a broken one.+ val blocked = (drag < 0 && !canGoNext) || (drag > 0 && !canGoPrevious)+ val step = if (blocked) drag * 0.25f else drag+ scope.launch { offsetX.snapTo(offsetX.value + step) }+ }+ },+ ) {+ content()+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/DismissibleScreen.kt b/app/src/main/java/dev/emanuele/spot/ui/player/DismissibleScreen.ktnew file mode 100644index 0000000..3923d34--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/DismissibleScreen.kt@@ -0,0 +1,138 @@+package dev.emanuele.spot.ui.player++import androidx.compose.animation.core.Animatable+import androidx.compose.animation.core.spring+import androidx.compose.foundation.gestures.detectVerticalDragGestures+import androidx.compose.foundation.layout.Box+import androidx.compose.runtime.Composable+import androidx.compose.runtime.remember+import androidx.compose.runtime.rememberCoroutineScope+import androidx.compose.ui.Modifier+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.graphics.graphicsLayer+import androidx.compose.ui.hapticfeedback.HapticFeedbackType+import androidx.compose.ui.input.nestedscroll.NestedScrollConnection+import androidx.compose.ui.input.nestedscroll.NestedScrollSource+import androidx.compose.ui.input.nestedscroll.nestedScroll+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.platform.LocalDensity+import androidx.compose.ui.platform.LocalHapticFeedback+import androidx.compose.ui.unit.Velocity+import androidx.compose.ui.unit.dp+import kotlinx.coroutines.launch++/**+ * Drag anywhere on the screen to push it down and close it.+ *+ * The whole screen moves, not just the cover. The first version put this on the+ * cover alongside the track-change swipe, which had two problems: the gesture+ * only worked if you happened to start on the artwork, and it slid the cover+ * out from under a header and a set of controls that stayed put — the screen+ * came apart instead of leaving.+ *+ * Wired through [NestedScrollConnection] rather than a plain drag detector+ * because the content scrolls. A drag detector on the parent and a scrolling+ * child fight over the same vertical axis; nested scroll gives a defined order —+ * the list gets the drag first, and only what it cannot use reaches this. So a+ * downward drag scrolls the content until it hits the top, and from there the+ * same continuous movement starts closing the screen. The pointer input below+ * covers the parts that do not scroll at all.+ */+@Composable+fun DismissibleScreen(+ onDismiss: () -> Unit,+ modifier: Modifier = Modifier,+ content: @Composable () -> Unit,+) {+ val offset = remember { Animatable(0f) }+ val scope = rememberCoroutineScope()+ val haptics = LocalHapticFeedback.current+ val density = LocalDensity.current++ val threshold = with(density) { DISMISS_THRESHOLD.toPx() }++ fun settle() {+ if (offset.value >= threshold) {+ haptics.performHapticFeedback(HapticFeedbackType.LongPress)+ onDismiss()+ // Not animated away: the navigation transition takes over from here,+ // and running both would play two exits on top of each other.+ scope.launch { offset.snapTo(0f) }+ } else {+ scope.launch { offset.animateTo(0f, spring()) }+ }+ }++ fun drag(amount: Float) {+ // Upward movement is resisted rather than ignored, so overscrolling at+ // the top has some give instead of stopping dead.+ val next = if (offset.value + amount < 0f) offset.value + amount * 0.2f else offset.value + amount+ scope.launch { offset.snapTo(next.coerceAtLeast(0f)) }+ }++ val connection = remember {+ object : NestedScrollConnection {+ override fun onPreScroll(available: Offset, source: NestedScrollSource): Offset {+ // While the screen is already pulled down, an upward drag puts+ // it back before the content is allowed to scroll again —+ // otherwise the list starts moving with the screen still+ // displaced.+ if (available.y < 0 && offset.value > 0f) {+ drag(available.y)+ return Offset(0f, available.y)+ }+ return Offset.Zero+ }++ override fun onPostScroll(+ consumed: Offset,+ available: Offset,+ source: NestedScrollSource,+ ): Offset {+ // Only what the content could not use: at the top of the scroll+ // this is the whole drag, anywhere else it is nothing.+ if (available.y > 0) {+ drag(available.y)+ return Offset(0f, available.y)+ }+ return Offset.Zero+ }++ override suspend fun onPreFling(available: Velocity): Velocity {+ if (offset.value > 0f) {+ settle()+ return available+ }+ return Velocity.Zero+ }+ }+ }++ Box(+ modifier+ .graphicsLayer {+ translationY = offset.value+ // Scales and fades with the travel so the screen reads as+ // receding, not merely sliding off the bottom.+ val travel = (offset.value / threshold).coerceIn(0f, 1f)+ val shrink = 1f - travel * 0.08f+ scaleX = shrink+ scaleY = shrink+ alpha = 1f - travel * 0.35f+ }+ .nestedScroll(connection)+ .pointerInput(Unit) {+ detectVerticalDragGestures(+ onDragEnd = { settle() },+ onDragCancel = { scope.launch { offset.animateTo(0f, spring()) } },+ ) { change, amount ->+ change.consume()+ drag(amount)+ }+ },+ ) {+ content()+ }+}++private val DISMISS_THRESHOLD = 140.dpdiff --git a/app/src/main/java/dev/emanuele/spot/ui/player/GlassProgressBar.kt b/app/src/main/java/dev/emanuele/spot/ui/player/GlassProgressBar.ktnew file mode 100644index 0000000..eecfd30--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/GlassProgressBar.kt@@ -0,0 +1,107 @@+package dev.emanuele.spot.ui.player++import androidx.compose.foundation.background+import androidx.compose.foundation.gestures.detectHorizontalDragGestures+import androidx.compose.foundation.gestures.detectTapGestures+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.fillMaxHeight+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.runtime.Composable+import androidx.compose.runtime.State+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.layout.layout+import androidx.compose.ui.unit.dp+import kotlin.math.roundToInt++/**+ * The playback position, as a thin capsule.+ *+ * Not [dev.emanuele.spot.ui.glass.LiquidSlider], and not the waveform this+ * replaced. The waveform looked good but invented its shape, and the reference+ * this screen follows uses a plain bar. The library's slider is the wrong tool+ * for a different reason: it reports every intermediate value, and each one here+ * would be a seek — the engine would spend a drag re-buffering instead of+ * playing.+ *+ * So the position is scrubbed locally and committed once, on release. While a+ * drag is in progress the incoming position is ignored, or each update would+ * yank the bar back to where playback still is.+ */+@Composable+fun GlassProgressBar(+ positionMs: State<Long>,+ durationMs: Long,+ onSeek: (Long) -> Unit,+ accentColor: Color,+ trackColor: Color,+ modifier: Modifier = Modifier,+) {+ var scrubbing by remember { mutableStateOf<Float?>(null) }+ var width by remember { mutableStateOf(1f) }++ val progress = scrubbing ?: progressOf(positionMs.value, durationMs)++ Box(+ modifier+ .fillMaxWidth()+ // The touch target is taller than the bar. A 6dp-high capsule is+ // accurate to look at and almost impossible to grab.+ .height(28.dp)+ .pointerInput(durationMs) {+ width = size.width.toFloat()+ detectTapGestures { offset ->+ if (durationMs > 0) {+ onSeek(((offset.x / size.width).coerceIn(0f, 1f) * durationMs).toLong())+ }+ }+ }+ .pointerInput(durationMs) {+ width = size.width.toFloat()+ detectHorizontalDragGestures(+ onDragStart = { offset ->+ scrubbing = (offset.x / size.width).coerceIn(0f, 1f)+ },+ onDragEnd = {+ scrubbing?.let { onSeek((it * durationMs).toLong()) }+ scrubbing = null+ },+ onDragCancel = { scrubbing = null },+ ) { change, _ ->+ change.consume()+ scrubbing = (change.position.x / size.width).coerceIn(0f, 1f)+ }+ },+ ) {+ Box(+ Modifier+ .padding(vertical = 11.dp)+ .fillMaxWidth()+ .height(6.dp)+ .clip(RoundedCornerShape(50))+ .background(trackColor),+ )+ Box(+ Modifier+ .padding(vertical = 11.dp)+ .height(6.dp)+ .clip(RoundedCornerShape(50))+ .background(accentColor)+ .fillMaxHeight()+ .layout { measurable, constraints ->+ val placeable = measurable.measure(constraints)+ val w = (constraints.maxWidth * progress).roundToInt()+ layout(w, placeable.height) { placeable.place(0, 0) }+ },+ )+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/GlassSurface.kt b/app/src/main/java/dev/emanuele/spot/ui/player/GlassSurface.ktnew file mode 100644index 0000000..0bdbc2b--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/GlassSurface.kt@@ -0,0 +1,79 @@+package dev.emanuele.spot.ui.player++import androidx.compose.foundation.layout.Box+import androidx.compose.runtime.Composable+import androidx.compose.ui.Modifier+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.Shape+import androidx.compose.ui.graphics.isSpecified+import androidx.compose.ui.unit.Dp+import androidx.compose.ui.unit.dp+import com.kyant.backdrop.Backdrop+import com.kyant.backdrop.drawBackdrop+import com.kyant.backdrop.effects.blur+import com.kyant.backdrop.effects.lens+import com.kyant.backdrop.effects.vibrancy++/**+ * A pane of glass over [backdrop].+ *+ * Wraps the one call every glass surface in this screen makes, so the numbers+ * that decide what the material *is* — how far it blurs, how hard it bends light+ * at the edge — live in one place instead of being re-picked per component.+ *+ * The three effects are ordered deliberately and are not interchangeable:+ * `vibrancy` lifts the colour of what shows through so it does not go grey under+ * the blur, `blur` is the frosting, and `lens` is the refraction that makes the+ * edge read as a thick slab rather than as a translucent rectangle. Without the+ * lens this is just a blurred panel, which is the thing most "glass" UIs+ * actually are.+ *+ * Everything degrades on its own below Android 13: the library checks for+ * RuntimeShader support and skips the refraction, leaving the blur, and below+ * Android 12 the blur goes too. What is left is a plain translucent surface, so+ * the screen stays usable rather than breaking on older phones.+ */+@Composable+fun GlassSurface(+ backdrop: Backdrop,+ shape: Shape,+ modifier: Modifier = Modifier,+ blurRadius: Dp = 8.dp,+ /** How far in from the edge the refraction reaches. */+ refractionHeight: Dp = 24.dp,+ /** How hard light bends there. */+ refractionAmount: Dp = 24.dp,+ /**+ * A film drawn over the refracted backdrop.+ *+ * Without it a pane is pure refraction and reads darker than the buttons+ * beside it, which do draw one — the surfaces stop looking like the same+ * material. Unspecified leaves the glass clear.+ */+ surfaceColor: Color = Color.Unspecified,+ content: @Composable () -> Unit,+) {+ Box(+ modifier.drawBackdrop(+ backdrop = backdrop,+ shape = { shape },+ effects = {+ vibrancy()+ blur(blurRadius.toPx())+ // Deliberately the same numbers LiquidBottomTabs uses. They were+ // tuned by eye at first and came out a different material — a+ // shallower, harder edge than the bar and the buttons beside+ // it, which is exactly what "the player doesn't look like the+ // rest" was.+ lens(refractionHeight.toPx(), refractionAmount.toPx())+ },+ onDrawSurface = if (surfaceColor.isSpecified) {+ { drawRect(surfaceColor) }+ } else {+ null+ },+ ),+ ) {+ content()+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/LyricsView.kt b/app/src/main/java/dev/emanuele/spot/ui/player/LyricsView.ktnew file mode 100644index 0000000..47a2ec5--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/LyricsView.kt@@ -0,0 +1,173 @@+package dev.emanuele.spot.ui.player++import androidx.compose.animation.core.Spring+import androidx.compose.animation.core.animateFloatAsState+import androidx.compose.animation.core.spring+import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.lazy.LazyColumn+import androidx.compose.foundation.lazy.itemsIndexed+import androidx.compose.foundation.lazy.rememberLazyListState+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.runtime.State+import androidx.compose.runtime.getValue+import androidx.compose.runtime.remember+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.blur+import androidx.compose.ui.draw.drawWithContent+import androidx.compose.ui.graphics.Brush+import androidx.compose.ui.graphics.BlendMode+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.CompositingStrategy+import androidx.compose.ui.graphics.graphicsLayer+import androidx.compose.ui.text.font.FontWeight+import androidx.compose.ui.text.style.TextAlign+import androidx.compose.ui.unit.dp+import androidx.compose.ui.unit.sp+import dev.emanuele.spot.data.Lyrics+import kotlin.math.abs++/**+ * Synced lyrics, animated in the manner of Apple Music's view — the approach+ * demonstrated by [amlv](https://github.com/dokar3/amlv) (Apache-2.0), written+ * here rather than adapted.+ *+ * Three things carry the effect, and they matter more together than separately:+ * the active line grows and brightens, lines fall away by *distance* from it+ * rather than being uniformly dim, and everything moves on a spring so a line+ * change reads as physical instead of as a cut.+ */+@Composable+fun LyricsView(+ lyrics: Lyrics,+ positionMs: State<Long>,+ modifier: Modifier = Modifier,+ onSeek: (Long) -> Unit,+) {+ val listState = rememberLazyListState()+ val position = positionMs.value++ val activeLine = remember(lyrics, position) {+ if (!lyrics.synced) -1+ else lyrics.lines.indexOfLast { (it.startTimeMs ?: 0L) <= position }+ }++ // Centre the active line rather than pin it to the top: the lines around it+ // are the context that makes a lyric readable while it plays.+ androidx.compose.runtime.LaunchedEffect(activeLine) {+ if (activeLine < 0) return@LaunchedEffect+ val viewportCentre = listState.layoutInfo.viewportSize.height / 2+ listState.animateScrollToItem(activeLine, -viewportCentre + LineHeightPx)+ }++ LazyColumn(+ state = listState,+ modifier = modifier+ .fillMaxSize()+ // Fades the ends instead of cutting lines off square. DstIn needs+ // its own layer, otherwise the mask would erase what is behind the+ // list as well.+ .graphicsLayer(compositingStrategy = CompositingStrategy.Offscreen)+ .drawWithContent {+ drawContent()+ drawRect(+ brush = Brush.verticalGradient(+ 0f to Color.Transparent,+ 0.18f to Color.Black,+ 0.82f to Color.Black,+ 1f to Color.Transparent,+ ),+ blendMode = BlendMode.DstIn,+ )+ },+ contentPadding = androidx.compose.foundation.layout.PaddingValues(vertical = 40.dp),+ ) {+ itemsIndexed(lyrics.lines) { index, line ->+ LyricRow(+ text = line.text,+ distance = if (activeLine < 0) 0 else abs(index - activeLine),+ isActive = index == activeLine,+ unsynced = !lyrics.synced,+ onClick = { line.startTimeMs?.let(onSeek) },+ )+ }+ }+}++@Composable+private fun LyricRow(+ text: String,+ distance: Int,+ isActive: Boolean,+ unsynced: Boolean,+ onClick: () -> Unit,+) {+ val springSpec = spring<Float>(+ dampingRatio = Spring.DampingRatioLowBouncy,+ stiffness = Spring.StiffnessLow,+ )++ val scale by animateFloatAsState(+ targetValue = if (isActive) 1f else 0.88f,+ animationSpec = springSpec,+ label = "lyricScale",+ )++ // Opacity falls off with distance, so the eye is pulled to the current line+ // without the rest disappearing.+ val alpha by animateFloatAsState(+ targetValue = when {+ unsynced -> 1f+ isActive -> 1f+ else -> (0.62f - distance * 0.12f).coerceAtLeast(0.22f)+ },+ animationSpec = springSpec,+ label = "lyricAlpha",+ )++ // Blur only kicks in a few lines out, and only where the platform supports+ // it (API 31+); below that it is a no-op and the alpha ramp carries it.+ val blurRadius = when {+ unsynced || distance <= 1 -> 0.dp+ else -> ((distance - 1) * 0.9f).coerceAtMost(3.5f).dp+ }++ Box(+ Modifier+ .fillMaxWidth()+ .clickable(enabled = !unsynced, onClick = onClick)+ .padding(horizontal = 22.dp, vertical = 9.dp),+ contentAlignment = Alignment.CenterStart,+ ) {+ Text(+ text = text,+ style = MaterialTheme.typography.titleLarge.copy(fontSize = 21.sp, lineHeight = 26.sp),+ fontWeight = if (isActive) FontWeight.Bold else FontWeight.SemiBold,+ color = if (isActive) {+ MaterialTheme.colorScheme.primary+ } else {+ MaterialTheme.colorScheme.onSurface+ },+ textAlign = TextAlign.Start,+ modifier = Modifier+ .then(if (blurRadius > 0.dp) Modifier.blur(blurRadius) else Modifier)+ .graphicsLayer {+ // Scale from the left edge so the text grows into the line+ // instead of drifting sideways.+ transformOrigin = androidx.compose.ui.graphics.TransformOrigin(0f, 0.5f)+ scaleX = scale+ scaleY = scale+ this.alpha = alpha+ },+ )+ }+}++/** Rough line height in px, used to bias the auto-scroll target. */+private const val LineHeightPx = 60diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/MiniPlayer.kt b/app/src/main/java/dev/emanuele/spot/ui/player/MiniPlayer.ktnew file mode 100644index 0000000..d32a00d--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/MiniPlayer.kt@@ -0,0 +1,180 @@+package dev.emanuele.spot.ui.player++import androidx.compose.animation.AnimatedContent+import androidx.compose.animation.AnimatedVisibility+import androidx.compose.animation.Crossfade+import androidx.compose.animation.core.tween+import androidx.compose.animation.fadeIn+import androidx.compose.animation.fadeOut+import androidx.compose.animation.togetherWith+import androidx.compose.animation.slideInVertically+import androidx.compose.animation.slideOutVertically+import androidx.compose.foundation.background+import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.shape.CircleShape+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.material.icons.Icons+import androidx.compose.material.icons.filled.Pause+import androidx.compose.material.icons.filled.PlayArrow+import androidx.compose.material.icons.filled.SkipNext+import androidx.compose.material3.Icon+import androidx.compose.material3.IconButton+import androidx.compose.material3.LinearProgressIndicator+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.text.style.TextOverflow+import androidx.compose.ui.unit.dp+import com.kyant.backdrop.Backdrop+import dev.emanuele.spot.ui.components.Artwork+import dev.emanuele.spot.ui.glass.LiquidButton+import dev.emanuele.spot.ui.theme.softShadow++/** Persistent bar above the bottom edge; tapping it opens the full player. */+@Composable+fun MiniPlayer(+ state: PlaybackState,+ /**+ * Read lazily, in the draw phase: taking the position as a value would+ * recompose the whole bar four times a second.+ */+ progress: () -> Float,+ /** The layer this bar refracts. */+ backdrop: Backdrop,+ modifier: Modifier = Modifier,+ onExpand: () -> Unit,+ onTogglePlay: () -> Unit,+ onNext: () -> Unit,+) {+ AnimatedVisibility(+ visible = state.hasItem,+ enter = slideInVertically { it },+ exit = slideOutVertically { it },+ modifier = modifier,+ ) {+ val shape = RoundedCornerShape(22.dp)+ GlassSurface(+ backdrop = backdrop,+ shape = shape,+ surfaceColor = GlassFilm,+ modifier = Modifier+ .padding(horizontal = 12.dp)+ .softShadow(shape, elevation = 20.dp, spot = 0.26f),+ ) {+ Column(Modifier.clickable(onClick = onExpand)) {+ Row(+ Modifier+ .fillMaxWidth()+ .padding(10.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Artwork(state.artworkUrl, state.title, Modifier.size(42.dp), corner = 12.dp)++ // Slides up on a track change, so an auto-advance is visible+ // without having to be reading the bar at that moment.+ AnimatedContent(+ targetState = state.title to state.artist,+ transitionSpec = {+ (slideInVertically { it / 2 } + fadeIn(tween(200)))+ .togetherWith(slideOutVertically { -it / 2 } + fadeOut(tween(160)))+ },+ label = "nowPlaying",+ modifier = Modifier+ .padding(horizontal = 14.dp)+ .weight(1f),+ ) { (title, artist) ->+ Column {+ Text(+ title,+ style = MaterialTheme.typography.titleMedium,+ color = MiniPlayerInk,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ Text(+ artist,+ style = MaterialTheme.typography.bodySmall,+ color = MiniPlayerInkDim,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ }+ }++ IconButton(onClick = onNext, enabled = state.hasNext) {+ Icon(+ Icons.Filled.SkipNext,+ contentDescription = "Successivo",+ tint = MiniPlayerInkDim,+ )+ }++ // The one control on the bar with a surface of its own, so the+ // tap target that matters most also has weight — and the same+ // press animation every other glass button has.+ LiquidButton(+ onClick = onTogglePlay,+ backdrop = backdrop,+ surfaceColor = GlassFilm,+ contentHeight = 42.dp,+ contentPadding = 0.dp,+ modifier = Modifier.size(42.dp),+ ) {+ Crossfade(+ state.isPlaying,+ animationSpec = tween(180),+ label = "playPause",+ ) { playing ->+ Icon(+ imageVector = if (playing) Icons.Filled.Pause else Icons.Filled.PlayArrow,+ contentDescription = if (playing) "Pausa" else "Riproduci",+ tint = MiniPlayerInk,+ modifier = Modifier.size(20.dp),+ )+ }+ }+ }++ // A hairline of progress rather than a full seek bar: enough to see+ // where the track is without inviting a drag in a 42dp-tall row.+ LinearProgressIndicator(+ progress = progress,+ modifier = Modifier+ .fillMaxWidth()+ .height(2.dp),+ color = MaterialTheme.colorScheme.primary,+ trackColor = MiniPlayerInk.copy(alpha = 0.18f),+ drawStopIndicator = {},+ )+ }+ }+ }+}++/**+ * Fixed light, like everything else on the glass: what sits behind this bar is+ * the darkened artwork, not a page colour.+ */+private val MiniPlayerInk = Color(0xFFF7F8FA)+private val MiniPlayerInkDim = Color(0xFFF7F8FA).copy(alpha = 0.66f)++/** Guarded against the duration being unknown while a track loads. */+fun progressOf(positionMs: Long, durationMs: Long): Float =+ if (durationMs <= 0) 0f else (positionMs.toFloat() / durationMs).coerceIn(0f, 1f)++/** Spacer height so lists can scroll clear of the mini player. */+val MiniPlayerHeight = 74.dp++@Composable+fun MiniPlayerSpacer() = Box(Modifier.height(MiniPlayerHeight))diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/PlayerPanel.kt b/app/src/main/java/dev/emanuele/spot/ui/player/PlayerPanel.ktnew file mode 100644index 0000000..a324c6d--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/PlayerPanel.kt@@ -0,0 +1,462 @@+package dev.emanuele.spot.ui.player++import androidx.compose.animation.AnimatedVisibility+import androidx.compose.foundation.background+import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.heightIn+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.lazy.LazyColumn+import androidx.compose.foundation.lazy.itemsIndexed+import androidx.compose.foundation.lazy.rememberLazyListState+import androidx.compose.foundation.horizontalScroll+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.rememberScrollState+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.foundation.verticalScroll+import androidx.compose.material.icons.Icons+import androidx.compose.material.icons.filled.Add+import androidx.compose.material.icons.filled.Close+import androidx.compose.material3.AlertDialog+import androidx.compose.material3.Icon+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.OutlinedTextField+import androidx.compose.material3.Text+import androidx.compose.material3.TextButton+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.text.font.FontWeight+import androidx.compose.ui.text.style.TextOverflow+import androidx.compose.ui.unit.dp+import dev.emanuele.spot.data.Lyrics+import dev.emanuele.spot.playback.EffectPreset+import dev.emanuele.spot.ui.glass.LiquidSlider+import kotlin.math.ln+import kotlin.math.roundToInt++/** Which panel is open below the transport controls. */+enum class PlayerPanel { NONE, QUEUE, LYRICS, EFFECTS }++@Composable+fun PlayerPanelSection(+ panel: PlayerPanel,+ onSelect: (PlayerPanel) -> Unit,+ queue: List<QueueEntry>,+ lyrics: Lyrics?,+ lyricsLoading: Boolean,+ positionMs: androidx.compose.runtime.State<Long>,+ onPlayQueueItem: (Int) -> Unit,+ onSeek: (Long) -> Unit,+ speed: Float,+ pitch: Float,+ reverb: Float,+ onSpeed: (Float) -> Unit,+ onPitch: (Float) -> Unit,+ onReverb: (Float) -> Unit,+ presets: List<EffectPreset>,+ onApplyPreset: (EffectPreset) -> Unit,+ onSavePreset: (String) -> Unit,+ onDeletePreset: (String) -> Unit,+ /** The layer the panel refracts; see the liquid-glass note in PlayerScreen. */+ backdrop: com.kyant.backdrop.Backdrop,+) {+ Column(Modifier.fillMaxWidth()) {+ Row(+ Modifier+ .fillMaxWidth()+ .padding(top = 18.dp),+ horizontalArrangement = Arrangement.Center,+ ) {+ PanelTab("CODA", panel == PlayerPanel.QUEUE) {+ onSelect(if (panel == PlayerPanel.QUEUE) PlayerPanel.NONE else PlayerPanel.QUEUE)+ }+ PanelTab("TESTO", panel == PlayerPanel.LYRICS) {+ onSelect(if (panel == PlayerPanel.LYRICS) PlayerPanel.NONE else PlayerPanel.LYRICS)+ }+ PanelTab("EFFETTI", panel == PlayerPanel.EFFECTS) {+ onSelect(+ if (panel == PlayerPanel.EFFECTS) PlayerPanel.NONE else PlayerPanel.EFFECTS,+ )+ }+ }++ AnimatedVisibility(visible = panel != PlayerPanel.NONE) {+ GlassSurface(+ backdrop = backdrop,+ shape = RoundedCornerShape(26.dp),+ modifier = Modifier+ .fillMaxWidth()+ .padding(top = 12.dp)+ .heightIn(max = 260.dp),+ ) {+ when (panel) {+ PlayerPanel.QUEUE -> QueueList(queue, onPlayQueueItem)+ PlayerPanel.LYRICS -> LyricsPanel(lyrics, lyricsLoading, positionMs, onSeek)+ PlayerPanel.EFFECTS -> EffectsPanel(+ speed = speed,+ pitch = pitch,+ reverb = reverb,+ onSpeed = onSpeed,+ onPitch = onPitch,+ onReverb = onReverb,+ presets = presets,+ onApplyPreset = onApplyPreset,+ onSavePreset = onSavePreset,+ onDeletePreset = onDeletePreset,+ backdrop = backdrop,+ )++ PlayerPanel.NONE -> Unit+ }+ }+ }+ }+}++@Composable+private fun PanelTab(label: String, selected: Boolean, onClick: () -> Unit) {+ Text(+ text = label,+ style = MaterialTheme.typography.labelLarge,+ color = if (selected) GlassInk else GlassInkDim,+ modifier = Modifier+ .clip(RoundedCornerShape(50))+ .clickable(onClick = onClick)+ .padding(horizontal = 18.dp, vertical = 8.dp),+ )+}++/** One row of the upcoming-tracks list. */+data class QueueEntry(val index: Int, val title: String, val artist: String, val isCurrent: Boolean)++@Composable+private fun QueueList(queue: List<QueueEntry>, onPlay: (Int) -> Unit) {+ if (queue.isEmpty()) {+ EmptyPanel("La coda è vuota")+ return+ }++ LazyColumn(Modifier.padding(vertical = 8.dp)) {+ itemsIndexed(queue, key = { _, entry -> entry.index }) { _, entry ->+ Row(+ Modifier+ .fillMaxWidth()+ .clickable { onPlay(entry.index) }+ .padding(horizontal = 18.dp, vertical = 8.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Column(Modifier.weight(1f)) {+ Text(+ entry.title,+ style = MaterialTheme.typography.titleMedium,+ color = if (entry.isCurrent) GlassInk else GlassInk.copy(alpha = 0.85f),+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ Text(+ entry.artist,+ style = MaterialTheme.typography.bodySmall,+ color = GlassInkDim,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ }+ }+ }+ }+}++@Composable+private fun LyricsPanel(+ lyrics: Lyrics?,+ loading: Boolean,+ positionMs: androidx.compose.runtime.State<Long>,+ onSeek: (Long) -> Unit,+) {+ when {+ loading -> EmptyPanel("Carico il testo…")+ lyrics == null -> EmptyPanel("Nessun testo disponibile")+ else -> LyricsView(lyrics = lyrics, positionMs = positionMs, onSeek = onSeek)+ }+}++/**+ * Tempo, pitch and reverb.+ *+ * Speed and pitch are separate controls on purpose: resampling would move both+ * at once, and the whole point of asking for them separately is being able to+ * slow a track down without dropping it an octave. The platform's time+ * stretcher does the work — see [dev.emanuele.spot.playback.AudioOutput].+ */+@Composable+private fun EffectsPanel(+ speed: Float,+ pitch: Float,+ reverb: Float,+ onSpeed: (Float) -> Unit,+ onPitch: (Float) -> Unit,+ onReverb: (Float) -> Unit,+ presets: List<EffectPreset>,+ onApplyPreset: (EffectPreset) -> Unit,+ onSavePreset: (String) -> Unit,+ onDeletePreset: (String) -> Unit,+ backdrop: com.kyant.backdrop.Backdrop,+) {+ var naming by remember { mutableStateOf(false) }++ Column(+ Modifier+ .fillMaxWidth()+ .verticalScroll(rememberScrollState())+ .padding(horizontal = 20.dp, vertical = 16.dp),+ ) {+ PresetRow(+ presets = presets,+ speed = speed,+ pitch = pitch,+ reverb = reverb,+ onApply = onApplyPreset,+ onDelete = onDeletePreset,+ onSaveCurrent = { naming = true },+ )++ if (naming) {+ SavePresetDialog(+ onDismiss = { naming = false },+ onConfirm = {+ onSavePreset(it)+ naming = false+ },+ )+ }++ EffectSlider(+ label = "Velocità",+ value = speed,+ // Below half speed the stretcher smears badly and above double the+ // track stops being recognisable; both ends are past the useful part.+ range = 0.5f..2f,+ reading = "%.2f×".format(speed),+ backdrop = backdrop,+ onChange = onSpeed,+ onReset = { onSpeed(1f) },+ )++ EffectSlider(+ label = "Tonalità",+ value = pitch,+ range = 0.5f..2f,+ // Semitones read better than a ratio for pitch: "+3" is a musical+ // amount, "1.19×" is not.+ reading = formatSemitones(pitch),+ backdrop = backdrop,+ onChange = onPitch,+ onReset = { onPitch(1f) },+ )++ EffectSlider(+ label = "Riverbero",+ value = reverb,+ range = 0f..1f,+ reading = if (reverb <= 0f) "Off" else "${(reverb * 100).roundToInt()}%",+ backdrop = backdrop,+ onChange = onReverb,+ onReset = { onReverb(0f) },+ )+ }+}++/**+ * The preset chips.+ *+ * A custom preset can be deleted from its own chip once it is the selected one,+ * rather than through a separate edit mode: there are only ever a handful of+ * these, and a mode to manage four chips is more interface than the job needs.+ */+@Composable+private fun PresetRow(+ presets: List<EffectPreset>,+ speed: Float,+ pitch: Float,+ reverb: Float,+ onApply: (EffectPreset) -> Unit,+ onDelete: (String) -> Unit,+ onSaveCurrent: () -> Unit,+) {+ Text(+ "PREIMPOSTAZIONI",+ style = MaterialTheme.typography.labelLarge,+ color = GlassInkDim,+ modifier = Modifier.padding(bottom = 8.dp),+ )++ Row(+ Modifier+ .fillMaxWidth()+ .horizontalScroll(rememberScrollState()),+ horizontalArrangement = Arrangement.spacedBy(8.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ presets.forEach { preset ->+ val selected = preset.matches(speed, pitch, reverb)+ Row(+ Modifier+ .clip(RoundedCornerShape(50))+ .background(+ if (selected) {+ MaterialTheme.colorScheme.primary+ } else {+ MaterialTheme.colorScheme.background+ },+ )+ .clickable { onApply(preset) }+ .padding(start = 14.dp, end = if (selected && !preset.builtIn) 6.dp else 14.dp)+ .padding(vertical = 8.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Text(+ preset.name,+ style = MaterialTheme.typography.bodySmall,+ maxLines = 1,+ color = if (selected) GlassInk else GlassInkDim,+ )+ if (selected && !preset.builtIn) {+ Icon(+ Icons.Filled.Close,+ contentDescription = "Elimina ${preset.name}",+ tint = MaterialTheme.colorScheme.onPrimary,+ modifier = Modifier+ .padding(start = 4.dp)+ .size(16.dp)+ .clip(RoundedCornerShape(50))+ .clickable { onDelete(preset.id) },+ )+ }+ }+ }++ Row(+ Modifier+ .clip(RoundedCornerShape(50))+ .clickable(onClick = onSaveCurrent)+ .padding(horizontal = 12.dp, vertical = 8.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Icon(+ Icons.Filled.Add,+ contentDescription = null,+ tint = MaterialTheme.colorScheme.primary,+ modifier = Modifier.size(16.dp),+ )+ Text(+ "Salva",+ style = MaterialTheme.typography.bodySmall,+ color = GlassInk,+ modifier = Modifier.padding(start = 4.dp),+ )+ }+ }+}++@Composable+private fun SavePresetDialog(onDismiss: () -> Unit, onConfirm: (String) -> Unit) {+ var name by remember { mutableStateOf("") }+ AlertDialog(+ onDismissRequest = onDismiss,+ title = { Text("Salva preimpostazione") },+ text = {+ OutlinedTextField(+ value = name,+ onValueChange = { name = it },+ singleLine = true,+ label = { Text("Nome") },+ )+ },+ confirmButton = {+ TextButton(onClick = { onConfirm(name) }) { Text("Salva") }+ },+ dismissButton = {+ TextButton(onClick = onDismiss) { Text("Annulla") }+ },+ )+}++@Composable+private fun EffectSlider(+ label: String,+ value: Float,+ range: ClosedFloatingPointRange<Float>,+ reading: String,+ backdrop: com.kyant.backdrop.Backdrop,+ onChange: (Float) -> Unit,+ onReset: () -> Unit,+) {+ Column(Modifier.padding(top = 6.dp)) {+ Row(verticalAlignment = Alignment.CenterVertically) {+ Text(+ label.uppercase(),+ style = MaterialTheme.typography.labelLarge,+ color = GlassInkDim,+ modifier = Modifier.weight(1f),+ )+ Text(reading, style = MaterialTheme.typography.titleMedium)+ // A one-tap way back to unmodified. Dragging a slider to exactly 1.0+ // is fiddly, and a stuck-off-centre value is the kind of thing that+ // gets mistaken for broken playback.+ Text(+ "Azzera",+ style = MaterialTheme.typography.bodySmall,+ color = GlassInk,+ modifier = Modifier+ .clip(RoundedCornerShape(50))+ .clickable(onClick = onReset)+ .padding(horizontal = 10.dp, vertical = 4.dp),+ )+ }+ LiquidSlider(+ value = { value },+ onValueChange = onChange,+ valueRange = range,+ // The smallest step worth animating to. Below this the thumb chases+ // values the ear cannot tell apart.+ visibilityThreshold = 0.001f,+ backdrop = backdrop,+ accentColor = MaterialTheme.colorScheme.primary,+ trackColor = GlassInk.copy(alpha = 0.22f),+ modifier = Modifier.padding(top = 4.dp),+ )+ }+}++/** Pitch ratio as semitones, the unit the control is actually thought in. */+private fun formatSemitones(pitch: Float): String {+ val semitones = 12.0 * (ln(pitch.toDouble()) / ln(2.0))+ return "%+.1f st".format(semitones)+}++@Composable+private fun EmptyPanel(message: String) {+ Box(+ Modifier+ .fillMaxWidth()+ .padding(vertical = 40.dp),+ contentAlignment = Alignment.Center,+ ) {+ Text(+ message,+ style = MaterialTheme.typography.bodyMedium,+ color = GlassInkDim,+ )+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/PlayerScreen.kt b/app/src/main/java/dev/emanuele/spot/ui/player/PlayerScreen.ktnew file mode 100644index 0000000..52f3bf0--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/PlayerScreen.kt@@ -0,0 +1,649 @@+package dev.emanuele.spot.ui.player++import androidx.compose.animation.AnimatedContent+import androidx.compose.animation.AnimatedVisibility+import androidx.compose.animation.scaleIn+import androidx.compose.animation.scaleOut+import androidx.compose.animation.Crossfade+import androidx.compose.animation.fadeIn+import androidx.compose.animation.fadeOut+import androidx.compose.animation.slideInVertically+import androidx.compose.animation.slideOutVertically+import androidx.compose.animation.togetherWith+import androidx.compose.animation.core.Spring+import androidx.compose.animation.core.animateFloatAsState+import androidx.compose.animation.core.spring+import androidx.compose.animation.core.tween+import androidx.compose.foundation.background+import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.Spacer+import androidx.compose.foundation.layout.aspectRatio+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.layout.systemBarsPadding+import androidx.compose.foundation.shape.CircleShape+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.material.icons.Icons+import androidx.compose.material.icons.filled.KeyboardArrowDown+import androidx.compose.material.icons.filled.MoreHoriz+import androidx.compose.material.icons.filled.Pause+import androidx.compose.material.icons.filled.PlayArrow+import androidx.compose.material.icons.filled.QueueMusic+import androidx.compose.material.icons.filled.Repeat+import androidx.compose.material.icons.filled.RepeatOne+import androidx.compose.material.icons.filled.Shuffle+import androidx.compose.material.icons.filled.SkipNext+import androidx.compose.material.icons.filled.SkipPrevious+import androidx.compose.material.icons.outlined.FavoriteBorder+import androidx.compose.material3.Icon+import androidx.compose.material3.IconButton+import androidx.compose.material3.LocalContentColor+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.runtime.CompositionLocalProvider+import androidx.compose.runtime.State+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.clip+import androidx.compose.ui.graphics.Brush+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.graphicsLayer+import androidx.compose.ui.layout.ContentScale+import androidx.compose.ui.text.style.TextAlign+import androidx.compose.ui.text.style.TextOverflow+import androidx.compose.ui.unit.Dp+import androidx.compose.ui.unit.dp+import androidx.media3.common.Player+import androidx.media3.common.util.UnstableApi+import coil.compose.AsyncImage+import com.kyant.backdrop.Backdrop+import com.kyant.backdrop.backdrops.layerBackdrop+import com.kyant.backdrop.backdrops.rememberCombinedBackdrop+import com.kyant.backdrop.backdrops.rememberLayerBackdrop+import dev.emanuele.spot.ui.components.Artwork+import dev.emanuele.spot.ui.glass.LiquidButton+import dev.emanuele.spot.ui.library.formatDuration+import dev.emanuele.spot.ui.theme.softShadow++/**+ * The player, as a liquid-glass prototype.+ *+ * This screen deliberately does not follow the monochrome paper look the rest of+ * the app uses — it is here to be judged on a device before deciding whether to+ * take the whole interface this way. The two are opposites: the paper design+ * builds hierarchy out of ink and soft shadow on an opaque page, and glass+ * builds it out of depth over something vivid. Glass over a near-white page has+ * nothing to refract and looks like grey panels, which is why the artwork comes+ * back here as a full-bleed backdrop.+ */+@UnstableApi+@Composable+fun PlayerScreen(+ state: PlaybackState,+ /** Read only inside the waveform, to keep position updates off the rest. */+ positionMs: State<Long>,+ onCollapse: () -> Unit,+ onTogglePlay: () -> Unit,+ onNext: () -> Unit,+ onPrevious: () -> Unit,+ onSeek: (Long) -> Unit,+ onToggleShuffle: () -> Unit,+ onCycleRepeat: () -> Unit,+ queue: List<QueueEntry>,+ lyrics: dev.emanuele.spot.data.Lyrics?,+ lyricsLoading: Boolean,+ onPlayQueueItem: (Int) -> Unit,+ reverb: Float,+ onSpeed: (Float) -> Unit,+ onPitch: (Float) -> Unit,+ onReverb: (Float) -> Unit,+ presets: List<dev.emanuele.spot.playback.EffectPreset>,+ onApplyPreset: (dev.emanuele.spot.playback.EffectPreset) -> Unit,+ onSavePreset: (String) -> Unit,+ onDeletePreset: (String) -> Unit,+ /**+ * The app-wide backdrop, shared rather than built here: this screen covers+ * the same blurred artwork the rest of the app already draws, and recording+ * a second copy of it would be two full-screen blurs for one image.+ */+ backdrop: Backdrop,+ /** The track's Canvas clip, or null when it has none. */+ canvas: dev.emanuele.spot.data.CanvasClip?,+) {+ var panel by remember { mutableStateOf(PlayerPanel.NONE) }++ // The Canvas gets a layer of its own so the glass over it refracts the clip+ // rather than the app's blurred artwork. It is combined with the app+ // backdrop rather than replacing it, because with no Canvas this layer is+ // empty and the panes would have nothing to sample.+ val canvasBackdrop = rememberLayerBackdrop()+ val glassBackdrop = rememberCombinedBackdrop(backdrop, canvasBackdrop)++ Box(Modifier.fillMaxSize()) {+ Box(+ Modifier+ .fillMaxSize()+ .layerBackdrop(canvasBackdrop),+ ) {+ Crossfade(+ targetState = canvas,+ animationSpec = tween(500),+ label = "canvas",+ modifier = Modifier.fillMaxSize(),+ ) { clip ->+ when {+ clip == null -> Unit++ clip.isVideo -> CanvasSurface(+ url = clip.url,+ isPlaying = state.isPlaying,+ modifier = Modifier.fillMaxSize(),+ )++ // A handful of canvases are stills rather than clips.+ else -> AsyncImage(+ model = clip.url,+ contentDescription = null,+ contentScale = ContentScale.Crop,+ modifier = Modifier.fillMaxSize(),+ )+ }+ }++ // Only over a Canvas, and deliberately light. Clips are graded for+ // their own sake and some are near-white; this buys the controls+ // enough contrast without turning the video into a mood board. With+ // no Canvas there is nothing to darken — the app's backdrop is+ // already dimmed.+ if (canvas != null) {+ Box(+ Modifier+ .fillMaxSize()+ .background(+ Brush.verticalGradient(+ listOf(+ Color.Black.copy(alpha = 0.28f),+ Color.Black.copy(alpha = 0.18f),+ Color.Black.copy(alpha = 0.52f),+ ),+ ),+ ),+ )+ }+ }++ CompositionLocalProvider(LocalContentColor provides GlassInk) {+ DismissibleScreen(onDismiss = onCollapse, modifier = Modifier.fillMaxSize()) {+ Column(+ Modifier+ .fillMaxSize()+ .systemBarsPadding()+ .padding(horizontal = 20.dp),+ ) {+ TopBar(+ backdrop = glassBackdrop,+ queueOpen = panel == PlayerPanel.QUEUE,+ onCollapse = onCollapse,+ onToggleQueue = {+ panel = if (panel == PlayerPanel.QUEUE) {+ PlayerPanel.NONE+ } else {+ PlayerPanel.QUEUE+ }+ },+ )++ // Everything sits at the bottom, as in the reference: the+ // artwork behind is the subject, and the controls are a+ // stack of panes laid over its lower third rather than a+ // screen of their own.+ // Not scrollable: a weighted spacer inside a scrolling+ // column measures against an infinite height. The panels+ // below cap their own height and scroll internally, so the+ // screen never needs to.+ Column(+ Modifier.fillMaxSize(),+ horizontalAlignment = Alignment.CenterHorizontally,+ verticalArrangement = Arrangement.Bottom,+ ) {+ // With a Canvas the clip *is* the picture and a cover on+ // top would compete with it. Without one, the cover+ // fills the space above the controls — the shadow that+ // settles on pause is the only motion tying this screen+ // to the transport, and losing it left a still page.+ //+ // `weight(1f)`, not `weight(1f, fill = false)`: with the+ // column arranged from the bottom, "as much space as it+ // wants" is nothing once the controls have taken theirs.+ AnimatedVisibility(+ visible = canvas == null,+ enter = fadeIn(tween(400)) + scaleIn(tween(400), initialScale = 0.92f),+ exit = fadeOut(tween(250)) + scaleOut(tween(250), targetScale = 0.92f),+ modifier = Modifier.weight(1f),+ ) {+ Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {+ Cover(state, panel, onNext, onPrevious)+ }+ }++ Spacer(Modifier.height(20.dp))++ // Title and artist on their own capsule, with the two+ // per-track actions on the right.+ GlassSurface(+ backdrop = glassBackdrop,+ surfaceColor = GlassFilm,+ shape = RoundedCornerShape(50),+ modifier = Modifier.fillMaxWidth(),+ ) {+ Row(+ Modifier.padding(start = 22.dp, end = 10.dp, top = 12.dp, bottom = 12.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ TitleBlock(state, Modifier.weight(1f))+ RoundGlassButton(+ backdrop = glassBackdrop,+ size = 40.dp,+ onClick = {+ panel = if (panel == PlayerPanel.QUEUE) {+ PlayerPanel.NONE+ } else {+ PlayerPanel.QUEUE+ }+ },+ ) {+ Icon(+ Icons.Filled.QueueMusic,+ contentDescription = "Coda",+ modifier = Modifier.size(20.dp),+ )+ }+ Spacer(Modifier.size(8.dp))+ RoundGlassButton(backdrop = glassBackdrop, size = 40.dp, onClick = {}) {+ Icon(+ Icons.Outlined.FavoriteBorder,+ contentDescription = null,+ modifier = Modifier.size(20.dp),+ )+ }+ }+ }++ Spacer(Modifier.height(18.dp))++ GlassProgressBar(+ positionMs = positionMs,+ durationMs = state.durationMs,+ onSeek = onSeek,+ accentColor = GlassInk,+ trackColor = GlassInk.copy(alpha = 0.28f),+ )+ TimeRow(positionMs, state.durationMs)++ Spacer(Modifier.height(14.dp))++ Controls(+ state = state,+ backdrop = glassBackdrop,+ onTogglePlay = onTogglePlay,+ onNext = onNext,+ onPrevious = onPrevious,+ onToggleShuffle = onToggleShuffle,+ onCycleRepeat = onCycleRepeat,+ )++ Spacer(Modifier.height(14.dp))++ PlayerPanelSection(+ panel = panel,+ onSelect = { panel = it },+ queue = queue,+ lyrics = lyrics,+ lyricsLoading = lyricsLoading,+ positionMs = positionMs,+ onPlayQueueItem = onPlayQueueItem,+ onSeek = onSeek,+ speed = state.speed,+ pitch = state.pitch,+ reverb = reverb,+ onSpeed = onSpeed,+ onPitch = onPitch,+ onReverb = onReverb,+ presets = presets,+ onApplyPreset = onApplyPreset,+ onSavePreset = onSavePreset,+ onDeletePreset = onDeletePreset,+ backdrop = glassBackdrop,+ )++ Spacer(Modifier.height(20.dp))+ }+ }+ }+ }+ }+}++@Composable+private fun TopBar(+ backdrop: Backdrop,+ queueOpen: Boolean,+ onCollapse: () -> Unit,+ onToggleQueue: () -> Unit,+) {+ Row(+ Modifier+ .fillMaxWidth()+ .padding(vertical = 6.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ GlassButton(backdrop, onClick = onCollapse) {+ Icon(Icons.Filled.KeyboardArrowDown, contentDescription = "Chiudi")+ }+ Text(+ "In riproduzione",+ style = MaterialTheme.typography.titleMedium,+ textAlign = TextAlign.Center,+ modifier = Modifier.weight(1f),+ )+ GlassButton(backdrop, onClick = onToggleQueue) {+ Icon(+ Icons.Filled.MoreHoriz,+ contentDescription = "Altro",+ tint = if (queueOpen) GlassInk else GlassInkDim,+ )+ }+ }+}++/**+ * The cover, shown only when the track has no Canvas.+ *+ * Pausing pulls it back and lets the shadow settle toward the page; playing+ * pushes it out again. A spring rather than a tween on the scale, because this+ * answers a button press directly and an eased ramp reads as lag — while the+ * shadow follows a plain tween, since a bouncing shadow makes the cover look+ * like it is trembling.+ */+@Composable+private fun Cover(+ state: PlaybackState,+ panel: PlayerPanel,+ onNext: () -> Unit,+ onPrevious: () -> Unit,+) {+ val coverFraction by animateFloatAsState(+ targetValue = if (panel == PlayerPanel.NONE) 0.82f else 0.44f,+ label = "cover",+ )+ val playingScale by animateFloatAsState(+ targetValue = if (state.isPlaying) 1f else 0.88f,+ animationSpec = spring(+ dampingRatio = Spring.DampingRatioLowBouncy,+ stiffness = Spring.StiffnessLow,+ ),+ label = "coverScale",+ )+ val playingLift by animateFloatAsState(+ targetValue = if (state.isPlaying) 1f else 0.35f,+ animationSpec = tween(420),+ label = "coverLift",+ )++ CoverGestures(+ onNext = onNext,+ onPrevious = onPrevious,+ canGoNext = state.hasNext,+ canGoPrevious = state.hasPrevious,+ modifier = Modifier+ .fillMaxWidth(coverFraction)+ .aspectRatio(1f)+ .graphicsLayer {+ scaleX = playingScale+ scaleY = playingScale+ },+ ) {+ Crossfade(+ targetState = state.artworkUrl to state.title,+ animationSpec = tween(320),+ label = "art",+ ) { (url, title) ->+ Artwork(+ url = url,+ title = title,+ modifier = Modifier+ .fillMaxSize()+ .softShadow(+ RoundedCornerShape(26.dp),+ elevation = (10 + 30 * playingLift).dp,+ ambient = 0.10f + 0.10f * playingLift,+ spot = 0.20f + 0.25f * playingLift,+ ),+ corner = 26.dp,+ )+ }+ }+}++@Composable+private fun TitleBlock(state: PlaybackState, modifier: Modifier = Modifier) {+ // Slid rather than swapped on a track change: this capsule is the only place+ // the track is named now that the big cover is gone, so the change has to be+ // visible without watching for it.+ AnimatedContent(+ targetState = state.title to state.artist,+ transitionSpec = {+ (slideInVertically { it / 2 } + fadeIn(tween(220)))+ .togetherWith(slideOutVertically { -it / 2 } + fadeOut(tween(170)))+ },+ label = "title",+ modifier = modifier,+ ) { (title, artist) ->+ Column {+ Text(+ text = title,+ style = MaterialTheme.typography.titleLarge,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ Text(+ text = artist,+ style = MaterialTheme.typography.bodyMedium,+ color = GlassInkDim,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ }+ }+}++/** Isolated so the ticking position recomposes only these two labels. */+@Composable+private fun TimeRow(positionMs: State<Long>, durationMs: Long) {+ Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) {+ Text(+ formatDuration(positionMs.value),+ style = MaterialTheme.typography.bodySmall,+ color = GlassInkDim,+ )+ Text(+ formatDuration(durationMs),+ style = MaterialTheme.typography.bodySmall,+ color = GlassInkDim,+ )+ }+}++@Composable+private fun Controls(+ state: PlaybackState,+ backdrop: Backdrop,+ onTogglePlay: () -> Unit,+ onNext: () -> Unit,+ onPrevious: () -> Unit,+ onToggleShuffle: () -> Unit,+ onCycleRepeat: () -> Unit,+) {+ Row(+ Modifier.fillMaxWidth(),+ verticalAlignment = Alignment.CenterVertically,+ horizontalArrangement = Arrangement.SpaceEvenly,+ ) {+ ToggleIcon(+ icon = Icons.Filled.Shuffle,+ description = "Riproduzione casuale",+ active = state.shuffleEnabled,+ onClick = onToggleShuffle,+ )++ // Three discs of the same material, the middle one larger. The reference+ // gives the transport its own row of circles rather than icons on a bar,+ // and the size difference is the only thing marking the primary action —+ // no fill, no accent.+ RoundGlassButton(+ backdrop = backdrop,+ size = 62.dp,+ enabled = state.hasPrevious,+ onClick = onPrevious,+ ) {+ Icon(+ Icons.Filled.SkipPrevious,+ contentDescription = "Precedente",+ modifier = Modifier.size(30.dp),+ )+ }++ RoundGlassButton(backdrop = backdrop, size = 76.dp, onClick = onTogglePlay) {+ Crossfade(+ state.isPlaying,+ animationSpec = tween(180),+ label = "playPause",+ ) { playing ->+ Icon(+ imageVector = if (playing) Icons.Filled.Pause else Icons.Filled.PlayArrow,+ contentDescription = if (playing) "Pausa" else "Riproduci",+ modifier = Modifier.size(34.dp),+ )+ }+ }++ RoundGlassButton(+ backdrop = backdrop,+ size = 62.dp,+ enabled = state.hasNext,+ onClick = onNext,+ ) {+ Icon(+ Icons.Filled.SkipNext,+ contentDescription = "Successivo",+ modifier = Modifier.size(30.dp),+ )+ }++ ToggleIcon(+ icon = if (state.repeatMode == Player.REPEAT_MODE_ONE) {+ Icons.Filled.RepeatOne+ } else {+ Icons.Filled.Repeat+ },+ description = "Ripeti",+ active = state.repeatMode != Player.REPEAT_MODE_OFF,+ onClick = onCycleRepeat,+ )+ }+}++/**+ * A disc of glass that answers a press.+ *+ * Built on the catalog's `LiquidButton` rather than on [GlassSurface]: the+ * squash-and-settle when you push it is the same animation the tab indicator+ * uses, and hand-rolling a second version of it would drift from the one the+ * bar has. A capsule with equal sides is a circle, so no separate shape is+ * needed.+ */+@Composable+private fun RoundGlassButton(+ backdrop: Backdrop,+ size: Dp,+ modifier: Modifier = Modifier,+ enabled: Boolean = true,+ onClick: () -> Unit,+ content: @Composable () -> Unit,+) {+ LiquidButton(+ onClick = { if (enabled) onClick() },+ backdrop = backdrop,+ modifier = modifier+ .size(size)+ // Dimmed rather than removed when there is nowhere to go: a control+ // that disappears makes the whole row jump.+ .graphicsLayer { alpha = if (enabled) 1f else 0.4f },+ surfaceColor = GlassFilm,+ contentHeight = size,+ contentPadding = 0.dp,+ // Matched to the bottom bar and the mini player. At the upstream 2dp+ // these were the one place in the app where the glass barely frosted+ // what was behind it.+ blurRadius = 8.dp,+ ) {+ content()+ }+}++@Composable+private fun GlassButton(+ backdrop: Backdrop,+ onClick: () -> Unit,+ content: @Composable () -> Unit,+) {+ RoundGlassButton(backdrop = backdrop, size = 44.dp, onClick = onClick) { content() }+}++@Composable+private fun ToggleIcon(+ icon: androidx.compose.ui.graphics.vector.ImageVector,+ description: String,+ active: Boolean,+ onClick: () -> Unit,+) {+ IconButton(onClick = onClick) {+ Icon(+ icon,+ contentDescription = description,+ tint = if (active) GlassInk else GlassInkDim,+ modifier = Modifier.size(22.dp),+ )+ }+}++/**+ * Fixed light, not themed.+ *+ * What sits behind every control here is album art under a dark wash, not the+ * app's page colour, so the light/dark scheme says nothing about what is+ * readable.+ */+internal val GlassInk = Color.White+internal val GlassInkDim = Color.White.copy(alpha = 0.68f)++/**+ * The film every glass surface is tinted with.+ *+ * One value, shared, because the surfaces looked like different materials when+ * each picked its own: the tab bar came out noticeably paler than the mini+ * player and the search button beside it.+ */+internal val GlassFilm = Color.White.copy(alpha = 0.12f)diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/PlayerState.kt b/app/src/main/java/dev/emanuele/spot/ui/player/PlayerState.ktnew file mode 100644index 0000000..3b03f08--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/PlayerState.kt@@ -0,0 +1,164 @@+package dev.emanuele.spot.ui.player++import androidx.compose.runtime.Composable+import androidx.compose.runtime.DisposableEffect+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.State+import androidx.compose.runtime.mutableLongStateOf+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.media3.common.Player+import kotlinx.coroutines.delay++/**+ * Everything the player UI draws **except** the playback position.+ *+ * Position is deliberately kept out: it changes several times a second, and+ * anything that reads it recomposes at that rate. Keeping it in this class would+ * drag the whole screen — including a hundred-row list — along with the seek+ * bar, which is enough jank to make the audio stutter. See [rememberPositionMs].+ */+data class PlaybackState(+ val hasItem: Boolean = false,+ /** Spotify URI of the current track, for highlighting it in lists. */+ val mediaId: String? = null,+ val title: String = "",+ val artist: String = "",+ val artworkUrl: String? = null,+ val isPlaying: Boolean = false,+ val isBuffering: Boolean = false,+ val durationMs: Long = 0,+ val hasNext: Boolean = false,+ val hasPrevious: Boolean = false,+ val shuffleEnabled: Boolean = false,+ val repeatMode: Int = Player.REPEAT_MODE_OFF,+ /** Tempo, 1.0 being the track as recorded. */+ val speed: Float = 1f,+ /** Pitch, independent of [speed]. */+ val pitch: Float = 1f,+)++/** Mirrors the slow-changing part of a [Player] into Compose state. */+@Composable+fun rememberPlaybackState(player: Player?): State<PlaybackState> {+ val state = remember { mutableStateOf(PlaybackState()) }++ DisposableEffect(player) {+ if (player == null) {+ state.value = PlaybackState()+ return@DisposableEffect onDispose {}+ }++ fun snapshot() {+ val metadata = player.mediaMetadata+ val next = PlaybackState(+ hasItem = player.currentMediaItem != null,+ mediaId = player.currentMediaItem?.mediaId,+ title = metadata.title?.toString().orEmpty(),+ artist = metadata.artist?.toString().orEmpty(),+ artworkUrl = metadata.artworkUri?.toString(),+ isPlaying = player.isPlaying,+ isBuffering = player.playbackState == Player.STATE_BUFFERING,+ durationMs = metadata.durationMs ?: player.duration.coerceAtLeast(0),+ hasNext = player.hasNextMediaItem(),+ hasPrevious = player.hasPreviousMediaItem(),+ shuffleEnabled = player.shuffleModeEnabled,+ repeatMode = player.repeatMode,+ speed = player.playbackParameters.speed,+ pitch = player.playbackParameters.pitch,+ )+ // Equality check, not blind assignment: the player emits events far+ // more often than these fields actually change.+ if (next != state.value) state.value = next+ }++ val listener = object : Player.Listener {+ override fun onEvents(player: Player, events: Player.Events) = snapshot()+ }+ player.addListener(listener)+ snapshot()++ onDispose { player.removeListener(listener) }+ }++ return state+}++/**+ * The upcoming tracks, taken from the player's timeline.+ *+ * Rebuilt only when the timeline or the current item changes, not on every+ * event: walking a hundred media items is not something to do four times a+ * second.+ */+@Composable+fun rememberQueue(player: Player?): State<List<QueueEntry>> {+ val queue = remember { mutableStateOf(emptyList<QueueEntry>()) }++ DisposableEffect(player) {+ if (player == null) {+ queue.value = emptyList()+ return@DisposableEffect onDispose {}+ }++ fun rebuild() {+ val current = player.currentMediaItemIndex+ queue.value = (0 until player.mediaItemCount).map { index ->+ val metadata = player.getMediaItemAt(index).mediaMetadata+ QueueEntry(+ index = index,+ title = metadata.title?.toString().orEmpty(),+ artist = metadata.artist?.toString().orEmpty(),+ isCurrent = index == current,+ )+ }+ }++ val listener = object : Player.Listener {+ override fun onEvents(player: Player, events: Player.Events) {+ if (events.containsAny(+ Player.EVENT_TIMELINE_CHANGED,+ Player.EVENT_MEDIA_ITEM_TRANSITION,+ )+ ) {+ rebuild()+ }+ }+ }+ player.addListener(listener)+ rebuild()++ onDispose { player.removeListener(listener) }+ }++ return queue+}++/**+ * Playback position, polled while playing.+ *+ * Separate from [PlaybackState] so only the seek bar reads it. The engine+ * reports position once a second, which on screen would advance in visible+ * steps; polling four times a second smooths it out and costs nothing when+ * paused, because the loop simply does not run.+ */+@Composable+fun rememberPositionMs(player: Player?, isPlaying: Boolean): State<Long> {+ val position = remember { mutableLongStateOf(0L) }++ LaunchedEffect(player, isPlaying) {+ if (player == null) {+ position.longValue = 0+ return@LaunchedEffect+ }+ position.longValue = player.currentPosition.coerceAtLeast(0)+ if (!isPlaying) return@LaunchedEffect++ while (true) {+ delay(250)+ position.longValue = player.currentPosition.coerceAtLeast(0)+ }+ }++ return position+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/player/Waveform.kt b/app/src/main/java/dev/emanuele/spot/ui/player/Waveform.ktnew file mode 100644index 0000000..fefa2ee--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/player/Waveform.kt@@ -0,0 +1,127 @@+package dev.emanuele.spot.ui.player++import androidx.compose.foundation.Canvas+import androidx.compose.foundation.gestures.detectHorizontalDragGestures+import androidx.compose.foundation.gestures.detectTapGestures+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.runtime.Composable+import androidx.compose.runtime.State+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Modifier+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.StrokeCap+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.unit.Dp+import androidx.compose.ui.unit.dp+import kotlin.math.abs+import kotlin.math.sin+import kotlin.random.Random++/**+ * The seek bar, drawn as a waveform.+ *+ * The shape is *not* the track's real audio: the decoded samples live inside+ * librespot and never reach the UI, and asking for them would mean buffering a+ * whole track before it could be drawn. It is generated from the track's URI+ * instead, so a given song always looks the same, different songs look+ * different, and the bar still does the one job a progress bar has — showing+ * where you are and letting you move.+ *+ * Presenting invented data as if it were measured would be wrong if it implied+ * something about the audio; here it reads as decoration on a scrubber, and the+ * played/remaining split it encodes is real.+ */+@Composable+fun Waveform(+ /** Seeds the shape. Same track, same waveform, across restarts. */+ trackKey: String?,+ positionMs: State<Long>,+ durationMs: Long,+ onSeek: (Long) -> Unit,+ modifier: Modifier = Modifier,+ height: Dp = 46.dp,+ playedColor: Color,+ remainingColor: Color,+) {+ val bars = remember(trackKey) { generateBars(trackKey) }++ // While dragging, the bar follows the finger rather than the player:+ // position updates keep arriving and would otherwise yank it back between+ // drag events.+ var scrubbing by remember { mutableStateOf<Float?>(null) }+ var width by remember { mutableStateOf(1f) }++ fun commit(x: Float) {+ val fraction = (x / width).coerceIn(0f, 1f)+ scrubbing = fraction+ }++ Canvas(+ modifier+ .fillMaxWidth()+ .height(height)+ .pointerInput(durationMs) {+ detectTapGestures { offset ->+ if (durationMs <= 0) return@detectTapGestures+ onSeek(((offset.x / size.width).coerceIn(0f, 1f) * durationMs).toLong())+ }+ }+ .pointerInput(durationMs) {+ detectHorizontalDragGestures(+ onDragStart = { offset -> commit(offset.x) },+ onDragEnd = {+ scrubbing?.let { onSeek((it * durationMs).toLong()) }+ scrubbing = null+ },+ onDragCancel = { scrubbing = null },+ ) { change, _ -> commit(change.position.x) }+ },+ ) {+ width = size.width+ val progress = scrubbing ?: progressOf(positionMs.value, durationMs)++ // Bars are laid out to a fixed count so the density stays the same on+ // every screen width, rather than getting sparser on a tablet.+ val step = size.width / BAR_COUNT+ val barWidth = (step * 0.44f).coerceAtLeast(1f)+ val centre = size.height / 2f+ val playedUntil = size.width * progress++ bars.forEachIndexed { index, amplitude ->+ val x = index * step + step / 2f+ val half = (amplitude * size.height / 2f).coerceAtLeast(barWidth / 2f)+ drawLine(+ color = if (x <= playedUntil) playedColor else remainingColor,+ start = Offset(x, centre - half),+ end = Offset(x, centre + half),+ strokeWidth = barWidth,+ cap = StrokeCap.Round,+ )+ }+ }+}++private const val BAR_COUNT = 68++/**+ * A waveform-shaped envelope rather than plain noise.+ *+ * Pure random heights read as a barcode; real music has loud stretches and quiet+ * ones. Two slow sine waves supply that swell and the noise roughens it, which+ * is what makes the result read as audio at a glance.+ */+private fun generateBars(trackKey: String?): List<Float> {+ val random = Random(trackKey?.hashCode() ?: 0)+ return List(BAR_COUNT) { index ->+ val t = index.toFloat() / BAR_COUNT+ val envelope = 0.45f ++ 0.30f * abs(sin(t * Math.PI * 2.4f).toFloat()) ++ 0.18f * abs(sin(t * Math.PI * 7.1f + 1.3f).toFloat())+ (envelope * (0.55f + random.nextFloat() * 0.75f)).coerceIn(0.06f, 1f)+ }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/search/SearchScreen.kt b/app/src/main/java/dev/emanuele/spot/ui/search/SearchScreen.ktnew file mode 100644index 0000000..14b5468--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/search/SearchScreen.kt@@ -0,0 +1,348 @@+package dev.emanuele.spot.ui.search++import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.PaddingValues+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.lazy.LazyColumn+import androidx.compose.foundation.lazy.LazyListScope+import androidx.compose.foundation.lazy.items+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.material.icons.Icons+import androidx.compose.material.icons.filled.Close+import androidx.compose.material.icons.filled.Search+import androidx.compose.material3.CircularProgressIndicator+import androidx.compose.material3.Icon+import androidx.compose.material3.IconButton+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.OutlinedTextField+import androidx.compose.material3.Text+import androidx.compose.material3.TextButton+import androidx.compose.runtime.Composable+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.platform.LocalClipboardManager+import androidx.compose.ui.text.AnnotatedString+import androidx.compose.ui.text.style.TextAlign+import androidx.compose.ui.text.style.TextOverflow+import androidx.compose.ui.unit.dp+import dev.emanuele.spot.data.CatalogTrack+import dev.emanuele.spot.data.SearchItem+import dev.emanuele.spot.ui.MainViewModel+import dev.emanuele.spot.ui.components.Artwork+import com.kyant.backdrop.Backdrop+import dev.emanuele.spot.ui.components.SwipeToQueue+import dev.emanuele.spot.ui.glass.LiquidButton++/**+ * Search across tracks, artists, albums and playlists.+ *+ * Tracks come first and get the most room: looking for a song is what this box+ * is mostly used for, and putting artists above them would make the common case+ * the one that needs scrolling.+ */+@Composable+fun SearchScreen(+ state: MainViewModel.SearchState,+ webApi: MainViewModel.WebApiState,+ contentPadding: PaddingValues,+ nowPlayingUri: String?,+ onQueryChange: (String) -> Unit,+ onClientIdChange: (String) -> Unit,+ onConnectWebApi: () -> Unit,+ onPlayTrack: (List<CatalogTrack>, Int) -> Unit,+ onEnqueue: (CatalogTrack) -> Unit,+ onOpenContext: (SearchItem) -> Unit,+ backdrop: Backdrop,+) {+ LazyColumn(Modifier.fillMaxSize(), contentPadding = contentPadding) {+ item(contentType = "field") {+ Column(Modifier.padding(start = 24.dp, end = 24.dp, top = 36.dp, bottom = 10.dp)) {+ Text("Cerca", style = MaterialTheme.typography.displayLarge)+ OutlinedTextField(+ enabled = !state.needsSetup,+ value = state.query,+ onValueChange = onQueryChange,+ placeholder = { Text("Brani, artisti, album, playlist") },+ singleLine = true,+ leadingIcon = { Icon(Icons.Filled.Search, contentDescription = null) },+ trailingIcon = {+ if (state.query.isNotEmpty()) {+ IconButton(onClick = { onQueryChange("") }) {+ Icon(Icons.Filled.Close, contentDescription = "Cancella")+ }+ }+ },+ shape = RoundedCornerShape(16.dp),+ modifier = Modifier+ .fillMaxWidth()+ .padding(top = 16.dp),+ )+ }+ }++ when {+ state.needsSetup -> item(contentType = "setup") {+ WebApiSetup(webApi, backdrop, onClientIdChange, onConnectWebApi)+ }++ state.loading -> item(contentType = "status") {+ StatusBox { CircularProgressIndicator(strokeWidth = 2.dp) }+ }++ state.error != null -> item(contentType = "status") {+ StatusBox {+ Text(+ state.error,+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ textAlign = TextAlign.Center,+ )+ }+ }++ state.query.isBlank() -> item(contentType = "status") {+ StatusBox {+ Text(+ "Cerca qualcosa da ascoltare",+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ )+ }+ }++ state.results.isEmpty -> item(contentType = "status") {+ StatusBox {+ Text(+ "Nessun risultato per “${state.query}”",+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ textAlign = TextAlign.Center,+ )+ }+ }++ else -> {+ val tracks = state.results.tracks+ if (tracks.isNotEmpty()) {+ item(contentType = "section") { SectionTitle("Brani") }+ items(+ count = tracks.size,+ key = { "track-${tracks[it].uri}-$it" },+ contentType = { "track" },+ ) { index ->+ val track = tracks[index]+ SwipeToQueue(onQueue = { onEnqueue(track) }) {+ ResultRow(+ title = track.name,+ subtitle = track.artist,+ artworkUrl = track.artworkUrl,+ highlighted = track.uri == nowPlayingUri,+ round = false,+ onClick = { onPlayTrack(tracks, index) },+ )+ }+ }+ }++ section("Artisti", state.results.artists, round = true, onOpenContext)+ section("Album", state.results.albums, round = false, onOpenContext)+ section("Playlist", state.results.playlists, round = false, onOpenContext)+ }+ }+ }+}++private fun LazyListScope.section(+ title: String,+ items: List<SearchItem>,+ round: Boolean,+ onOpen: (SearchItem) -> Unit,+) {+ if (items.isEmpty()) return+ item(contentType = "section") { SectionTitle(title) }+ items(+ count = items.size,+ key = { "$title-${items[it].uri}" },+ contentType = { "result" },+ ) { index ->+ val item = items[index]+ ResultRow(+ title = item.title,+ subtitle = item.subtitle,+ artworkUrl = item.artworkUrl,+ highlighted = false,+ round = round,+ onClick = { onOpen(item) },+ )+ }+}++/**+ * One-time setup for the Web API.+ *+ * This screen exists because of a hard constraint rather than a preference:+ * playback must authenticate as librespot's shared client id — no other id is+ * accepted by the access point — and that same id has no Web API quota left,+ * since every librespot-based client on earth spends it. Search therefore needs+ * an application the user owns.+ */+@Composable+private fun WebApiSetup(+ state: MainViewModel.WebApiState,+ backdrop: Backdrop,+ onClientIdChange: (String) -> Unit,+ onConnect: () -> Unit,+) {+ val clipboard = LocalClipboardManager.current+ Column(Modifier.padding(horizontal = 24.dp, vertical = 12.dp)) {+ Text("ATTIVA LA RICERCA", style = MaterialTheme.typography.labelLarge, color = MaterialTheme.colorScheme.primary)+ Text(+ "La ricerca usa le API web di Spotify, che hanno un limite di richieste " ++ "per applicazione. Registra un'app nel dashboard per sviluppatori e " ++ "incolla qui il suo client id: così il limite è solo tuo.",+ style = MaterialTheme.typography.bodyMedium,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ modifier = Modifier.padding(top = 8.dp),+ )++ Text(+ "Nell'app va aggiunto questo Redirect URI, identico:",+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ modifier = Modifier.padding(top = 18.dp),+ )+ Row(+ Modifier.padding(top = 6.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Text(+ state.redirectUri,+ style = MaterialTheme.typography.titleMedium,+ modifier = Modifier.weight(1f),+ )+ TextButton(onClick = { clipboard.setText(AnnotatedString(state.redirectUri)) }) {+ Text("Copia")+ }+ }++ OutlinedTextField(+ value = state.clientId,+ onValueChange = onClientIdChange,+ label = { Text("Client id") },+ singleLine = true,+ enabled = !state.connecting,+ shape = RoundedCornerShape(16.dp),+ modifier = Modifier+ .fillMaxWidth()+ .padding(top = 16.dp),+ )++ if (state.error != null) {+ Text(+ state.error,+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.error,+ modifier = Modifier.padding(top = 8.dp),+ )+ }++ LiquidButton(+ onClick = { if (!state.connecting) onConnect() },+ backdrop = backdrop,+ tint = MaterialTheme.colorScheme.primary,+ modifier = Modifier+ .padding(top = 16.dp)+ .height(50.dp),+ ) {+ if (state.connecting) {+ CircularProgressIndicator(+ strokeWidth = 2.dp,+ modifier = Modifier.size(18.dp),+ color = MaterialTheme.colorScheme.onPrimary,+ )+ } else {+ Text("Collega", style = MaterialTheme.typography.titleMedium)+ }+ }+ }+}++@Composable+private fun SectionTitle(text: String) {+ Text(+ text.uppercase(),+ style = MaterialTheme.typography.labelLarge,+ color = MaterialTheme.colorScheme.primary,+ modifier = Modifier.padding(start = 24.dp, end = 24.dp, top = 22.dp, bottom = 6.dp),+ )+}++@Composable+private fun ResultRow(+ title: String,+ subtitle: String,+ artworkUrl: String?,+ highlighted: Boolean,+ round: Boolean,+ onClick: () -> Unit,+) {+ Row(+ Modifier+ .fillMaxWidth()+ .clickable(onClick = onClick)+ .padding(horizontal = 24.dp, vertical = 8.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Artwork(+ url = artworkUrl,+ title = title,+ // Artists read as circles everywhere; keeping that convention makes+ // the row type obvious without a label.+ modifier = Modifier.size(48.dp),+ corner = if (round) 24.dp else 8.dp,+ decodeSize = 48.dp,+ )+ Column(+ Modifier+ .padding(start = 14.dp)+ .weight(1f),+ ) {+ Text(+ title,+ style = MaterialTheme.typography.titleMedium,+ color = if (highlighted) {+ MaterialTheme.colorScheme.primary+ } else {+ MaterialTheme.colorScheme.onSurface+ },+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ Text(+ subtitle,+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant,+ maxLines = 1,+ overflow = TextOverflow.Ellipsis,+ )+ }+ }+}++@Composable+private fun StatusBox(content: @Composable () -> Unit) {+ Box(+ Modifier+ .fillMaxWidth()+ .height(220.dp)+ .padding(horizontal = 32.dp),+ contentAlignment = Alignment.Center,+ ) { content() }+}diff --git a/app/src/main/java/dev/emanuele/spot/ui/theme/ArtworkColor.kt b/app/src/main/java/dev/emanuele/spot/ui/theme/ArtworkColor.ktnew file mode 100644index 0000000..5d9844a--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/theme/ArtworkColor.kt@@ -0,0 +1,75 @@+package dev.emanuele.spot.ui.theme++import android.content.Context+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.State+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.platform.LocalContext+import androidx.palette.graphics.Palette+import coil.imageLoader+import coil.request.ImageRequest+import coil.request.SuccessResult+import kotlinx.coroutines.Dispatchers+import kotlinx.coroutines.withContext++/**+ * The dominant colour of an artwork URL, for seeding the theme.+ *+ * Results are memoised per URL: the same cover is asked for by the mini player,+ * the full player and the theme at once, and decoding a bitmap three times per+ * track change is wasteful.+ */+@Composable+fun rememberArtworkColor(artworkUrl: String?): State<Color?> {+ val context = LocalContext.current+ val state = remember { mutableStateOf<Color?>(null) }++ LaunchedEffect(artworkUrl) {+ if (artworkUrl == null) {+ state.value = null+ return@LaunchedEffect+ }+ cached[artworkUrl]?.let {+ state.value = it+ return@LaunchedEffect+ }+ state.value = extractDominant(context, artworkUrl)?.also { cached[artworkUrl] = it }+ }+ return state+}++private val cached = object : LinkedHashMap<String, Color>(16, 0.75f, true) {+ override fun removeEldestEntry(eldest: Map.Entry<String, Color>?) = size > 64+}++private suspend fun extractDominant(context: Context, url: String): Color? =+ withContext(Dispatchers.IO) {+ runCatching {+ val request = ImageRequest.Builder(context)+ .data(url)+ // Palette only needs colour proportions, so decode small: a+ // full-size cover costs far more memory for the same answer.+ .size(96)+ .allowHardware(false)+ .build()++ val bitmap = (context.imageLoader.execute(request) as? SuccessResult)+ ?.drawable+ ?.let { (it as? android.graphics.drawable.BitmapDrawable)?.bitmap }+ ?: return@runCatching null++ val palette = Palette.from(bitmap).clearFilters().generate()+ val rgb = palette.vibrantSwatch?.rgb+ ?: palette.lightVibrantSwatch?.rgb+ ?: palette.mutedSwatch?.rgb+ ?: palette.dominantSwatch?.rgb+ ?: return@runCatching null++ Color(rgb)+ }.getOrNull()+ }diff --git a/app/src/main/java/dev/emanuele/spot/ui/theme/Theme.kt b/app/src/main/java/dev/emanuele/spot/ui/theme/Theme.ktnew file mode 100644index 0000000..612a01c--- /dev/null+++ b/app/src/main/java/dev/emanuele/spot/ui/theme/Theme.kt@@ -0,0 +1,197 @@+package dev.emanuele.spot.ui.theme++import androidx.compose.animation.animateColorAsState+import androidx.compose.animation.core.tween+import androidx.compose.foundation.isSystemInDarkTheme+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.Typography+import androidx.compose.material3.darkColorScheme+import androidx.compose.material3.lightColorScheme+import androidx.compose.runtime.Composable+import androidx.compose.runtime.SideEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.remember+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.shadow+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.Shape+import androidx.compose.ui.graphics.luminance+import androidx.compose.ui.platform.LocalView+import androidx.compose.ui.text.TextStyle+import androidx.compose.ui.text.font.FontWeight+import androidx.compose.ui.unit.Dp+import androidx.compose.ui.unit.dp+import androidx.compose.ui.unit.sp+import androidx.core.view.WindowCompat++/**+ * Glass over the album art.+ *+ * The scheme is deliberately one-sided now. The paper version had a light and a+ * dark half because the page was opaque and had to match the system; here the+ * page *is* the artwork under a dark wash, so there is only ever dark glass with+ * light ink on it. Following the system theme would mean two backdrops and two+ * sets of legibility rules for a surface whose contrast does not depend on+ * either.+ *+ * `background` is transparent on purpose: whatever draws the backdrop sits+ * behind the whole tree, and an opaque page colour would cover it.+ *+ * What follows is the original note, still true of the accent:+ *+ * The neutrals do all the structural work — page, cards, text, borders are a+ * single grey ramp — and the accent seeded from the current cover is spent only+ * where the interface needs to say "this one, right now": the play button, the+ * played part of the waveform, an enabled toggle, the current row. Kept that+ * narrow, colour reads as state rather than as decoration, and the covers stay+ * the most colourful thing on screen.+ *+ * The seed is pushed toward legibility rather than used raw: a cover's dominant+ * colour is as likely to be near-black as near-white, and either one vanishes+ * against the wrong background.+ */+@Composable+fun SpotTheme(+ /** Dominant colour of the current artwork, or null before anything plays. */+ seed: Color? = null,+ darkTheme: Boolean = isSystemInDarkTheme(),+ content: @Composable () -> Unit,+) {+ val base = seed ?: DefaultAccent+ val accent = if (darkTheme) base.liftFor(DarkBase) else base.deepenFor(LightBase)++ // Animated so a track change slides the accent across instead of snapping,+ // which otherwise reads as a glitch when artwork loads a beat late.+ val animatedAccent by animateColorAsState(accent, tween(600), label = "accent")++ // Keyed on the accent: rebuilding a ColorScheme allocates dozens of colours+ // and invalidates every composable that reads MaterialTheme, so doing it on+ // each recomposition drags the whole tree along with the seek bar.+ val scheme = remember(animatedAccent) {+ darkColorScheme(+ primary = animatedAccent,+ onPrimary = Color(0xFF0B0D10),+ primaryContainer = GlassFill,+ onPrimaryContainer = Ink,+ secondary = InkDim,+ // See the note above: the backdrop shows through this.+ background = Color.Transparent,+ onBackground = Ink,+ // Glass, not a card: a translucent white film is what every surface+ // in this design is made of, and the refraction on top of it comes+ // from the backdrop library rather than from the colour.+ surface = GlassFill,+ onSurface = Ink,+ surfaceVariant = GlassFillStrong,+ onSurfaceVariant = InkDim,+ outlineVariant = Color.White.copy(alpha = 0.16f),+ )+ }++ // System bar icons have to flip with the theme; left alone they are drawn+ // for the system's own theme and disappear against ours.+ val view = LocalView.current+ if (!view.isInEditMode) {+ SideEffect {+ val window = (view.context as android.app.Activity).window+ // Always light icons: the bars sit over the darkened artwork, not+ // over the system's idea of a background.+ WindowCompat.getInsetsController(window, view).apply {+ isAppearanceLightStatusBars = false+ isAppearanceLightNavigationBars = false+ }+ }+ }++ MaterialTheme(colorScheme = scheme, typography = SpotTypography, content = content)+}++private val DarkBase = Color(0xFF0D0E11)+private val LightBase = Color(0xFFF1F2F6)++/** The film every glass surface is tinted with. */+private val GlassFill = Color.White.copy(alpha = 0.10f)+private val GlassFillStrong = Color.White.copy(alpha = 0.16f)++/** Text and icons, fixed light — see the note on [SpotTheme]. */+val Ink = Color(0xFFF7F8FA)+val InkDim = Color(0xFFF7F8FA).copy(alpha = 0.66f)++/**+ * Fallback accent, used until artwork provides one.+ *+ * Muted lilac rather than a green: Spotify's brand colour is 0xFF1DB954, and+ * anything near it makes the app read as a clone no matter how the rest is laid+ * out.+ */+private val DefaultAccent = Color(0xFF7C5CE6)++/** Brighten until the colour reads against a near-black background. */+private fun Color.liftFor(background: Color): Color {+ val floor = background.luminance() + 0.16f+ if (luminance() >= floor) return this+ val amount = ((floor - luminance()) * 2f).coerceIn(0f, 1f)+ return Color(+ red = red + (1f - red) * amount,+ green = green + (1f - green) * amount,+ blue = blue + (1f - blue) * amount,+ )+}++/** Darken until the colour reads against a near-white background. */+private fun Color.deepenFor(background: Color): Color {+ val ceiling = background.luminance() - 0.42f+ if (luminance() <= ceiling) return this+ val amount = ((luminance() - ceiling) * 1.1f).coerceIn(0f, 0.8f)+ return Color(+ red = red * (1f - amount),+ green = green * (1f - amount),+ blue = blue * (1f - amount),+ )+}++/**+ * The wide, soft, low-opacity drop shadow this design leans on.+ *+ * Elevation is the only depth cue left once colour is gone, so it does the work+ * that an accent used to: cards, covers and the mini player read as separate+ * layers rather than as regions of one flat sheet. Kept very diffuse — a tight+ * shadow at this size looks like a border and flattens the effect.+ */+fun Modifier.softShadow(+ shape: Shape,+ elevation: Dp = 18.dp,+ ambient: Float = 0.10f,+ spot: Float = 0.13f,+): Modifier = shadow(+ elevation = elevation,+ shape = shape,+ clip = false,+ ambientColor = Color.Black.copy(alpha = ambient),+ spotColor = Color.Black.copy(alpha = spot),+)++/**+ * Editorial rather than utilitarian: a large, tightly tracked display face+ * against small wide-tracked labels. The contrast between the two is what makes+ * a screen read as designed instead of as a list of controls.+ */+private val SpotTypography = Typography(+ displayLarge = TextStyle(+ fontSize = 34.sp,+ lineHeight = 38.sp,+ fontWeight = FontWeight.Bold,+ letterSpacing = (-1.2).sp,+ ),+ headlineLarge = TextStyle(+ fontSize = 27.sp,+ lineHeight = 31.sp,+ fontWeight = FontWeight.Bold,+ letterSpacing = (-0.8).sp,+ ),+ titleLarge = TextStyle(fontSize = 19.sp, fontWeight = FontWeight.SemiBold, letterSpacing = (-0.3).sp),+ titleMedium = TextStyle(fontSize = 15.5.sp, fontWeight = FontWeight.Medium, letterSpacing = (-0.1).sp),+ bodyMedium = TextStyle(fontSize = 13.5.sp, fontWeight = FontWeight.Normal),+ bodySmall = TextStyle(fontSize = 12.sp, fontWeight = FontWeight.Normal),+ labelLarge = TextStyle(fontSize = 10.5.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 1.2.sp),+)diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xmlnew file mode 100644index 0000000..c593a53--- /dev/null+++ b/app/src/main/res/drawable/ic_launcher_foreground.xml@@ -0,0 +1,10 @@+<?xml version="1.0" encoding="utf-8"?>+<vector xmlns:android="http://schemas.android.com/apk/res/android"+ android:width="108dp"+ android:height="108dp"+ android:viewportWidth="108"+ android:viewportHeight="108">+ <path+ android:fillColor="#FFFFFF"+ android:pathData="M54,30a24,24 0,1 0,0.1 0zM43,44c8,-2 17,-1 24,3a2,2 0,0 1,-2 3c-6,-3 -14,-4 -21,-2a2,2 0,0 1,-1 -4zM43,53c7,-2 14,-1 20,2a2,2 0,0 1,-2 3c-5,-2 -11,-3 -17,-2a2,2 0,0 1,-1 -3zM44,61c5,-1 11,-1 16,1a2,2 0,0 1,-1 3c-5,-2 -10,-2 -14,-1a2,2 0,0 1,-1 -3z" />+</vector>diff --git a/app/src/main/res/layout/canvas_surface.xml b/app/src/main/res/layout/canvas_surface.xmlnew file mode 100644index 0000000..29e0dee--- /dev/null+++ b/app/src/main/res/layout/canvas_surface.xml@@ -0,0 +1,22 @@+<?xml version="1.0" encoding="utf-8"?>+<!--+ The Canvas video surface.++ Inflated from XML rather than constructed in code for one reason:+ `surface_type` is a PlayerView construction-time attribute with no setter,+ and the default — a SurfaceView — is punched through the window rather than+ drawn into the view hierarchy. Nothing that samples a graphics layer can see+ it, so the glass panes over the player were refracting an empty layer and+ came out as flat translucent panels with the video simply visible underneath.++ A TextureView draws into the hierarchy like any other view, which is what+ makes it recordable, and costs an extra copy per frame for one short clip.+-->+<androidx.media3.ui.PlayerView xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:app="http://schemas.android.com/apk/res-auto"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ app:surface_type="texture_view"+ app:use_controller="false"+ app:resize_mode="zoom"+ app:shutter_background_color="@android:color/transparent" />diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xmlnew file mode 100644index 0000000..a8a8fa5--- /dev/null+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">+ <background android:drawable="@color/ic_launcher_background" />+ <foreground android:drawable="@drawable/ic_launcher_foreground" />+</adaptive-icon>diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xmlnew file mode 100644index 0000000..a8a8fa5--- /dev/null+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">+ <background android:drawable="@color/ic_launcher_background" />+ <foreground android:drawable="@drawable/ic_launcher_foreground" />+</adaptive-icon>diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xmlnew file mode 100644index 0000000..6d1b688--- /dev/null+++ b/app/src/main/res/values/colors.xml@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="utf-8"?>+<resources>+ <color name="ic_launcher_background">#1DB954</color>+</resources>diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlnew file mode 100644index 0000000..8a4e25a--- /dev/null+++ b/app/src/main/res/values/strings.xml@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="utf-8"?>+<resources>+ <string name="app_name">Spot</string>+</resources>diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xmlnew file mode 100644index 0000000..47019b8--- /dev/null+++ b/app/src/main/res/values/themes.xml@@ -0,0 +1,10 @@+<?xml version="1.0" encoding="utf-8"?>+<resources>+ <!-- Compose draws the whole UI, so the platform theme only has to survive+ the window between process start and the first frame. -->+ <style name="Theme.Spot" parent="android:Theme.Material.NoActionBar">+ <item name="android:statusBarColor">@android:color/transparent</item>+ <item name="android:navigationBarColor">@android:color/transparent</item>+ <item name="android:windowBackground">@android:color/black</item>+ </style>+</resources>diff --git a/build.gradle.kts b/build.gradle.ktsnew file mode 100644index 0000000..132ad8d--- /dev/null+++ b/build.gradle.kts@@ -0,0 +1,6 @@+plugins {+ alias(libs.plugins.android.application) apply false+ alias(libs.plugins.kotlin.android) apply false+ alias(libs.plugins.kotlin.compose) apply false+ alias(libs.plugins.kotlin.serialization) apply false+}diff --git a/gradle.properties b/gradle.propertiesnew file mode 100644index 0000000..40de4d1--- /dev/null+++ b/gradle.properties@@ -0,0 +1,11 @@+# 4g was enough to build but left R8 and the Kotlin compiler collecting garbage+# for a good part of their run.+org.gradle.jvmargs=-Xmx6144m -Dfile.encoding=UTF-8+org.gradle.parallel=true+org.gradle.caching=true+org.gradle.configuration-cache=true++android.useAndroidX=true+android.nonTransitiveRClass=true++kotlin.code.style=officialdiff --git a/gradle/libs.versions.toml b/gradle/libs.versions.tomlnew file mode 100644index 0000000..a5ed921--- /dev/null+++ b/gradle/libs.versions.toml@@ -0,0 +1,56 @@+[versions]+agp = "8.13.2"+kotlin = "2.3.21"+composeBom = "2026.06.01"+media3 = "1.5.1"+coroutines = "1.9.0"+lifecycle = "2.8.7"+okhttp = "4.12.0"+retrofit = "2.11.0"+serialization = "1.7.3"++[libraries]+androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.15.0" }+androidx-activity-compose = { module = "androidx.activity:activity-compose", version = "1.9.3" }+androidx-browser = { module = "androidx.browser:browser", version = "1.8.0" }+androidx-security-crypto = { module = "androidx.security:security-crypto", version = "1.1.0-alpha06" }+androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycle" }+androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle" }++compose-bom = { module = "androidx.compose:compose-bom", version.ref = "composeBom" }+compose-material3 = { module = "androidx.compose.material3:material3" }+compose-icons-extended = { module = "androidx.compose.material:material-icons-extended" }+compose-ui = { module = "androidx.compose.ui:ui" }+compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }+compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }++media3-common = { module = "androidx.media3:media3-common", version.ref = "media3" }+media3-session = { module = "androidx.media3:media3-session", version.ref = "media3" }+# Plays the Canvas clip only. Audio still comes from the librespot engine.+media3-exoplayer = { module = "androidx.media3:media3-exoplayer", version.ref = "media3" }+media3-ui = { module = "androidx.media3:media3-ui", version.ref = "media3" }++kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }+kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization" }++okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }+okhttp-logging = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp" }+retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }+retrofit-serialization = { module = "com.squareup.retrofit2:converter-kotlinx-serialization", version.ref = "retrofit" }++coil-compose = { module = "io.coil-kt:coil-compose", version = "2.7.0" }+androidx-palette = { module = "androidx.palette:palette-ktx", version = "1.0.0" }+androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version = "2.8.5" }++# Liquid glass surfaces (Apache-2.0). Compose-native and guarded internally:+# the refraction shader needs API 33, and the library falls back to a plain+# translucent fill below that rather than failing.+backdrop = { module = "io.github.kyant0:backdrop", version = "2.0.0" }+# Capsule and friends, used by the vendored Liquid* components.+kyant-shapes = { module = "io.github.kyant0:shapes", version = "1.2.0" }++[plugins]+android-application = { id = "com.android.application", version.ref = "agp" }+kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }+kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }+kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jarnew file mode 100644index 0000000..61285a6Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differdiff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.propertiesnew file mode 100644index 0000000..19a6bde--- /dev/null+++ b/gradle/wrapper/gradle-wrapper.properties@@ -0,0 +1,7 @@+distributionBase=GRADLE_USER_HOME+distributionPath=wrapper/dists+distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip+networkTimeout=10000+validateDistributionUrl=true+zipStoreBase=GRADLE_USER_HOME+zipStorePath=wrapper/distsdiff --git a/gradlew b/gradlewnew file mode 100755index 0000000..adff685--- /dev/null+++ b/gradlew@@ -0,0 +1,248 @@+#!/bin/sh++#+# Copyright © 2015 the original authors.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# https://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+# SPDX-License-Identifier: Apache-2.0+#++##############################################################################+#+# Gradle start up script for POSIX generated by Gradle.+#+# Important for running:+#+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is+# noncompliant, but you have some other compliant shell such as ksh or+# bash, then to run this script, type that shell name before the whole+# command line, like:+#+# ksh Gradle+#+# Busybox and similar reduced shells will NOT work, because this script+# requires all of these POSIX shell features:+# * functions;+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;+# * compound commands having a testable exit status, especially «case»;+# * various built-in commands including «command», «set», and «ulimit».+#+# Important for patching:+#+# (2) This script targets any POSIX shell, so it avoids extensions provided+# by Bash, Ksh, etc; in particular arrays are avoided.+#+# The "traditional" practice of packing multiple parameters into a+# space-separated string is a well documented source of bugs and security+# problems, so this is (mostly) avoided, by progressively accumulating+# options in "$@", and eventually passing that to Java.+#+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;+# see the in-line comments for details.+#+# There are tweaks for specific operating systems such as AIX, CygWin,+# Darwin, MinGW, and NonStop.+#+# (3) This script is generated from the Groovy template+# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt+# within the Gradle project.+#+# You can find Gradle at https://github.com/gradle/gradle/.+#+##############################################################################++# Attempt to set APP_HOME++# Resolve links: $0 may be a link+app_path=$0++# Need this for daisy-chained symlinks.+while+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path+ [ -h "$app_path" ]+do+ ls=$( ls -ld "$app_path" )+ link=${ls#*' -> '}+ case $link in #(+ /*) app_path=$link ;; #(+ *) app_path=$APP_HOME$link ;;+ esac+done++# This is normally unused+# shellcheck disable=SC2034+APP_BASE_NAME=${0##*/}+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)+APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit++# Use the maximum available, or set MAX_FD != -1 to use that value.+MAX_FD=maximum++warn () {+ echo "$*"+} >&2++die () {+ echo+ echo "$*"+ echo+ exit 1+} >&2++# OS specific support (must be 'true' or 'false').+cygwin=false+msys=false+darwin=false+nonstop=false+case "$( uname )" in #(+ CYGWIN* ) cygwin=true ;; #(+ Darwin* ) darwin=true ;; #(+ MSYS* | MINGW* ) msys=true ;; #(+ NONSTOP* ) nonstop=true ;;+esac++++# Determine the Java command to use to start the JVM.+if [ -n "$JAVA_HOME" ] ; then+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then+ # IBM's JDK on AIX uses strange locations for the executables+ JAVACMD=$JAVA_HOME/jre/sh/java+ else+ JAVACMD=$JAVA_HOME/bin/java+ fi+ if [ ! -x "$JAVACMD" ] ; then+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME++Please set the JAVA_HOME variable in your environment to match the+location of your Java installation."+ fi+else+ JAVACMD=java+ if ! command -v java >/dev/null 2>&1+ then+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.++Please set the JAVA_HOME variable in your environment to match the+location of your Java installation."+ fi+fi++# Increase the maximum file descriptors if we can.+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then+ case $MAX_FD in #(+ max*)+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.+ # shellcheck disable=SC2039,SC3045+ MAX_FD=$( ulimit -H -n ) ||+ warn "Could not query maximum file descriptor limit"+ esac+ case $MAX_FD in #(+ '' | soft) :;; #(+ *)+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.+ # shellcheck disable=SC2039,SC3045+ ulimit -n "$MAX_FD" ||+ warn "Could not set maximum file descriptor limit to $MAX_FD"+ esac+fi++# Collect all arguments for the java command, stacking in reverse order:+# * args from the command line+# * the main class name+# * -classpath+# * -D...appname settings+# * --module-path (only if needed)+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.++# For Cygwin or MSYS, switch paths to Windows format before running java+if "$cygwin" || "$msys" ; then+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )++ JAVACMD=$( cygpath --unix "$JAVACMD" )++ # Now convert the arguments - kludge to limit ourselves to /bin/sh+ for arg do+ if+ case $arg in #(+ -*) false ;; # don't mess with options #(+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath+ [ -e "$t" ] ;; #(+ *) false ;;+ esac+ then+ arg=$( cygpath --path --ignore --mixed "$arg" )+ fi+ # Roll the args list around exactly as many times as the number of+ # args, so each arg winds up back in the position where it started, but+ # possibly modified.+ #+ # NB: a `for` loop captures its iteration list before it begins, so+ # changing the positional parameters here affects neither the number of+ # iterations, nor the values presented in `arg`.+ shift # remove old arg+ set -- "$@" "$arg" # push replacement arg+ done+fi+++# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'++# Collect all arguments for the java command:+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,+# and any embedded shellness will be escaped.+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be+# treated as '${Hostname}' itself on the command line.++set -- \+ "-Dorg.gradle.appname=$APP_BASE_NAME" \+ -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \+ "$@"++# Stop when "xargs" is not available.+if ! command -v xargs >/dev/null 2>&1+then+ die "xargs is not available"+fi++# Use "xargs" to parse quoted args.+#+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.+#+# In Bash we could simply go:+#+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&+# set -- "${ARGS[@]}" "$@"+#+# but POSIX shell has neither arrays nor command substitution, so instead we+# post-process each arg (as a line of input to sed) to backslash-escape any+# character that might be a shell metacharacter, then use eval to reverse+# that process (while maintaining the separation between arguments), and wrap+# the whole thing up as a single "set" statement.+#+# This will of course break if any of these variables contains a newline or+# an unmatched quote.+#++eval "set -- $(+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |+ xargs -n1 |+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |+ tr '\n' ' '+ )" '"$@"'++exec "$JAVACMD" "$@"diff --git a/gradlew.bat b/gradlew.batnew file mode 100644index 0000000..e509b2d--- /dev/null+++ b/gradlew.bat@@ -0,0 +1,93 @@+@rem+@rem Copyright 2015 the original author or authors.+@rem+@rem Licensed under the Apache License, Version 2.0 (the "License");+@rem you may not use this file except in compliance with the License.+@rem You may obtain a copy of the License at+@rem+@rem https://www.apache.org/licenses/LICENSE-2.0+@rem+@rem Unless required by applicable law or agreed to in writing, software+@rem distributed under the License is distributed on an "AS IS" BASIS,+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+@rem See the License for the specific language governing permissions and+@rem limitations under the License.+@rem+@rem SPDX-License-Identifier: Apache-2.0+@rem++@if "%DEBUG%"=="" @echo off+@rem ##########################################################################+@rem+@rem Gradle startup script for Windows+@rem+@rem ##########################################################################++@rem Set local scope for the variables with windows NT shell+if "%OS%"=="Windows_NT" setlocal++set DIRNAME=%~dp0+if "%DIRNAME%"=="" set DIRNAME=.+@rem This is normally unused+set APP_BASE_NAME=%~n0+set APP_HOME=%DIRNAME%++@rem Resolve any "." and ".." in APP_HOME to make it shorter.+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi++@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"++@rem Find java.exe+if defined JAVA_HOME goto findJavaFromJavaHome++set JAVA_EXE=java.exe+%JAVA_EXE% -version >NUL 2>&1+if %ERRORLEVEL% equ 0 goto execute++echo. 1>&2+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2+echo. 1>&2+echo Please set the JAVA_HOME variable in your environment to match the 1>&2+echo location of your Java installation. 1>&2++goto fail++:findJavaFromJavaHome+set JAVA_HOME=%JAVA_HOME:"=%+set JAVA_EXE=%JAVA_HOME%/bin/java.exe++if exist "%JAVA_EXE%" goto execute++echo. 1>&2+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2+echo. 1>&2+echo Please set the JAVA_HOME variable in your environment to match the 1>&2+echo location of your Java installation. 1>&2++goto fail++:execute+@rem Setup the command line++++@rem Execute Gradle+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*++:end+@rem End local scope for the variables with windows NT shell+if %ERRORLEVEL% equ 0 goto mainEnd++:fail+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of+rem the _cmd.exe /c_ return code!+set EXIT_CODE=%ERRORLEVEL%+if %EXIT_CODE% equ 0 set EXIT_CODE=1+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%+exit /b %EXIT_CODE%++:mainEnd+if "%OS%"=="Windows_NT" endlocal++:omegadiff --git a/native/Cargo.lock b/native/Cargo.locknew file mode 100644index 0000000..1ad0d12--- /dev/null+++ b/native/Cargo.lock@@ -0,0 +1,3522 @@+# This file is automatically @generated by Cargo.+# It is not intended for manual editing.+version = 3++[[package]]+name = "adler2"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"++[[package]]+name = "aes"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"+dependencies = [+ "cfg-if",+ "cipher",+ "cpufeatures 0.2.17",+]++[[package]]+name = "aho-corasick"+version = "1.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"+dependencies = [+ "memchr",+]++[[package]]+name = "allocator-api2"+version = "0.2.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"++[[package]]+name = "android_log-sys"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "84521a3cf562bc62942e294181d9eef17eb38ceb8c68677bc49f144e4c3d4f8d"++[[package]]+name = "android_logger"+version = "0.14.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "05b07e8e73d720a1f2e4b6014766e6039fd2e96a4fa44e2a78d0e1fa2ff49826"+dependencies = [+ "android_log-sys",+ "env_filter",+ "log",+]++[[package]]+name = "android_system_properties"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"+dependencies = [+ "libc",+]++[[package]]+name = "anyhow"+version = "1.0.104"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"++[[package]]+name = "arrayvec"+version = "0.7.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"++[[package]]+name = "async-trait"+version = "0.1.91"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae36dc4177970ef04fde5178d3e2429882def40e57a451f919c098f72baa6cec"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 3.0.3",+]++[[package]]+name = "atomic-waker"+version = "1.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"++[[package]]+name = "autocfg"+version = "1.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"++[[package]]+name = "base64"+version = "0.22.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"++[[package]]+name = "base64ct"+version = "1.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"++[[package]]+name = "bitflags"+version = "1.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"++[[package]]+name = "bitflags"+version = "2.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"++[[package]]+name = "block-buffer"+version = "0.10.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"+dependencies = [+ "generic-array",+]++[[package]]+name = "bumpalo"+version = "3.20.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"++[[package]]+name = "bytemuck"+version = "1.25.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"++[[package]]+name = "byteorder"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"++[[package]]+name = "bytes"+version = "1.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"++[[package]]+name = "cc"+version = "1.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5add81bb678e6cb321aff7fa0dc7689ad82b112dbc032cea19f91d6b8e3582b9"+dependencies = [+ "find-msvc-tools",+ "shlex",+]++[[package]]+name = "cesu8"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"++[[package]]+name = "cfg-if"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"++[[package]]+name = "cfg_aliases"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"++[[package]]+name = "chacha20"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"+dependencies = [+ "cfg-if",+ "cpufeatures 0.3.0",+ "rand_core 0.10.1",+]++[[package]]+name = "chrono"+version = "0.4.45"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"+dependencies = [+ "iana-time-zone",+ "js-sys",+ "num-traits",+ "serde",+ "wasm-bindgen",+ "windows-link 0.2.1",+]++[[package]]+name = "cipher"+version = "0.4.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"+dependencies = [+ "crypto-common",+ "inout",+]++[[package]]+name = "combine"+version = "4.6.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"+dependencies = [+ "bytes",+ "memchr",+]++[[package]]+name = "const-oid"+version = "0.9.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"++[[package]]+name = "core-foundation"+version = "0.9.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "core-foundation-sys"+version = "0.8.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"++[[package]]+name = "cpufeatures"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"+dependencies = [+ "libc",+]++[[package]]+name = "cpufeatures"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"+dependencies = [+ "libc",+]++[[package]]+name = "crc32fast"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"+dependencies = [+ "cfg-if",+]++[[package]]+name = "crypto-common"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"+dependencies = [+ "generic-array",+ "typenum",+]++[[package]]+name = "ctr"+version = "0.9.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835"+dependencies = [+ "cipher",+]++[[package]]+name = "darling"+version = "0.20.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"+dependencies = [+ "darling_core",+ "darling_macro",+]++[[package]]+name = "darling_core"+version = "0.20.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"+dependencies = [+ "fnv",+ "ident_case",+ "proc-macro2",+ "quote",+ "strsim",+ "syn 2.0.119",+]++[[package]]+name = "darling_macro"+version = "0.20.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"+dependencies = [+ "darling_core",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "data-encoding"+version = "2.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a4ae5f15dda3c708c0ade84bfee31ccab44a3da4f88015ed22f63732abe300c8"++[[package]]+name = "der"+version = "0.7.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"+dependencies = [+ "const-oid",+ "pem-rfc7468",+ "zeroize",+]++[[package]]+name = "deranged"+version = "0.5.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"++[[package]]+name = "derive_builder"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947"+dependencies = [+ "derive_builder_macro",+]++[[package]]+name = "derive_builder_core"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"+dependencies = [+ "darling",+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "derive_builder_macro"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"+dependencies = [+ "derive_builder_core",+ "syn 2.0.119",+]++[[package]]+name = "digest"+version = "0.10.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"+dependencies = [+ "block-buffer",+ "const-oid",+ "crypto-common",+ "subtle",+]++[[package]]+name = "displaydoc"+version = "0.2.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 3.0.3",+]++[[package]]+name = "either"+version = "1.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"++[[package]]+name = "encoding_rs"+version = "0.8.35"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"+dependencies = [+ "cfg-if",+]++[[package]]+name = "env_filter"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1bf3c259d255ca70051b30e2e95b5446cdb8949ac4cd22c0d7fd634d89f568e2"+dependencies = [+ "log",+ "regex",+]++[[package]]+name = "equivalent"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"++[[package]]+name = "errno"+version = "0.3.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"+dependencies = [+ "libc",+ "windows-sys 0.61.2",+]++[[package]]+name = "fastrand"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"++[[package]]+name = "find-msvc-tools"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"++[[package]]+name = "flate2"+version = "1.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"+dependencies = [+ "crc32fast",+ "miniz_oxide",+]++[[package]]+name = "fnv"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"++[[package]]+name = "foldhash"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"++[[package]]+name = "form_urlencoded"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"+dependencies = [+ "percent-encoding",+]++[[package]]+name = "futures-channel"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae"+dependencies = [+ "futures-core",+ "futures-sink",+]++[[package]]+name = "futures-core"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7"++[[package]]+name = "futures-io"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a"++[[package]]+name = "futures-macro"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2d6d3cde68c518367be28956066ddfef33813991b77a55005a69dae04bf3b10b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "futures-sink"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307"++[[package]]+name = "futures-task"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109"++[[package]]+name = "futures-timer"+version = "3.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "af43fadb8a98512d547e37b4e92e0ced13e205c061b87b4623eff01d918d6968"++[[package]]+name = "futures-util"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa"+dependencies = [+ "futures-core",+ "futures-io",+ "futures-macro",+ "futures-sink",+ "futures-task",+ "memchr",+ "pin-project-lite",+ "slab",+]++[[package]]+name = "generic-array"+version = "0.14.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"+dependencies = [+ "typenum",+ "version_check",+]++[[package]]+name = "getrandom"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"+dependencies = [+ "cfg-if",+ "js-sys",+ "libc",+ "wasi",+ "wasm-bindgen",+]++[[package]]+name = "getrandom"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"+dependencies = [+ "cfg-if",+ "libc",+ "r-efi 5.3.0",+ "wasip2",+]++[[package]]+name = "getrandom"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"+dependencies = [+ "cfg-if",+ "js-sys",+ "libc",+ "r-efi 6.0.0",+ "rand_core 0.10.1",+ "wasm-bindgen",+]++[[package]]+name = "governor"+version = "0.10.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9efcab3c1958580ff1f25a2a41be1668f7603d849bb63af523b208a3cc1223b8"+dependencies = [+ "cfg-if",+ "futures-sink",+ "futures-timer",+ "futures-util",+ "hashbrown 0.16.1",+ "nonzero_ext",+ "parking_lot",+ "portable-atomic",+ "smallvec",+ "spinning_top",+ "web-time",+]++[[package]]+name = "h2"+version = "0.4.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6cb093c84e8bd9b188d4c4a8cb6579fc016968d14c99882163cd3ff402a4f155"+dependencies = [+ "atomic-waker",+ "bytes",+ "fnv",+ "futures-core",+ "futures-sink",+ "http",+ "indexmap",+ "slab",+ "tokio",+ "tokio-util",+ "tracing",+]++[[package]]+name = "hashbrown"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"+dependencies = [+ "allocator-api2",+ "equivalent",+ "foldhash",+]++[[package]]+name = "hashbrown"+version = "0.17.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"++[[package]]+name = "headers"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b3314d5adb5d94bcdf56771f2e50dbbc80bb4bdf88967526706205ac9eff24eb"+dependencies = [+ "base64",+ "bytes",+ "headers-core",+ "http",+ "httpdate",+ "mime",+ "sha1",+]++[[package]]+name = "headers-core"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4"+dependencies = [+ "http",+]++[[package]]+name = "hmac"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"+dependencies = [+ "digest",+]++[[package]]+name = "home"+version = "0.5.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d"+dependencies = [+ "windows-sys 0.61.2",+]++[[package]]+name = "http"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"+dependencies = [+ "bytes",+ "itoa",+]++[[package]]+name = "http-body"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"+dependencies = [+ "bytes",+ "http",+]++[[package]]+name = "http-body-util"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2"+dependencies = [+ "bytes",+ "futures-core",+ "http",+ "http-body",+ "pin-project-lite",+]++[[package]]+name = "httparse"+version = "1.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"++[[package]]+name = "httpdate"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"++[[package]]+name = "hyper"+version = "1.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72"+dependencies = [+ "atomic-waker",+ "bytes",+ "futures-channel",+ "futures-core",+ "h2",+ "http",+ "http-body",+ "httparse",+ "itoa",+ "pin-project-lite",+ "smallvec",+ "tokio",+ "want",+]++[[package]]+name = "hyper-proxy2"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9043b7b23fb0bc4a1c7014c27b50a4fc42cc76206f71d34fc0dfe5b28ddc3faf"+dependencies = [+ "bytes",+ "futures-util",+ "headers",+ "http",+ "hyper",+ "hyper-rustls 0.26.0",+ "hyper-util",+ "pin-project-lite",+ "tokio",+ "tokio-rustls 0.25.0",+ "tower-service",+ "webpki",+ "webpki-roots 0.26.11",+]++[[package]]+name = "hyper-rustls"+version = "0.26.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a0bea761b46ae2b24eb4aef630d8d1c398157b6fc29e6350ecf090a0b70c952c"+dependencies = [+ "futures-util",+ "http",+ "hyper",+ "hyper-util",+ "log",+ "rustls 0.22.4",+ "rustls-native-certs",+ "rustls-pki-types",+ "tokio",+ "tokio-rustls 0.25.0",+ "tower-service",+ "webpki-roots 0.26.11",+]++[[package]]+name = "hyper-rustls"+version = "0.27.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"+dependencies = [+ "http",+ "hyper",+ "hyper-util",+ "rustls 0.23.43",+ "tokio",+ "tokio-rustls 0.26.4",+ "tower-service",+ "webpki-roots 1.0.9",+]++[[package]]+name = "hyper-util"+version = "0.1.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"+dependencies = [+ "base64",+ "bytes",+ "futures-channel",+ "futures-util",+ "http",+ "http-body",+ "hyper",+ "ipnet",+ "libc",+ "percent-encoding",+ "pin-project-lite",+ "socket2",+ "system-configuration",+ "tokio",+ "tower-service",+ "tracing",+ "windows-registry",+]++[[package]]+name = "iana-time-zone"+version = "0.1.65"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"+dependencies = [+ "android_system_properties",+ "core-foundation-sys",+ "iana-time-zone-haiku",+ "js-sys",+ "log",+ "wasm-bindgen",+ "windows-core 0.62.2",+]++[[package]]+name = "iana-time-zone-haiku"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"+dependencies = [+ "cc",+]++[[package]]+name = "icu_collections"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"+dependencies = [+ "displaydoc",+ "potential_utf",+ "utf8_iter",+ "yoke",+ "zerofrom",+ "zerovec",+]++[[package]]+name = "icu_locale_core"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"+dependencies = [+ "displaydoc",+ "litemap",+ "tinystr",+ "writeable",+ "zerovec",+]++[[package]]+name = "icu_normalizer"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"+dependencies = [+ "icu_collections",+ "icu_normalizer_data",+ "icu_properties",+ "icu_provider",+ "smallvec",+ "zerovec",+]++[[package]]+name = "icu_normalizer_data"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"++[[package]]+name = "icu_properties"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"+dependencies = [+ "icu_collections",+ "icu_locale_core",+ "icu_properties_data",+ "icu_provider",+ "zerotrie",+ "zerovec",+]++[[package]]+name = "icu_properties_data"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"++[[package]]+name = "icu_provider"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"+dependencies = [+ "displaydoc",+ "icu_locale_core",+ "writeable",+ "yoke",+ "zerofrom",+ "zerotrie",+ "zerovec",+]++[[package]]+name = "ident_case"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"++[[package]]+name = "idna"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"+dependencies = [+ "idna_adapter",+ "smallvec",+ "utf8_iter",+]++[[package]]+name = "idna_adapter"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"+dependencies = [+ "icu_normalizer",+ "icu_properties",+]++[[package]]+name = "indexmap"+version = "2.14.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"+dependencies = [+ "equivalent",+ "hashbrown 0.17.1",+]++[[package]]+name = "inout"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"+dependencies = [+ "generic-array",+]++[[package]]+name = "ipnet"+version = "2.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"++[[package]]+name = "is-docker"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3"+dependencies = [+ "once_cell",+]++[[package]]+name = "is-wsl"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5"+dependencies = [+ "is-docker",+ "once_cell",+]++[[package]]+name = "itoa"+version = "1.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"++[[package]]+name = "jni"+version = "0.21.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"+dependencies = [+ "cesu8",+ "cfg-if",+ "combine",+ "jni-sys 0.3.1",+ "log",+ "thiserror 1.0.69",+ "walkdir",+ "windows-sys 0.45.0",+]++[[package]]+name = "jni-sys"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"+dependencies = [+ "jni-sys 0.4.1",+]++[[package]]+name = "jni-sys"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"+dependencies = [+ "jni-sys-macros",+]++[[package]]+name = "jni-sys-macros"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"+dependencies = [+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "js-sys"+version = "0.3.103"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102"+dependencies = [+ "cfg-if",+ "futures-util",+ "wasm-bindgen",+]++[[package]]+name = "lazy_static"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"+dependencies = [+ "spin",+]++[[package]]+name = "libc"+version = "0.2.189"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"++[[package]]+name = "libm"+version = "0.2.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"++[[package]]+name = "librespot-audio"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b3fe76acb49f58165484303edf0e7bd778f0e6d96f5c59e9d6b6fde1a90d36ff"+dependencies = [+ "aes",+ "bytes",+ "ctr",+ "futures-util",+ "http-body-util",+ "hyper",+ "hyper-util",+ "librespot-core",+ "log",+ "tempfile",+ "thiserror 2.0.19",+ "tokio",+]++[[package]]+name = "librespot-core"+version = "0.8.0"+dependencies = [+ "aes",+ "base64",+ "byteorder",+ "bytes",+ "data-encoding",+ "flate2",+ "form_urlencoded",+ "futures-core",+ "futures-util",+ "governor",+ "hmac",+ "http",+ "http-body-util",+ "httparse",+ "hyper",+ "hyper-proxy2",+ "hyper-rustls 0.27.9",+ "hyper-util",+ "librespot-oauth",+ "librespot-protocol",+ "log",+ "nonzero_ext",+ "num-bigint",+ "num-derive",+ "num-integer",+ "num-traits",+ "pbkdf2",+ "pin-project-lite",+ "priority-queue",+ "protobuf",+ "protobuf-json-mapping",+ "quick-xml",+ "rand 0.9.5",+ "rand_distr",+ "rsa",+ "serde",+ "serde_json",+ "sha1",+ "shannon",+ "sysinfo",+ "thiserror 2.0.19",+ "time",+ "tokio",+ "tokio-stream",+ "tokio-tungstenite",+ "tokio-util",+ "url",+ "uuid",+ "vergen-gitcl",+]++[[package]]+name = "librespot-metadata"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9a9c688aa2acd3ed2498e31a95d6f2be49c0f18128db8958450ffd628aa88532"+dependencies = [+ "async-trait",+ "bytes",+ "librespot-core",+ "librespot-protocol",+ "log",+ "protobuf",+ "serde",+ "serde_json",+ "thiserror 2.0.19",+ "uuid",+]++[[package]]+name = "librespot-oauth"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d686417d49c9d2c363392ffe28d6e469daca20a82dc414740930e078f5829661"+dependencies = [+ "log",+ "oauth2",+ "open",+ "reqwest",+ "thiserror 2.0.19",+ "url",+]++[[package]]+name = "librespot-playback"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "88258620bf3e6808ea1fadd11639648d77c06280b9f5a4c9d14ea79f6f998af6"+dependencies = [+ "form_urlencoded",+ "futures-util",+ "librespot-audio",+ "librespot-core",+ "librespot-metadata",+ "log",+ "portable-atomic",+ "rand 0.9.5",+ "rand_distr",+ "shell-words",+ "symphonia",+ "thiserror 2.0.19",+ "tokio",+ "zerocopy",+]++[[package]]+name = "librespot-protocol"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3e01f0b2d39f83fa162eb91d4a16313bcf99e77daf258abe8f7b7bcb1160b084"+dependencies = [+ "protobuf",+ "protobuf-codegen",+]++[[package]]+name = "linux-raw-sys"+version = "0.4.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"++[[package]]+name = "linux-raw-sys"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"++[[package]]+name = "litemap"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"++[[package]]+name = "lock_api"+version = "0.4.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"+dependencies = [+ "scopeguard",+]++[[package]]+name = "log"+version = "0.4.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"++[[package]]+name = "lru-slab"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"++[[package]]+name = "memchr"+version = "2.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"++[[package]]+name = "mime"+version = "0.3.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"++[[package]]+name = "miniz_oxide"+version = "0.8.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"+dependencies = [+ "adler2",+ "simd-adler32",+]++[[package]]+name = "mio"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427"+dependencies = [+ "libc",+ "wasi",+ "windows-sys 0.61.2",+]++[[package]]+name = "ndk-context"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"++[[package]]+name = "nonzero_ext"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21"++[[package]]+name = "ntapi"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3b335231dfd352ffb0f8017f3b6027a4917f7df785ea2143d8af2adc66980ae"+dependencies = [+ "winapi",+]++[[package]]+name = "num-bigint"+version = "0.4.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"+dependencies = [+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-bigint-dig"+version = "0.8.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e661dda6640fad38e827a6d4a310ff4763082116fe217f279885c97f511bb0b7"+dependencies = [+ "lazy_static",+ "libm",+ "num-integer",+ "num-iter",+ "num-traits",+ "rand 0.8.7",+ "smallvec",+ "zeroize",+]++[[package]]+name = "num-conv"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"++[[package]]+name = "num-derive"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "num-integer"+version = "0.1.46"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"+dependencies = [+ "num-traits",+]++[[package]]+name = "num-iter"+version = "0.1.46"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"+dependencies = [+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-traits"+version = "0.2.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"+dependencies = [+ "autocfg",+ "libm",+]++[[package]]+name = "num_threads"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9"+dependencies = [+ "libc",+]++[[package]]+name = "oauth2"+version = "5.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "51e219e79014df21a225b1860a479e2dcd7cbd9130f4defd4bd0e191ea31d67d"+dependencies = [+ "base64",+ "chrono",+ "getrandom 0.2.17",+ "http",+ "rand 0.8.7",+ "reqwest",+ "serde",+ "serde_json",+ "serde_path_to_error",+ "sha2",+ "thiserror 1.0.69",+ "url",+]++[[package]]+name = "objc2-core-foundation"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"+dependencies = [+ "bitflags 2.13.1",+]++[[package]]+name = "objc2-io-kit"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"+dependencies = [+ "libc",+ "objc2-core-foundation",+]++[[package]]+name = "once_cell"+version = "1.21.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"++[[package]]+name = "open"+version = "5.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a0b3d059e795d52b8a72fef45658620edd4d9c359b338564aa14391ffa511ed5"+dependencies = [+ "is-wsl",+ "libc",+]++[[package]]+name = "openssl-probe"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"++[[package]]+name = "parking_lot"+version = "0.12.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"+dependencies = [+ "lock_api",+ "parking_lot_core",+]++[[package]]+name = "parking_lot_core"+version = "0.9.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"+dependencies = [+ "cfg-if",+ "libc",+ "redox_syscall",+ "smallvec",+ "windows-link 0.2.1",+]++[[package]]+name = "pbkdf2"+version = "0.12.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2"+dependencies = [+ "digest",+ "hmac",+]++[[package]]+name = "pem-rfc7468"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412"+dependencies = [+ "base64ct",+]++[[package]]+name = "percent-encoding"+version = "2.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"++[[package]]+name = "pin-project-lite"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"++[[package]]+name = "pkcs1"+version = "0.7.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f"+dependencies = [+ "der",+ "pkcs8",+ "spki",+]++[[package]]+name = "pkcs8"+version = "0.10.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"+dependencies = [+ "der",+ "spki",+]++[[package]]+name = "portable-atomic"+version = "1.14.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"++[[package]]+name = "potential_utf"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"+dependencies = [+ "zerovec",+]++[[package]]+name = "powerfmt"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"++[[package]]+name = "ppv-lite86"+version = "0.2.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"+dependencies = [+ "zerocopy",+]++[[package]]+name = "priority-queue"+version = "2.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93980406f12d9f8140ed5abe7155acb10bb1e69ea55c88960b9c2f117445ef96"+dependencies = [+ "equivalent",+ "indexmap",+ "serde",+]++[[package]]+name = "proc-macro2"+version = "1.0.107"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "protobuf"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d65a1d4ddae7d8b5de68153b48f6aa3bba8cb002b243dbdbc55a5afbc98f99f4"+dependencies = [+ "once_cell",+ "protobuf-support",+ "thiserror 1.0.69",+]++[[package]]+name = "protobuf-codegen"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5d3976825c0014bbd2f3b34f0001876604fe87e0c86cd8fa54251530f1544ace"+dependencies = [+ "anyhow",+ "once_cell",+ "protobuf",+ "protobuf-parse",+ "regex",+ "tempfile",+ "thiserror 1.0.69",+]++[[package]]+name = "protobuf-json-mapping"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e0d6e4be637b310d8a5c02fa195243328e2d97fa7df1127a27281ef1187fcb1d"+dependencies = [+ "protobuf",+ "protobuf-support",+ "thiserror 1.0.69",+]++[[package]]+name = "protobuf-parse"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b4aeaa1f2460f1d348eeaeed86aea999ce98c1bded6f089ff8514c9d9dbdc973"+dependencies = [+ "anyhow",+ "indexmap",+ "log",+ "protobuf",+ "protobuf-support",+ "tempfile",+ "thiserror 1.0.69",+ "which",+]++[[package]]+name = "protobuf-support"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3e36c2f31e0a47f9280fb347ef5e461ffcd2c52dd520d8e216b52f93b0b0d7d6"+dependencies = [+ "thiserror 1.0.69",+]++[[package]]+name = "quick-xml"+version = "0.38.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b66c2058c55a409d601666cffe35f04333cf1013010882cec174a7467cd4e21c"+dependencies = [+ "memchr",+ "serde",+]++[[package]]+name = "quinn"+version = "0.11.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8"+dependencies = [+ "bytes",+ "cfg_aliases",+ "pin-project-lite",+ "quinn-proto",+ "quinn-udp",+ "rustc-hash",+ "rustls 0.23.43",+ "socket2",+ "thiserror 2.0.19",+ "tokio",+ "tracing",+ "web-time",+]++[[package]]+name = "quinn-proto"+version = "0.11.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560"+dependencies = [+ "bytes",+ "getrandom 0.4.3",+ "lru-slab",+ "rand 0.10.2",+ "rand_pcg",+ "ring",+ "rustc-hash",+ "rustls 0.23.43",+ "rustls-pki-types",+ "slab",+ "thiserror 2.0.19",+ "tinyvec",+ "tracing",+ "web-time",+]++[[package]]+name = "quinn-udp"+version = "0.5.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694"+dependencies = [+ "cfg_aliases",+ "libc",+ "once_cell",+ "socket2",+ "tracing",+ "windows-sys 0.61.2",+]++[[package]]+name = "quote"+version = "1.0.47"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "r-efi"+version = "5.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"++[[package]]+name = "r-efi"+version = "6.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"++[[package]]+name = "rand"+version = "0.8.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "22f6172bdec972074665ed81ed53b71da00bfc44b65a753cfde883ec4c702a1a"+dependencies = [+ "libc",+ "rand_chacha 0.3.1",+ "rand_core 0.6.4",+]++[[package]]+name = "rand"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"+dependencies = [+ "rand_chacha 0.9.0",+ "rand_core 0.9.5",+]++[[package]]+name = "rand"+version = "0.10.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"+dependencies = [+ "chacha20",+ "getrandom 0.4.3",+ "rand_core 0.10.1",+]++[[package]]+name = "rand_chacha"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"+dependencies = [+ "ppv-lite86",+ "rand_core 0.6.4",+]++[[package]]+name = "rand_chacha"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"+dependencies = [+ "ppv-lite86",+ "rand_core 0.9.5",+]++[[package]]+name = "rand_core"+version = "0.6.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"+dependencies = [+ "getrandom 0.2.17",+]++[[package]]+name = "rand_core"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"+dependencies = [+ "getrandom 0.3.4",+]++[[package]]+name = "rand_core"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"++[[package]]+name = "rand_distr"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6a8615d50dcf34fa31f7ab52692afec947c4dd0ab803cc87cb3b0b4570ff7463"+dependencies = [+ "num-traits",+ "rand 0.9.5",+]++[[package]]+name = "rand_pcg"+version = "0.10.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"+dependencies = [+ "rand_core 0.10.1",+]++[[package]]+name = "redox_syscall"+version = "0.5.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"+dependencies = [+ "bitflags 2.13.1",+]++[[package]]+name = "regex"+version = "1.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"+dependencies = [+ "aho-corasick",+ "memchr",+ "regex-automata",+ "regex-syntax",+]++[[package]]+name = "regex-automata"+version = "0.4.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8fcfdb36bda0c880c5931cdc7a2bcdc8ba4556847b9d912bca70bc94708711ad"+dependencies = [+ "aho-corasick",+ "memchr",+ "regex-syntax",+]++[[package]]+name = "regex-syntax"+version = "0.8.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"++[[package]]+name = "reqwest"+version = "0.12.28"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"+dependencies = [+ "base64",+ "bytes",+ "futures-channel",+ "futures-core",+ "futures-util",+ "http",+ "http-body",+ "http-body-util",+ "hyper",+ "hyper-rustls 0.27.9",+ "hyper-util",+ "js-sys",+ "log",+ "percent-encoding",+ "pin-project-lite",+ "quinn",+ "rustls 0.23.43",+ "rustls-pki-types",+ "serde",+ "serde_json",+ "serde_urlencoded",+ "sync_wrapper",+ "tokio",+ "tokio-rustls 0.26.4",+ "tower",+ "tower-http",+ "tower-service",+ "url",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "web-sys",+ "webpki-roots 1.0.9",+]++[[package]]+name = "ring"+version = "0.17.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"+dependencies = [+ "cc",+ "cfg-if",+ "getrandom 0.2.17",+ "libc",+ "untrusted",+ "windows-sys 0.52.0",+]++[[package]]+name = "rsa"+version = "0.9.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d"+dependencies = [+ "const-oid",+ "digest",+ "num-bigint-dig",+ "num-integer",+ "num-traits",+ "pkcs1",+ "pkcs8",+ "rand_core 0.6.4",+ "signature",+ "spki",+ "subtle",+ "zeroize",+]++[[package]]+name = "rustc-hash"+version = "2.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"++[[package]]+name = "rustix"+version = "0.38.44"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"+dependencies = [+ "bitflags 2.13.1",+ "errno",+ "libc",+ "linux-raw-sys 0.4.15",+ "windows-sys 0.59.0",+]++[[package]]+name = "rustix"+version = "1.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"+dependencies = [+ "bitflags 2.13.1",+ "errno",+ "libc",+ "linux-raw-sys 0.12.1",+ "windows-sys 0.61.2",+]++[[package]]+name = "rustls"+version = "0.22.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432"+dependencies = [+ "log",+ "ring",+ "rustls-pki-types",+ "rustls-webpki 0.102.8",+ "subtle",+ "zeroize",+]++[[package]]+name = "rustls"+version = "0.23.43"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0283386ce02abc0151e1761d08802dfe86c173b0b494af5cbc086574e453da06"+dependencies = [+ "once_cell",+ "ring",+ "rustls-pki-types",+ "rustls-webpki 0.103.13",+ "subtle",+ "zeroize",+]++[[package]]+name = "rustls-native-certs"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5"+dependencies = [+ "openssl-probe",+ "rustls-pemfile",+ "rustls-pki-types",+ "schannel",+ "security-framework",+]++[[package]]+name = "rustls-pemfile"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"+dependencies = [+ "rustls-pki-types",+]++[[package]]+name = "rustls-pki-types"+version = "1.15.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"+dependencies = [+ "web-time",+ "zeroize",+]++[[package]]+name = "rustls-webpki"+version = "0.102.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"+dependencies = [+ "ring",+ "rustls-pki-types",+ "untrusted",+]++[[package]]+name = "rustls-webpki"+version = "0.103.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"+dependencies = [+ "ring",+ "rustls-pki-types",+ "untrusted",+]++[[package]]+name = "rustversion"+version = "1.0.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"++[[package]]+name = "ryu"+version = "1.0.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"++[[package]]+name = "same-file"+version = "1.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"+dependencies = [+ "winapi-util",+]++[[package]]+name = "schannel"+version = "0.1.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"+dependencies = [+ "windows-sys 0.61.2",+]++[[package]]+name = "scopeguard"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"++[[package]]+name = "security-framework"+version = "2.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"+dependencies = [+ "bitflags 2.13.1",+ "core-foundation",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework-sys"+version = "2.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "serde"+version = "1.0.229"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"+dependencies = [+ "serde_core",+ "serde_derive",+]++[[package]]+name = "serde_core"+version = "1.0.229"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"+dependencies = [+ "serde_derive",+]++[[package]]+name = "serde_derive"+version = "1.0.229"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 3.0.3",+]++[[package]]+name = "serde_json"+version = "1.0.151"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"+dependencies = [+ "itoa",+ "memchr",+ "serde",+ "serde_core",+ "zmij",+]++[[package]]+name = "serde_path_to_error"+version = "0.1.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"+dependencies = [+ "itoa",+ "serde",+ "serde_core",+]++[[package]]+name = "serde_urlencoded"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"+dependencies = [+ "form_urlencoded",+ "itoa",+ "ryu",+ "serde",+]++[[package]]+name = "sha1"+version = "0.10.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8"+dependencies = [+ "cfg-if",+ "cpufeatures 0.2.17",+ "digest",+]++[[package]]+name = "sha2"+version = "0.10.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"+dependencies = [+ "cfg-if",+ "cpufeatures 0.2.17",+ "digest",+]++[[package]]+name = "shannon"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7ea5b41c9427b56caa7b808cb548a04fb50bb5b9e98590b53f28064ff4174561"+dependencies = [+ "byteorder",+]++[[package]]+name = "shell-words"+version = "1.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"++[[package]]+name = "shlex"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"++[[package]]+name = "signature"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"+dependencies = [+ "digest",+ "rand_core 0.6.4",+]++[[package]]+name = "simd-adler32"+version = "0.3.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"++[[package]]+name = "slab"+version = "0.4.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"++[[package]]+name = "smallvec"+version = "1.15.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"++[[package]]+name = "socket2"+version = "0.6.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"+dependencies = [+ "libc",+ "windows-sys 0.61.2",+]++[[package]]+name = "spin"+version = "0.9.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e"++[[package]]+name = "spinning_top"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300"+dependencies = [+ "lock_api",+]++[[package]]+name = "spki"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"+dependencies = [+ "base64ct",+ "der",+]++[[package]]+name = "spotcore"+version = "0.1.0"+dependencies = [+ "android_logger",+ "futures-util",+ "http",+ "jni",+ "librespot-core",+ "librespot-metadata",+ "librespot-playback",+ "librespot-protocol",+ "log",+ "ndk-context",+ "once_cell",+ "protobuf",+ "serde_json",+ "tokio",+]++[[package]]+name = "stable_deref_trait"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"++[[package]]+name = "strsim"+version = "0.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"++[[package]]+name = "subtle"+version = "2.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"++[[package]]+name = "symphonia"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5773a4c030a19d9bfaa090f49746ff35c75dfddfa700df7a5939d5e076a57039"+dependencies = [+ "lazy_static",+ "symphonia-bundle-flac",+ "symphonia-bundle-mp3",+ "symphonia-codec-vorbis",+ "symphonia-core",+ "symphonia-format-ogg",+ "symphonia-metadata",+]++[[package]]+name = "symphonia-bundle-flac"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c91565e180aea25d9b80a910c546802526ffd0072d0b8974e3ebe59b686c9976"+dependencies = [+ "log",+ "symphonia-core",+ "symphonia-metadata",+ "symphonia-utils-xiph",+]++[[package]]+name = "symphonia-bundle-mp3"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4872dd6bb56bf5eac799e3e957aa1981086c3e613b27e0ac23b176054f7c57ed"+dependencies = [+ "lazy_static",+ "log",+ "symphonia-core",+ "symphonia-metadata",+]++[[package]]+name = "symphonia-codec-vorbis"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f025837c309cd69ffef572750b4a2257b59552c5399a5e49707cc5b1b85d1c73"+dependencies = [+ "log",+ "symphonia-core",+ "symphonia-utils-xiph",+]++[[package]]+name = "symphonia-core"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ea00cc4f79b7f6bb7ff87eddc065a1066f3a43fe1875979056672c9ef948c2af"+dependencies = [+ "arrayvec",+ "bitflags 1.3.2",+ "bytemuck",+ "lazy_static",+ "log",+]++[[package]]+name = "symphonia-format-ogg"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2b4955c67c1ed3aa8ae8428d04ca8397fbef6a19b2b051e73b5da8b1435639cb"+dependencies = [+ "log",+ "symphonia-core",+ "symphonia-metadata",+ "symphonia-utils-xiph",+]++[[package]]+name = "symphonia-metadata"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "36306ff42b9ffe6e5afc99d49e121e0bd62fe79b9db7b9681d48e29fa19e6b16"+dependencies = [+ "encoding_rs",+ "lazy_static",+ "log",+ "symphonia-core",+]++[[package]]+name = "symphonia-utils-xiph"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ee27c85ab799a338446b68eec77abf42e1a6f1bb490656e121c6e27bfbab9f16"+dependencies = [+ "symphonia-core",+ "symphonia-metadata",+]++[[package]]+name = "syn"+version = "2.0.119"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "syn"+version = "3.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "sync_wrapper"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"+dependencies = [+ "futures-core",+]++[[package]]+name = "synstructure"+version = "0.13.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "sysinfo"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "252800745060e7b9ffb7b2badbd8b31cfa4aa2e61af879d0a3bf2a317c20217d"+dependencies = [+ "libc",+ "memchr",+ "ntapi",+ "objc2-core-foundation",+ "objc2-io-kit",+ "windows",+]++[[package]]+name = "system-configuration"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"+dependencies = [+ "bitflags 2.13.1",+ "core-foundation",+ "system-configuration-sys",+]++[[package]]+name = "system-configuration-sys"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "tempfile"+version = "3.27.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"+dependencies = [+ "fastrand",+ "getrandom 0.4.3",+ "once_cell",+ "rustix 1.1.4",+ "windows-sys 0.61.2",+]++[[package]]+name = "thiserror"+version = "1.0.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"+dependencies = [+ "thiserror-impl 1.0.69",+]++[[package]]+name = "thiserror"+version = "2.0.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09a43598840e33d5b0331f38c5e30d13bb11c11210a4b58f0d9b18a5a5eefcd9"+dependencies = [+ "thiserror-impl 2.0.19",+]++[[package]]+name = "thiserror-impl"+version = "1.0.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "thiserror-impl"+version = "2.0.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "43cbfe0cf76104d42a574802844187e84a305e531ed54455f11fbde0f10541cd"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 3.0.3",+]++[[package]]+name = "time"+version = "0.3.54"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3e1d5e639ff6bab73cb6885cc7e7b1de96c3f32c68ec55f3952614bec1092244"+dependencies = [+ "deranged",+ "libc",+ "num-conv",+ "num_threads",+ "powerfmt",+ "serde_core",+ "time-core",+ "time-macros",+]++[[package]]+name = "time-core"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"++[[package]]+name = "time-macros"+version = "0.2.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"+dependencies = [+ "num-conv",+ "time-core",+]++[[package]]+name = "tinystr"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"+dependencies = [+ "displaydoc",+ "zerovec",+]++[[package]]+name = "tinyvec"+version = "1.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f"+dependencies = [+ "tinyvec_macros",+]++[[package]]+name = "tinyvec_macros"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"++[[package]]+name = "tokio"+version = "1.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"+dependencies = [+ "bytes",+ "libc",+ "mio",+ "pin-project-lite",+ "socket2",+ "tokio-macros",+ "windows-sys 0.61.2",+]++[[package]]+name = "tokio-macros"+version = "2.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 3.0.3",+]++[[package]]+name = "tokio-rustls"+version = "0.25.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f"+dependencies = [+ "rustls 0.22.4",+ "rustls-pki-types",+ "tokio",+]++[[package]]+name = "tokio-rustls"+version = "0.26.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"+dependencies = [+ "rustls 0.23.43",+ "tokio",+]++[[package]]+name = "tokio-stream"+version = "0.1.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a3d06f0b082ba57c26b79407372e57cf2a1e28124f78e9479fe80322cf53420b"+dependencies = [+ "futures-core",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "tokio-tungstenite"+version = "0.28.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d25a406cddcc431a75d3d9afc6a7c0f7428d4891dd973e4d54c56b46127bf857"+dependencies = [+ "futures-util",+ "log",+ "rustls 0.23.43",+ "rustls-pki-types",+ "tokio",+ "tokio-rustls 0.26.4",+ "tungstenite",+ "webpki-roots 0.26.11",+]++[[package]]+name = "tokio-util"+version = "0.7.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52"+dependencies = [+ "bytes",+ "futures-core",+ "futures-sink",+ "libc",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "tower"+version = "0.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"+dependencies = [+ "futures-core",+ "futures-util",+ "pin-project-lite",+ "sync_wrapper",+ "tokio",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "tower-http"+version = "0.6.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"+dependencies = [+ "bitflags 2.13.1",+ "bytes",+ "futures-util",+ "http",+ "http-body",+ "pin-project-lite",+ "tower",+ "tower-layer",+ "tower-service",+ "url",+]++[[package]]+name = "tower-layer"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"++[[package]]+name = "tower-service"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"++[[package]]+name = "tracing"+version = "0.1.44"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"+dependencies = [+ "pin-project-lite",+ "tracing-core",+]++[[package]]+name = "tracing-core"+version = "0.1.36"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"+dependencies = [+ "once_cell",+]++[[package]]+name = "try-lock"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"++[[package]]+name = "tungstenite"+version = "0.28.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8628dcc84e5a09eb3d8423d6cb682965dea9133204e8fb3efee74c2a0c259442"+dependencies = [+ "bytes",+ "data-encoding",+ "http",+ "httparse",+ "log",+ "rand 0.9.5",+ "rustls 0.23.43",+ "rustls-pki-types",+ "sha1",+ "thiserror 2.0.19",+ "utf-8",+]++[[package]]+name = "typenum"+version = "1.20.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"++[[package]]+name = "unicode-ident"+version = "1.0.24"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"++[[package]]+name = "untrusted"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"++[[package]]+name = "url"+version = "2.5.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"+dependencies = [+ "form_urlencoded",+ "idna",+ "percent-encoding",+ "serde",+ "serde_derive",+]++[[package]]+name = "utf-8"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"++[[package]]+name = "utf8_iter"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"++[[package]]+name = "uuid"+version = "1.24.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bf3923a6f5c4c6382e0b653c4117f48d631ea17f38ed86e2a828e6f7412f5239"+dependencies = [+ "getrandom 0.4.3",+]++[[package]]+name = "vergen"+version = "9.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6b2bf58be11fc9414104c6d3a2e464163db5ef74b12296bda593cac37b6e4777"+dependencies = [+ "anyhow",+ "derive_builder",+ "rustversion",+ "time",+ "vergen-lib",+]++[[package]]+name = "vergen-gitcl"+version = "1.0.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9dfc1de6eb2e08a4ddf152f1b179529638bedc0ea95e6d667c014506377aefe"+dependencies = [+ "anyhow",+ "derive_builder",+ "rustversion",+ "time",+ "vergen",+ "vergen-lib",+]++[[package]]+name = "vergen-lib"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b07e6010c0f3e59fcb164e0163834597da68d1f864e2b8ca49f74de01e9c166"+dependencies = [+ "anyhow",+ "derive_builder",+ "rustversion",+]++[[package]]+name = "version_check"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"++[[package]]+name = "walkdir"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"+dependencies = [+ "same-file",+ "winapi-util",+]++[[package]]+name = "want"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"+dependencies = [+ "try-lock",+]++[[package]]+name = "wasi"+version = "0.11.1+wasi-snapshot-preview1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"++[[package]]+name = "wasip2"+version = "1.0.4+wasi-0.2.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"+dependencies = [+ "wit-bindgen",+]++[[package]]+name = "wasm-bindgen"+version = "0.2.126"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4"+dependencies = [+ "cfg-if",+ "once_cell",+ "rustversion",+ "wasm-bindgen-macro",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-futures"+version = "0.4.76"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "wasm-bindgen-macro"+version = "0.2.126"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1"+dependencies = [+ "quote",+ "wasm-bindgen-macro-support",+]++[[package]]+name = "wasm-bindgen-macro-support"+version = "0.2.126"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e"+dependencies = [+ "bumpalo",+ "proc-macro2",+ "quote",+ "syn 2.0.119",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-shared"+version = "0.2.126"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "web-sys"+version = "0.3.103"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "web-time"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "webpki"+version = "0.22.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53"+dependencies = [+ "ring",+ "untrusted",+]++[[package]]+name = "webpki-roots"+version = "0.26.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"+dependencies = [+ "webpki-roots 1.0.9",+]++[[package]]+name = "webpki-roots"+version = "1.0.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"+dependencies = [+ "rustls-pki-types",+]++[[package]]+name = "which"+version = "4.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"+dependencies = [+ "either",+ "home",+ "once_cell",+ "rustix 0.38.44",+]++[[package]]+name = "winapi"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"+dependencies = [+ "winapi-i686-pc-windows-gnu",+ "winapi-x86_64-pc-windows-gnu",+]++[[package]]+name = "winapi-i686-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"++[[package]]+name = "winapi-util"+version = "0.1.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"+dependencies = [+ "windows-sys 0.61.2",+]++[[package]]+name = "winapi-x86_64-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"++[[package]]+name = "windows"+version = "0.61.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"+dependencies = [+ "windows-collections",+ "windows-core 0.61.2",+ "windows-future",+ "windows-link 0.1.3",+ "windows-numerics",+]++[[package]]+name = "windows-collections"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"+dependencies = [+ "windows-core 0.61.2",+]++[[package]]+name = "windows-core"+version = "0.61.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"+dependencies = [+ "windows-implement",+ "windows-interface",+ "windows-link 0.1.3",+ "windows-result 0.3.4",+ "windows-strings 0.4.2",+]++[[package]]+name = "windows-core"+version = "0.62.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"+dependencies = [+ "windows-implement",+ "windows-interface",+ "windows-link 0.2.1",+ "windows-result 0.4.1",+ "windows-strings 0.5.1",+]++[[package]]+name = "windows-future"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"+dependencies = [+ "windows-core 0.61.2",+ "windows-link 0.1.3",+ "windows-threading",+]++[[package]]+name = "windows-implement"+version = "0.60.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "windows-interface"+version = "0.59.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "windows-link"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"++[[package]]+name = "windows-link"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"++[[package]]+name = "windows-numerics"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"+dependencies = [+ "windows-core 0.61.2",+ "windows-link 0.1.3",+]++[[package]]+name = "windows-registry"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"+dependencies = [+ "windows-link 0.2.1",+ "windows-result 0.4.1",+ "windows-strings 0.5.1",+]++[[package]]+name = "windows-result"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"+dependencies = [+ "windows-link 0.1.3",+]++[[package]]+name = "windows-result"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows-strings"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"+dependencies = [+ "windows-link 0.1.3",+]++[[package]]+name = "windows-strings"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows-sys"+version = "0.45.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"+dependencies = [+ "windows-targets 0.42.2",+]++[[package]]+name = "windows-sys"+version = "0.52.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-sys"+version = "0.59.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-sys"+version = "0.61.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows-targets"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"+dependencies = [+ "windows_aarch64_gnullvm 0.42.2",+ "windows_aarch64_msvc 0.42.2",+ "windows_i686_gnu 0.42.2",+ "windows_i686_msvc 0.42.2",+ "windows_x86_64_gnu 0.42.2",+ "windows_x86_64_gnullvm 0.42.2",+ "windows_x86_64_msvc 0.42.2",+]++[[package]]+name = "windows-targets"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"+dependencies = [+ "windows_aarch64_gnullvm 0.52.6",+ "windows_aarch64_msvc 0.52.6",+ "windows_i686_gnu 0.52.6",+ "windows_i686_gnullvm",+ "windows_i686_msvc 0.52.6",+ "windows_x86_64_gnu 0.52.6",+ "windows_x86_64_gnullvm 0.52.6",+ "windows_x86_64_msvc 0.52.6",+]++[[package]]+name = "windows-threading"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"+dependencies = [+ "windows-link 0.1.3",+]++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"++[[package]]+name = "windows_aarch64_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"++[[package]]+name = "windows_aarch64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"++[[package]]+name = "windows_i686_gnu"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"++[[package]]+name = "windows_i686_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"++[[package]]+name = "windows_i686_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"++[[package]]+name = "windows_i686_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"++[[package]]+name = "windows_i686_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"++[[package]]+name = "windows_x86_64_gnu"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"++[[package]]+name = "windows_x86_64_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"++[[package]]+name = "windows_x86_64_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"++[[package]]+name = "windows_x86_64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"++[[package]]+name = "wit-bindgen"+version = "0.57.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"++[[package]]+name = "writeable"+version = "0.6.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"++[[package]]+name = "yoke"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"+dependencies = [+ "stable_deref_trait",+ "yoke-derive",+ "zerofrom",+]++[[package]]+name = "yoke-derive"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+ "synstructure",+]++[[package]]+name = "zerocopy"+version = "0.8.55"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b5a105cd7b140f6eeec8acff2ea38135d3cab283ada58540f629fe51e46696eb"+dependencies = [+ "zerocopy-derive",+]++[[package]]+name = "zerocopy-derive"+version = "0.8.55"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0fe976fb70c78cd64cccfe3a6fc142244e8a77b70959b30faf9d0ac37ee228eb"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "zerofrom"+version = "0.1.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"+dependencies = [+ "zerofrom-derive",+]++[[package]]+name = "zerofrom-derive"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+ "synstructure",+]++[[package]]+name = "zeroize"+version = "1.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"++[[package]]+name = "zerotrie"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"+dependencies = [+ "displaydoc",+ "yoke",+ "zerofrom",+]++[[package]]+name = "zerovec"+version = "0.11.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"+dependencies = [+ "yoke",+ "zerofrom",+ "zerovec-derive",+]++[[package]]+name = "zerovec-derive"+version = "0.11.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]++[[package]]+name = "zmij"+version = "1.0.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"diff --git a/native/Cargo.toml b/native/Cargo.tomlnew file mode 100644index 0000000..145d57c--- /dev/null+++ b/native/Cargo.toml@@ -0,0 +1,46 @@+[package]+name = "spotcore"+version = "0.1.0"+edition = "2021"+rust-version = "1.81"++[lib]+name = "spotcore"+crate-type = ["cdylib"]++[dependencies]+# rustls + webpki roots: no OpenSSL to cross-compile, no reliance on the Java keystore.+librespot-core = { version = "0.8", default-features = false, features = ["rustls-tls-webpki-roots"] }+# No backend feature: audio goes to an AudioTrack via src/sink.rs, so+# rodio and cpal are not built at all.+librespot-playback = { version = "0.8", default-features = false, features = ["rustls-tls-webpki-roots"] }+librespot-metadata = { version = "0.8", default-features = false, features = ["rustls-tls-webpki-roots"] }+librespot-protocol = { version = "0.8", default-features = false }+protobuf = "3"++tokio = { version = "1", features = ["rt-multi-thread", "sync", "macros", "time"] }+jni = "0.21"+log = "0.4"+once_cell = "1"+# Same major as librespot-core, so `Method` is the type spclient expects.+http = "1.3"+serde_json = "1"+futures-util = "0.3"++[target.'cfg(target_os = "android")'.dependencies]+ndk-context = "0.1"+android_logger = "0.14"++# librespot-core carries a one-line local patch; see native/vendor/README.md.+# Patching rather than depending on the fork directly means librespot-playback+# and librespot-metadata, which pull librespot-core from crates.io, resolve to+# the patched copy too.+[patch.crates-io]+librespot-core = { path = "vendor/librespot-core" }++[profile.release]+opt-level = 3+lto = "thin"+codegen-units = 1+strip = "symbols"+panic = "abort"diff --git a/native/src/catalog.rs b/native/src/catalog.rsnew file mode 100644index 0000000..47be438--- /dev/null+++ b/native/src/catalog.rs@@ -0,0 +1,399 @@+//! Catalogue lookups over the Spotify access point.+//!+//! Everything here deliberately avoids `api.spotify.com`. The Web API meters+//! requests per application, and this client authenticates with librespot's+//! shared client id, so its quota is consumed by every other user of that id and+//! runs out no matter how careful we are. The access point carries the same+//! catalogue data for the logged-in user and is not subject to that budget.+//!+//! Results cross the JNI boundary as JSON strings: the shapes are small and+//! read-only, so a serialiser on each side is far less machinery than mapping+//! protobufs into Java objects field by field.++use crate::engine::{with_session, EngineResult};+use futures_util::future::join_all;+use http::Method;+use librespot_core::{session::Session, spotify_uri::SpotifyUri};+use librespot_metadata::{image::Images, Metadata, Track};+use librespot_protocol::playlist4_external::SelectedListContent;+use protobuf::Message;+use serde_json::{json, Value};++/// Cover art is addressed by file id under a fixed CDN prefix.+const IMAGE_CDN: &str = "https://i.scdn.co/image/";++/// The pseudo-playlist holding "Liked Songs" for the current user.+pub fn collection_uri() -> EngineResult<String> {+ with_session(|session| format!("spotify:user:{}:collection", session.username()))+}++pub fn username() -> EngineResult<String> {+ with_session(|session| session.username())+}++/// The account's own playlists, as a JSON array of `{uri, name}`.+///+/// The endpoint answers with a `SelectedListContent` protobuf, not JSON. Names+/// live in `meta_items`, parallel to `items`, and are absent for folders and for+/// playlists whose metadata was not decorated, so they are matched by position+/// and defaulted rather than assumed present.+pub fn rootlist() -> EngineResult<String> {+ let session = with_session(|s| s.clone())?;+ block_on(async move {+ let bytes = session+ .spclient()+ .get_rootlist(0, None)+ .await+ .map_err(|e| format!("rootlist failed: {e}"))?;++ let list = SelectedListContent::parse_from_bytes(&bytes)+ .map_err(|e| format!("rootlist was not a SelectedListContent: {e}"))?;++ let contents = list.contents;+ let playlists: Vec<Value> = contents+ .items+ .iter()+ .enumerate()+ .filter(|(_, item)| item.uri().starts_with("spotify:playlist:"))+ .map(|(index, item)| {+ let meta = contents.meta_items.get(index);+ let name = meta+ .map(|meta| meta.attributes.name())+ .filter(|name| !name.is_empty())+ .unwrap_or("Senza nome");+ let artwork = meta.and_then(|meta| image_url(meta.attributes.picture()));+ json!({ "uri": item.uri(), "name": name, "artworkUrl": artwork })+ })+ .collect();++ log::info!("rootlist returned {} playlists", playlists.len());+ Ok(Value::from(playlists).to_string())+ })+}++/// Lyrics for a track, as the access point's own JSON.+///+/// Returns `null` rather than an error when Spotify has no lyrics for the+/// track: that is the common case, not a failure, and the caller should show an+/// empty state instead of an error.+pub fn lyrics(track_uri: &str) -> EngineResult<String> {+ let parsed = SpotifyUri::from_uri(track_uri).map_err(|e| format!("bad uri: {e}"))?;+ let SpotifyUri::Track { id } = parsed else {+ return Ok("null".into());+ };++ let session = with_session(|s| s.clone())?;+ block_on(async move {+ match session.spclient().get_lyrics(&id).await {+ Ok(bytes) => Ok(String::from_utf8(bytes.to_vec())+ .unwrap_or_else(|_| "null".into())),+ Err(e) => {+ log::info!("no lyrics for {track_uri}: {e}");+ Ok("null".into())+ }+ }+ })+}++/// Track URIs belonging to a context — a playlist, album, or the collection.+///+/// A context can arrive with its pages already filled or as a set of links to+/// be resolved, and Spotify chooses per context, so both paths are handled.+pub fn context_tracks(uri: &str) -> EngineResult<String> {+ let session = with_session(|s| s.clone())?;+ let uri = uri.to_string();++ block_on(async move {+ let context = session+ .spclient()+ .get_context(&uri)+ .await+ .map_err(|e| format!("context {uri} failed: {e}"))?;++ let mut uris: Vec<String> = Vec::new();+ for page in &context.pages {+ for track in &page.tracks {+ if let Some(track_uri) = track.uri.as_ref() {+ uris.push(track_uri.clone());+ }+ }++ // An empty page carries a link instead of its contents.+ if page.tracks.is_empty() {+ if let Some(page_url) = page.page_url.as_ref().filter(|u| !u.is_empty()) {+ match resolve_page(&session, page_url).await {+ Ok(mut resolved) => uris.append(&mut resolved),+ Err(e) => log::warn!("could not resolve page {page_url}: {e}"),+ }+ }+ }+ }++ log::info!("context {uri} yielded {} tracks", uris.len());+ Ok(Value::from(uris).to_string())+ })+}++/// Fetch a lazy context page and pull the track URIs out of it.+async fn resolve_page(session: &Session, page_url: &str) -> Result<Vec<String>, String> {+ let bytes = session+ .spclient()+ .get_next_page(page_url)+ .await+ .map_err(|e| e.to_string())?;++ let parsed: Value =+ serde_json::from_slice(&bytes).map_err(|e| format!("page was not JSON: {e}"))?;++ let tracks = parsed+ .get("tracks")+ .and_then(Value::as_array)+ .ok_or_else(|| {+ // The exact shape is not documented; log enough to fix this quickly+ // if Spotify returns something else.+ format!(+ "no `tracks` array; keys were {:?}",+ parsed.as_object().map(|o| o.keys().collect::<Vec<_>>())+ )+ })?;++ Ok(tracks+ .iter()+ .filter_map(|t| t.get("uri").and_then(Value::as_str).map(str::to_owned))+ .collect())+}++/// Resolve display metadata for the given track URIs, in the order supplied.+///+/// `uris_json` is a JSON array of Spotify track URIs. Lookups run concurrently+/// because each one is a separate access-point round trip and a playlist screen+/// needs dozens of them; doing it sequentially is the difference between a+/// screen that appears and one that fills in line by line.+pub fn tracks_metadata(uris_json: &str) -> EngineResult<String> {+ let uris: Vec<String> =+ serde_json::from_str(uris_json).map_err(|e| format!("invalid uri list: {e}"))?;+ let session = with_session(|s| s.clone())?;++ block_on(async move {+ let lookups = uris.iter().map(|uri| {+ let session = session.clone();+ async move {+ let parsed = SpotifyUri::from_uri(uri).ok()?;+ let track = Track::get(&session, &parsed).await.ok()?;+ Some(track_json(&track))+ }+ });++ // Unresolvable tracks are dropped rather than failing the whole batch:+ // one region-locked or delisted item should not empty a playlist.+ let tracks: Vec<Value> = join_all(lookups).await.into_iter().flatten().collect();+ Ok(Value::from(tracks).to_string())+ })+}++fn track_json(track: &Track) -> Value {+ json!({+ "uri": track.id.to_uri().unwrap_or_default(),+ "name": track.name,+ "artist": track+ .artists+ .iter()+ .map(|a| a.name.as_str())+ .collect::<Vec<_>>()+ .join(", "),+ "album": track.album.name,+ "durationMs": track.duration,+ "explicit": track.is_explicit,+ "artworkUrl": largest_cover(&track.album.covers),+ })+}++/// A CDN URL for a raw image id, or None when the field is empty.+///+/// Playlist artwork arrives as the image's raw file id rather than a URL, and+/// the same 20-byte id hex-encoded is what the CDN serves. Playlists with no+/// custom cover simply carry nothing here — Spotify builds a mosaic from the+/// tracks client-side, which is why the fallback tile matters.+fn image_url(picture: &[u8]) -> Option<String> {+ if picture.is_empty() {+ return None;+ }+ let hex: String = picture.iter().map(|byte| format!("{byte:02x}")).collect();+ Some(format!("{IMAGE_CDN}{hex}"))+}++/// The biggest available cover, as a CDN URL.+fn largest_cover(covers: &Images) -> Option<String> {+ covers+ .iter()+ .max_by_key(|image| image.width * image.height)+ .and_then(|image| image.id.to_base16().ok())+ .map(|id| format!("{IMAGE_CDN}{id}"))+}++/// Run an access-point request on the engine's runtime.+///+/// These calls arrive on Kotlin background threads that know nothing about+/// tokio, so they cannot await anything themselves. The runtime handle is taken+/// first and the engine lock released before blocking, so a slow catalogue+/// request cannot hold up play/pause coming from the notification.+fn block_on<T>(future: impl std::future::Future<Output = Result<T, String>>) -> EngineResult<T> {+ crate::engine::runtime_handle()?.block_on(future)+}++/// The Canvas for a track: a short looping video Spotify shows behind the+/// player, when the artist has uploaded one.+///+/// Returns `null` — not an error — when the track has none. Most tracks do not,+/// so absence is the ordinary answer.+///+/// The request and response are hand-encoded rather than built from+/// `librespot_protocol::canvaz`. That module exists but its `EntityCanvazResponse`+/// carries only the nested `Canvaz` type and none of the repeated field that+/// actually holds the results, and there is no request message at all — the+/// extracted proto is incomplete. The wire format here is small enough to write+/// out directly, and doing so keeps the shape visible instead of hidden behind a+/// generated type that does not match the endpoint.+pub fn canvas(track_uri: &str) -> EngineResult<String> {+ let session = with_session(|s| s.clone())?;+ let uri = track_uri.to_string();++ block_on(async move {+ // EntityCanvazRequest { repeated Entity entities = 1 }+ // Entity { string entity_uri = 1 }+ let mut entity = Vec::new();+ write_string_field(&mut entity, 1, &uri);++ let mut body = Vec::new();+ write_len_delimited(&mut body, 1, &entity);++ let bytes = session+ .spclient()+ .request(+ &Method::POST,+ "/canvaz-cache/v0/canvases",+ None,+ Some(&body),+ )+ .await+ .map_err(|e| format!("canvas request failed: {e}"))?;++ Ok(parse_canvas(&bytes).unwrap_or_else(|| "null".to_string()))+ })+}++/// Pulls the first canvas out of an `EntityCanvazResponse`.+///+/// Only the two fields the player needs are read — the media URL and the kind —+/// and anything else is skipped by length. A response that does not parse yields+/// `None`, which the caller shows as "no canvas" rather than as a failure.+fn parse_canvas(bytes: &[u8]) -> Option<String> {+ // EntityCanvazResponse { repeated Canvaz canvases = 1 }+ let canvas = read_first_message_field(bytes, 1)?;++ let mut url: Option<String> = None;+ let mut kind: u64 = 0;+ let mut cursor = 0usize;++ while cursor < canvas.len() {+ let (key, next) = read_varint(canvas, cursor)?;+ cursor = next;+ let field = key >> 3;+ let wire = key & 0x7;++ match (field, wire) {+ // Canvaz { string url = 2 }+ (2, 2) => {+ let (value, next) = read_bytes(canvas, cursor)?;+ url = Some(String::from_utf8(value.to_vec()).ok()?);+ cursor = next;+ }+ // Canvaz { Type type = 4 }+ (4, 0) => {+ let (value, next) = read_varint(canvas, cursor)?;+ kind = value;+ cursor = next;+ }+ _ => cursor = skip_field(canvas, cursor, wire)?,+ }+ }++ let url = url?;+ // 0 is IMAGE, everything above it is some flavour of video or GIF. The+ // player only needs to know whether to hand this to a video surface.+ let is_video = kind != 0;+ Some(json!({ "url": url, "isVideo": is_video }).to_string())+}++// --- Minimal protobuf wire helpers -----------------------------------------++fn write_varint(out: &mut Vec<u8>, mut value: u64) {+ loop {+ let byte = (value & 0x7f) as u8;+ value >>= 7;+ if value == 0 {+ out.push(byte);+ return;+ }+ out.push(byte | 0x80);+ }+}++fn write_len_delimited(out: &mut Vec<u8>, field: u32, payload: &[u8]) {+ write_varint(out, ((field as u64) << 3) | 2);+ write_varint(out, payload.len() as u64);+ out.extend_from_slice(payload);+}++fn write_string_field(out: &mut Vec<u8>, field: u32, value: &str) {+ write_len_delimited(out, field, value.as_bytes());+}++fn read_varint(bytes: &[u8], mut cursor: usize) -> Option<(u64, usize)> {+ let mut value = 0u64;+ let mut shift = 0u32;+ loop {+ let byte = *bytes.get(cursor)?;+ cursor += 1;+ value |= ((byte & 0x7f) as u64) << shift;+ if byte & 0x80 == 0 {+ return Some((value, cursor));+ }+ shift += 7;+ if shift > 63 {+ return None;+ }+ }+}++fn read_bytes(bytes: &[u8], cursor: usize) -> Option<(&[u8], usize)> {+ let (len, cursor) = read_varint(bytes, cursor)?;+ let end = cursor.checked_add(len as usize)?;+ Some((bytes.get(cursor..end)?, end))+}++/// Advances past a field whose contents we do not care about.+fn skip_field(bytes: &[u8], cursor: usize, wire: u64) -> Option<usize> {+ match wire {+ 0 => Some(read_varint(bytes, cursor)?.1),+ 1 => cursor.checked_add(8),+ 2 => Some(read_bytes(bytes, cursor)?.1),+ 5 => cursor.checked_add(4),+ _ => None,+ }+}++/// The payload of the first length-delimited field with the given number.+fn read_first_message_field(bytes: &[u8], field: u32) -> Option<&[u8]> {+ let mut cursor = 0usize;+ while cursor < bytes.len() {+ let (key, next) = read_varint(bytes, cursor)?;+ cursor = next;+ let wire = key & 0x7;+ if (key >> 3) as u32 == field && wire == 2 {+ return Some(read_bytes(bytes, cursor)?.0);+ }+ cursor = skip_field(bytes, cursor, wire)?;+ }+ None+}diff --git a/native/src/engine.rs b/native/src/engine.rsnew file mode 100644index 0000000..10435b2--- /dev/null+++ b/native/src/engine.rs@@ -0,0 +1,373 @@+//! Session + playback engine.+//!+//! One process-wide instance, guarded by a mutex. All librespot work happens on+//! a dedicated multi-thread tokio runtime that outlives individual JNI calls;+//! JNI methods only enqueue commands and return immediately, so the Android main+//! thread is never blocked on network I/O.++use jni::objects::{GlobalRef, JObject, JValue};+use jni::JavaVM;+use librespot_core::{+ authentication::Credentials, cache::Cache, config::SessionConfig, session::Session,+ spotify_uri::SpotifyUri,+};+use librespot_playback::{+ config::{AudioFormat, Bitrate, PlayerConfig},+ mixer::{softmixer::SoftMixer, Mixer, MixerConfig},+ player::{Player, PlayerEvent},+};+use once_cell::sync::OnceCell;+use std::sync::atomic::{AtomicBool, Ordering};+use std::sync::{Arc, Mutex};+use std::time::Duration;+use tokio::runtime::Runtime;++pub(crate) static JAVA_VM: OnceCell<JavaVM> = OnceCell::new();+static ENGINE: Mutex<Option<Engine>> = Mutex::new(None);+static CONTEXT_INITIALIZED: AtomicBool = AtomicBool::new(false);++pub fn store_java_vm(vm: JavaVM) {+ let _ = JAVA_VM.set(vm);+}++pub struct Engine {+ rt: Runtime,+ session: Session,+ player: Arc<Player>,+ mixer: Arc<SoftMixer>,+}++/// Errors are flattened to a string because they cross the JNI boundary and the+/// Kotlin side only ever surfaces them as a message.+pub type EngineResult<T> = Result<T, String>;++fn with_engine<T>(f: impl FnOnce(&Engine) -> T) -> EngineResult<T> {+ let guard = ENGINE.lock().map_err(|_| "engine mutex poisoned")?;+ let engine = guard.as_ref().ok_or("engine not started")?;+ Ok(f(engine))+}++/// Borrow the authenticated session, e.g. to clone it for a catalogue request.+pub fn with_session<T>(f: impl FnOnce(&Session) -> T) -> EngineResult<T> {+ with_engine(|engine| f(&engine.session))+}++/// A handle to the engine's runtime.+///+/// Returned by value so callers can release the engine lock before blocking on+/// a request; holding it across an await would serialise playback commands+/// behind network I/O.+pub fn runtime_handle() -> EngineResult<tokio::runtime::Handle> {+ with_engine(|engine| engine.rt.handle().clone())+}++/// Publish an application `Context` to `ndk_context` so cpal's AAudio host can+/// resolve the output device. Must run before any playback starts.+///+/// Idempotent. `ndk_context::initialize_android_context` asserts that no context+/// was set before and aborts the process otherwise, and the Android service that+/// calls this can be destroyed and recreated any number of times within one+/// process. The context never changes over that lifetime, so the second and+/// later calls are simply no-ops.+pub fn init_android_context(context: &JObject) -> EngineResult<()> {+ if CONTEXT_INITIALIZED.swap(true, Ordering::SeqCst) {+ return Ok(());+ }++ let vm = JAVA_VM.get().ok_or("JNI_OnLoad did not run")?;+ let env = vm.get_env().map_err(|e| e.to_string())?;+ let global = env+ .new_global_ref(context)+ .map_err(|e| format!("failed to pin Context: {e}"))?;++ // SAFETY: both pointers stay valid for the lifetime of the process — the VM+ // is never destroyed on Android, and `global` is deliberately leaked so the+ // Context reference is never collected while ndk_context holds it.+ #[cfg(target_os = "android")]+ unsafe {+ ndk_context::initialize_android_context(+ vm.get_java_vm_pointer() as *mut _,+ global.as_raw() as *mut _,+ );+ }+ std::mem::forget(global);+ Ok(())+}++/// Build the session and player, then authenticate with an OAuth access token+/// obtained by the Kotlin side.+///+/// `listener` must implement `dev.emanuele.spot.nativecore.NativeEvents`.+pub fn start(+ client_id: &str,+ device_name: &str,+ access_token: &str,+ credentials_dir: &str,+ cache_dir: &str,+ listener: GlobalRef,+) -> EngineResult<()> {+ let mut guard = ENGINE.lock().map_err(|_| "engine mutex poisoned")?;+ if guard.is_some() {+ return Err("engine already started".into());+ }++ let rt = tokio::runtime::Builder::new_multi_thread()+ .worker_threads(2)+ .enable_all()+ .thread_name("spotcore")+ .build()+ .map_err(|e| format!("failed to build runtime: {e}"))?;++ // An empty `client_id` means "use the platform default", which on Android is+ // the client id librespot ships for the official mobile app. login5 only+ // grants streaming to ids it recognises, so overriding this with a client id+ // registered in the Spotify dashboard will authenticate against the Web API+ // but be rejected at the access point.+ let mut session_config = SessionConfig::default();+ session_config.tmp_dir = std::path::PathBuf::from(cache_dir);+ if !client_id.is_empty() {+ session_config.client_id = client_id.to_string();+ }++ let credentials = Credentials::with_access_token(access_token);++ let mixer = Arc::new(+ SoftMixer::open(MixerConfig::default()).map_err(|e| format!("mixer failed: {e}"))?,+ );++ // SoftMixer::open starts at an attenuation factor of 0.5 — half amplitude,+ // about -6 dB — and nothing else ever sets it, so every track played through+ // this engine was quiet by default. The device's own volume keys are the+ // right place to control loudness, so the software mixer is left wide open.+ mixer.set_volume(u16::MAX);++ let player_config = PlayerConfig {+ bitrate: Bitrate::Bitrate320,+ normalisation: true,+ // Dithering runs per sample — 88200 times a second at 44.1 kHz stereo —+ // for a noise-floor benefit nobody hears on a phone. Off, to leave the+ // decoder more headroom against output underruns.+ ditherer: None,+ // Every update crosses JNI and rebuilds the Media3 state on the main+ // thread; once a second is plenty for a seek bar.+ position_update_interval: Some(Duration::from_secs(1)),+ ..PlayerConfig::default()+ };+++ // Taken out before the async block so `mixer` itself stays behind for the+ // engine's volume controls.+ let mixer_volume = mixer.get_soft_volume();++ // Everything below has to run inside the runtime: `Session::new` registers+ // timers and sockets with the reactor, and panics with "there is no reactor+ // running" if constructed outside it. Authenticating here too means the+ // caller gets a definite success or failure before it shows a player UI,+ // which is safe because this JNI call is never made on the main thread.+ // A credentials cache is not an optimisation here, it is required for+ // catalogue access. `connect` persists reusable credentials into it, and+ // login5 then issues the access point's HTTP token as a *stored credential*+ // request, which it signs with the session's client id. Without a cache it+ // falls back to the platform default id instead, which no longer matches the+ // id the OAuth token was minted for, and every spclient call fails with+ // "Login request was denied: BAD_REQUEST".+ let cache = Cache::new(+ Some(std::path::Path::new(credentials_dir)),+ None,+ Some(std::path::Path::new(cache_dir)),+ None,+ )+ .map_err(|e| format!("cache failed: {e}"))?;++ let (session, player) = rt.block_on(async move {+ // Seed the cache with the OAuth credentials, then hand the cached copy+ // to `connect` with storing switched off. Letting `connect` store+ // instead would overwrite the cache with the handshake's reusable+ // credentials, and that blob is what gets sent as the stored credential+ // when login5 issues the access point's HTTP token.+ cache.save_credentials(&credentials);+ let session = Session::new(session_config, Some(cache));+ let credentials = session+ .cache()+ .and_then(|cache| cache.credentials())+ .unwrap_or(credentials);++ session+ .connect(credentials, false)+ .await+ .map_err(|e| format!("login failed: {e}"))?;++ let player = Player::new(player_config, session.clone(), mixer_volume, move || {+ Box::new(crate::sink::AndroidSink::new(AudioFormat::S16))+ });+ Ok::<_, String>((session, player))+ })?;++ spawn_event_pump(&rt, player.clone(), listener, device_name.to_string());++ *guard = Some(Engine {+ rt,+ session,+ player,+ mixer,+ });+ Ok(())+}++/// Forward player events to Kotlin. Runs for the life of the engine.+///+/// Deliberately a dedicated OS thread rather than a tokio task. The thread is+/// attached to the JVM once for its whole life, which avoids attaching and+/// detaching on every event and — more importantly — guarantees the listener's+/// `GlobalRef` is dropped while the thread is still attached. A tokio task+/// migrates between workers, so its `GlobalRef` could be released on a detached+/// thread, where JNI cannot free it ("Dropping a GlobalRef in a detached+/// thread").+fn spawn_event_pump(rt: &Runtime, player: Arc<Player>, listener: GlobalRef, device_name: String) {+ let mut events = player.get_player_event_channel();+ // Keep the player alive for as long as we are reading its events.+ let _ = rt;++ std::thread::Builder::new()+ .name("spotcore-events".into())+ .spawn(move || {+ let vm = match JAVA_VM.get() {+ Some(vm) => vm,+ None => return,+ };+ // Permanent attach: detached only when this thread exits, by which+ // point `listener` has already been dropped.+ if let Err(e) = vm.attach_current_thread_permanently() {+ log::error!("event pump could not attach to the JVM: {e}");+ return;+ }++ log::info!("event pump started for device {device_name}");+ while let Some(event) = events.blocking_recv() {+ let (kind, uri, position_ms) = match event {+ PlayerEvent::Playing {+ track_id,+ position_ms,+ ..+ } => ("playing", uri_string(&track_id), position_ms as i64),+ PlayerEvent::Paused {+ track_id,+ position_ms,+ ..+ } => ("paused", uri_string(&track_id), position_ms as i64),+ PlayerEvent::PositionChanged {+ track_id,+ position_ms,+ ..+ } => ("position", uri_string(&track_id), position_ms as i64),+ PlayerEvent::Stopped { track_id, .. } => ("stopped", uri_string(&track_id), 0),+ PlayerEvent::EndOfTrack { track_id, .. } => {+ ("end_of_track", uri_string(&track_id), 0)+ }+ PlayerEvent::Loading { track_id, .. } => ("loading", uri_string(&track_id), 0),+ PlayerEvent::Unavailable { track_id, .. } => {+ ("unavailable", uri_string(&track_id), 0)+ }+ // Connect-protocol and volume events are not surfaced yet.+ _ => continue,+ };++ if let Err(e) = emit(&listener, kind, &uri, position_ms) {+ log::warn!("dropping event {kind}: {e}");+ }+ }++ // Explicit so the ordering is obvious: the listener must go while+ // this thread is still attached to the JVM.+ drop(listener);+ log::info!("event pump ended");+ })+ .expect("failed to spawn the event pump thread");+}++fn uri_string(uri: &SpotifyUri) -> String {+ uri.to_uri().unwrap_or_default()+}++/// Invoke `NativeEvents.onEvent` from a tokio worker thread.+fn emit(listener: &GlobalRef, kind: &str, uri: &str, position_ms: i64) -> Result<(), String> {+ let vm = JAVA_VM.get().ok_or("JNI_OnLoad did not run")?;+ // Tokio worker threads are not known to the VM, so they must attach. The+ // guard detaches on drop, which keeps the thread's local ref table bounded.+ let mut env = vm+ .attach_current_thread()+ .map_err(|e| format!("attach failed: {e}"))?;++ let j_kind = env.new_string(kind).map_err(|e| e.to_string())?;+ let j_uri = env.new_string(uri).map_err(|e| e.to_string())?;++ env.call_method(+ listener,+ "onEvent",+ "(Ljava/lang/String;Ljava/lang/String;J)V",+ &[+ JValue::Object(&j_kind),+ JValue::Object(&j_uri),+ JValue::Long(position_ms),+ ],+ )+ .map_err(|e| e.to_string())?;++ // A Kotlin listener that throws would otherwise leave the exception pending+ // and poison every later JNI call on this thread.+ if env.exception_check().unwrap_or(false) {+ let _ = env.exception_describe();+ let _ = env.exception_clear();+ return Err("listener threw".into());+ }+ Ok(())+}++pub fn load(uri: &str, start_playing: bool, position_ms: u32) -> EngineResult<()> {+ let parsed = SpotifyUri::from_uri(uri).map_err(|e| format!("bad uri {uri}: {e}"))?;+ if !parsed.is_playable() {+ return Err(format!("{uri} is not a playable item"));+ }+ with_engine(|e| e.player.load(parsed, start_playing, position_ms))+}++pub fn play() -> EngineResult<()> {+ with_engine(|e| e.player.play())+}++pub fn pause() -> EngineResult<()> {+ with_engine(|e| e.player.pause())+}++pub fn stop() -> EngineResult<()> {+ with_engine(|e| e.player.stop())+}++pub fn seek(position_ms: u32) -> EngineResult<()> {+ with_engine(|e| e.player.seek(position_ms))+}++/// `volume` is the raw 0..=65535 range librespot uses.+pub fn set_volume(volume: u16) -> EngineResult<()> {+ with_engine(|e| e.mixer.set_volume(volume))+}++pub fn volume() -> EngineResult<u16> {+ with_engine(|e| e.mixer.volume())+}++pub fn is_connected() -> bool {+ with_engine(|e| !e.session.is_invalid()).unwrap_or(false)+}++/// Tear the engine down. Safe to call when it was never started.+pub fn shutdown() {+ let taken = ENGINE.lock().ok().and_then(|mut g| g.take());+ if let Some(engine) = taken {+ engine.player.stop();+ engine.session.shutdown();+ crate::sink::clear_output();+ // Dropping the runtime from a JNI thread is fine: no tokio context here.+ engine.rt.shutdown_timeout(Duration::from_secs(2));+ }+}diff --git a/native/src/ffi.rs b/native/src/ffi.rsnew file mode 100644index 0000000..3a0979f--- /dev/null+++ b/native/src/ffi.rs@@ -0,0 +1,266 @@+//! Raw JNI exports for `dev.emanuele.spot.nativecore.NativeBridge`.+//!+//! Every function follows the same contract: do the work, and on failure throw+//! `java.lang.IllegalStateException` with the engine's error message. Kotlin+//! therefore never has to check return codes.++use crate::{catalog, engine, sink};+use jni::objects::{JClass, JObject, JString};+use jni::sys::{jboolean, jint, jlong, jstring, JNI_FALSE, JNI_TRUE};+use jni::JNIEnv;++const EXCEPTION: &str = "java/lang/IllegalStateException";++/// Return a `String` result to Java, or throw and return null.+///+/// Null is only ever seen by the JVM while an exception is already pending, so+/// Kotlin's non-null return types are not actually violated.+fn string_or_throw(env: &mut JNIEnv, result: engine::EngineResult<String>) -> jstring {+ match result.and_then(|value| {+ env.new_string(value)+ .map_err(|e| format!("could not allocate a Java string: {e}"))+ }) {+ Ok(s) => s.into_raw(),+ Err(message) => {+ let _ = env.throw_new(EXCEPTION, message);+ JObject::null().into_raw() as jstring+ }+ }+}++/// Convert an engine result into either a value or a pending Java exception.+///+/// The returned `T` is meaningless once an exception is pending; callers return+/// it anyway because the JVM discards the value as soon as it unwinds.+fn or_throw<T: Default>(env: &mut JNIEnv, result: engine::EngineResult<T>) -> T {+ match result {+ Ok(value) => value,+ Err(message) => {+ let _ = env.throw_new(EXCEPTION, message);+ T::default()+ }+ }+}++fn read_string(env: &mut JNIEnv, s: &JString) -> engine::EngineResult<String> {+ env.get_string(s)+ .map(|v| v.into())+ .map_err(|e| format!("invalid string argument: {e}"))+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeInitContext(+ mut env: JNIEnv,+ _class: JClass,+ context: JObject,+) {+ let result = engine::init_android_context(&context);+ or_throw(&mut env, result);+}++/// Register the Kotlin `AudioOutput` the sink writes PCM to.+///+/// Must be called before playback starts; without it the sink has nowhere to+/// send audio and every write fails.+#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeSetAudioOutput(+ mut env: JNIEnv,+ _class: JClass,+ output: JObject,+) {+ let result = env+ .new_global_ref(&output)+ .map_err(|e| format!("failed to pin the audio output: {e}"))+ .map(sink::set_output);+ or_throw(&mut env, result);+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeStart(+ mut env: JNIEnv,+ _class: JClass,+ client_id: JString,+ device_name: JString,+ access_token: JString,+ credentials_dir: JString,+ cache_dir: JString,+ listener: JObject,+) {+ let result = (|| {+ let client_id = read_string(&mut env, &client_id)?;+ let device_name = read_string(&mut env, &device_name)?;+ let access_token = read_string(&mut env, &access_token)?;+ let credentials_dir = read_string(&mut env, &credentials_dir)?;+ let cache_dir = read_string(&mut env, &cache_dir)?;+ let listener = env+ .new_global_ref(&listener)+ .map_err(|e| format!("failed to pin listener: {e}"))?;+ engine::start(+ &client_id,+ &device_name,+ &access_token,+ &credentials_dir,+ &cache_dir,+ listener,+ )+ })();+ or_throw(&mut env, result);+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeLoad(+ mut env: JNIEnv,+ _class: JClass,+ uri: JString,+ start_playing: jboolean,+ position_ms: jint,+) {+ let result = read_string(&mut env, &uri)+ .and_then(|uri| engine::load(&uri, start_playing == JNI_TRUE, position_ms.max(0) as u32));+ or_throw(&mut env, result);+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativePlay(+ mut env: JNIEnv,+ _class: JClass,+) {+ let result = engine::play();+ or_throw(&mut env, result);+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativePause(+ mut env: JNIEnv,+ _class: JClass,+) {+ let result = engine::pause();+ or_throw(&mut env, result);+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeStop(+ mut env: JNIEnv,+ _class: JClass,+) {+ let result = engine::stop();+ or_throw(&mut env, result);+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeSeek(+ mut env: JNIEnv,+ _class: JClass,+ position_ms: jlong,+) {+ let result = engine::seek(position_ms.clamp(0, u32::MAX as jlong) as u32);+ or_throw(&mut env, result);+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeSetVolume(+ mut env: JNIEnv,+ _class: JClass,+ volume: jint,+) {+ let result = engine::set_volume(volume.clamp(0, u16::MAX as jint) as u16);+ or_throw(&mut env, result);+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeVolume(+ mut env: JNIEnv,+ _class: JClass,+) -> jint {+ let result = engine::volume().map(|v| v as jint);+ or_throw(&mut env, result)+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeIsConnected(+ _env: JNIEnv,+ _class: JClass,+) -> jboolean {+ if engine::is_connected() {+ JNI_TRUE+ } else {+ JNI_FALSE+ }+}++// --- Catalogue lookups, all over the access point rather than the Web API ---++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeUsername(+ mut env: JNIEnv,+ _class: JClass,+) -> jstring {+ let result = catalog::username();+ string_or_throw(&mut env, result)+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeCollectionUri(+ mut env: JNIEnv,+ _class: JClass,+) -> jstring {+ let result = catalog::collection_uri();+ string_or_throw(&mut env, result)+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeRootlist(+ mut env: JNIEnv,+ _class: JClass,+) -> jstring {+ let result = catalog::rootlist();+ string_or_throw(&mut env, result)+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeContextTracks(+ mut env: JNIEnv,+ _class: JClass,+ uri: JString,+) -> jstring {+ let result = read_string(&mut env, &uri).and_then(|uri| catalog::context_tracks(&uri));+ string_or_throw(&mut env, result)+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeCanvas(+ mut env: JNIEnv,+ _class: JClass,+ track_uri: JString,+) -> jstring {+ let result = read_string(&mut env, &track_uri).and_then(|uri| catalog::canvas(&uri));+ string_or_throw(&mut env, result)+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeLyrics(+ mut env: JNIEnv,+ _class: JClass,+ track_uri: JString,+) -> jstring {+ let result = read_string(&mut env, &track_uri).and_then(|uri| catalog::lyrics(&uri));+ string_or_throw(&mut env, result)+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeTracksMetadata(+ mut env: JNIEnv,+ _class: JClass,+ uris_json: JString,+) -> jstring {+ let result = read_string(&mut env, &uris_json).and_then(|json| catalog::tracks_metadata(&json));+ string_or_throw(&mut env, result)+}++#[no_mangle]+pub extern "system" fn Java_dev_emanuele_spot_nativecore_NativeBridge_nativeShutdown(+ _env: JNIEnv,+ _class: JClass,+) {+ engine::shutdown();+}diff --git a/native/src/lib.rs b/native/src/lib.rsnew file mode 100644index 0000000..e2aa91d--- /dev/null+++ b/native/src/lib.rs@@ -0,0 +1,37 @@+//! JNI entry points for the native Spotify playback core.+//!+//! The Kotlin side owns OAuth and the UI; this crate owns the librespot session,+//! the audio pipeline and the player state machine. Everything crossing the JNI+//! boundary is either a primitive or a UTF-8 string, so there is no shared+//! ownership to reason about.++mod catalog;+mod engine;+mod ffi;+mod sink;++use jni::sys::{jint, JNI_VERSION_1_6};+use jni::JavaVM;+use std::ffi::c_void;++/// Called by the Android runtime when `System.loadLibrary` maps this object.+///+/// cpal's AAudio host needs a `JavaVM` + application `Context` to resolve the+/// output device, and it reads both from `ndk_context`. Nothing else in the+/// crate may touch audio before this has run.+#[no_mangle]+pub extern "system" fn JNI_OnLoad(vm: JavaVM, _reserved: *mut c_void) -> jint {+ #[cfg(target_os = "android")]+ {+ android_logger::init_once(+ android_logger::Config::default()+ .with_max_level(log::LevelFilter::Info)+ .with_tag("spotcore"),+ );+ }++ // The context object itself is attached later from Kotlin via+ // `nativeInit`, because JNI_OnLoad has no Context to hand us.+ engine::store_java_vm(vm);+ JNI_VERSION_1_6+}diff --git a/native/src/sink.rs b/native/src/sink.rsnew file mode 100644index 0000000..61620ee--- /dev/null+++ b/native/src/sink.rs@@ -0,0 +1,131 @@+//! Audio output through an Android `AudioTrack` on the Kotlin side.+//!+//! librespot ships a rodio/cpal backend that does work on Android, but cpal+//! chooses its own AAudio buffer size and the result underruns audibly. This+//! sink produces no sound itself: it converts each packet to interleaved 16-bit+//! PCM and hands it to Kotlin, where an `AudioTrack` owns the buffer and the+//! real-time thread. `AudioTrack.write` blocks, and that is what paces the+//! decoder — no extra queue is needed on either side.++use jni::objects::{GlobalRef, JValue};+use librespot_playback::audio_backend::{Sink, SinkError, SinkResult};+use librespot_playback::config::AudioFormat;+use librespot_playback::convert::Converter;+use librespot_playback::decoder::AudioPacket;+use librespot_playback::{NUM_CHANNELS, SAMPLE_RATE};+use std::sync::Mutex;++use crate::engine::JAVA_VM;++/// The Kotlin `AudioOutput` this sink drives.+///+/// Global rather than owned by the sink because librespot builds the sink from a+/// `FnOnce` with nowhere to pass extra arguments, and there is only ever one.+static OUTPUT: Mutex<Option<GlobalRef>> = Mutex::new(None);++pub fn set_output(output: GlobalRef) {+ if let Ok(mut guard) = OUTPUT.lock() {+ *guard = Some(output);+ }+}++pub fn clear_output() {+ if let Ok(mut guard) = OUTPUT.lock() {+ *guard = None;+ }+}++fn output() -> SinkResult<GlobalRef> {+ OUTPUT+ .lock()+ .ok()+ .and_then(|guard| guard.clone())+ .ok_or_else(|| SinkError::NotConnected("no audio output attached".into()))+}++pub struct AndroidSink {+ /// Scratch buffer for interleaved PCM, reused across packets.+ pcm: Vec<u8>,+}++impl AndroidSink {+ pub fn new(_format: AudioFormat) -> Self {+ Self { pcm: Vec::new() }+ }++ fn invoke(&self, method: &str) -> SinkResult<()> {+ let output = output()?;+ let vm = JAVA_VM+ .get()+ .ok_or_else(|| SinkError::NotConnected("JNI_OnLoad did not run".into()))?;+ let mut env = vm+ .attach_current_thread_permanently()+ .map_err(|e| SinkError::ConnectionRefused(e.to_string()))?;++ env.call_method(&output, method, "()V", &[])+ .map_err(|e| SinkError::OnWrite(format!("{method} failed: {e}")))?;+ Ok(())+ }+}++impl Sink for AndroidSink {+ fn start(&mut self) -> SinkResult<()> {+ self.invoke("start")+ }++ fn stop(&mut self) -> SinkResult<()> {+ self.invoke("stop")+ }++ fn write(&mut self, packet: AudioPacket, converter: &mut Converter) -> SinkResult<()> {+ // Interleaved little-endian S16, which is how AudioTrack is configured.+ self.pcm.clear();+ match packet {+ AudioPacket::Samples(samples) => {+ self.pcm.reserve(samples.len() * 2);+ for sample in converter.f64_to_s16(&samples) {+ self.pcm.extend_from_slice(&sample.to_le_bytes());+ }+ }+ AudioPacket::Raw(data) => self.pcm.extend_from_slice(&data),+ }++ if self.pcm.is_empty() {+ return Ok(());+ }++ let output = output()?;+ let vm = JAVA_VM+ .get()+ .ok_or_else(|| SinkError::NotConnected("JNI_OnLoad did not run".into()))?;+ // Permanent: this is librespot's playback thread and it lives as long as+ // the player, so attaching per packet would be pure overhead.+ let mut env = vm+ .attach_current_thread_permanently()+ .map_err(|e| SinkError::ConnectionRefused(e.to_string()))?;++ // A direct buffer over the Rust allocation: AudioTrack can consume it as+ // is, so the PCM is never copied into the Java heap. Built fresh each+ // time because `pcm` may have reallocated since the last packet, and it+ // is only valid for the duration of this blocking call.+ let buffer = unsafe {+ env.new_direct_byte_buffer(self.pcm.as_mut_ptr(), self.pcm.len())+ .map_err(|e| SinkError::OnWrite(e.to_string()))?+ };++ env.call_method(+ &output,+ "write",+ "(Ljava/nio/ByteBuffer;III)V",+ &[+ JValue::Object(&buffer),+ JValue::Int(self.pcm.len() as i32),+ JValue::Int(SAMPLE_RATE as i32),+ JValue::Int(NUM_CHANNELS as i32),+ ],+ )+ .map_err(|e| SinkError::OnWrite(format!("write failed: {e}")))?;++ Ok(())+ }+}diff --git a/native/vendor/README.md b/native/vendor/README.mdnew file mode 100644index 0000000..837cdb0--- /dev/null+++ b/native/vendor/README.md@@ -0,0 +1,46 @@+# Vendored dependencies++## librespot-core++Copy of [`librespot-core` 0.8.0](https://github.com/librespot-org/librespot)+(MIT, licence retained), wired in through `[patch.crates-io]` in+`native/Cargo.toml` so that `librespot-playback` and `librespot-metadata`+resolve to this copy as well.++### The patch++One line, in `src/config.rs`:++```rust+-pub const OS: &str = std::env::consts::OS;++pub const OS: &str = "linux";+```++### Why++`OS` decides three things at once: the default client id, the `platform` field+librespot sends to Spotify, and the HTTP user agent. On Android the real value+makes librespot present itself as the Spotify Android app, while this client+authenticates with the desktop "keymaster" client id — the one whose OAuth flow+accepts a loopback redirect, and therefore the only one usable here.++Spotify checks that the client id and the advertised platform agree. They do not,+so the access point handshake succeeds and then every client-token and login5+request is refused with a generic `BAD_REQUEST`:++```+rootlist failed: Invalid state { Login request was denied: BAD_REQUEST }+```++The comment above `OS` upstream warns about exactly this: mocking a platform+requires the rest of the identity to match it. Pinning `"linux"` presents a+consistent desktop identity, which is what the desktop client id expects.++The same fix exists in the librespot fork behind+[Outify](https://github.com/iTomKo/Outify) — commit *"Fixed login5 errors by+mocking linux"* — which is how it was found.++### Maintenance++Re-apply this patch when bumping `librespot-core`. If the whole file is replaced,+the marker to look for is `LOCAL PATCH` in `src/config.rs`.diff --git a/native/vendor/librespot-core/.cargo-ok b/native/vendor/librespot-core/.cargo-oknew file mode 100644index 0000000..5f8b795--- /dev/null+++ b/native/vendor/librespot-core/.cargo-ok@@ -0,0 +1 @@+{"v":1}\ No newline at end of filediff --git a/native/vendor/librespot-core/.cargo_vcs_info.json b/native/vendor/librespot-core/.cargo_vcs_info.jsonnew file mode 100644index 0000000..9350c64--- /dev/null+++ b/native/vendor/librespot-core/.cargo_vcs_info.json@@ -0,0 +1,6 @@+{+ "git": {+ "sha1": "d36f9f1907e8cc9d68a93f8ebc6b627b1bf7267d"+ },+ "path_in_vcs": "core"+}\ No newline at end of filediff --git a/native/vendor/librespot-core/Cargo.lock b/native/vendor/librespot-core/Cargo.locknew file mode 100644index 0000000..e2eed73--- /dev/null+++ b/native/vendor/librespot-core/Cargo.lock@@ -0,0 +1,3274 @@+# This file is automatically @generated by Cargo.+# It is not intended for manual editing.+version = 4++[[package]]+name = "adler2"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"++[[package]]+name = "aes"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"+dependencies = [+ "cfg-if",+ "cipher",+ "cpufeatures",+]++[[package]]+name = "aho-corasick"+version = "1.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"+dependencies = [+ "memchr",+]++[[package]]+name = "allocator-api2"+version = "0.2.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"++[[package]]+name = "android_system_properties"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"+dependencies = [+ "libc",+]++[[package]]+name = "anyhow"+version = "1.0.100"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"++[[package]]+name = "atomic-waker"+version = "1.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"++[[package]]+name = "autocfg"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"++[[package]]+name = "base64"+version = "0.22.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"++[[package]]+name = "base64ct"+version = "1.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "55248b47b0caf0546f7988906588779981c43bb1bc9d0c44087278f80cdb44ba"++[[package]]+name = "bitflags"+version = "2.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"++[[package]]+name = "block-buffer"+version = "0.10.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"+dependencies = [+ "generic-array",+]++[[package]]+name = "bumpalo"+version = "3.19.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"++[[package]]+name = "byteorder"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"++[[package]]+name = "bytes"+version = "1.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"++[[package]]+name = "cc"+version = "1.2.45"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "35900b6c8d709fb1d854671ae27aeaa9eec2f8b01b364e1619a40da3e6fe2afe"+dependencies = [+ "find-msvc-tools",+ "shlex",+]++[[package]]+name = "cfg-if"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"++[[package]]+name = "cfg_aliases"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"++[[package]]+name = "chrono"+version = "0.4.42"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"+dependencies = [+ "iana-time-zone",+ "js-sys",+ "num-traits",+ "serde",+ "wasm-bindgen",+ "windows-link 0.2.1",+]++[[package]]+name = "cipher"+version = "0.4.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"+dependencies = [+ "crypto-common",+ "inout",+]++[[package]]+name = "const-oid"+version = "0.9.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"++[[package]]+name = "core-foundation"+version = "0.9.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "core-foundation"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "core-foundation-sys"+version = "0.8.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"++[[package]]+name = "cpufeatures"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"+dependencies = [+ "libc",+]++[[package]]+name = "crc32fast"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"+dependencies = [+ "cfg-if",+]++[[package]]+name = "crypto-common"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"+dependencies = [+ "generic-array",+ "typenum",+]++[[package]]+name = "darling"+version = "0.20.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"+dependencies = [+ "darling_core",+ "darling_macro",+]++[[package]]+name = "darling_core"+version = "0.20.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"+dependencies = [+ "fnv",+ "ident_case",+ "proc-macro2",+ "quote",+ "strsim",+ "syn",+]++[[package]]+name = "darling_macro"+version = "0.20.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"+dependencies = [+ "darling_core",+ "quote",+ "syn",+]++[[package]]+name = "data-encoding"+version = "2.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476"++[[package]]+name = "der"+version = "0.7.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"+dependencies = [+ "const-oid",+ "pem-rfc7468",+ "zeroize",+]++[[package]]+name = "deranged"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587"+dependencies = [+ "powerfmt",+]++[[package]]+name = "derive_builder"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947"+dependencies = [+ "derive_builder_macro",+]++[[package]]+name = "derive_builder_core"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"+dependencies = [+ "darling",+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "derive_builder_macro"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"+dependencies = [+ "derive_builder_core",+ "syn",+]++[[package]]+name = "digest"+version = "0.10.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"+dependencies = [+ "block-buffer",+ "const-oid",+ "crypto-common",+ "subtle",+]++[[package]]+name = "displaydoc"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "either"+version = "1.15.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"++[[package]]+name = "equivalent"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"++[[package]]+name = "errno"+version = "0.3.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"+dependencies = [+ "libc",+ "windows-sys 0.61.2",+]++[[package]]+name = "fastrand"+version = "2.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"++[[package]]+name = "find-msvc-tools"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127"++[[package]]+name = "flate2"+version = "1.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfe33edd8e85a12a67454e37f8c75e730830d83e313556ab9ebf9ee7fbeb3bfb"+dependencies = [+ "crc32fast",+ "miniz_oxide",+]++[[package]]+name = "fnv"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"++[[package]]+name = "foldhash"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"++[[package]]+name = "foreign-types"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"+dependencies = [+ "foreign-types-shared",+]++[[package]]+name = "foreign-types-shared"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"++[[package]]+name = "form_urlencoded"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"+dependencies = [+ "percent-encoding",+]++[[package]]+name = "futures-channel"+version = "0.3.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"+dependencies = [+ "futures-core",+ "futures-sink",+]++[[package]]+name = "futures-core"+version = "0.3.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"++[[package]]+name = "futures-io"+version = "0.3.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"++[[package]]+name = "futures-sink"+version = "0.3.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"++[[package]]+name = "futures-task"+version = "0.3.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"++[[package]]+name = "futures-timer"+version = "3.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24"++[[package]]+name = "futures-util"+version = "0.3.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"+dependencies = [+ "futures-core",+ "futures-io",+ "futures-sink",+ "futures-task",+ "memchr",+ "pin-project-lite",+ "pin-utils",+ "slab",+]++[[package]]+name = "generic-array"+version = "0.14.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2"+dependencies = [+ "typenum",+ "version_check",+]++[[package]]+name = "getrandom"+version = "0.2.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"+dependencies = [+ "cfg-if",+ "js-sys",+ "libc",+ "wasi",+ "wasm-bindgen",+]++[[package]]+name = "getrandom"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"+dependencies = [+ "cfg-if",+ "js-sys",+ "libc",+ "r-efi",+ "wasip2",+ "wasm-bindgen",+]++[[package]]+name = "governor"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "444405bbb1a762387aa22dd569429533b54a1d8759d35d3b64cb39b0293eaa19"+dependencies = [+ "cfg-if",+ "futures-sink",+ "futures-timer",+ "futures-util",+ "hashbrown 0.15.5",+ "nonzero_ext",+ "parking_lot",+ "portable-atomic",+ "smallvec",+ "spinning_top",+ "web-time",+]++[[package]]+name = "h2"+version = "0.4.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386"+dependencies = [+ "atomic-waker",+ "bytes",+ "fnv",+ "futures-core",+ "futures-sink",+ "http",+ "indexmap",+ "slab",+ "tokio",+ "tokio-util",+ "tracing",+]++[[package]]+name = "hashbrown"+version = "0.15.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"+dependencies = [+ "allocator-api2",+ "equivalent",+ "foldhash",+]++[[package]]+name = "hashbrown"+version = "0.16.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"++[[package]]+name = "headers"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b3314d5adb5d94bcdf56771f2e50dbbc80bb4bdf88967526706205ac9eff24eb"+dependencies = [+ "base64",+ "bytes",+ "headers-core",+ "http",+ "httpdate",+ "mime",+ "sha1",+]++[[package]]+name = "headers-core"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4"+dependencies = [+ "http",+]++[[package]]+name = "hmac"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"+dependencies = [+ "digest",+]++[[package]]+name = "home"+version = "0.5.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf"+dependencies = [+ "windows-sys 0.59.0",+]++[[package]]+name = "http"+version = "1.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565"+dependencies = [+ "bytes",+ "fnv",+ "itoa",+]++[[package]]+name = "http-body"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"+dependencies = [+ "bytes",+ "http",+]++[[package]]+name = "http-body-util"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"+dependencies = [+ "bytes",+ "futures-core",+ "http",+ "http-body",+ "pin-project-lite",+]++[[package]]+name = "httparse"+version = "1.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"++[[package]]+name = "httpdate"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"++[[package]]+name = "hyper"+version = "1.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb3aa54a13a0dfe7fbe3a59e0c76093041720fdc77b110cc0fc260fafb4dc51e"+dependencies = [+ "atomic-waker",+ "bytes",+ "futures-channel",+ "futures-core",+ "h2",+ "http",+ "http-body",+ "httparse",+ "itoa",+ "pin-project-lite",+ "pin-utils",+ "smallvec",+ "tokio",+ "want",+]++[[package]]+name = "hyper-proxy2"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9043b7b23fb0bc4a1c7014c27b50a4fc42cc76206f71d34fc0dfe5b28ddc3faf"+dependencies = [+ "bytes",+ "futures-util",+ "headers",+ "http",+ "hyper",+ "hyper-rustls 0.26.0",+ "hyper-tls",+ "hyper-util",+ "native-tls",+ "pin-project-lite",+ "rustls-native-certs 0.7.3",+ "tokio",+ "tokio-native-tls",+ "tokio-rustls 0.25.0",+ "tower-service",+ "webpki",+ "webpki-roots 0.26.11",+]++[[package]]+name = "hyper-rustls"+version = "0.26.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a0bea761b46ae2b24eb4aef630d8d1c398157b6fc29e6350ecf090a0b70c952c"+dependencies = [+ "futures-util",+ "http",+ "hyper",+ "hyper-util",+ "log",+ "rustls 0.22.4",+ "rustls-native-certs 0.7.3",+ "rustls-pki-types",+ "tokio",+ "tokio-rustls 0.25.0",+ "tower-service",+ "webpki-roots 0.26.11",+]++[[package]]+name = "hyper-rustls"+version = "0.27.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58"+dependencies = [+ "http",+ "hyper",+ "hyper-util",+ "rustls 0.23.35",+ "rustls-native-certs 0.8.2",+ "rustls-pki-types",+ "tokio",+ "tokio-rustls 0.26.4",+ "tower-service",+ "webpki-roots 1.0.4",+]++[[package]]+name = "hyper-tls"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"+dependencies = [+ "bytes",+ "http-body-util",+ "hyper",+ "hyper-util",+ "native-tls",+ "tokio",+ "tokio-native-tls",+ "tower-service",+]++[[package]]+name = "hyper-util"+version = "0.1.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3c6995591a8f1380fcb4ba966a252a4b29188d51d2b89e3a252f5305be65aea8"+dependencies = [+ "base64",+ "bytes",+ "futures-channel",+ "futures-core",+ "futures-util",+ "http",+ "http-body",+ "hyper",+ "ipnet",+ "libc",+ "percent-encoding",+ "pin-project-lite",+ "socket2",+ "system-configuration",+ "tokio",+ "tower-service",+ "tracing",+ "windows-registry",+]++[[package]]+name = "iana-time-zone"+version = "0.1.64"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb"+dependencies = [+ "android_system_properties",+ "core-foundation-sys",+ "iana-time-zone-haiku",+ "js-sys",+ "log",+ "wasm-bindgen",+ "windows-core 0.62.2",+]++[[package]]+name = "iana-time-zone-haiku"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"+dependencies = [+ "cc",+]++[[package]]+name = "icu_collections"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43"+dependencies = [+ "displaydoc",+ "potential_utf",+ "yoke",+ "zerofrom",+ "zerovec",+]++[[package]]+name = "icu_locale_core"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6"+dependencies = [+ "displaydoc",+ "litemap",+ "tinystr",+ "writeable",+ "zerovec",+]++[[package]]+name = "icu_normalizer"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599"+dependencies = [+ "icu_collections",+ "icu_normalizer_data",+ "icu_properties",+ "icu_provider",+ "smallvec",+ "zerovec",+]++[[package]]+name = "icu_normalizer_data"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a"++[[package]]+name = "icu_properties"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e93fcd3157766c0c8da2f8cff6ce651a31f0810eaa1c51ec363ef790bbb5fb99"+dependencies = [+ "icu_collections",+ "icu_locale_core",+ "icu_properties_data",+ "icu_provider",+ "zerotrie",+ "zerovec",+]++[[package]]+name = "icu_properties_data"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "02845b3647bb045f1100ecd6480ff52f34c35f82d9880e029d329c21d1054899"++[[package]]+name = "icu_provider"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614"+dependencies = [+ "displaydoc",+ "icu_locale_core",+ "writeable",+ "yoke",+ "zerofrom",+ "zerotrie",+ "zerovec",+]++[[package]]+name = "ident_case"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"++[[package]]+name = "idna"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"+dependencies = [+ "idna_adapter",+ "smallvec",+ "utf8_iter",+]++[[package]]+name = "idna_adapter"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"+dependencies = [+ "icu_normalizer",+ "icu_properties",+]++[[package]]+name = "indexmap"+version = "2.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6717a8d2a5a929a1a2eb43a12812498ed141a0bcfb7e8f7844fbdbe4303bba9f"+dependencies = [+ "equivalent",+ "hashbrown 0.16.0",+]++[[package]]+name = "inout"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"+dependencies = [+ "generic-array",+]++[[package]]+name = "ipnet"+version = "2.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"++[[package]]+name = "iri-string"+version = "0.7.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4f867b9d1d896b67beb18518eda36fdb77a32ea590de864f1325b294a6d14397"+dependencies = [+ "memchr",+ "serde",+]++[[package]]+name = "is-docker"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3"+dependencies = [+ "once_cell",+]++[[package]]+name = "is-wsl"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5"+dependencies = [+ "is-docker",+ "once_cell",+]++[[package]]+name = "itoa"+version = "1.0.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"++[[package]]+name = "js-sys"+version = "0.3.82"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b011eec8cc36da2aab2d5cff675ec18454fad408585853910a202391cf9f8e65"+dependencies = [+ "once_cell",+ "wasm-bindgen",+]++[[package]]+name = "lazy_static"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"+dependencies = [+ "spin",+]++[[package]]+name = "libc"+version = "0.2.177"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"++[[package]]+name = "libm"+version = "0.2.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de"++[[package]]+name = "librespot-core"+version = "0.8.0"+dependencies = [+ "aes",+ "base64",+ "byteorder",+ "bytes",+ "data-encoding",+ "flate2",+ "form_urlencoded",+ "futures-core",+ "futures-util",+ "governor",+ "hmac",+ "http",+ "http-body-util",+ "httparse",+ "hyper",+ "hyper-proxy2",+ "hyper-rustls 0.27.7",+ "hyper-tls",+ "hyper-util",+ "librespot-oauth",+ "librespot-protocol",+ "log",+ "nonzero_ext",+ "num-bigint",+ "num-derive",+ "num-integer",+ "num-traits",+ "pbkdf2",+ "pin-project-lite",+ "priority-queue",+ "protobuf",+ "protobuf-json-mapping",+ "quick-xml",+ "rand 0.9.2",+ "rand_distr",+ "rsa",+ "serde",+ "serde_json",+ "sha1",+ "shannon",+ "sysinfo",+ "thiserror 2.0.17",+ "time",+ "tokio",+ "tokio-stream",+ "tokio-tungstenite",+ "tokio-util",+ "url",+ "uuid",+ "vergen-gitcl",+]++[[package]]+name = "librespot-oauth"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d686417d49c9d2c363392ffe28d6e469daca20a82dc414740930e078f5829661"+dependencies = [+ "log",+ "oauth2",+ "open",+ "reqwest",+ "thiserror 2.0.17",+ "url",+]++[[package]]+name = "librespot-protocol"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3e01f0b2d39f83fa162eb91d4a16313bcf99e77daf258abe8f7b7bcb1160b084"+dependencies = [+ "protobuf",+ "protobuf-codegen",+]++[[package]]+name = "linux-raw-sys"+version = "0.4.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"++[[package]]+name = "linux-raw-sys"+version = "0.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"++[[package]]+name = "litemap"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77"++[[package]]+name = "lock_api"+version = "0.4.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"+dependencies = [+ "scopeguard",+]++[[package]]+name = "log"+version = "0.4.28"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"++[[package]]+name = "lru-slab"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"++[[package]]+name = "memchr"+version = "2.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"++[[package]]+name = "mime"+version = "0.3.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"++[[package]]+name = "miniz_oxide"+version = "0.8.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"+dependencies = [+ "adler2",+ "simd-adler32",+]++[[package]]+name = "mio"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "69d83b0086dc8ecf3ce9ae2874b2d1290252e2a30720bea58a5c6639b0092873"+dependencies = [+ "libc",+ "wasi",+ "windows-sys 0.61.2",+]++[[package]]+name = "native-tls"+version = "0.2.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e"+dependencies = [+ "libc",+ "log",+ "openssl",+ "openssl-probe",+ "openssl-sys",+ "schannel",+ "security-framework 2.11.1",+ "security-framework-sys",+ "tempfile",+]++[[package]]+name = "nonzero_ext"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21"++[[package]]+name = "ntapi"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4"+dependencies = [+ "winapi",+]++[[package]]+name = "num-bigint"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"+dependencies = [+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-bigint-dig"+version = "0.8.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "82c79c15c05d4bf82b6f5ef163104cc81a760d8e874d38ac50ab67c8877b647b"+dependencies = [+ "lazy_static",+ "libm",+ "num-integer",+ "num-iter",+ "num-traits",+ "rand 0.8.5",+ "smallvec",+ "zeroize",+]++[[package]]+name = "num-conv"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"++[[package]]+name = "num-derive"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "num-integer"+version = "0.1.46"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"+dependencies = [+ "num-traits",+]++[[package]]+name = "num-iter"+version = "0.1.45"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf"+dependencies = [+ "autocfg",+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-traits"+version = "0.2.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"+dependencies = [+ "autocfg",+ "libm",+]++[[package]]+name = "num_threads"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9"+dependencies = [+ "libc",+]++[[package]]+name = "oauth2"+version = "5.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "51e219e79014df21a225b1860a479e2dcd7cbd9130f4defd4bd0e191ea31d67d"+dependencies = [+ "base64",+ "chrono",+ "getrandom 0.2.16",+ "http",+ "rand 0.8.5",+ "reqwest",+ "serde",+ "serde_json",+ "serde_path_to_error",+ "sha2",+ "thiserror 1.0.69",+ "url",+]++[[package]]+name = "objc2-core-foundation"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"+dependencies = [+ "bitflags",+]++[[package]]+name = "objc2-io-kit"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"+dependencies = [+ "libc",+ "objc2-core-foundation",+]++[[package]]+name = "once_cell"+version = "1.21.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"++[[package]]+name = "open"+version = "5.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e2483562e62ea94312f3576a7aca397306df7990b8d89033e18766744377ef95"+dependencies = [+ "is-wsl",+ "libc",+ "pathdiff",+]++[[package]]+name = "openssl"+version = "0.10.75"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08838db121398ad17ab8531ce9de97b244589089e290a384c900cb9ff7434328"+dependencies = [+ "bitflags",+ "cfg-if",+ "foreign-types",+ "libc",+ "once_cell",+ "openssl-macros",+ "openssl-sys",+]++[[package]]+name = "openssl-macros"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "openssl-probe"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"++[[package]]+name = "openssl-sys"+version = "0.9.111"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "82cab2d520aa75e3c58898289429321eb788c3106963d0dc886ec7a5f4adc321"+dependencies = [+ "cc",+ "libc",+ "pkg-config",+ "vcpkg",+]++[[package]]+name = "parking_lot"+version = "0.12.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"+dependencies = [+ "lock_api",+ "parking_lot_core",+]++[[package]]+name = "parking_lot_core"+version = "0.9.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"+dependencies = [+ "cfg-if",+ "libc",+ "redox_syscall",+ "smallvec",+ "windows-link 0.2.1",+]++[[package]]+name = "pathdiff"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"++[[package]]+name = "pbkdf2"+version = "0.12.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2"+dependencies = [+ "digest",+ "hmac",+]++[[package]]+name = "pem-rfc7468"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412"+dependencies = [+ "base64ct",+]++[[package]]+name = "percent-encoding"+version = "2.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"++[[package]]+name = "pin-project-lite"+version = "0.2.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"++[[package]]+name = "pin-utils"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"++[[package]]+name = "pkcs1"+version = "0.7.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f"+dependencies = [+ "der",+ "pkcs8",+ "spki",+]++[[package]]+name = "pkcs8"+version = "0.10.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"+dependencies = [+ "der",+ "spki",+]++[[package]]+name = "pkg-config"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"++[[package]]+name = "portable-atomic"+version = "1.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"++[[package]]+name = "potential_utf"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77"+dependencies = [+ "zerovec",+]++[[package]]+name = "powerfmt"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"++[[package]]+name = "ppv-lite86"+version = "0.2.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"+dependencies = [+ "zerocopy",+]++[[package]]+name = "priority-queue"+version = "2.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93980406f12d9f8140ed5abe7155acb10bb1e69ea55c88960b9c2f117445ef96"+dependencies = [+ "equivalent",+ "indexmap",+ "serde",+]++[[package]]+name = "proc-macro2"+version = "1.0.103"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "protobuf"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d65a1d4ddae7d8b5de68153b48f6aa3bba8cb002b243dbdbc55a5afbc98f99f4"+dependencies = [+ "once_cell",+ "protobuf-support",+ "thiserror 1.0.69",+]++[[package]]+name = "protobuf-codegen"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5d3976825c0014bbd2f3b34f0001876604fe87e0c86cd8fa54251530f1544ace"+dependencies = [+ "anyhow",+ "once_cell",+ "protobuf",+ "protobuf-parse",+ "regex",+ "tempfile",+ "thiserror 1.0.69",+]++[[package]]+name = "protobuf-json-mapping"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e0d6e4be637b310d8a5c02fa195243328e2d97fa7df1127a27281ef1187fcb1d"+dependencies = [+ "protobuf",+ "protobuf-support",+ "thiserror 1.0.69",+]++[[package]]+name = "protobuf-parse"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b4aeaa1f2460f1d348eeaeed86aea999ce98c1bded6f089ff8514c9d9dbdc973"+dependencies = [+ "anyhow",+ "indexmap",+ "log",+ "protobuf",+ "protobuf-support",+ "tempfile",+ "thiserror 1.0.69",+ "which",+]++[[package]]+name = "protobuf-support"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3e36c2f31e0a47f9280fb347ef5e461ffcd2c52dd520d8e216b52f93b0b0d7d6"+dependencies = [+ "thiserror 1.0.69",+]++[[package]]+name = "quick-xml"+version = "0.38.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "42a232e7487fc2ef313d96dde7948e7a3c05101870d8985e4fd8d26aedd27b89"+dependencies = [+ "memchr",+ "serde",+]++[[package]]+name = "quinn"+version = "0.11.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20"+dependencies = [+ "bytes",+ "cfg_aliases",+ "pin-project-lite",+ "quinn-proto",+ "quinn-udp",+ "rustc-hash",+ "rustls 0.23.35",+ "socket2",+ "thiserror 2.0.17",+ "tokio",+ "tracing",+ "web-time",+]++[[package]]+name = "quinn-proto"+version = "0.11.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31"+dependencies = [+ "bytes",+ "getrandom 0.3.4",+ "lru-slab",+ "rand 0.9.2",+ "ring",+ "rustc-hash",+ "rustls 0.23.35",+ "rustls-pki-types",+ "slab",+ "thiserror 2.0.17",+ "tinyvec",+ "tracing",+ "web-time",+]++[[package]]+name = "quinn-udp"+version = "0.5.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd"+dependencies = [+ "cfg_aliases",+ "libc",+ "once_cell",+ "socket2",+ "tracing",+ "windows-sys 0.60.2",+]++[[package]]+name = "quote"+version = "1.0.42"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "r-efi"+version = "5.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"++[[package]]+name = "rand"+version = "0.8.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"+dependencies = [+ "libc",+ "rand_chacha 0.3.1",+ "rand_core 0.6.4",+]++[[package]]+name = "rand"+version = "0.9.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"+dependencies = [+ "rand_chacha 0.9.0",+ "rand_core 0.9.3",+]++[[package]]+name = "rand_chacha"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"+dependencies = [+ "ppv-lite86",+ "rand_core 0.6.4",+]++[[package]]+name = "rand_chacha"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"+dependencies = [+ "ppv-lite86",+ "rand_core 0.9.3",+]++[[package]]+name = "rand_core"+version = "0.6.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"+dependencies = [+ "getrandom 0.2.16",+]++[[package]]+name = "rand_core"+version = "0.9.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38"+dependencies = [+ "getrandom 0.3.4",+]++[[package]]+name = "rand_distr"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6a8615d50dcf34fa31f7ab52692afec947c4dd0ab803cc87cb3b0b4570ff7463"+dependencies = [+ "num-traits",+ "rand 0.9.2",+]++[[package]]+name = "redox_syscall"+version = "0.5.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"+dependencies = [+ "bitflags",+]++[[package]]+name = "regex"+version = "1.12.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"+dependencies = [+ "aho-corasick",+ "memchr",+ "regex-automata",+ "regex-syntax",+]++[[package]]+name = "regex-automata"+version = "0.4.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"+dependencies = [+ "aho-corasick",+ "memchr",+ "regex-syntax",+]++[[package]]+name = "regex-syntax"+version = "0.8.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"++[[package]]+name = "reqwest"+version = "0.12.24"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9d0946410b9f7b082a427e4ef5c8ff541a88b357bc6c637c40db3a68ac70a36f"+dependencies = [+ "base64",+ "bytes",+ "futures-channel",+ "futures-core",+ "futures-util",+ "http",+ "http-body",+ "http-body-util",+ "hyper",+ "hyper-rustls 0.27.7",+ "hyper-tls",+ "hyper-util",+ "js-sys",+ "log",+ "native-tls",+ "percent-encoding",+ "pin-project-lite",+ "quinn",+ "rustls 0.23.35",+ "rustls-native-certs 0.8.2",+ "rustls-pki-types",+ "serde",+ "serde_json",+ "serde_urlencoded",+ "sync_wrapper",+ "tokio",+ "tokio-native-tls",+ "tokio-rustls 0.26.4",+ "tower",+ "tower-http",+ "tower-service",+ "url",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "web-sys",+ "webpki-roots 1.0.4",+]++[[package]]+name = "ring"+version = "0.17.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"+dependencies = [+ "cc",+ "cfg-if",+ "getrandom 0.2.16",+ "libc",+ "untrusted",+ "windows-sys 0.52.0",+]++[[package]]+name = "rsa"+version = "0.9.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "78928ac1ed176a5ca1d17e578a1825f3d81ca54cf41053a592584b020cfd691b"+dependencies = [+ "const-oid",+ "digest",+ "num-bigint-dig",+ "num-integer",+ "num-traits",+ "pkcs1",+ "pkcs8",+ "rand_core 0.6.4",+ "signature",+ "spki",+ "subtle",+ "zeroize",+]++[[package]]+name = "rustc-hash"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"++[[package]]+name = "rustix"+version = "0.38.44"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"+dependencies = [+ "bitflags",+ "errno",+ "libc",+ "linux-raw-sys 0.4.15",+ "windows-sys 0.59.0",+]++[[package]]+name = "rustix"+version = "1.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"+dependencies = [+ "bitflags",+ "errno",+ "libc",+ "linux-raw-sys 0.11.0",+ "windows-sys 0.61.2",+]++[[package]]+name = "rustls"+version = "0.22.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432"+dependencies = [+ "log",+ "ring",+ "rustls-pki-types",+ "rustls-webpki 0.102.8",+ "subtle",+ "zeroize",+]++[[package]]+name = "rustls"+version = "0.23.35"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "533f54bc6a7d4f647e46ad909549eda97bf5afc1585190ef692b4286b198bd8f"+dependencies = [+ "once_cell",+ "ring",+ "rustls-pki-types",+ "rustls-webpki 0.103.8",+ "subtle",+ "zeroize",+]++[[package]]+name = "rustls-native-certs"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5"+dependencies = [+ "openssl-probe",+ "rustls-pemfile",+ "rustls-pki-types",+ "schannel",+ "security-framework 2.11.1",+]++[[package]]+name = "rustls-native-certs"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9980d917ebb0c0536119ba501e90834767bffc3d60641457fd84a1f3fd337923"+dependencies = [+ "openssl-probe",+ "rustls-pki-types",+ "schannel",+ "security-framework 3.5.1",+]++[[package]]+name = "rustls-pemfile"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"+dependencies = [+ "rustls-pki-types",+]++[[package]]+name = "rustls-pki-types"+version = "1.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "94182ad936a0c91c324cd46c6511b9510ed16af436d7b5bab34beab0afd55f7a"+dependencies = [+ "web-time",+ "zeroize",+]++[[package]]+name = "rustls-webpki"+version = "0.102.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"+dependencies = [+ "ring",+ "rustls-pki-types",+ "untrusted",+]++[[package]]+name = "rustls-webpki"+version = "0.103.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2ffdfa2f5286e2247234e03f680868ac2815974dc39e00ea15adc445d0aafe52"+dependencies = [+ "ring",+ "rustls-pki-types",+ "untrusted",+]++[[package]]+name = "rustversion"+version = "1.0.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"++[[package]]+name = "ryu"+version = "1.0.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"++[[package]]+name = "schannel"+version = "0.1.28"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1"+dependencies = [+ "windows-sys 0.61.2",+]++[[package]]+name = "scopeguard"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"++[[package]]+name = "security-framework"+version = "2.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"+dependencies = [+ "bitflags",+ "core-foundation 0.9.4",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework"+version = "3.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b3297343eaf830f66ede390ea39da1d462b6b0c1b000f420d0a83f898bbbe6ef"+dependencies = [+ "bitflags",+ "core-foundation 0.10.1",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework-sys"+version = "2.15.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cc1f0cbffaac4852523ce30d8bd3c5cdc873501d96ff467ca09b6767bb8cd5c0"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "serde"+version = "1.0.228"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"+dependencies = [+ "serde_core",+ "serde_derive",+]++[[package]]+name = "serde_core"+version = "1.0.228"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"+dependencies = [+ "serde_derive",+]++[[package]]+name = "serde_derive"+version = "1.0.228"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "serde_json"+version = "1.0.145"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"+dependencies = [+ "itoa",+ "memchr",+ "ryu",+ "serde",+ "serde_core",+]++[[package]]+name = "serde_path_to_error"+version = "0.1.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"+dependencies = [+ "itoa",+ "serde",+ "serde_core",+]++[[package]]+name = "serde_urlencoded"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"+dependencies = [+ "form_urlencoded",+ "itoa",+ "ryu",+ "serde",+]++[[package]]+name = "sha1"+version = "0.10.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"+dependencies = [+ "cfg-if",+ "cpufeatures",+ "digest",+]++[[package]]+name = "sha2"+version = "0.10.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"+dependencies = [+ "cfg-if",+ "cpufeatures",+ "digest",+]++[[package]]+name = "shannon"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7ea5b41c9427b56caa7b808cb548a04fb50bb5b9e98590b53f28064ff4174561"+dependencies = [+ "byteorder",+]++[[package]]+name = "shlex"+version = "1.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"++[[package]]+name = "signature"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"+dependencies = [+ "digest",+ "rand_core 0.6.4",+]++[[package]]+name = "simd-adler32"+version = "0.3.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"++[[package]]+name = "slab"+version = "0.4.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"++[[package]]+name = "smallvec"+version = "1.15.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"++[[package]]+name = "socket2"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "17129e116933cf371d018bb80ae557e889637989d8638274fb25622827b03881"+dependencies = [+ "libc",+ "windows-sys 0.60.2",+]++[[package]]+name = "spin"+version = "0.9.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"++[[package]]+name = "spinning_top"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300"+dependencies = [+ "lock_api",+]++[[package]]+name = "spki"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"+dependencies = [+ "base64ct",+ "der",+]++[[package]]+name = "stable_deref_trait"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"++[[package]]+name = "strsim"+version = "0.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"++[[package]]+name = "subtle"+version = "2.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"++[[package]]+name = "syn"+version = "2.0.109"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2f17c7e013e88258aa9543dcbe81aca68a667a9ac37cd69c9fbc07858bfe0e2f"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "sync_wrapper"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"+dependencies = [+ "futures-core",+]++[[package]]+name = "synstructure"+version = "0.13.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "sysinfo"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "252800745060e7b9ffb7b2badbd8b31cfa4aa2e61af879d0a3bf2a317c20217d"+dependencies = [+ "libc",+ "memchr",+ "ntapi",+ "objc2-core-foundation",+ "objc2-io-kit",+ "windows",+]++[[package]]+name = "system-configuration"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"+dependencies = [+ "bitflags",+ "core-foundation 0.9.4",+ "system-configuration-sys",+]++[[package]]+name = "system-configuration-sys"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "tempfile"+version = "3.23.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2d31c77bdf42a745371d260a26ca7163f1e0924b64afa0b688e61b5a9fa02f16"+dependencies = [+ "fastrand",+ "getrandom 0.3.4",+ "once_cell",+ "rustix 1.1.2",+ "windows-sys 0.61.2",+]++[[package]]+name = "thiserror"+version = "1.0.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"+dependencies = [+ "thiserror-impl 1.0.69",+]++[[package]]+name = "thiserror"+version = "2.0.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"+dependencies = [+ "thiserror-impl 2.0.17",+]++[[package]]+name = "thiserror-impl"+version = "1.0.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "thiserror-impl"+version = "2.0.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "time"+version = "0.3.44"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91e7d9e3bb61134e77bde20dd4825b97c010155709965fedf0f49bb138e52a9d"+dependencies = [+ "deranged",+ "itoa",+ "libc",+ "num-conv",+ "num_threads",+ "powerfmt",+ "serde",+ "time-core",+ "time-macros",+]++[[package]]+name = "time-core"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b"++[[package]]+name = "time-macros"+version = "0.2.24"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3"+dependencies = [+ "num-conv",+ "time-core",+]++[[package]]+name = "tinystr"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869"+dependencies = [+ "displaydoc",+ "zerovec",+]++[[package]]+name = "tinyvec"+version = "1.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"+dependencies = [+ "tinyvec_macros",+]++[[package]]+name = "tinyvec_macros"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"++[[package]]+name = "tokio"+version = "1.48.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff360e02eab121e0bc37a2d3b4d4dc622e6eda3a8e5253d5435ecf5bd4c68408"+dependencies = [+ "bytes",+ "libc",+ "mio",+ "pin-project-lite",+ "socket2",+ "tokio-macros",+ "windows-sys 0.61.2",+]++[[package]]+name = "tokio-macros"+version = "2.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "tokio-native-tls"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"+dependencies = [+ "native-tls",+ "tokio",+]++[[package]]+name = "tokio-rustls"+version = "0.25.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f"+dependencies = [+ "rustls 0.22.4",+ "rustls-pki-types",+ "tokio",+]++[[package]]+name = "tokio-rustls"+version = "0.26.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"+dependencies = [+ "rustls 0.23.35",+ "tokio",+]++[[package]]+name = "tokio-stream"+version = "0.1.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047"+dependencies = [+ "futures-core",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "tokio-tungstenite"+version = "0.28.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d25a406cddcc431a75d3d9afc6a7c0f7428d4891dd973e4d54c56b46127bf857"+dependencies = [+ "futures-util",+ "log",+ "native-tls",+ "rustls 0.23.35",+ "rustls-native-certs 0.8.2",+ "rustls-pki-types",+ "tokio",+ "tokio-native-tls",+ "tokio-rustls 0.26.4",+ "tungstenite",+ "webpki-roots 0.26.11",+]++[[package]]+name = "tokio-util"+version = "0.7.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2efa149fe76073d6e8fd97ef4f4eca7b67f599660115591483572e406e165594"+dependencies = [+ "bytes",+ "futures-core",+ "futures-sink",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "tower"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"+dependencies = [+ "futures-core",+ "futures-util",+ "pin-project-lite",+ "sync_wrapper",+ "tokio",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "tower-http"+version = "0.6.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2"+dependencies = [+ "bitflags",+ "bytes",+ "futures-util",+ "http",+ "http-body",+ "iri-string",+ "pin-project-lite",+ "tower",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "tower-layer"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"++[[package]]+name = "tower-service"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"++[[package]]+name = "tracing"+version = "0.1.41"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"+dependencies = [+ "pin-project-lite",+ "tracing-core",+]++[[package]]+name = "tracing-core"+version = "0.1.34"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678"+dependencies = [+ "once_cell",+]++[[package]]+name = "try-lock"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"++[[package]]+name = "tungstenite"+version = "0.28.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8628dcc84e5a09eb3d8423d6cb682965dea9133204e8fb3efee74c2a0c259442"+dependencies = [+ "bytes",+ "data-encoding",+ "http",+ "httparse",+ "log",+ "native-tls",+ "rand 0.9.2",+ "rustls 0.23.35",+ "rustls-pki-types",+ "sha1",+ "thiserror 2.0.17",+ "utf-8",+]++[[package]]+name = "typenum"+version = "1.19.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"++[[package]]+name = "unicode-ident"+version = "1.0.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"++[[package]]+name = "untrusted"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"++[[package]]+name = "url"+version = "2.5.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b"+dependencies = [+ "form_urlencoded",+ "idna",+ "percent-encoding",+ "serde",+]++[[package]]+name = "utf-8"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"++[[package]]+name = "utf8_iter"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"++[[package]]+name = "uuid"+version = "1.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2"+dependencies = [+ "getrandom 0.3.4",+]++[[package]]+name = "vcpkg"+version = "0.2.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"++[[package]]+name = "vergen"+version = "9.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6b2bf58be11fc9414104c6d3a2e464163db5ef74b12296bda593cac37b6e4777"+dependencies = [+ "anyhow",+ "derive_builder",+ "rustversion",+ "time",+ "vergen-lib",+]++[[package]]+name = "vergen-gitcl"+version = "1.0.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9dfc1de6eb2e08a4ddf152f1b179529638bedc0ea95e6d667c014506377aefe"+dependencies = [+ "anyhow",+ "derive_builder",+ "rustversion",+ "time",+ "vergen",+ "vergen-lib",+]++[[package]]+name = "vergen-lib"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b07e6010c0f3e59fcb164e0163834597da68d1f864e2b8ca49f74de01e9c166"+dependencies = [+ "anyhow",+ "derive_builder",+ "rustversion",+]++[[package]]+name = "version_check"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"++[[package]]+name = "want"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"+dependencies = [+ "try-lock",+]++[[package]]+name = "wasi"+version = "0.11.1+wasi-snapshot-preview1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"++[[package]]+name = "wasip2"+version = "1.0.1+wasi-0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"+dependencies = [+ "wit-bindgen",+]++[[package]]+name = "wasm-bindgen"+version = "0.2.105"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da95793dfc411fbbd93f5be7715b0578ec61fe87cb1a42b12eb625caa5c5ea60"+dependencies = [+ "cfg-if",+ "once_cell",+ "rustversion",+ "wasm-bindgen-macro",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-futures"+version = "0.4.55"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "551f88106c6d5e7ccc7cd9a16f312dd3b5d36ea8b4954304657d5dfba115d4a0"+dependencies = [+ "cfg-if",+ "js-sys",+ "once_cell",+ "wasm-bindgen",+ "web-sys",+]++[[package]]+name = "wasm-bindgen-macro"+version = "0.2.105"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "04264334509e04a7bf8690f2384ef5265f05143a4bff3889ab7a3269adab59c2"+dependencies = [+ "quote",+ "wasm-bindgen-macro-support",+]++[[package]]+name = "wasm-bindgen-macro-support"+version = "0.2.105"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "420bc339d9f322e562942d52e115d57e950d12d88983a14c79b86859ee6c7ebc"+dependencies = [+ "bumpalo",+ "proc-macro2",+ "quote",+ "syn",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-shared"+version = "0.2.105"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "76f218a38c84bcb33c25ec7059b07847d465ce0e0a76b995e134a45adcb6af76"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "web-sys"+version = "0.3.82"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3a1f95c0d03a47f4ae1f7a64643a6bb97465d9b740f0fa8f90ea33915c99a9a1"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "web-time"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "webpki"+version = "0.22.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53"+dependencies = [+ "ring",+ "untrusted",+]++[[package]]+name = "webpki-roots"+version = "0.26.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"+dependencies = [+ "webpki-roots 1.0.4",+]++[[package]]+name = "webpki-roots"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b2878ef029c47c6e8cf779119f20fcf52bde7ad42a731b2a304bc221df17571e"+dependencies = [+ "rustls-pki-types",+]++[[package]]+name = "which"+version = "4.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"+dependencies = [+ "either",+ "home",+ "once_cell",+ "rustix 0.38.44",+]++[[package]]+name = "winapi"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"+dependencies = [+ "winapi-i686-pc-windows-gnu",+ "winapi-x86_64-pc-windows-gnu",+]++[[package]]+name = "winapi-i686-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"++[[package]]+name = "winapi-x86_64-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"++[[package]]+name = "windows"+version = "0.61.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"+dependencies = [+ "windows-collections",+ "windows-core 0.61.2",+ "windows-future",+ "windows-link 0.1.3",+ "windows-numerics",+]++[[package]]+name = "windows-collections"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"+dependencies = [+ "windows-core 0.61.2",+]++[[package]]+name = "windows-core"+version = "0.61.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"+dependencies = [+ "windows-implement",+ "windows-interface",+ "windows-link 0.1.3",+ "windows-result 0.3.4",+ "windows-strings 0.4.2",+]++[[package]]+name = "windows-core"+version = "0.62.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"+dependencies = [+ "windows-implement",+ "windows-interface",+ "windows-link 0.2.1",+ "windows-result 0.4.1",+ "windows-strings 0.5.1",+]++[[package]]+name = "windows-future"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"+dependencies = [+ "windows-core 0.61.2",+ "windows-link 0.1.3",+ "windows-threading",+]++[[package]]+name = "windows-implement"+version = "0.60.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "windows-interface"+version = "0.59.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "windows-link"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"++[[package]]+name = "windows-link"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"++[[package]]+name = "windows-numerics"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"+dependencies = [+ "windows-core 0.61.2",+ "windows-link 0.1.3",+]++[[package]]+name = "windows-registry"+version = "0.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e"+dependencies = [+ "windows-link 0.1.3",+ "windows-result 0.3.4",+ "windows-strings 0.4.2",+]++[[package]]+name = "windows-result"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"+dependencies = [+ "windows-link 0.1.3",+]++[[package]]+name = "windows-result"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows-strings"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"+dependencies = [+ "windows-link 0.1.3",+]++[[package]]+name = "windows-strings"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows-sys"+version = "0.52.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-sys"+version = "0.59.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-sys"+version = "0.60.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"+dependencies = [+ "windows-targets 0.53.5",+]++[[package]]+name = "windows-sys"+version = "0.61.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows-targets"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"+dependencies = [+ "windows_aarch64_gnullvm 0.52.6",+ "windows_aarch64_msvc 0.52.6",+ "windows_i686_gnu 0.52.6",+ "windows_i686_gnullvm 0.52.6",+ "windows_i686_msvc 0.52.6",+ "windows_x86_64_gnu 0.52.6",+ "windows_x86_64_gnullvm 0.52.6",+ "windows_x86_64_msvc 0.52.6",+]++[[package]]+name = "windows-targets"+version = "0.53.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"+dependencies = [+ "windows-link 0.2.1",+ "windows_aarch64_gnullvm 0.53.1",+ "windows_aarch64_msvc 0.53.1",+ "windows_i686_gnu 0.53.1",+ "windows_i686_gnullvm 0.53.1",+ "windows_i686_msvc 0.53.1",+ "windows_x86_64_gnu 0.53.1",+ "windows_x86_64_gnullvm 0.53.1",+ "windows_x86_64_msvc 0.53.1",+]++[[package]]+name = "windows-threading"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"+dependencies = [+ "windows-link 0.1.3",+]++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"++[[package]]+name = "windows_aarch64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"++[[package]]+name = "windows_aarch64_msvc"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"++[[package]]+name = "windows_i686_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"++[[package]]+name = "windows_i686_gnu"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"++[[package]]+name = "windows_i686_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"++[[package]]+name = "windows_i686_gnullvm"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"++[[package]]+name = "windows_i686_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"++[[package]]+name = "windows_i686_msvc"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"++[[package]]+name = "windows_x86_64_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"++[[package]]+name = "windows_x86_64_gnu"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"++[[package]]+name = "windows_x86_64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"++[[package]]+name = "windows_x86_64_msvc"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"++[[package]]+name = "wit-bindgen"+version = "0.46.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"++[[package]]+name = "writeable"+version = "0.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9"++[[package]]+name = "yoke"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954"+dependencies = [+ "stable_deref_trait",+ "yoke-derive",+ "zerofrom",+]++[[package]]+name = "yoke-derive"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+ "synstructure",+]++[[package]]+name = "zerocopy"+version = "0.8.27"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c"+dependencies = [+ "zerocopy-derive",+]++[[package]]+name = "zerocopy-derive"+version = "0.8.27"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "zerofrom"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"+dependencies = [+ "zerofrom-derive",+]++[[package]]+name = "zerofrom-derive"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+ "synstructure",+]++[[package]]+name = "zeroize"+version = "1.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"++[[package]]+name = "zerotrie"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851"+dependencies = [+ "displaydoc",+ "yoke",+ "zerofrom",+]++[[package]]+name = "zerovec"+version = "0.11.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002"+dependencies = [+ "yoke",+ "zerofrom",+ "zerovec-derive",+]++[[package]]+name = "zerovec-derive"+version = "0.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]diff --git a/native/vendor/librespot-core/Cargo.toml b/native/vendor/librespot-core/Cargo.tomlnew file mode 100644index 0000000..4de310c--- /dev/null+++ b/native/vendor/librespot-core/Cargo.toml@@ -0,0 +1,275 @@+# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO+#+# When uploading crates to the registry Cargo will automatically+# "normalize" Cargo.toml files for maximal compatibility+# with all versions of Cargo and also rewrite `path` dependencies+# to registry (e.g., crates.io) dependencies.+#+# If you are reading this file be aware that the original Cargo.toml+# will likely look very different (and much more reasonable).+# See Cargo.toml.orig for the original contents.++[package]+edition = "2024"+rust-version = "1.85"+name = "librespot-core"+version = "0.8.0"+authors = ["Paul Lietar <[email protected]>"]+build = "build.rs"+autolib = false+autobins = false+autoexamples = false+autotests = false+autobenches = false+description = "The core functionality provided by librespot"+readme = false+license = "MIT"+repository = "https://github.com/librespot-org/librespot"++[features]+__rustls = []+default = ["native-tls"]+native-tls = [+ "dep:hyper-tls",+ "hyper-proxy2/tls",+ "librespot-oauth/native-tls",+ "tokio-tungstenite/native-tls",+]+rustls-tls-native-roots = [+ "__rustls",+ "hyper-proxy2/rustls",+ "hyper-rustls/native-tokio",+ "librespot-oauth/rustls-tls-native-roots",+ "tokio-tungstenite/rustls-tls-native-roots",+]+rustls-tls-webpki-roots = [+ "__rustls",+ "hyper-proxy2/rustls-webpki",+ "hyper-rustls/webpki-tokio",+ "librespot-oauth/rustls-tls-webpki-roots",+ "tokio-tungstenite/rustls-tls-webpki-roots",+]++[lib]+name = "librespot_core"+path = "src/lib.rs"++[[test]]+name = "connect"+path = "tests/connect.rs"++[dependencies.aes]+version = "0.8"++[dependencies.base64]+version = "0.22"++[dependencies.byteorder]+version = "1.5"++[dependencies.bytes]+version = "1"++[dependencies.data-encoding]+version = "2.9"++[dependencies.flate2]+version = "1.1"++[dependencies.form_urlencoded]+version = "1.2"++[dependencies.futures-core]+version = "0.3"++[dependencies.futures-util]+version = "0.3"+features = [+ "alloc",+ "bilock",+ "unstable",+]+default-features = false++[dependencies.governor]+version = "0.10"+features = ["std"]+default-features = false++[dependencies.hmac]+version = "0.12"++[dependencies.http]+version = "1.3"++[dependencies.http-body-util]+version = "0.1"++[dependencies.httparse]+version = "1.10"++[dependencies.hyper]+version = "1.6"+features = [+ "http1",+ "http2",+]++[dependencies.hyper-proxy2]+version = "0.1"+default-features = false++[dependencies.hyper-rustls]+version = "0.27"+features = [+ "http1",+ "http2",+ "ring",+]+optional = true+default-features = false++[dependencies.hyper-tls]+version = "0.6"+optional = true++[dependencies.hyper-util]+version = "0.1"+features = [+ "client",+ "http1",+ "http2",+]+default-features = false++[dependencies.librespot-oauth]+version = "0.8.0"+default-features = false++[dependencies.librespot-protocol]+version = "0.8.0"+default-features = false++[dependencies.log]+version = "0.4"++[dependencies.nonzero_ext]+version = "0.3"++[dependencies.num-bigint]+version = "0.4"++[dependencies.num-derive]+version = "0.4"++[dependencies.num-integer]+version = "0.1"++[dependencies.num-traits]+version = "0.2"++[dependencies.pbkdf2]+version = "0.12"+features = ["hmac"]+default-features = false++[dependencies.pin-project-lite]+version = "0.2"++[dependencies.priority-queue]+version = "2.5"++[dependencies.protobuf]+version = "3.7"++[dependencies.protobuf-json-mapping]+version = "3.7"++[dependencies.quick-xml]+version = "0.38"+features = ["serialize"]++[dependencies.rand]+version = "0.9"+features = ["thread_rng"]+default-features = false++[dependencies.rsa]+version = "0.9"++[dependencies.serde]+version = "1.0"+features = ["derive"]++[dependencies.serde_json]+version = "1.0"++[dependencies.sha1]+version = "0.10"+features = ["oid"]++[dependencies.shannon]+version = "0.2"++[dependencies.sysinfo]+version = "0.36"+features = ["system"]+default-features = false++[dependencies.thiserror]+version = "2"++[dependencies.time]+version = "0.3"+features = [+ "formatting",+ "parsing",+]++[dependencies.tokio]+version = "1"+features = [+ "io-util",+ "macros",+ "net",+ "rt",+ "sync",+ "time",+]++[dependencies.tokio-stream]+version = "0.1"+default-features = false++[dependencies.tokio-tungstenite]+version = "0.28"+default-features = false++[dependencies.tokio-util]+version = "0.7"+default-features = false++[dependencies.url]+version = "2"++[dependencies.uuid]+version = "1"+features = ["v4"]+default-features = false++[dev-dependencies.tokio]+version = "1"+features = ["macros"]++[build-dependencies.rand]+version = "0.9"+features = ["thread_rng"]+default-features = false++[build-dependencies.rand_distr]+version = "0.5"++[build-dependencies.vergen-gitcl]+version = "1.0"+features = ["build"]+default-features = falsediff --git a/native/vendor/librespot-core/Cargo.toml.orig b/native/vendor/librespot-core/Cargo.toml.orignew file mode 100644index 0000000..ffe7c10--- /dev/null+++ b/native/vendor/librespot-core/Cargo.toml.orig@@ -0,0 +1,120 @@+[package]+name = "librespot-core"+version = "0.8.0"+rust-version.workspace = true+authors = ["Paul Lietar <[email protected]>"]+license.workspace = true+description = "The core functionality provided by librespot"+repository.workspace = true+edition.workspace = true+build = "build.rs"++[features]+# Refer to the workspace Cargo.toml for the list of features+default = ["native-tls"]++# TLS backends (mutually exclusive - see oauth/src/lib.rs for compile-time checks)+# Note: Validation is in oauth since it's compiled first in the dependency tree.+native-tls = [+ "dep:hyper-tls",+ "hyper-proxy2/tls",+ "librespot-oauth/native-tls",+ "tokio-tungstenite/native-tls",+]+rustls-tls-native-roots = [+ "__rustls",+ "hyper-proxy2/rustls",+ "hyper-rustls/native-tokio",+ "librespot-oauth/rustls-tls-native-roots",+ "tokio-tungstenite/rustls-tls-native-roots",+]+rustls-tls-webpki-roots = [+ "__rustls",+ "hyper-proxy2/rustls-webpki",+ "hyper-rustls/webpki-tokio",+ "librespot-oauth/rustls-tls-webpki-roots",+ "tokio-tungstenite/rustls-tls-webpki-roots",+]++# Internal features - these are not meant to be used by end users+__rustls = []++[dependencies]+librespot-oauth = { version = "0.8.0", path = "../oauth", default-features = false }+librespot-protocol = { version = "0.8.0", path = "../protocol", default-features = false }++aes = "0.8"+base64 = "0.22"+byteorder = "1.5"+bytes = "1"+data-encoding = "2.9"+flate2 = "1.1"+form_urlencoded = "1.2"+futures-core = "0.3"+futures-util = { version = "0.3", default-features = false, features = [+ "alloc",+ "bilock",+ "unstable",+] }+governor = { version = "0.10", default-features = false, features = ["std"] }+hmac = "0.12"+httparse = "1.10"+http = "1.3"+http-body-util = "0.1"+hyper = { version = "1.6", features = ["http1", "http2"] }+hyper-proxy2 = { version = "0.1", default-features = false }+hyper-rustls = { version = "0.27", default-features = false, features = [+ "http1",+ "http2",+ "ring",+], optional = true }+hyper-tls = { version = "0.6", optional = true }+hyper-util = { version = "0.1", default-features = false, features = [+ "client",+ "http1",+ "http2",+] }+log = "0.4"+nonzero_ext = "0.3"+num-bigint = "0.4"+num-derive = "0.4"+num-integer = "0.1"+num-traits = "0.2"+pbkdf2 = { version = "0.12", default-features = false, features = ["hmac"] }+pin-project-lite = "0.2"+priority-queue = "2.5"+protobuf = "3.7"+protobuf-json-mapping = "3.7"+quick-xml = { version = "0.38", features = ["serialize"] }+rand = { version = "0.9", default-features = false, features = ["thread_rng"] }+rsa = "0.9"+serde = { version = "1.0", features = ["derive"] }+serde_json = "1.0"+sha1 = { version = "0.10", features = ["oid"] }+shannon = "0.2"+sysinfo = { version = "0.36", default-features = false, features = ["system"] }+thiserror = "2"+time = { version = "0.3", features = ["formatting", "parsing"] }+tokio = { version = "1", features = [+ "io-util",+ "macros",+ "net",+ "rt",+ "sync",+ "time",+] }+tokio-stream = { version = "0.1", default-features = false }+tokio-tungstenite = { version = "0.28", default-features = false }+tokio-util = { version = "0.7", default-features = false }+url = "2"+uuid = { version = "1", default-features = false, features = ["v4"] }++[build-dependencies]+rand = { version = "0.9", default-features = false, features = ["thread_rng"] }+rand_distr = "0.5"+vergen-gitcl = { version = "1.0", default-features = false, features = [+ "build",+] }++[dev-dependencies]+tokio = { version = "1", features = ["macros"] }diff --git a/native/vendor/librespot-core/build.rs b/native/vendor/librespot-core/build.rsnew file mode 100644index 0000000..4413d2f--- /dev/null+++ b/native/vendor/librespot-core/build.rs@@ -0,0 +1,31 @@+use rand::Rng;+use rand_distr::Alphanumeric;+use vergen_gitcl::{BuildBuilder, Emitter, GitclBuilder};++fn main() -> Result<(), Box<dyn std::error::Error>> {+ let gitcl = GitclBuilder::default()+ .sha(true) // outputs 'VERGEN_GIT_SHA', and sets the 'short' flag true+ .commit_date(true) // outputs 'VERGEN_GIT_COMMIT_DATE'+ .build()?;++ let build = BuildBuilder::default()+ .build_date(true) // outputs 'VERGEN_BUILD_DATE'+ .build()?;++ Emitter::default()+ .add_instructions(&build)?+ .add_instructions(&gitcl)?+ .emit()+ .expect("Unable to generate the cargo keys!");+ let build_id = match std::env::var("SOURCE_DATE_EPOCH") {+ Ok(val) => val,+ Err(_) => rand::rng()+ .sample_iter(Alphanumeric)+ .take(8)+ .map(char::from)+ .collect(),+ };++ println!("cargo:rustc-env=LIBRESPOT_BUILD_ID={build_id}");+ Ok(())+}diff --git a/native/vendor/librespot-core/src/apresolve.rs b/native/vendor/librespot-core/src/apresolve.rsnew file mode 100644index 0000000..38dde79--- /dev/null+++ b/native/vendor/librespot-core/src/apresolve.rs@@ -0,0 +1,153 @@+use std::collections::VecDeque;++use bytes::Bytes;+use hyper::{Method, Request};+use serde::Deserialize;++use crate::Error;++pub type SocketAddress = (String, u16);++#[derive(Default)]+pub struct AccessPoints {+ accesspoint: VecDeque<SocketAddress>,+ dealer: VecDeque<SocketAddress>,+ spclient: VecDeque<SocketAddress>,+}++#[derive(Deserialize, Default)]+pub struct ApResolveData {+ accesspoint: Vec<String>,+ dealer: Vec<String>,+ spclient: Vec<String>,+}++impl ApResolveData {+ // These addresses probably do some geo-location based traffic management or at least DNS-based+ // load balancing. They are known to fail when the normal resolvers are up, so that's why they+ // should only be used as fallback.+ fn fallback() -> Self {+ Self {+ accesspoint: vec![String::from("ap.spotify.com:443")],+ dealer: vec![String::from("dealer.spotify.com:443")],+ spclient: vec![String::from("spclient.wg.spotify.com:443")],+ }+ }+}++impl AccessPoints {+ fn is_any_empty(&self) -> bool {+ self.accesspoint.is_empty() || self.dealer.is_empty() || self.spclient.is_empty()+ }+}++component! {+ ApResolver : ApResolverInner {+ data: AccessPoints = AccessPoints::default(),+ }+}++impl ApResolver {+ // return a port if a proxy URL and/or a proxy port was specified. This is useful even when+ // there is no proxy, but firewalls only allow certain ports (e.g. 443 and not 4070).+ pub fn port_config(&self) -> Option<u16> {+ if self.session().config().proxy.is_some() || self.session().config().ap_port.is_some() {+ Some(self.session().config().ap_port.unwrap_or(443))+ } else {+ None+ }+ }++ fn process_ap_strings(&self, data: Vec<String>) -> VecDeque<SocketAddress> {+ let filter_port = self.port_config();+ data.into_iter()+ .filter_map(|ap| {+ let mut split = ap.rsplitn(2, ':');+ let port = split.next()?;+ let port: u16 = port.parse().ok()?;+ let host = split.next()?.to_owned();+ match filter_port {+ Some(filter_port) if filter_port != port => None,+ _ => Some((host, port)),+ }+ })+ .collect()+ }++ fn parse_resolve_to_access_points(&self, resolve: ApResolveData) -> AccessPoints {+ AccessPoints {+ accesspoint: self.process_ap_strings(resolve.accesspoint),+ dealer: self.process_ap_strings(resolve.dealer),+ spclient: self.process_ap_strings(resolve.spclient),+ }+ }++ pub async fn try_apresolve(&self) -> Result<ApResolveData, Error> {+ let req = Request::builder()+ .method(Method::GET)+ .uri("https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient")+ .body(Bytes::new())?;++ let body = self.session().http_client().request_body(req).await?;+ let data: ApResolveData = serde_json::from_slice(body.as_ref())?;++ Ok(data)+ }++ async fn apresolve(&self) {+ let result = self.try_apresolve().await;++ self.lock(|inner| {+ let (data, error) = match result {+ Ok(data) => (data, None),+ Err(e) => (ApResolveData::default(), Some(e)),+ };++ inner.data = self.parse_resolve_to_access_points(data);++ if inner.data.is_any_empty() {+ warn!("Failed to resolve all access points, using fallbacks");+ if let Some(error) = error {+ warn!("Resolve access points error: {error}");+ }++ let fallback = self.parse_resolve_to_access_points(ApResolveData::fallback());+ inner.data.accesspoint.extend(fallback.accesspoint);+ inner.data.dealer.extend(fallback.dealer);+ inner.data.spclient.extend(fallback.spclient);+ }+ })+ }++ fn is_any_empty(&self) -> bool {+ self.lock(|inner| inner.data.is_any_empty())+ }++ pub async fn resolve(&self, endpoint: &str) -> Result<SocketAddress, Error> {+ if self.is_any_empty() {+ self.apresolve().await;+ }++ self.lock(|inner| {+ let access_point = match endpoint {+ // take the first position instead of the last with `pop`, because Spotify returns+ // access points with ports 4070, 443 and 80 in order of preference from highest+ // to lowest.+ "accesspoint" => inner.data.accesspoint.pop_front(),+ "dealer" => inner.data.dealer.pop_front(),+ "spclient" => inner.data.spclient.pop_front(),+ _ => {+ return Err(Error::unimplemented(format!(+ "No implementation to resolve access point {endpoint}"+ )));+ }+ };++ let access_point = access_point.ok_or_else(|| {+ Error::unavailable(format!("No access point available for endpoint {endpoint}"))+ })?;++ Ok(access_point)+ })+ }+}diff --git a/native/vendor/librespot-core/src/audio_key.rs b/native/vendor/librespot-core/src/audio_key.rsnew file mode 100644index 0000000..42cad43--- /dev/null+++ b/native/vendor/librespot-core/src/audio_key.rs@@ -0,0 +1,110 @@+use std::{collections::HashMap, io::Write, time::Duration};++use byteorder::{BigEndian, ByteOrder, WriteBytesExt};+use bytes::Bytes;+use thiserror::Error;+use tokio::sync::oneshot;++use crate::{Error, FileId, SpotifyId, packet::PacketType, util::SeqGenerator};++#[derive(Debug, Hash, PartialEq, Eq, Copy, Clone)]+pub struct AudioKey(pub [u8; 16]);++#[derive(Debug, Error)]+pub enum AudioKeyError {+ #[error("audio key error")]+ AesKey,+ #[error("other end of channel disconnected")]+ Channel,+ #[error("unexpected packet type {0}")]+ Packet(u8),+ #[error("sequence {0} not pending")]+ Sequence(u32),+ #[error("audio key response timeout")]+ Timeout,+}++impl From<AudioKeyError> for Error {+ fn from(err: AudioKeyError) -> Self {+ match err {+ AudioKeyError::AesKey => Error::unavailable(err),+ AudioKeyError::Channel => Error::aborted(err),+ AudioKeyError::Sequence(_) => Error::aborted(err),+ AudioKeyError::Packet(_) => Error::unimplemented(err),+ AudioKeyError::Timeout => Error::aborted(err),+ }+ }+}++component! {+ AudioKeyManager : AudioKeyManagerInner {+ sequence: SeqGenerator<u32> = SeqGenerator::new(0),+ pending: HashMap<u32, oneshot::Sender<Result<AudioKey, Error>>> = HashMap::new(),+ }+}++impl AudioKeyManager {+ pub(crate) fn dispatch(&self, cmd: PacketType, mut data: Bytes) -> Result<(), Error> {+ let seq = BigEndian::read_u32(data.split_to(4).as_ref());++ let sender = self+ .lock(|inner| inner.pending.remove(&seq))+ .ok_or(AudioKeyError::Sequence(seq))?;++ match cmd {+ PacketType::AesKey => {+ let mut key = [0u8; 16];+ key.copy_from_slice(data.as_ref());+ sender+ .send(Ok(AudioKey(key)))+ .map_err(|_| AudioKeyError::Channel)?+ }+ PacketType::AesKeyError => {+ error!(+ "error audio key {:x} {:x}",+ data.as_ref()[0],+ data.as_ref()[1]+ );+ sender+ .send(Err(AudioKeyError::AesKey.into()))+ .map_err(|_| AudioKeyError::Channel)?+ }+ _ => {+ trace!("Did not expect {cmd:?} AES key packet with data {data:#?}");+ return Err(AudioKeyError::Packet(cmd as u8).into());+ }+ }++ Ok(())+ }++ pub async fn request(&self, track: SpotifyId, file: FileId) -> Result<AudioKey, Error> {+ let (tx, rx) = oneshot::channel();++ let seq = self.lock(move |inner| {+ let seq = inner.sequence.get();+ inner.pending.insert(seq, tx);+ seq+ });++ self.send_key_request(seq, track, file)?;+ const KEY_RESPONSE_TIMEOUT: Duration = Duration::from_millis(1500);+ match tokio::time::timeout(KEY_RESPONSE_TIMEOUT, rx).await {+ Err(_) => {+ error!("Audio key response timeout");+ Err(AudioKeyError::Timeout.into())+ }+ Ok(k) => k?,+ }+ }++ fn send_key_request(&self, seq: u32, track: SpotifyId, file: FileId) -> Result<(), Error> {+ let mut data: Vec<u8> = Vec::new();+ data.write_all(&file.0)?;+ data.write_all(&track.to_raw())?;+ data.write_u32::<BigEndian>(seq)?;+ data.write_u16::<BigEndian>(0x0000)?;++ self.session().send_packet(PacketType::RequestKey, data)+ }+}diff --git a/native/vendor/librespot-core/src/authentication.rs b/native/vendor/librespot-core/src/authentication.rsnew file mode 100644index 0000000..62bab6a--- /dev/null+++ b/native/vendor/librespot-core/src/authentication.rs@@ -0,0 +1,189 @@+use std::io::{self, Read};++use aes::Aes192;+use base64::engine::Engine as _;+use base64::engine::general_purpose::STANDARD as BASE64;+use byteorder::{BigEndian, ByteOrder};+use pbkdf2::pbkdf2_hmac;+use protobuf::Enum;+use serde::{Deserialize, Serialize};+use sha1::{Digest, Sha1};+use thiserror::Error;++use crate::{Error, protocol::authentication::AuthenticationType};++#[derive(Debug, Error)]+pub enum AuthenticationError {+ #[error("unknown authentication type {0}")]+ AuthType(u32),+ #[error("invalid key")]+ Key,+}++impl From<AuthenticationError> for Error {+ fn from(err: AuthenticationError) -> Self {+ Error::invalid_argument(err)+ }+}++/// The credentials are used to log into the Spotify API.+#[derive(Debug, Clone, Default, Serialize, Deserialize, PartialEq)]+pub struct Credentials {+ pub username: Option<String>,++ #[serde(serialize_with = "serialize_protobuf_enum")]+ #[serde(deserialize_with = "deserialize_protobuf_enum")]+ pub auth_type: AuthenticationType,++ #[serde(alias = "encoded_auth_blob")]+ #[serde(serialize_with = "serialize_base64")]+ #[serde(deserialize_with = "deserialize_base64")]+ pub auth_data: Vec<u8>,+}++impl Credentials {+ /// Intialize these credentials from a username and a password.+ ///+ /// ### Example+ /// ```rust+ /// use librespot_core::authentication::Credentials;+ ///+ /// let creds = Credentials::with_password("my account", "my password");+ /// ```+ pub fn with_password(username: impl Into<String>, password: impl Into<String>) -> Self {+ Self {+ username: Some(username.into()),+ auth_type: AuthenticationType::AUTHENTICATION_USER_PASS,+ auth_data: password.into().into_bytes(),+ }+ }++ pub fn with_access_token(token: impl Into<String>) -> Self {+ Self {+ username: None,+ auth_type: AuthenticationType::AUTHENTICATION_SPOTIFY_TOKEN,+ auth_data: token.into().into_bytes(),+ }+ }++ #[expect(deprecated)]+ pub fn with_blob(+ username: impl Into<String>,+ encrypted_blob: impl AsRef<[u8]>,+ device_id: impl AsRef<[u8]>,+ ) -> Result<Self, Error> {+ fn read_u8<R: Read>(stream: &mut R) -> io::Result<u8> {+ let mut data = [0u8];+ stream.read_exact(&mut data)?;+ Ok(data[0])+ }++ fn read_int<R: Read>(stream: &mut R) -> io::Result<u32> {+ let lo = read_u8(stream)? as u32;+ if lo & 0x80 == 0 {+ return Ok(lo);+ }++ let hi = read_u8(stream)? as u32;+ Ok(lo & 0x7f | (hi << 7))+ }++ fn read_bytes<R: Read>(stream: &mut R) -> io::Result<Vec<u8>> {+ let length = read_int(stream)?;+ let mut data = vec![0u8; length as usize];+ stream.read_exact(&mut data)?;++ Ok(data)+ }++ let username = username.into();++ let secret = Sha1::digest(device_id.as_ref());++ let key = {+ let mut key = [0u8; 24];+ if key.len() < 20 {+ return Err(AuthenticationError::Key.into());+ }++ pbkdf2_hmac::<Sha1>(&secret, username.as_bytes(), 0x100, &mut key[0..20]);++ let hash = &Sha1::digest(&key[..20]);+ key[..20].copy_from_slice(hash);+ BigEndian::write_u32(&mut key[20..], 20);+ key+ };++ // decrypt data using ECB mode without padding+ let blob = {+ use aes::cipher::generic_array::GenericArray;+ use aes::cipher::{BlockDecrypt, BlockSizeUser, KeyInit};++ let mut data = BASE64.decode(encrypted_blob)?;+ let cipher = Aes192::new(GenericArray::from_slice(&key));+ let block_size = Aes192::block_size();++ for chunk in data.chunks_exact_mut(block_size) {+ cipher.decrypt_block(GenericArray::from_mut_slice(chunk));+ }++ let l = data.len();+ for i in 0..l - 0x10 {+ data[l - i - 1] ^= data[l - i - 0x11];+ }++ data+ };++ let mut cursor = io::Cursor::new(blob.as_slice());+ read_u8(&mut cursor)?;+ read_bytes(&mut cursor)?;+ read_u8(&mut cursor)?;+ let auth_type = read_int(&mut cursor)?;+ let auth_type = AuthenticationType::from_i32(auth_type as i32)+ .ok_or(AuthenticationError::AuthType(auth_type))?;+ read_u8(&mut cursor)?;+ let auth_data = read_bytes(&mut cursor)?;++ Ok(Self {+ username: Some(username),+ auth_type,+ auth_data,+ })+ }+}++fn serialize_protobuf_enum<T, S>(v: &T, ser: S) -> Result<S::Ok, S::Error>+where+ T: Enum,+ S: serde::Serializer,+{+ serde::Serialize::serialize(&v.value(), ser)+}++fn deserialize_protobuf_enum<'de, T, D>(de: D) -> Result<T, D::Error>+where+ T: Enum,+ D: serde::Deserializer<'de>,+{+ let v: i32 = serde::Deserialize::deserialize(de)?;+ T::from_i32(v).ok_or_else(|| serde::de::Error::custom("Invalid enum value"))+}++fn serialize_base64<T, S>(v: &T, ser: S) -> Result<S::Ok, S::Error>+where+ T: AsRef<[u8]>,+ S: serde::Serializer,+{+ serde::Serialize::serialize(&BASE64.encode(v.as_ref()), ser)+}++fn deserialize_base64<'de, D>(de: D) -> Result<Vec<u8>, D::Error>+where+ D: serde::Deserializer<'de>,+{+ let v: String = serde::Deserialize::deserialize(de)?;+ BASE64+ .decode(v)+ .map_err(|e| serde::de::Error::custom(e.to_string()))+}diff --git a/native/vendor/librespot-core/src/cache.rs b/native/vendor/librespot-core/src/cache.rsnew file mode 100644index 0000000..15e35d2--- /dev/null+++ b/native/vendor/librespot-core/src/cache.rs@@ -0,0 +1,494 @@+use std::{+ cmp::Reverse,+ collections::HashMap,+ fs::{self, File},+ io::{self, Read, Write},+ path::{Path, PathBuf},+ sync::{Arc, Mutex},+ time::SystemTime,+};++use priority_queue::PriorityQueue;+use thiserror::Error;++use crate::{Error, FileId, authentication::Credentials, error::ErrorKind};++const CACHE_LIMITER_POISON_MSG: &str = "cache limiter mutex should not be poisoned";++#[derive(Debug, Error)]+pub enum CacheError {+ #[error("audio cache location is not configured")]+ Path,+}++impl From<CacheError> for Error {+ fn from(err: CacheError) -> Self {+ Error::failed_precondition(err)+ }+}++/// Some kind of data structure that holds some paths, the size of these files and a timestamp.+/// It keeps track of the file sizes and is able to pop the path with the oldest timestamp if+/// a given limit is exceeded.+struct SizeLimiter {+ queue: PriorityQueue<PathBuf, Reverse<SystemTime>>,+ sizes: HashMap<PathBuf, u64>,+ size_limit: u64,+ in_use: u64,+}++impl SizeLimiter {+ /// Creates a new instance with the given size limit.+ fn new(limit: u64) -> Self {+ Self {+ queue: PriorityQueue::new(),+ sizes: HashMap::new(),+ size_limit: limit,+ in_use: 0,+ }+ }++ /// Adds an entry to this data structure.+ ///+ /// If this file is already contained, it will be updated accordingly.+ fn add(&mut self, file: &Path, size: u64, accessed: SystemTime) {+ self.in_use += size;+ self.queue.push(file.to_owned(), Reverse(accessed));+ if let Some(old_size) = self.sizes.insert(file.to_owned(), size) {+ // It's important that decreasing happens after+ // increasing the size, to prevent an overflow.+ self.in_use -= old_size;+ }+ }++ /// Returns true if the limit is exceeded.+ fn exceeds_limit(&self) -> bool {+ self.in_use > self.size_limit+ }++ /// Returns the least recently accessed file if the size of the cache exceeds+ /// the limit.+ ///+ /// The entry is removed from the data structure, but the caller is responsible+ /// to delete the file in the file system.+ fn pop(&mut self) -> Option<PathBuf> {+ if self.exceeds_limit() {+ if let Some((next, _)) = self.queue.pop() {+ if let Some(size) = self.sizes.remove(&next) {+ self.in_use -= size;+ } else {+ error!("`queue` and `sizes` should have the same keys.");+ }+ Some(next)+ } else {+ error!("in_use was > 0, so the queue should have contained an item.");+ None+ }+ } else {+ None+ }+ }++ /// Updates the timestamp of an existing element. Returns `true` if the item did exist.+ fn update(&mut self, file: &Path, access_time: SystemTime) -> bool {+ self.queue+ .change_priority(file, Reverse(access_time))+ .is_some()+ }++ /// Removes an element with the specified path. Returns `true` if the item did exist.+ fn remove(&mut self, file: &Path) -> bool {+ if self.queue.remove(file).is_none() {+ return false;+ }++ if let Some(size) = self.sizes.remove(file) {+ self.in_use -= size;+ } else {+ error!("`queue` and `sizes` should have the same keys.");+ }++ true+ }+}++struct FsSizeLimiter {+ limiter: Mutex<SizeLimiter>,+}++impl FsSizeLimiter {+ /// Returns access time and file size of a given path.+ fn get_metadata(file: &Path) -> io::Result<(SystemTime, u64)> {+ let metadata = file.metadata()?;++ // The first of the following timestamps which is available will be chosen as access time:+ // 1. Access time+ // 2. Modification time+ // 3. Creation time+ // 4. Current time+ let access_time = metadata+ .accessed()+ .or_else(|_| metadata.modified())+ .or_else(|_| metadata.created())+ .unwrap_or_else(|_| SystemTime::now());++ let size = metadata.len();++ Ok((access_time, size))+ }++ /// Recursively search a directory for files and add them to the `limiter` struct.+ fn init_dir(limiter: &mut SizeLimiter, path: &Path) {+ let list_dir = match fs::read_dir(path) {+ Ok(list_dir) => list_dir,+ Err(e) => {+ warn!("Could not read directory {path:?} in cache dir: {e}");+ return;+ }+ };++ for entry in list_dir {+ let entry = match entry {+ Ok(entry) => entry,+ Err(e) => {+ warn!("Could not directory {path:?} in cache dir: {e}");+ return;+ }+ };++ match entry.file_type() {+ Ok(file_type) if file_type.is_dir() || file_type.is_symlink() => {+ Self::init_dir(limiter, &entry.path())+ }+ Ok(file_type) if file_type.is_file() => {+ let path = entry.path();+ match Self::get_metadata(&path) {+ Ok((access_time, size)) => {+ limiter.add(&path, size, access_time);+ }+ Err(e) => {+ warn!("Could not read file {path:?} in cache dir: {e}")+ }+ }+ }+ Ok(ft) => {+ warn!(+ "File {:?} in cache dir has unsupported type {:?}",+ entry.path(),+ ft+ )+ }+ Err(e) => {+ warn!(+ "Could not get type of file {:?} in cache dir: {}",+ entry.path(),+ e+ )+ }+ };+ }+ }++ fn add(&self, file: &Path, size: u64) {+ self.limiter+ .lock()+ .expect(CACHE_LIMITER_POISON_MSG)+ .add(file, size, SystemTime::now())+ }++ fn touch(&self, file: &Path) -> bool {+ self.limiter+ .lock()+ .expect(CACHE_LIMITER_POISON_MSG)+ .update(file, SystemTime::now())+ }++ fn remove(&self, file: &Path) -> bool {+ self.limiter+ .lock()+ .expect(CACHE_LIMITER_POISON_MSG)+ .remove(file)+ }++ fn prune_internal<F: FnMut() -> Option<PathBuf>>(mut pop: F) -> Result<(), Error> {+ let mut first = true;+ let mut count = 0;+ let mut last_error = None;++ while let Some(file) = pop() {+ if first {+ debug!("Cache dir exceeds limit, removing least recently used files.");+ first = false;+ }++ let res = fs::remove_file(&file);+ if let Err(e) = res {+ warn!("Could not remove file {file:?} from cache dir: {e}");+ last_error = Some(e);+ } else {+ count += 1;+ }+ }++ if count > 0 {+ info!("Removed {count} cache files.");+ }++ if let Some(err) = last_error {+ Err(err.into())+ } else {+ Ok(())+ }+ }++ fn prune(&self) -> Result<(), Error> {+ Self::prune_internal(|| self.limiter.lock().expect(CACHE_LIMITER_POISON_MSG).pop())+ }++ fn new(path: &Path, limit: u64) -> Result<Self, Error> {+ let mut limiter = SizeLimiter::new(limit);++ Self::init_dir(&mut limiter, path);+ Self::prune_internal(|| limiter.pop())?;++ Ok(Self {+ limiter: Mutex::new(limiter),+ })+ }+}++/// A cache for volume, credentials and audio files.+#[derive(Clone)]+pub struct Cache {+ credentials_location: Option<PathBuf>,+ volume_location: Option<PathBuf>,+ audio_location: Option<PathBuf>,+ size_limiter: Option<Arc<FsSizeLimiter>>,+}++impl Cache {+ pub fn new<P: AsRef<Path>>(+ credentials_path: Option<P>,+ volume_path: Option<P>,+ audio_path: Option<P>,+ size_limit: Option<u64>,+ ) -> Result<Self, Error> {+ let mut size_limiter = None;++ if let Some(location) = &credentials_path {+ fs::create_dir_all(location)?;+ }++ let credentials_location = credentials_path+ .as_ref()+ .map(|p| p.as_ref().join("credentials.json"));++ if let Some(location) = &volume_path {+ fs::create_dir_all(location)?;+ }++ let volume_location = volume_path.as_ref().map(|p| p.as_ref().join("volume"));++ if let Some(location) = &audio_path {+ fs::create_dir_all(location)?;++ if let Some(limit) = size_limit {+ let limiter = FsSizeLimiter::new(location.as_ref(), limit)?;+ size_limiter = Some(Arc::new(limiter));+ }+ }++ let audio_location = audio_path.map(|p| p.as_ref().to_owned());++ let cache = Cache {+ credentials_location,+ volume_location,+ audio_location,+ size_limiter,+ };++ Ok(cache)+ }++ pub fn credentials(&self) -> Option<Credentials> {+ let location = self.credentials_location.as_ref()?;++ // This closure is just convencience to enable the question mark operator+ let read = || -> Result<Credentials, Error> {+ let mut file = File::open(location)?;+ let mut contents = String::new();+ file.read_to_string(&mut contents)?;+ Ok(serde_json::from_str(&contents)?)+ };++ match read() {+ Ok(c) => Some(c),+ Err(e) => {+ // If the file did not exist, the file was probably not written+ // before. Otherwise, log the error.+ if e.kind != ErrorKind::NotFound {+ warn!("Error reading credentials from cache: {e}");+ }+ None+ }+ }+ }++ pub fn save_credentials(&self, cred: &Credentials) {+ if let Some(location) = &self.credentials_location {+ let result = File::create(location).and_then(|mut file| {+ let data = serde_json::to_string(cred)?;+ write!(file, "{data}")+ });++ if let Err(e) = result {+ warn!("Cannot save credentials to cache: {e}")+ }+ }+ }++ pub fn volume(&self) -> Option<u16> {+ let location = self.volume_location.as_ref()?;++ let read = || -> Result<u16, Error> {+ let mut file = File::open(location)?;+ let mut contents = String::new();+ file.read_to_string(&mut contents)?;+ Ok(contents.parse()?)+ };++ match read() {+ Ok(v) => Some(v),+ Err(e) => {+ if e.kind != ErrorKind::NotFound {+ warn!("Error reading volume from cache: {e}");+ }+ None+ }+ }+ }++ pub fn save_volume(&self, volume: u16) {+ if let Some(ref location) = self.volume_location {+ let result = File::create(location).and_then(|mut file| write!(file, "{volume}"));+ if let Err(e) = result {+ warn!("Cannot save volume to cache: {e}");+ }+ }+ }++ pub fn file_path(&self, file: FileId) -> Option<PathBuf> {+ match file.to_base16() {+ Ok(name) => self.audio_location.as_ref().map(|location| {+ let mut path = location.join(&name[0..2]);+ path.push(&name[2..]);+ path+ }),+ Err(e) => {+ warn!("Invalid FileId: {e}");+ None+ }+ }+ }++ pub fn file(&self, file: FileId) -> Option<File> {+ let path = self.file_path(file)?;+ match File::open(&path) {+ Ok(file) => {+ if let Some(limiter) = self.size_limiter.as_deref() {+ if !limiter.touch(&path) {+ error!("limiter could not touch {path:?}");+ }+ }+ Some(file)+ }+ Err(e) => {+ if e.kind() != io::ErrorKind::NotFound {+ warn!("Error reading file from cache: {e}")+ }+ None+ }+ }+ }++ pub fn save_file<F: Read>(&self, file: FileId, contents: &mut F) -> Result<PathBuf, Error> {+ if let Some(path) = self.file_path(file) {+ if let Some(parent) = path.parent() {+ if let Ok(size) = fs::create_dir_all(parent)+ .and_then(|_| File::create(&path))+ .and_then(|mut file| io::copy(contents, &mut file))+ {+ if let Some(limiter) = self.size_limiter.as_deref() {+ limiter.add(&path, size);+ limiter.prune()?;+ }+ return Ok(path);+ }+ }+ }+ Err(CacheError::Path.into())+ }++ pub fn remove_file(&self, file: FileId) -> Result<(), Error> {+ let path = self.file_path(file).ok_or(CacheError::Path)?;++ fs::remove_file(&path)?;+ if let Some(limiter) = self.size_limiter.as_deref() {+ limiter.remove(&path);+ }++ Ok(())+ }+}++#[cfg(test)]+mod test {+ use super::*;+ use std::time::Duration;++ fn ordered_time(v: u64) -> SystemTime {+ SystemTime::UNIX_EPOCH + Duration::from_secs(v)+ }++ #[test]+ fn test_size_limiter() {+ let mut limiter = SizeLimiter::new(1000);++ limiter.add(Path::new("a"), 500, ordered_time(2));+ limiter.add(Path::new("b"), 500, ordered_time(1));++ // b (500) -> a (500) => sum: 1000 <= 1000+ assert!(!limiter.exceeds_limit());+ assert_eq!(limiter.pop(), None);++ limiter.add(Path::new("c"), 1000, ordered_time(3));++ // b (500) -> a (500) -> c (1000) => sum: 2000 > 1000+ assert!(limiter.exceeds_limit());+ assert_eq!(limiter.pop().as_deref(), Some(Path::new("b")));+ // a (500) -> c (1000) => sum: 1500 > 1000+ assert_eq!(limiter.pop().as_deref(), Some(Path::new("a")));+ // c (1000) => sum: 1000 <= 1000+ assert_eq!(limiter.pop().as_deref(), None);++ limiter.add(Path::new("d"), 5, ordered_time(2));+ // d (5) -> c (1000) => sum: 1005 > 1000+ assert_eq!(limiter.pop().as_deref(), Some(Path::new("d")));+ // c (1000) => sum: 1000 <= 1000+ assert_eq!(limiter.pop().as_deref(), None);++ // Test updating++ limiter.add(Path::new("e"), 500, ordered_time(3));+ // c (1000) -> e (500) => sum: 1500 > 1000+ assert!(limiter.update(Path::new("c"), ordered_time(4)));+ // e (500) -> c (1000) => sum: 1500 > 1000+ assert_eq!(limiter.pop().as_deref(), Some(Path::new("e")));+ // c (1000) => sum: 1000 <= 1000++ // Test removing+ limiter.add(Path::new("f"), 500, ordered_time(2));+ assert!(limiter.remove(Path::new("c")));+ assert!(!limiter.exceeds_limit());+ }+}diff --git a/native/vendor/librespot-core/src/cdn_url.rs b/native/vendor/librespot-core/src/cdn_url.rsnew file mode 100644index 0000000..818f68f--- /dev/null+++ b/native/vendor/librespot-core/src/cdn_url.rs@@ -0,0 +1,259 @@+use std::ops::{Deref, DerefMut};++use protobuf::Message;+use thiserror::Error;+use time::Duration;+use url::Url;++use super::{Error, FileId, Session, date::Date};++use librespot_protocol as protocol;+use protocol::storage_resolve::StorageResolveResponse as CdnUrlMessage;+use protocol::storage_resolve::storage_resolve_response::Result as StorageResolveResponse_Result;++#[derive(Debug, Clone)]+pub struct MaybeExpiringUrl(pub String, pub Option<Date>);++const CDN_URL_EXPIRY_MARGIN: Duration = Duration::seconds(5 * 60);++#[derive(Debug, Clone)]+pub struct MaybeExpiringUrls(pub Vec<MaybeExpiringUrl>);++impl Deref for MaybeExpiringUrls {+ type Target = Vec<MaybeExpiringUrl>;+ fn deref(&self) -> &Self::Target {+ &self.0+ }+}++impl DerefMut for MaybeExpiringUrls {+ fn deref_mut(&mut self) -> &mut Self::Target {+ &mut self.0+ }+}++#[derive(Debug, Error)]+pub enum CdnUrlError {+ #[error("all URLs expired")]+ Expired,+ #[error("resolved storage is not for CDN")]+ Storage,+ #[error("no URLs resolved")]+ Unresolved,+}++impl From<CdnUrlError> for Error {+ fn from(err: CdnUrlError) -> Self {+ match err {+ CdnUrlError::Expired => Error::deadline_exceeded(err),+ CdnUrlError::Storage | CdnUrlError::Unresolved => Error::unavailable(err),+ }+ }+}++#[derive(Debug, Clone)]+pub struct CdnUrl {+ pub file_id: FileId,+ urls: MaybeExpiringUrls,+}++impl CdnUrl {+ pub fn new(file_id: FileId) -> Self {+ Self {+ file_id,+ urls: MaybeExpiringUrls(Vec::new()),+ }+ }++ pub async fn resolve_audio(&self, session: &Session) -> Result<Self, Error> {+ let file_id = self.file_id;+ let response = session.spclient().get_audio_storage(&file_id).await?;+ let msg = CdnUrlMessage::parse_from_bytes(&response)?;+ let urls = MaybeExpiringUrls::try_from(msg)?;++ let cdn_url = Self { file_id, urls };++ trace!("Resolved CDN storage: {cdn_url:#?}");++ Ok(cdn_url)+ }++ #[deprecated = "This function only returns the first valid URL. Use try_get_urls instead, which allows for fallback logic."]+ pub fn try_get_url(&self) -> Result<&str, Error> {+ if self.urls.is_empty() {+ return Err(CdnUrlError::Unresolved.into());+ }++ let now = Date::now_utc();+ let url = self.urls.iter().find(|url| match url.1 {+ Some(expiry) => now < expiry,+ None => true,+ });++ if let Some(url) = url {+ Ok(&url.0)+ } else {+ Err(CdnUrlError::Expired.into())+ }+ }++ pub fn try_get_urls(&self) -> Result<Vec<&str>, Error> {+ if self.urls.is_empty() {+ return Err(CdnUrlError::Unresolved.into());+ }++ let now = Date::now_utc();+ let urls: Vec<&str> = self+ .urls+ .iter()+ .filter_map(|MaybeExpiringUrl(url, expiry)| match *expiry {+ Some(expiry) => {+ if now < expiry {+ Some(url.as_str())+ } else {+ None+ }+ }+ None => Some(url.as_str()),+ })+ .collect();++ if urls.is_empty() {+ Err(CdnUrlError::Expired.into())+ } else {+ Ok(urls)+ }+ }+}++impl TryFrom<CdnUrlMessage> for MaybeExpiringUrls {+ type Error = crate::Error;+ fn try_from(msg: CdnUrlMessage) -> Result<Self, Self::Error> {+ if !matches!(+ msg.result.enum_value_or_default(),+ StorageResolveResponse_Result::CDN+ ) {+ return Err(CdnUrlError::Storage.into());+ }++ let is_expiring = !msg.fileid.is_empty();++ let result = msg+ .cdnurl+ .iter()+ .map(|cdn_url| {+ let url = Url::parse(cdn_url)?;+ let mut expiry: Option<Date> = None;++ if is_expiring {+ let mut expiry_str: Option<String> = None;+ if let Some(token) = url+ .query_pairs()+ .into_iter()+ .find(|(key, _value)| key == "verify")+ {+ // https://audio-cf.spotifycdn.com/audio/844ecdb297a87ebfee4399f28892ef85d9ba725f?verify=1750549951-4R3I2w2q7OfNkR%2FGH8qH7xtIKUPlDxywBuADY%2BsvMeU%3D+ if let Some((expiry_str_candidate, _)) = token.1.split_once('-') {+ expiry_str = Some(expiry_str_candidate.to_string());+ }+ } else if let Some(token) = url+ .query_pairs()+ .into_iter()+ .find(|(key, _value)| key == "__token__")+ {+ //"https://audio-ak-spotify-com.akamaized.net/audio/4712bc9e47f7feb4ee3450ef2bb545e1d83c3d54?__token__=exp=1688165560~hmac=4e661527574fab5793adb99cf04e1c2ce12294c71fe1d39ffbfabdcfe8ce3b41",+ if let Some(mut start) = token.1.find("exp=") {+ start += 4;+ if token.1.len() >= start {+ let slice = &token.1[start..];+ if let Some(end) = slice.find('~') {+ // this is the only valid invariant for akamaized.net+ expiry_str = Some(String::from(&slice[..end]));+ } else {+ expiry_str = Some(String::from(slice));+ }+ }+ }+ } else if let Some(token) = url+ .query_pairs()+ .into_iter()+ .find(|(key, _value)| key == "Expires")+ {+ //"https://audio-gm-off.spotifycdn.com/audio/4712bc9e47f7feb4ee3450ef2bb545e1d83c3d54?Expires=1688165560~FullPath~hmac=IIZA28qptl8cuGLq15-SjHKHtLoxzpy_6r_JpAU4MfM=",+ if let Some(end) = token.1.find('~') {+ // this is the only valid invariant for spotifycdn.com+ let slice = &token.1[..end];+ expiry_str = Some(String::from(&slice[..end]));+ }+ } else if let Some(query) = url.query() {+ //"https://audio4-fa.scdn.co/audio/4712bc9e47f7feb4ee3450ef2bb545e1d83c3d54?1688165560_0GKSyXjLaTW1BksFOyI4J7Tf9tZDbBUNNPu9Mt4mhH4=",+ let mut items = query.split('_');+ if let Some(first) = items.next() {+ // this is the only valid invariant for scdn.co+ expiry_str = Some(String::from(first));+ }+ }++ if let Some(exp_str) = expiry_str {+ if let Ok(expiry_parsed) = exp_str.parse::<i64>() {+ if let Ok(expiry_at) = Date::from_timestamp_ms(expiry_parsed * 1_000) {+ let with_margin = expiry_at.saturating_sub(CDN_URL_EXPIRY_MARGIN);+ expiry = Some(Date::from(with_margin));+ }+ } else {+ warn!(+ "Cannot parse CDN URL expiry timestamp '{exp_str}' from '{cdn_url}'"+ );+ }+ } else {+ warn!("Unknown CDN URL format: {cdn_url}");+ }+ }+ Ok(MaybeExpiringUrl(cdn_url.to_owned(), expiry))+ })+ .collect::<Result<Vec<MaybeExpiringUrl>, Error>>()?;++ Ok(Self(result))+ }+}++#[cfg(test)]+mod test {+ use super::*;++ #[test]+ fn test_maybe_expiring_urls() {+ let timestamp = 1688165560;+ let mut msg = CdnUrlMessage::new();+ msg.result = StorageResolveResponse_Result::CDN.into();+ msg.cdnurl = vec![+ format!(+ "https://audio-cf.spotifycdn.com/audio/844ecdb297a87ebfee4399f28892ef85d9ba725f?verify={timestamp}-4R3I2w2q7OfNkR%2FGH8qH7xtIKUPlDxywBuADY%2BsvMeU%3D"+ ),+ format!(+ "https://audio-ak-spotify-com.akamaized.net/audio/foo?__token__=exp={timestamp}~hmac=4e661527574fab5793adb99cf04e1c2ce12294c71fe1d39ffbfabdcfe8ce3b41"+ ),+ format!(+ "https://audio-gm-off.spotifycdn.com/audio/foo?Expires={timestamp}~FullPath~hmac=IIZA28qptl8cuGLq15-SjHKHtLoxzpy_6r_JpAU4MfM="+ ),+ format!(+ "https://audio4-fa.scdn.co/audio/foo?{timestamp}_0GKSyXjLaTW1BksFOyI4J7Tf9tZDbBUNNPu9Mt4mhH4="+ ),+ "https://audio4-fa.scdn.co/foo?baz".to_string(),+ ];+ msg.fileid = vec![0];++ let urls = MaybeExpiringUrls::try_from(msg).expect("valid urls");+ assert_eq!(urls.len(), 5);+ assert!(urls[0].1.is_some());+ assert!(urls[1].1.is_some());+ assert!(urls[2].1.is_some());+ assert!(urls[3].1.is_some());+ assert!(urls[4].1.is_none());+ let timestamp_margin = Duration::seconds(timestamp) - CDN_URL_EXPIRY_MARGIN;+ assert_eq!(+ urls[0].1.unwrap().as_timestamp_ms() as i128,+ timestamp_margin.whole_milliseconds()+ );+ }+}diff --git a/native/vendor/librespot-core/src/channel.rs b/native/vendor/librespot-core/src/channel.rsnew file mode 100644index 0000000..dfdc4dc--- /dev/null+++ b/native/vendor/librespot-core/src/channel.rs@@ -0,0 +1,229 @@+use std::{+ collections::HashMap,+ fmt,+ pin::Pin,+ task::{Context, Poll},+ time::{Duration, Instant},+};++use byteorder::{BigEndian, ByteOrder};+use bytes::Bytes;+use futures_core::Stream;+use futures_util::{StreamExt, lock::BiLock, ready};+use num_traits::FromPrimitive;+use thiserror::Error;+use tokio::sync::mpsc;++use crate::{Error, packet::PacketType, util::SeqGenerator};++component! {+ ChannelManager : ChannelManagerInner {+ sequence: SeqGenerator<u16> = SeqGenerator::new(0),+ channels: HashMap<u16, mpsc::UnboundedSender<(u8, Bytes)>> = HashMap::new(),+ download_rate_estimate: usize = 0,+ download_measurement_start: Option<Instant> = None,+ download_measurement_bytes: usize = 0,+ invalid: bool = false,+ }+}++const ONE_SECOND: Duration = Duration::from_secs(1);++#[derive(Debug, Error, Hash, PartialEq, Eq, Copy, Clone)]+pub struct ChannelError;++impl From<ChannelError> for Error {+ fn from(err: ChannelError) -> Self {+ Error::aborted(err)+ }+}++impl fmt::Display for ChannelError {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ write!(f, "channel error")+ }+}++pub struct Channel {+ receiver: mpsc::UnboundedReceiver<(u8, Bytes)>,+ state: ChannelState,+}++pub struct ChannelHeaders(BiLock<Channel>);+pub struct ChannelData(BiLock<Channel>);++pub enum ChannelEvent {+ Header(u8, Vec<u8>),+ Data(Bytes),+}++#[derive(Clone)]+enum ChannelState {+ Header(Bytes),+ Data,+ Closed,+}++impl ChannelManager {+ pub fn allocate(&self) -> (u16, Channel) {+ let (tx, rx) = mpsc::unbounded_channel();++ let seq = self.lock(|inner| {+ let seq = inner.sequence.get();+ if !inner.invalid {+ inner.channels.insert(seq, tx);+ }+ seq+ });++ let channel = Channel {+ receiver: rx,+ state: ChannelState::Header(Bytes::new()),+ };++ (seq, channel)+ }++ pub(crate) fn dispatch(&self, cmd: PacketType, mut data: Bytes) -> Result<(), Error> {+ use std::collections::hash_map::Entry;++ let id: u16 = BigEndian::read_u16(data.split_to(2).as_ref());++ self.lock(|inner| {+ let current_time = Instant::now();+ if let Some(download_measurement_start) = inner.download_measurement_start {+ if (current_time - download_measurement_start) > ONE_SECOND {+ inner.download_rate_estimate = ONE_SECOND.as_millis() as usize+ * inner.download_measurement_bytes+ / (current_time - download_measurement_start).as_millis() as usize;+ inner.download_measurement_start = Some(current_time);+ inner.download_measurement_bytes = 0;+ }+ } else {+ inner.download_measurement_start = Some(current_time);+ }++ inner.download_measurement_bytes += data.len();++ if let Entry::Occupied(entry) = inner.channels.entry(id) {+ entry+ .get()+ .send((cmd as u8, data))+ .map_err(|_| ChannelError)?;+ }++ Ok(())+ })+ }++ pub fn get_download_rate_estimate(&self) -> usize {+ self.lock(|inner| inner.download_rate_estimate)+ }++ pub(crate) fn shutdown(&self) {+ self.lock(|inner| {+ inner.invalid = true;+ // destroy the sending halves of the channels to signal everyone who is waiting for something.+ inner.channels.clear();+ });+ }+}++impl Channel {+ fn recv_packet(&mut self, cx: &mut Context<'_>) -> Poll<Result<Bytes, ChannelError>> {+ let (cmd, packet) = ready!(self.receiver.poll_recv(cx)).ok_or(ChannelError)?;++ let packet_type = FromPrimitive::from_u8(cmd);+ if let Some(PacketType::ChannelError) = packet_type {+ let code = BigEndian::read_u16(&packet.as_ref()[..2]);+ error!("channel error: {} {}", packet.len(), code);++ self.state = ChannelState::Closed;++ Poll::Ready(Err(ChannelError))+ } else {+ Poll::Ready(Ok(packet))+ }+ }++ pub fn split(self) -> (ChannelHeaders, ChannelData) {+ let (headers, data) = BiLock::new(self);++ (ChannelHeaders(headers), ChannelData(data))+ }+}++impl Stream for Channel {+ type Item = Result<ChannelEvent, ChannelError>;++ fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {+ loop {+ match self.state.clone() {+ ChannelState::Closed => {+ error!("Polling already terminated channel");+ return Poll::Ready(None);+ }++ ChannelState::Header(mut data) => {+ if data.is_empty() {+ data = ready!(self.recv_packet(cx))?;+ }++ let length = BigEndian::read_u16(data.split_to(2).as_ref()) as usize;+ if length == 0 {+ self.state = ChannelState::Data;+ } else {+ let header_id = data.split_to(1).as_ref()[0];+ let header_data = data.split_to(length - 1).as_ref().to_owned();++ self.state = ChannelState::Header(data);++ let event = ChannelEvent::Header(header_id, header_data);+ return Poll::Ready(Some(Ok(event)));+ }+ }++ ChannelState::Data => {+ let data = ready!(self.recv_packet(cx))?;+ if data.is_empty() {+ self.receiver.close();+ self.state = ChannelState::Closed;+ return Poll::Ready(None);+ } else {+ let event = ChannelEvent::Data(data);+ return Poll::Ready(Some(Ok(event)));+ }+ }+ }+ }+ }+}++impl Stream for ChannelData {+ type Item = Result<Bytes, ChannelError>;++ fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {+ let mut channel = ready!(self.0.poll_lock(cx));++ loop {+ match ready!(channel.poll_next_unpin(cx)?) {+ Some(ChannelEvent::Header(..)) => (),+ Some(ChannelEvent::Data(data)) => return Poll::Ready(Some(Ok(data))),+ None => return Poll::Ready(None),+ }+ }+ }+}++impl Stream for ChannelHeaders {+ type Item = Result<(u8, Vec<u8>), ChannelError>;++ fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {+ let mut channel = ready!(self.0.poll_lock(cx));++ match ready!(channel.poll_next_unpin(cx)?) {+ Some(ChannelEvent::Header(id, data)) => Poll::Ready(Some(Ok((id, data)))),+ _ => Poll::Ready(None),+ }+ }+}diff --git a/native/vendor/librespot-core/src/component.rs b/native/vendor/librespot-core/src/component.rsnew file mode 100644index 0000000..75387ae--- /dev/null+++ b/native/vendor/librespot-core/src/component.rs@@ -0,0 +1,40 @@+pub(crate) const COMPONENT_POISON_MSG: &str = "component mutex should not be poisoned";++macro_rules! component {+ ($name:ident : $inner:ident { $($key:ident : $ty:ty = $value:expr,)* }) => {+ #[derive(Clone)]+ pub struct $name(::std::sync::Arc<($crate::session::SessionWeak, ::std::sync::Mutex<$inner>)>);+ impl $name {+ #[allow(dead_code)]+ pub(crate) fn new(session: $crate::session::SessionWeak) -> $name {+ debug!(target:"librespot::component", "new {}", stringify!($name));++ $name(::std::sync::Arc::new((session, ::std::sync::Mutex::new($inner {+ $($key : $value,)*+ }))))+ }++ #[allow(dead_code)]+ fn lock<F: FnOnce(&mut $inner) -> R, R>(&self, f: F) -> R {+ let mut inner = (self.0).1.lock()+ .expect($crate::component::COMPONENT_POISON_MSG);+ f(&mut inner)+ }++ #[allow(dead_code)]+ fn session(&self) -> $crate::session::Session {+ (self.0).0.upgrade()+ }+ }++ struct $inner {+ $($key : $ty,)*+ }++ impl Drop for $inner {+ fn drop(&mut self) {+ debug!(target:"librespot::component", "drop {}", stringify!($name));+ }+ }+ }+}diff --git a/native/vendor/librespot-core/src/config.rs b/native/vendor/librespot-core/src/config.rsnew file mode 100644index 0000000..6025fd5--- /dev/null+++ b/native/vendor/librespot-core/src/config.rs@@ -0,0 +1,181 @@+use std::{fmt, path::PathBuf, str::FromStr};++use librespot_protocol::devices::DeviceType as ProtoDeviceType;+use url::Url;++pub(crate) const KEYMASTER_CLIENT_ID: &str = "65b708073fc0480ea92a077233ca87bd";+pub(crate) const ANDROID_CLIENT_ID: &str = "9a8d2f0ce77a4e248bb71fefcb557637";+pub(crate) const IOS_CLIENT_ID: &str = "58bd3c95768941ea9eb4350aaa033eb3";++// Easily adjust the current platform to mock the behavior on it. If for example+// android or ios needs to be mocked, the `os_version` has to be set to a valid version.+// Otherwise, client-token or login5 requests will fail with a generic invalid-credential error.+/// See [std::env::consts::OS]+///+/// LOCAL PATCH (see native/vendor/README.md): pinned to "linux" instead of the+/// real target OS.+///+/// On Android the real value makes librespot advertise an Android user agent+/// and platform to Spotify, while this client authenticates with the desktop+/// "keymaster" client id. Spotify checks that the two agree, so the access point+/// handshake succeeds but every client-token and login5 request is then refused+/// with a generic BAD_REQUEST — exactly the failure the comment above warns+/// about. Presenting a consistent desktop identity avoids it.+pub const OS: &str = "linux";++// valid versions for some os:+// 'android': 30+// 'ios': 17+/// See [sysinfo::System::os_version]+pub fn os_version() -> String {+ sysinfo::System::os_version().unwrap_or("0".into())+}++#[derive(Clone, Debug)]+pub struct SessionConfig {+ pub client_id: String,+ pub device_id: String,+ pub proxy: Option<Url>,+ pub ap_port: Option<u16>,+ pub tmp_dir: PathBuf,+ pub autoplay: Option<bool>,+}++impl SessionConfig {+ pub(crate) fn default_for_os(os: &str) -> Self {+ let device_id = uuid::Uuid::new_v4().as_hyphenated().to_string();+ let client_id = match os {+ "android" => ANDROID_CLIENT_ID,+ "ios" => IOS_CLIENT_ID,+ _ => KEYMASTER_CLIENT_ID,+ }+ .to_owned();++ Self {+ client_id,+ device_id,+ proxy: None,+ ap_port: None,+ tmp_dir: std::env::temp_dir(),+ autoplay: None,+ }+ }+}++impl Default for SessionConfig {+ fn default() -> Self {+ Self::default_for_os(OS)+ }+}++#[derive(Clone, Copy, Debug, Hash, PartialOrd, Ord, PartialEq, Eq, Default)]+pub enum DeviceType {+ Unknown = 0,+ Computer = 1,+ Tablet = 2,+ Smartphone = 3,+ #[default]+ Speaker = 4,+ Tv = 5,+ Avr = 6,+ Stb = 7,+ AudioDongle = 8,+ GameConsole = 9,+ CastAudio = 10,+ CastVideo = 11,+ Automobile = 12,+ Smartwatch = 13,+ Chromebook = 14,+ UnknownSpotify = 100,+ CarThing = 101,+ Observer = 102,+}++impl FromStr for DeviceType {+ type Err = ();+ fn from_str(s: &str) -> Result<Self, Self::Err> {+ use self::DeviceType::*;+ match s.to_lowercase().as_ref() {+ "computer" => Ok(Computer),+ "tablet" => Ok(Tablet),+ "smartphone" => Ok(Smartphone),+ "speaker" => Ok(Speaker),+ "tv" => Ok(Tv),+ "avr" => Ok(Avr),+ "stb" => Ok(Stb),+ "audiodongle" => Ok(AudioDongle),+ "gameconsole" => Ok(GameConsole),+ "castaudio" => Ok(CastAudio),+ "castvideo" => Ok(CastVideo),+ "automobile" => Ok(Automobile),+ "smartwatch" => Ok(Smartwatch),+ "chromebook" => Ok(Chromebook),+ "carthing" => Ok(CarThing),+ _ => Err(()),+ }+ }+}++impl From<&DeviceType> for &str {+ fn from(d: &DeviceType) -> &'static str {+ use self::DeviceType::*;+ match d {+ Unknown => "Unknown",+ Computer => "Computer",+ Tablet => "Tablet",+ Smartphone => "Smartphone",+ Speaker => "Speaker",+ Tv => "TV",+ Avr => "AVR",+ Stb => "STB",+ AudioDongle => "AudioDongle",+ GameConsole => "GameConsole",+ CastAudio => "CastAudio",+ CastVideo => "CastVideo",+ Automobile => "Automobile",+ Smartwatch => "Smartwatch",+ Chromebook => "Chromebook",+ UnknownSpotify => "UnknownSpotify",+ CarThing => "CarThing",+ Observer => "Observer",+ }+ }+}++impl From<DeviceType> for &str {+ fn from(d: DeviceType) -> &'static str {+ (&d).into()+ }+}++impl fmt::Display for DeviceType {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ let str: &str = self.into();+ f.write_str(str)+ }+}++impl From<DeviceType> for ProtoDeviceType {+ fn from(value: DeviceType) -> Self {+ match value {+ DeviceType::Unknown => ProtoDeviceType::UNKNOWN,+ DeviceType::Computer => ProtoDeviceType::COMPUTER,+ DeviceType::Tablet => ProtoDeviceType::TABLET,+ DeviceType::Smartphone => ProtoDeviceType::SMARTPHONE,+ DeviceType::Speaker => ProtoDeviceType::SPEAKER,+ DeviceType::Tv => ProtoDeviceType::TV,+ DeviceType::Avr => ProtoDeviceType::AVR,+ DeviceType::Stb => ProtoDeviceType::STB,+ DeviceType::AudioDongle => ProtoDeviceType::AUDIO_DONGLE,+ DeviceType::GameConsole => ProtoDeviceType::GAME_CONSOLE,+ DeviceType::CastAudio => ProtoDeviceType::CAST_VIDEO,+ DeviceType::CastVideo => ProtoDeviceType::CAST_AUDIO,+ DeviceType::Automobile => ProtoDeviceType::AUTOMOBILE,+ DeviceType::Smartwatch => ProtoDeviceType::SMARTWATCH,+ DeviceType::Chromebook => ProtoDeviceType::CHROMEBOOK,+ DeviceType::UnknownSpotify => ProtoDeviceType::UNKNOWN_SPOTIFY,+ DeviceType::CarThing => ProtoDeviceType::CAR_THING,+ DeviceType::Observer => ProtoDeviceType::OBSERVER,+ }+ }+}diff --git a/native/vendor/librespot-core/src/connection/codec.rs b/native/vendor/librespot-core/src/connection/codec.rsnew file mode 100644index 0000000..826839c--- /dev/null+++ b/native/vendor/librespot-core/src/connection/codec.rs@@ -0,0 +1,111 @@+use std::io;++use byteorder::{BigEndian, ByteOrder};+use bytes::{BufMut, Bytes, BytesMut};+use shannon::Shannon;+use thiserror::Error;+use tokio_util::codec::{Decoder, Encoder};++const HEADER_SIZE: usize = 3;+const MAC_SIZE: usize = 4;++#[derive(Debug, Error)]+pub enum ApCodecError {+ #[error("payload was malformed")]+ Payload,+}++#[derive(Debug)]+enum DecodeState {+ Header,+ Payload(u8, usize),+}++pub struct ApCodec {+ encode_nonce: u32,+ encode_cipher: Shannon,++ decode_nonce: u32,+ decode_cipher: Shannon,+ decode_state: DecodeState,+}++impl ApCodec {+ pub fn new(send_key: &[u8], recv_key: &[u8]) -> ApCodec {+ ApCodec {+ encode_nonce: 0,+ encode_cipher: Shannon::new(send_key),++ decode_nonce: 0,+ decode_cipher: Shannon::new(recv_key),+ decode_state: DecodeState::Header,+ }+ }+}++impl Encoder<(u8, Vec<u8>)> for ApCodec {+ type Error = io::Error;++ fn encode(&mut self, item: (u8, Vec<u8>), buf: &mut BytesMut) -> io::Result<()> {+ let (cmd, payload) = item;+ let offset = buf.len();++ buf.reserve(3 + payload.len());+ buf.put_u8(cmd);+ buf.put_u16(payload.len() as u16);+ buf.extend_from_slice(&payload);++ self.encode_cipher.nonce_u32(self.encode_nonce);+ self.encode_nonce += 1;++ self.encode_cipher.encrypt(&mut buf[offset..]);++ let mut mac = [0u8; MAC_SIZE];+ self.encode_cipher.finish(&mut mac);+ buf.extend_from_slice(&mac);++ Ok(())+ }+}++impl Decoder for ApCodec {+ type Item = (u8, Bytes);+ type Error = io::Error;++ fn decode(&mut self, buf: &mut BytesMut) -> io::Result<Option<(u8, Bytes)>> {+ if let DecodeState::Header = self.decode_state {+ if buf.len() >= HEADER_SIZE {+ let mut header = [0u8; HEADER_SIZE];+ header.copy_from_slice(buf.split_to(HEADER_SIZE).as_ref());++ self.decode_cipher.nonce_u32(self.decode_nonce);+ self.decode_nonce += 1;++ self.decode_cipher.decrypt(&mut header);++ let cmd = header[0];+ let size = BigEndian::read_u16(&header[1..]) as usize;+ self.decode_state = DecodeState::Payload(cmd, size);+ }+ }++ if let DecodeState::Payload(cmd, size) = self.decode_state {+ if buf.len() >= size + MAC_SIZE {+ self.decode_state = DecodeState::Header;++ let mut payload = buf.split_to(size + MAC_SIZE);++ self.decode_cipher+ .decrypt(payload.get_mut(..size).ok_or_else(|| {+ io::Error::new(io::ErrorKind::InvalidData, ApCodecError::Payload)+ })?);+ let mac = payload.split_off(size);+ self.decode_cipher.check_mac(mac.as_ref())?;++ return Ok(Some((cmd, payload.freeze())));+ }+ }++ Ok(None)+ }+}diff --git a/native/vendor/librespot-core/src/connection/handshake.rs b/native/vendor/librespot-core/src/connection/handshake.rsnew file mode 100644index 0000000..1dea18a--- /dev/null+++ b/native/vendor/librespot-core/src/connection/handshake.rs@@ -0,0 +1,270 @@+use std::{env::consts::ARCH, io};++use byteorder::{BigEndian, ByteOrder, WriteBytesExt};+use hmac::{Hmac, Mac};+use protobuf::Message;+use rand::RngCore;+use rsa::{BigUint, Pkcs1v15Sign, RsaPublicKey};+use sha1::{Digest, Sha1};+use thiserror::Error;+use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt};+use tokio_util::codec::{Decoder, Framed};++use super::codec::ApCodec;++use crate::{diffie_hellman::DhLocalKeys, version};++use crate::protocol;+use crate::protocol::keyexchange::{+ APResponseMessage, ClientHello, ClientResponsePlaintext, Platform, ProductFlags,+};++const SERVER_KEY: [u8; 256] = [+ 0xac, 0xe0, 0x46, 0x0b, 0xff, 0xc2, 0x30, 0xaf, 0xf4, 0x6b, 0xfe, 0xc3, 0xbf, 0xbf, 0x86, 0x3d,+ 0xa1, 0x91, 0xc6, 0xcc, 0x33, 0x6c, 0x93, 0xa1, 0x4f, 0xb3, 0xb0, 0x16, 0x12, 0xac, 0xac, 0x6a,+ 0xf1, 0x80, 0xe7, 0xf6, 0x14, 0xd9, 0x42, 0x9d, 0xbe, 0x2e, 0x34, 0x66, 0x43, 0xe3, 0x62, 0xd2,+ 0x32, 0x7a, 0x1a, 0x0d, 0x92, 0x3b, 0xae, 0xdd, 0x14, 0x02, 0xb1, 0x81, 0x55, 0x05, 0x61, 0x04,+ 0xd5, 0x2c, 0x96, 0xa4, 0x4c, 0x1e, 0xcc, 0x02, 0x4a, 0xd4, 0xb2, 0x0c, 0x00, 0x1f, 0x17, 0xed,+ 0xc2, 0x2f, 0xc4, 0x35, 0x21, 0xc8, 0xf0, 0xcb, 0xae, 0xd2, 0xad, 0xd7, 0x2b, 0x0f, 0x9d, 0xb3,+ 0xc5, 0x32, 0x1a, 0x2a, 0xfe, 0x59, 0xf3, 0x5a, 0x0d, 0xac, 0x68, 0xf1, 0xfa, 0x62, 0x1e, 0xfb,+ 0x2c, 0x8d, 0x0c, 0xb7, 0x39, 0x2d, 0x92, 0x47, 0xe3, 0xd7, 0x35, 0x1a, 0x6d, 0xbd, 0x24, 0xc2,+ 0xae, 0x25, 0x5b, 0x88, 0xff, 0xab, 0x73, 0x29, 0x8a, 0x0b, 0xcc, 0xcd, 0x0c, 0x58, 0x67, 0x31,+ 0x89, 0xe8, 0xbd, 0x34, 0x80, 0x78, 0x4a, 0x5f, 0xc9, 0x6b, 0x89, 0x9d, 0x95, 0x6b, 0xfc, 0x86,+ 0xd7, 0x4f, 0x33, 0xa6, 0x78, 0x17, 0x96, 0xc9, 0xc3, 0x2d, 0x0d, 0x32, 0xa5, 0xab, 0xcd, 0x05,+ 0x27, 0xe2, 0xf7, 0x10, 0xa3, 0x96, 0x13, 0xc4, 0x2f, 0x99, 0xc0, 0x27, 0xbf, 0xed, 0x04, 0x9c,+ 0x3c, 0x27, 0x58, 0x04, 0xb6, 0xb2, 0x19, 0xf9, 0xc1, 0x2f, 0x02, 0xe9, 0x48, 0x63, 0xec, 0xa1,+ 0xb6, 0x42, 0xa0, 0x9d, 0x48, 0x25, 0xf8, 0xb3, 0x9d, 0xd0, 0xe8, 0x6a, 0xf9, 0x48, 0x4d, 0xa1,+ 0xc2, 0xba, 0x86, 0x30, 0x42, 0xea, 0x9d, 0xb3, 0x08, 0x6c, 0x19, 0x0e, 0x48, 0xb3, 0x9d, 0x66,+ 0xeb, 0x00, 0x06, 0xa2, 0x5a, 0xee, 0xa1, 0x1b, 0x13, 0x87, 0x3c, 0xd7, 0x19, 0xe6, 0x55, 0xbd,+];++#[derive(Debug, Error)]+pub enum HandshakeError {+ #[error("invalid key length")]+ InvalidLength,+ #[error("server key verification failed")]+ VerificationFailed,+}++pub async fn handshake<T: AsyncRead + AsyncWrite + Unpin>(+ mut connection: T,+) -> io::Result<Framed<T, ApCodec>> {+ let local_keys = DhLocalKeys::random(&mut rand::rng());+ let gc = local_keys.public_key();+ let mut accumulator = client_hello(&mut connection, gc).await?;+ let message: APResponseMessage = recv_packet(&mut connection, &mut accumulator).await?;+ let remote_key = message+ .challenge+ .get_or_default()+ .login_crypto_challenge+ .get_or_default()+ .diffie_hellman+ .get_or_default()+ .gs()+ .to_owned();+ let remote_signature = message+ .challenge+ .get_or_default()+ .login_crypto_challenge+ .get_or_default()+ .diffie_hellman+ .get_or_default()+ .gs_signature()+ .to_owned();++ // Prevent man-in-the-middle attacks: check server signature+ let n = BigUint::from_bytes_be(&SERVER_KEY);+ let e = BigUint::new(vec![65537]);+ let public_key = RsaPublicKey::new(n, e).map_err(|_| {+ io::Error::new(+ io::ErrorKind::InvalidData,+ HandshakeError::VerificationFailed,+ )+ })?;++ let hash = Sha1::digest(&remote_key);+ let padding = Pkcs1v15Sign::new::<Sha1>();+ public_key+ .verify(padding, &hash, &remote_signature)+ .map_err(|_| {+ io::Error::new(+ io::ErrorKind::InvalidData,+ HandshakeError::VerificationFailed,+ )+ })?;++ // OK to proceed+ let shared_secret = local_keys.shared_secret(&remote_key);+ let (challenge, send_key, recv_key) = compute_keys(&shared_secret, &accumulator)?;+ let codec = ApCodec::new(&send_key, &recv_key);++ client_response(&mut connection, challenge).await?;++ Ok(codec.framed(connection))+}++async fn client_hello<T>(connection: &mut T, gc: Vec<u8>) -> io::Result<Vec<u8>>+where+ T: AsyncWrite + Unpin,+{+ let mut client_nonce = vec![0; 0x10];+ rand::rng().fill_bytes(&mut client_nonce);++ let platform = match crate::config::OS {+ "freebsd" | "netbsd" | "openbsd" => match ARCH {+ "x86_64" => Platform::PLATFORM_FREEBSD_X86_64,+ _ => Platform::PLATFORM_FREEBSD_X86,+ },+ "ios" => match ARCH {+ "aarch64" => Platform::PLATFORM_IPHONE_ARM64,+ _ => Platform::PLATFORM_IPHONE_ARM,+ },+ // Rather than sending `Platform::PLATFORM_ANDROID_ARM` for "android",+ // we are spoofing "android" as "linux", as otherwise during Session::connect+ // all APs will reject the client with TryAnotherAP, no matter the credentials+ // used was obtained via OAuth using KEYMASTER or ANDROID's client ID or+ // Login5Manager::login+ "linux" | "android" => match ARCH {+ "arm" | "aarch64" => Platform::PLATFORM_LINUX_ARM,+ "blackfin" => Platform::PLATFORM_LINUX_BLACKFIN,+ "mips" => Platform::PLATFORM_LINUX_MIPS,+ "sh" => Platform::PLATFORM_LINUX_SH,+ "x86_64" => Platform::PLATFORM_LINUX_X86_64,+ _ => Platform::PLATFORM_LINUX_X86,+ },+ "macos" => match ARCH {+ "ppc" | "ppc64" => Platform::PLATFORM_OSX_PPC,+ "x86_64" => Platform::PLATFORM_OSX_X86_64,+ _ => Platform::PLATFORM_OSX_X86,+ },+ "windows" => match ARCH {+ "arm" | "aarch64" => Platform::PLATFORM_WINDOWS_CE_ARM,+ "x86_64" => Platform::PLATFORM_WIN32_X86_64,+ _ => Platform::PLATFORM_WIN32_X86,+ },+ _ => Platform::PLATFORM_LINUX_X86,+ };++ #[cfg(debug_assertions)]+ const PRODUCT_FLAGS: ProductFlags = ProductFlags::PRODUCT_FLAG_DEV_BUILD;+ #[cfg(not(debug_assertions))]+ const PRODUCT_FLAGS: ProductFlags = ProductFlags::PRODUCT_FLAG_NONE;++ let mut packet = ClientHello::new();+ packet+ .build_info+ .mut_or_insert_default()+ // ProductInfo won't push autoplay and perhaps other settings+ // when set to anything else than PRODUCT_CLIENT+ .set_product(protocol::keyexchange::Product::PRODUCT_CLIENT);+ packet+ .build_info+ .mut_or_insert_default()+ .product_flags+ .push(PRODUCT_FLAGS.into());+ packet+ .build_info+ .mut_or_insert_default()+ .set_platform(platform);+ packet+ .build_info+ .mut_or_insert_default()+ .set_version(version::SPOTIFY_VERSION);+ packet+ .cryptosuites_supported+ .push(protocol::keyexchange::Cryptosuite::CRYPTO_SUITE_SHANNON.into());+ packet+ .login_crypto_hello+ .mut_or_insert_default()+ .diffie_hellman+ .mut_or_insert_default()+ .set_gc(gc);+ packet+ .login_crypto_hello+ .mut_or_insert_default()+ .diffie_hellman+ .mut_or_insert_default()+ .set_server_keys_known(1);+ packet.set_client_nonce(client_nonce);+ packet.set_padding(vec![0x1e]);++ let mut buffer = vec![0, 4];+ let size = 2 + 4 + packet.compute_size();+ <Vec<u8> as WriteBytesExt>::write_u32::<BigEndian>(&mut buffer, size.try_into().unwrap())?;+ packet.write_to_vec(&mut buffer)?;++ connection.write_all(&buffer[..]).await?;+ Ok(buffer)+}++async fn client_response<T>(connection: &mut T, challenge: Vec<u8>) -> io::Result<()>+where+ T: AsyncWrite + Unpin,+{+ let mut packet = ClientResponsePlaintext::new();+ packet+ .login_crypto_response+ .mut_or_insert_default()+ .diffie_hellman+ .mut_or_insert_default()+ .set_hmac(challenge);++ packet.pow_response.mut_or_insert_default();+ packet.crypto_response.mut_or_insert_default();++ let mut buffer = vec![];+ let size = 4 + packet.compute_size();+ <Vec<u8> as WriteBytesExt>::write_u32::<BigEndian>(&mut buffer, size.try_into().unwrap())?;+ packet.write_to_vec(&mut buffer)?;++ connection.write_all(&buffer[..]).await?;+ Ok(())+}++async fn recv_packet<T, M>(connection: &mut T, acc: &mut Vec<u8>) -> io::Result<M>+where+ T: AsyncRead + Unpin,+ M: Message,+{+ let header = read_into_accumulator(connection, 4, acc).await?;+ let size = BigEndian::read_u32(header) as usize;+ let data = read_into_accumulator(connection, size - 4, acc).await?;+ let message = M::parse_from_bytes(data)?;+ Ok(message)+}++async fn read_into_accumulator<'b, T: AsyncRead + Unpin>(+ connection: &mut T,+ size: usize,+ acc: &'b mut Vec<u8>,+) -> io::Result<&'b mut [u8]> {+ let offset = acc.len();+ acc.resize(offset + size, 0);++ connection.read_exact(&mut acc[offset..]).await?;+ Ok(&mut acc[offset..])+}++fn compute_keys(shared_secret: &[u8], packets: &[u8]) -> io::Result<(Vec<u8>, Vec<u8>, Vec<u8>)> {+ type HmacSha1 = Hmac<Sha1>;++ let mut data = Vec::with_capacity(0x64);+ for i in 1..6 {+ let mut mac = HmacSha1::new_from_slice(shared_secret).map_err(|_| {+ io::Error::new(io::ErrorKind::InvalidData, HandshakeError::InvalidLength)+ })?;+ mac.update(packets);+ mac.update(&[i]);+ data.extend_from_slice(&mac.finalize().into_bytes());+ }++ let mut mac = HmacSha1::new_from_slice(&data[..0x14])+ .map_err(|_| io::Error::new(io::ErrorKind::InvalidData, HandshakeError::InvalidLength))?;+ mac.update(packets);++ Ok((+ mac.finalize().into_bytes().to_vec(),+ data[0x14..0x34].to_vec(),+ data[0x34..0x54].to_vec(),+ ))+}diff --git a/native/vendor/librespot-core/src/connection/mod.rs b/native/vendor/librespot-core/src/connection/mod.rsnew file mode 100644index 0000000..8301718--- /dev/null+++ b/native/vendor/librespot-core/src/connection/mod.rs@@ -0,0 +1,194 @@+mod codec;+mod handshake;++pub use self::{codec::ApCodec, handshake::handshake};++use std::{io, time::Duration};++use futures_util::{SinkExt, StreamExt};+use num_traits::FromPrimitive;+use protobuf::Message;+use thiserror::Error;+use tokio::net::TcpStream;+use tokio_util::codec::Framed;+use url::Url;++use crate::{Error, authentication::Credentials, packet::PacketType, version};++use crate::protocol::keyexchange::{APLoginFailed, ErrorCode};++pub type Transport = Framed<TcpStream, ApCodec>;++fn login_error_message(code: &ErrorCode) -> &'static str {+ pub use ErrorCode::*;+ match code {+ ProtocolError => "Protocol error",+ TryAnotherAP => "Try another access point",+ BadConnectionId => "Bad connection ID",+ TravelRestriction => "Travel restriction",+ PremiumAccountRequired => "Premium account required",+ BadCredentials => "Bad credentials",+ CouldNotValidateCredentials => "Could not validate credentials",+ AccountExists => "Account exists",+ ExtraVerificationRequired => "Extra verification required",+ InvalidAppKey => "Invalid app key",+ ApplicationBanned => "Application banned",+ }+}++#[derive(Debug, Error)]+pub enum AuthenticationError {+ #[error("Login failed with reason: {}", login_error_message(.0))]+ LoginFailed(ErrorCode),+ #[error("invalid packet {0}")]+ Packet(u8),+ #[error("transport returned no data")]+ Transport,+}++impl From<AuthenticationError> for Error {+ fn from(err: AuthenticationError) -> Self {+ match err {+ AuthenticationError::LoginFailed(_) => Error::permission_denied(err),+ AuthenticationError::Packet(_) => Error::unimplemented(err),+ AuthenticationError::Transport => Error::unavailable(err),+ }+ }+}++impl From<APLoginFailed> for AuthenticationError {+ fn from(login_failure: APLoginFailed) -> Self {+ Self::LoginFailed(login_failure.error_code())+ }+}++pub async fn connect(host: &str, port: u16, proxy: Option<&Url>) -> io::Result<Transport> {+ const TIMEOUT: Duration = Duration::from_secs(5);+ tokio::time::timeout(TIMEOUT, {+ let socket = crate::socket::connect(host, port, proxy).await?;+ debug!("Connection to AP established.");+ handshake(socket)+ })+ .await?+}++pub async fn connect_with_retry(+ host: &str,+ port: u16,+ proxy: Option<&Url>,+ max_retries: u8,+) -> io::Result<Transport> {+ let mut num_retries = 0;+ loop {+ match connect(host, port, proxy).await {+ Ok(f) => return Ok(f),+ Err(e) => {+ debug!("Connection to \"{host}:{port}\" failed: {e}");+ if num_retries < max_retries {+ num_retries += 1;+ debug!("Retry access point...");+ continue;+ }+ return Err(e);+ }+ }+ }+}++pub async fn authenticate(+ transport: &mut Transport,+ credentials: Credentials,+ device_id: &str,+) -> Result<Credentials, Error> {+ use crate::protocol::authentication::{APWelcome, ClientResponseEncrypted, CpuFamily, Os};++ let cpu_family = match std::env::consts::ARCH {+ "blackfin" => CpuFamily::CPU_BLACKFIN,+ "arm" | "aarch64" => CpuFamily::CPU_ARM,+ "ia64" => CpuFamily::CPU_IA64,+ "mips" => CpuFamily::CPU_MIPS,+ "ppc" => CpuFamily::CPU_PPC,+ "ppc64" => CpuFamily::CPU_PPC_64,+ "sh" => CpuFamily::CPU_SH,+ "x86" => CpuFamily::CPU_X86,+ "x86_64" => CpuFamily::CPU_X86_64,+ _ => CpuFamily::CPU_UNKNOWN,+ };++ let os = match crate::config::OS {+ "android" => Os::OS_ANDROID,+ "freebsd" | "netbsd" | "openbsd" => Os::OS_FREEBSD,+ "ios" => Os::OS_IPHONE,+ "linux" => Os::OS_LINUX,+ "macos" => Os::OS_OSX,+ "windows" => Os::OS_WINDOWS,+ _ => Os::OS_UNKNOWN,+ };++ let mut packet = ClientResponseEncrypted::new();+ if let Some(username) = credentials.username {+ packet+ .login_credentials+ .mut_or_insert_default()+ .set_username(username);+ }+ packet+ .login_credentials+ .mut_or_insert_default()+ .set_typ(credentials.auth_type);+ packet+ .login_credentials+ .mut_or_insert_default()+ .set_auth_data(credentials.auth_data);+ packet+ .system_info+ .mut_or_insert_default()+ .set_cpu_family(cpu_family);+ packet.system_info.mut_or_insert_default().set_os(os);+ packet+ .system_info+ .mut_or_insert_default()+ .set_system_information_string(format!(+ "librespot-{}-{}",+ version::SHA_SHORT,+ version::BUILD_ID+ ));+ packet+ .system_info+ .mut_or_insert_default()+ .set_device_id(device_id.to_string());+ packet.set_version_string(format!("librespot {}", version::SEMVER));++ let cmd = PacketType::Login;+ let data = packet.write_to_bytes()?;++ debug!("Authenticating with AP using {:?}", credentials.auth_type);+ transport.send((cmd as u8, data)).await?;+ let (cmd, data) = transport+ .next()+ .await+ .ok_or(AuthenticationError::Transport)??;+ let packet_type = FromPrimitive::from_u8(cmd);+ let result = match packet_type {+ Some(PacketType::APWelcome) => {+ let welcome_data = APWelcome::parse_from_bytes(data.as_ref())?;++ let reusable_credentials = Credentials {+ username: Some(welcome_data.canonical_username().to_owned()),+ auth_type: welcome_data.reusable_auth_credentials_type(),+ auth_data: welcome_data.reusable_auth_credentials().to_owned(),+ };++ Ok(reusable_credentials)+ }+ Some(PacketType::AuthFailure) => {+ let error_data = APLoginFailed::parse_from_bytes(data.as_ref())?;+ Err(error_data.into())+ }+ _ => {+ trace!("Did not expect {cmd:?} AES key packet with data {data:#?}");+ Err(AuthenticationError::Packet(cmd))+ }+ };+ Ok(result?)+}diff --git a/native/vendor/librespot-core/src/date.rs b/native/vendor/librespot-core/src/date.rsnew file mode 100644index 0000000..e77cf5e--- /dev/null+++ b/native/vendor/librespot-core/src/date.rs@@ -0,0 +1,81 @@+use std::{fmt::Debug, ops::Deref};++use time::{+ Date as _Date, OffsetDateTime, PrimitiveDateTime, Time, error::ComponentRange,+ format_description::well_known::Iso8601,+};++use crate::Error;++use librespot_protocol as protocol;+use protocol::metadata::Date as DateMessage;++impl From<ComponentRange> for Error {+ fn from(err: ComponentRange) -> Self {+ Error::out_of_range(err)+ }+}++#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]+pub struct Date(pub OffsetDateTime);++impl Deref for Date {+ type Target = OffsetDateTime;+ fn deref(&self) -> &Self::Target {+ &self.0+ }+}++impl Date {+ pub fn as_timestamp_ms(&self) -> i64 {+ (self.0.unix_timestamp_nanos() / 1_000_000) as i64+ }++ pub fn from_timestamp_ms(timestamp: i64) -> Result<Self, Error> {+ let date_time = OffsetDateTime::from_unix_timestamp_nanos(timestamp as i128 * 1_000_000)?;+ Ok(Self(date_time))+ }++ pub fn as_utc(&self) -> OffsetDateTime {+ self.0+ }++ pub fn from_utc(date_time: PrimitiveDateTime) -> Self {+ Self(date_time.assume_utc())+ }++ pub fn now_utc() -> Self {+ Self(OffsetDateTime::now_utc())+ }++ pub fn from_iso8601(input: &str) -> Result<Self, Error> {+ let date_time = OffsetDateTime::parse(input, &Iso8601::DEFAULT)?;+ Ok(Self(date_time))+ }+}++impl TryFrom<&DateMessage> for Date {+ type Error = crate::Error;+ fn try_from(msg: &DateMessage) -> Result<Self, Self::Error> {+ // Some metadata contains a year, but no month. In that case just set January.+ let month = if msg.has_month() {+ msg.month() as u8+ } else {+ 1+ };++ // Having no day will work, but may be unexpected: it will imply the last day+ // of the month before. So prevent that, and just set day 1.+ let day = if msg.has_day() { msg.day() as u8 } else { 1 };++ let date = _Date::from_calendar_date(msg.year(), month.try_into()?, day)?;+ let time = Time::from_hms(msg.hour() as u8, msg.minute() as u8, 0)?;+ Ok(Self::from_utc(PrimitiveDateTime::new(date, time)))+ }+}++impl From<OffsetDateTime> for Date {+ fn from(datetime: OffsetDateTime) -> Self {+ Self(datetime)+ }+}diff --git a/native/vendor/librespot-core/src/dealer/manager.rs b/native/vendor/librespot-core/src/dealer/manager.rsnew file mode 100644index 0000000..98ea026--- /dev/null+++ b/native/vendor/librespot-core/src/dealer/manager.rs@@ -0,0 +1,174 @@+use futures_core::Stream;+use futures_util::StreamExt;+use std::{pin::Pin, str::FromStr, sync::OnceLock};+use thiserror::Error;+use tokio::sync::mpsc;+use tokio_stream::wrappers::UnboundedReceiverStream;+use url::Url;++use super::{+ Builder, Dealer, GetUrlResult, Request, RequestHandler, Responder, Response, Subscription,+ protocol::Message,+};+use crate::{Error, Session};++component! {+ DealerManager: DealerManagerInner {+ builder: OnceLock<Builder> = OnceLock::from(Builder::new()),+ dealer: OnceLock<Dealer> = OnceLock::new(),+ }+}++pub type BoxedStream<T> = Pin<Box<dyn Stream<Item = T> + Send>>;+pub type BoxedStreamResult<T> = BoxedStream<Result<T, Error>>;++#[derive(Error, Debug)]+enum DealerError {+ #[error("Builder wasn't available")]+ BuilderNotAvailable,+ #[error("Websocket couldn't be started because: {0}")]+ LaunchFailure(Error),+ #[error("Failed to set dealer")]+ CouldNotSetDealer,+}++impl From<DealerError> for Error {+ fn from(err: DealerError) -> Self {+ Error::failed_precondition(err)+ }+}++#[derive(Debug)]+pub enum Reply {+ Success,+ Failure,+ Unanswered,+}++pub type RequestReply = (Request, mpsc::UnboundedSender<Reply>);+type RequestReceiver = mpsc::UnboundedReceiver<RequestReply>;+type RequestSender = mpsc::UnboundedSender<RequestReply>;++struct DealerRequestHandler(RequestSender);++impl DealerRequestHandler {+ pub fn new() -> (Self, RequestReceiver) {+ let (tx, rx) = mpsc::unbounded_channel();+ (DealerRequestHandler(tx), rx)+ }+}++impl RequestHandler for DealerRequestHandler {+ fn handle_request(&self, request: Request, responder: Responder) {+ let (tx, mut rx) = mpsc::unbounded_channel();++ if let Err(why) = self.0.send((request, tx)) {+ error!("failed sending dealer request {why}");+ responder.send(Response { success: false });+ return;+ }++ tokio::spawn(async move {+ let reply = rx.recv().await.unwrap_or(Reply::Failure);+ debug!("replying to ws request: {reply:?}");+ match reply {+ Reply::Unanswered => responder.force_unanswered(),+ Reply::Success | Reply::Failure => responder.send(Response {+ success: matches!(reply, Reply::Success),+ }),+ }+ });+ }+}++impl DealerManager {+ async fn get_url(session: Session) -> GetUrlResult {+ let (host, port) = session.apresolver().resolve("dealer").await?;+ let token = session.login5().auth_token().await?.access_token;+ let url = format!("wss://{host}:{port}/?access_token={token}");+ let url = Url::from_str(&url)?;+ Ok(url)+ }++ pub fn add_listen_for(&self, url: impl Into<String>) -> Result<Subscription, Error> {+ let url = url.into();+ self.lock(|inner| {+ if let Some(dealer) = inner.dealer.get() {+ dealer.subscribe(&[&url])+ } else if let Some(builder) = inner.builder.get_mut() {+ builder.subscribe(&[&url])+ } else {+ Err(DealerError::BuilderNotAvailable.into())+ }+ })+ }++ pub fn listen_for<T>(+ &self,+ uri: impl Into<String>,+ t: impl Fn(Message) -> Result<T, Error> + Send + 'static,+ ) -> Result<BoxedStreamResult<T>, Error> {+ Ok(Box::pin(self.add_listen_for(uri)?.map(t)))+ }++ pub fn add_handle_for(&self, url: impl Into<String>) -> Result<RequestReceiver, Error> {+ let url = url.into();++ let (handler, receiver) = DealerRequestHandler::new();+ self.lock(|inner| {+ if let Some(dealer) = inner.dealer.get() {+ dealer.add_handler(&url, handler).map(|_| receiver)+ } else if let Some(builder) = inner.builder.get_mut() {+ builder.add_handler(&url, handler).map(|_| receiver)+ } else {+ Err(DealerError::BuilderNotAvailable.into())+ }+ })+ }++ pub fn handle_for(&self, uri: impl Into<String>) -> Result<BoxedStream<RequestReply>, Error> {+ Ok(Box::pin(+ self.add_handle_for(uri).map(UnboundedReceiverStream::new)?,+ ))+ }++ pub fn handles(&self, uri: &str) -> bool {+ self.lock(|inner| {+ if let Some(dealer) = inner.dealer.get() {+ dealer.handles(uri)+ } else if let Some(builder) = inner.builder.get() {+ builder.handles(uri)+ } else {+ false+ }+ })+ }++ pub async fn start(&self) -> Result<(), Error> {+ debug!("Launching dealer");++ let session = self.session();+ // the url has to be a function that can retrieve a new url,+ // otherwise when we later try to reconnect with the initial url/token+ // and the token is expired we will just get 401 error+ let get_url = move || Self::get_url(session.clone());++ let dealer = self+ .lock(move |inner| inner.builder.take())+ .ok_or(DealerError::BuilderNotAvailable)?+ .launch(get_url, None)+ .await+ .map_err(DealerError::LaunchFailure)?;++ self.lock(|inner| inner.dealer.set(dealer))+ .map_err(|_| DealerError::CouldNotSetDealer)?;++ Ok(())+ }++ pub async fn close(&self) {+ if let Some(dealer) = self.lock(|inner| inner.dealer.take()) {+ dealer.close().await+ }+ }+}diff --git a/native/vendor/librespot-core/src/dealer/maps.rs b/native/vendor/librespot-core/src/dealer/maps.rsnew file mode 100644index 0000000..23d21a1--- /dev/null+++ b/native/vendor/librespot-core/src/dealer/maps.rs@@ -0,0 +1,155 @@+use std::collections::HashMap;++use crate::Error;+use thiserror::Error;++#[derive(Debug, Error)]+pub enum HandlerMapError {+ #[error("request was already handled")]+ AlreadyHandled,+}++impl From<HandlerMapError> for Error {+ fn from(err: HandlerMapError) -> Self {+ Error::aborted(err)+ }+}++pub enum HandlerMap<T> {+ Leaf(T),+ Branch(HashMap<String, HandlerMap<T>>),+}++impl<T> Default for HandlerMap<T> {+ fn default() -> Self {+ Self::Branch(HashMap::new())+ }+}++impl<T> HandlerMap<T> {+ pub fn contains(&self, path: &str) -> bool {+ matches!(self, HandlerMap::Branch(map) if map.contains_key(path))+ }++ pub fn insert<'a>(+ &mut self,+ mut path: impl Iterator<Item = &'a str>,+ handler: T,+ ) -> Result<(), Error> {+ match self {+ Self::Leaf(_) => Err(HandlerMapError::AlreadyHandled.into()),+ Self::Branch(children) => {+ if let Some(component) = path.next() {+ let node = children.entry(component.to_owned()).or_default();+ node.insert(path, handler)+ } else if children.is_empty() {+ *self = Self::Leaf(handler);+ Ok(())+ } else {+ Err(HandlerMapError::AlreadyHandled.into())+ }+ }+ }+ }++ pub fn get<'a>(&self, mut path: impl Iterator<Item = &'a str>) -> Option<&T> {+ match self {+ Self::Leaf(t) => Some(t),+ Self::Branch(m) => {+ let component = path.next()?;+ m.get(component)?.get(path)+ }+ }+ }++ pub fn remove<'a>(&mut self, mut path: impl Iterator<Item = &'a str>) -> Option<T> {+ match self {+ Self::Leaf(_) => match std::mem::take(self) {+ Self::Leaf(t) => Some(t),+ _ => unreachable!(),+ },+ Self::Branch(map) => {+ let component = path.next()?;+ let next = map.get_mut(component)?;+ let result = next.remove(path);+ match &*next {+ Self::Branch(b) if b.is_empty() => {+ map.remove(component);+ }+ _ => (),+ }+ result+ }+ }+ }+}++pub struct SubscriberMap<T> {+ subscribed: Vec<T>,+ children: HashMap<String, SubscriberMap<T>>,+}++impl<T> Default for SubscriberMap<T> {+ fn default() -> Self {+ Self {+ subscribed: Vec::new(),+ children: HashMap::new(),+ }+ }+}++impl<T> SubscriberMap<T> {+ pub fn insert<'a>(&mut self, mut path: impl Iterator<Item = &'a str>, handler: T) {+ if let Some(component) = path.next() {+ self.children+ .entry(component.to_owned())+ .or_default()+ .insert(path, handler);+ } else {+ self.subscribed.push(handler);+ }+ }++ pub fn contains<'a>(&self, mut path: impl Iterator<Item = &'a str>) -> bool {+ if !self.subscribed.is_empty() {+ return true;+ }++ if let Some(next) = path.next() {+ if let Some(next_map) = self.children.get(next) {+ return next_map.contains(path);+ }+ } else {+ return !self.is_empty();+ }++ false+ }++ pub fn is_empty(&self) -> bool {+ self.children.is_empty() && self.subscribed.is_empty()+ }++ pub fn retain<'a>(+ &mut self,+ mut path: impl Iterator<Item = &'a str>,+ fun: &mut impl FnMut(&T) -> bool,+ ) -> bool {+ let mut handled_by_any = false;+ self.subscribed.retain(|x| {+ handled_by_any = true;+ fun(x)+ });++ if let Some(next) = path.next() {+ if let Some(y) = self.children.get_mut(next) {+ handled_by_any = handled_by_any || y.retain(path, fun);+ if y.is_empty() {+ self.children.remove(next);+ }+ }+ }++ handled_by_any+ }+}diff --git a/native/vendor/librespot-core/src/dealer/mod.rs b/native/vendor/librespot-core/src/dealer/mod.rsnew file mode 100644index 0000000..63ee6e7--- /dev/null+++ b/native/vendor/librespot-core/src/dealer/mod.rs@@ -0,0 +1,724 @@+pub mod manager;+mod maps;+pub mod protocol;++use std::{+ iter,+ pin::Pin,+ sync::{+ Arc, Mutex,+ atomic::{self, AtomicBool},+ },+ task::Poll,+ time::Duration,+};++use futures_core::{Future, Stream};+use futures_util::{SinkExt, StreamExt, future::join_all};+use thiserror::Error;+use tokio::{+ select,+ sync::{+ Semaphore,+ mpsc::{self, UnboundedReceiver},+ },+ task::JoinHandle,+};+use tokio_tungstenite::tungstenite;+use tungstenite::error::UrlError;+use url::Url;++use self::{+ maps::*,+ protocol::{Message, MessageOrRequest, Request, WebsocketMessage, WebsocketRequest},+};++use crate::{+ Error, socket,+ util::{CancelOnDrop, TimeoutOnDrop, keep_flushing},+};++type WsMessage = tungstenite::Message;+type WsError = tungstenite::Error;+type WsResult<T> = Result<T, Error>;+type GetUrlResult = Result<Url, Error>;++impl From<WsError> for Error {+ fn from(err: WsError) -> Self {+ Error::failed_precondition(err)+ }+}++const WEBSOCKET_CLOSE_TIMEOUT: Duration = Duration::from_secs(3);++const PING_INTERVAL: Duration = Duration::from_secs(30);+const PING_TIMEOUT: Duration = Duration::from_secs(3);++const RECONNECT_INTERVAL: Duration = Duration::from_secs(10);++const DEALER_REQUEST_HANDLERS_POISON_MSG: &str =+ "dealer request handlers mutex should not be poisoned";+const DEALER_MESSAGE_HANDLERS_POISON_MSG: &str =+ "dealer message handlers mutex should not be poisoned";++struct Response {+ pub success: bool,+}++struct Responder {+ key: String,+ tx: mpsc::UnboundedSender<WsMessage>,+ sent: bool,+}++impl Responder {+ fn new(key: String, tx: mpsc::UnboundedSender<WsMessage>) -> Self {+ Self {+ key,+ tx,+ sent: false,+ }+ }++ // Should only be called once+ fn send_internal(&mut self, response: Response) {+ let response = serde_json::json!({+ "type": "reply",+ "key": &self.key,+ "payload": {+ "success": response.success,+ }+ })+ .to_string();++ if let Err(e) = self.tx.send(WsMessage::Text(response.into())) {+ warn!("Wasn't able to reply to dealer request: {e}");+ }+ }++ pub fn send(mut self, response: Response) {+ self.send_internal(response);+ self.sent = true;+ }++ pub fn force_unanswered(mut self) {+ self.sent = true;+ }+}++impl Drop for Responder {+ fn drop(&mut self) {+ if !self.sent {+ self.send_internal(Response { success: false });+ }+ }+}++trait IntoResponse {+ fn respond(self, responder: Responder);+}++impl IntoResponse for Response {+ fn respond(self, responder: Responder) {+ responder.send(self)+ }+}++impl<F> IntoResponse for F+where+ F: Future<Output = Response> + Send + 'static,+{+ fn respond(self, responder: Responder) {+ tokio::spawn(async move {+ responder.send(self.await);+ });+ }+}++impl<F, R> RequestHandler for F+where+ F: (Fn(Request) -> R) + Send + 'static,+ R: IntoResponse,+{+ fn handle_request(&self, request: Request, responder: Responder) {+ self(request).respond(responder);+ }+}++trait RequestHandler: Send + 'static {+ fn handle_request(&self, request: Request, responder: Responder);+}++type MessageHandler = mpsc::UnboundedSender<Message>;++// TODO: Maybe it's possible to unregister subscription directly when they+// are dropped instead of on next failed attempt.+pub struct Subscription(UnboundedReceiver<Message>);++impl Stream for Subscription {+ type Item = Message;++ fn poll_next(+ mut self: Pin<&mut Self>,+ cx: &mut std::task::Context<'_>,+ ) -> Poll<Option<Self::Item>> {+ self.0.poll_recv(cx)+ }+}++fn split_uri(s: &str) -> Option<impl Iterator<Item = &'_ str>> {+ let (scheme, sep, rest) = if let Some(rest) = s.strip_prefix("hm://") {+ ("hm", '/', rest)+ } else if let Some(rest) = s.strip_prefix("spotify:") {+ ("spotify", ':', rest)+ } else if s.contains('/') {+ ("", '/', s)+ } else {+ return None;+ };++ let rest = rest.trim_end_matches(sep);+ let split = rest.split(sep);++ Some(iter::once(scheme).chain(split))+}++#[derive(Debug, Clone, Error)]+enum AddHandlerError {+ #[error("There is already a handler for the given uri")]+ AlreadyHandled,+ #[error("The specified uri {0} is invalid")]+ InvalidUri(String),+}++impl From<AddHandlerError> for Error {+ fn from(err: AddHandlerError) -> Self {+ match err {+ AddHandlerError::AlreadyHandled => Error::aborted(err),+ AddHandlerError::InvalidUri(_) => Error::invalid_argument(err),+ }+ }+}++#[derive(Debug, Clone, Error)]+enum SubscriptionError {+ #[error("The specified uri is invalid")]+ InvalidUri(String),+}++impl From<SubscriptionError> for Error {+ fn from(err: SubscriptionError) -> Self {+ Error::invalid_argument(err)+ }+}++fn add_handler(+ map: &mut HandlerMap<Box<dyn RequestHandler>>,+ uri: &str,+ handler: impl RequestHandler,+) -> Result<(), Error> {+ let split = split_uri(uri).ok_or_else(|| AddHandlerError::InvalidUri(uri.to_string()))?;+ map.insert(split, Box::new(handler))+}++fn remove_handler<T>(map: &mut HandlerMap<T>, uri: &str) -> Option<T> {+ map.remove(split_uri(uri)?)+}++fn subscribe(+ map: &mut SubscriberMap<MessageHandler>,+ uris: &[&str],+) -> Result<Subscription, Error> {+ let (tx, rx) = mpsc::unbounded_channel();++ for &uri in uris {+ let split = split_uri(uri).ok_or_else(|| SubscriptionError::InvalidUri(uri.to_string()))?;+ map.insert(split, tx.clone());+ }++ Ok(Subscription(rx))+}++fn handles(+ req_map: &HandlerMap<Box<dyn RequestHandler>>,+ msg_map: &SubscriberMap<MessageHandler>,+ uri: &str,+) -> bool {+ if req_map.contains(uri) {+ return true;+ }++ match split_uri(uri) {+ None => false,+ Some(mut split) => msg_map.contains(&mut split),+ }+}++#[derive(Default)]+struct Builder {+ message_handlers: SubscriberMap<MessageHandler>,+ request_handlers: HandlerMap<Box<dyn RequestHandler>>,+}++macro_rules! create_dealer {+ ($builder:expr, $shared:ident -> $body:expr) => {+ match $builder {+ builder => {+ let shared = Arc::new(DealerShared {+ message_handlers: Mutex::new(builder.message_handlers),+ request_handlers: Mutex::new(builder.request_handlers),+ notify_drop: Semaphore::new(0),+ });++ let handle = {+ let $shared = Arc::clone(&shared);+ tokio::spawn($body)+ };++ Dealer {+ shared,+ handle: TimeoutOnDrop::new(handle, WEBSOCKET_CLOSE_TIMEOUT),+ }+ }+ }+ };+}++impl Builder {+ pub fn new() -> Self {+ Self::default()+ }++ pub fn add_handler(&mut self, uri: &str, handler: impl RequestHandler) -> Result<(), Error> {+ add_handler(&mut self.request_handlers, uri, handler)+ }++ pub fn subscribe(&mut self, uris: &[&str]) -> Result<Subscription, Error> {+ subscribe(&mut self.message_handlers, uris)+ }++ pub fn handles(&self, uri: &str) -> bool {+ handles(&self.request_handlers, &self.message_handlers, uri)+ }++ pub fn launch_in_background<Fut, F>(self, get_url: F, proxy: Option<Url>) -> Dealer+ where+ Fut: Future<Output = GetUrlResult> + Send + 'static,+ F: (Fn() -> Fut) + Send + 'static,+ {+ create_dealer!(self, shared -> run(shared, None, get_url, proxy))+ }++ pub async fn launch<Fut, F>(self, get_url: F, proxy: Option<Url>) -> WsResult<Dealer>+ where+ Fut: Future<Output = GetUrlResult> + Send + 'static,+ F: (Fn() -> Fut) + Send + 'static,+ {+ let dealer = create_dealer!(self, shared -> {+ // Try to connect.+ let url = get_url().await?;+ let tasks = connect(&url, proxy.as_ref(), &shared).await?;++ // If a connection is established, continue in a background task.+ run(shared, Some(tasks), get_url, proxy)+ });++ Ok(dealer)+ }+}++struct DealerShared {+ message_handlers: Mutex<SubscriberMap<MessageHandler>>,+ request_handlers: Mutex<HandlerMap<Box<dyn RequestHandler>>>,++ // Semaphore with 0 permits. By closing this semaphore, we indicate+ // that the actual Dealer struct has been dropped.+ notify_drop: Semaphore,+}++impl DealerShared {+ fn dispatch_message(&self, mut msg: WebsocketMessage) {+ let msg = match msg.handle_payload() {+ Ok(value) => Message {+ headers: msg.headers,+ payload: value,+ uri: msg.uri,+ },+ Err(why) => {+ warn!("failure during data parsing for {}: {why}", msg.uri);+ return;+ }+ };++ if let Some(split) = split_uri(&msg.uri) {+ if self+ .message_handlers+ .lock()+ .expect(DEALER_MESSAGE_HANDLERS_POISON_MSG)+ .retain(split, &mut |tx| tx.send(msg.clone()).is_ok())+ {+ return;+ }+ }++ debug!("No subscriber for msg.uri: {}", msg.uri);+ }++ fn dispatch_request(+ &self,+ request: WebsocketRequest,+ send_tx: &mpsc::UnboundedSender<WsMessage>,+ ) {+ trace!("dealer request {}", &request.message_ident);++ let payload_request = match request.handle_payload() {+ Ok(payload) => payload,+ Err(why) => {+ warn!("request payload handling failed because of {why}");+ return;+ }+ };++ // ResponseSender will automatically send "success: false" if it is dropped without an answer.+ let responder = Responder::new(request.key.clone(), send_tx.clone());++ let split = if let Some(split) = split_uri(&request.message_ident) {+ split+ } else {+ warn!(+ "Dealer request with invalid message_ident: {}",+ &request.message_ident+ );+ return;+ };++ let handler_map = self+ .request_handlers+ .lock()+ .expect(DEALER_REQUEST_HANDLERS_POISON_MSG);++ if let Some(handler) = handler_map.get(split) {+ handler.handle_request(payload_request, responder);+ return;+ }++ warn!("No handler for message_ident: {}", &request.message_ident);+ }++ fn dispatch(&self, m: MessageOrRequest, send_tx: &mpsc::UnboundedSender<WsMessage>) {+ match m {+ MessageOrRequest::Message(m) => self.dispatch_message(m),+ MessageOrRequest::Request(r) => self.dispatch_request(r, send_tx),+ }+ }++ async fn closed(&self) {+ if self.notify_drop.acquire().await.is_ok() {+ error!("should never have gotten a permit");+ }+ }++ fn is_closed(&self) -> bool {+ self.notify_drop.is_closed()+ }+}++struct Dealer {+ shared: Arc<DealerShared>,+ handle: TimeoutOnDrop<Result<(), Error>>,+}++impl Dealer {+ pub fn add_handler<H>(&self, uri: &str, handler: H) -> Result<(), Error>+ where+ H: RequestHandler,+ {+ add_handler(+ &mut self+ .shared+ .request_handlers+ .lock()+ .expect(DEALER_REQUEST_HANDLERS_POISON_MSG),+ uri,+ handler,+ )+ }++ pub fn remove_handler(&self, uri: &str) -> Option<Box<dyn RequestHandler>> {+ remove_handler(+ &mut self+ .shared+ .request_handlers+ .lock()+ .expect(DEALER_REQUEST_HANDLERS_POISON_MSG),+ uri,+ )+ }++ pub fn subscribe(&self, uris: &[&str]) -> Result<Subscription, Error> {+ subscribe(+ &mut self+ .shared+ .message_handlers+ .lock()+ .expect(DEALER_MESSAGE_HANDLERS_POISON_MSG),+ uris,+ )+ }++ pub fn handles(&self, uri: &str) -> bool {+ handles(+ &self+ .shared+ .request_handlers+ .lock()+ .expect(DEALER_REQUEST_HANDLERS_POISON_MSG),+ &self+ .shared+ .message_handlers+ .lock()+ .expect(DEALER_MESSAGE_HANDLERS_POISON_MSG),+ uri,+ )+ }++ pub async fn close(mut self) {+ debug!("closing dealer");++ self.shared.notify_drop.close();++ if let Some(handle) = self.handle.take() {+ if let Err(e) = CancelOnDrop(handle).await {+ error!("error aborting dealer operations: {e}");+ }+ }+ }+}++/// Initializes a connection and returns futures that will finish when the connection is closed/lost.+async fn connect(+ address: &Url,+ proxy: Option<&Url>,+ shared: &Arc<DealerShared>,+) -> WsResult<(JoinHandle<()>, JoinHandle<()>)> {+ let host = address+ .host_str()+ .ok_or(WsError::Url(UrlError::NoHostName))?;++ let default_port = match address.scheme() {+ "ws" => 80,+ "wss" => 443,+ _ => return Err(WsError::Url(UrlError::UnsupportedUrlScheme).into()),+ };++ let port = address.port().unwrap_or(default_port);++ let stream = socket::connect(host, port, proxy).await?;++ let (mut ws_tx, ws_rx) = tokio_tungstenite::client_async_tls(address.as_str(), stream)+ .await?+ .0+ .split();++ let (send_tx, mut send_rx) = mpsc::unbounded_channel::<WsMessage>();++ // Spawn a task that will forward messages from the channel to the websocket.+ let send_task = {+ let shared = Arc::clone(shared);++ tokio::spawn(async move {+ let result = loop {+ select! {+ biased;+ () = shared.closed() => {+ break Ok(None);+ }+ msg = send_rx.recv() => {+ if let Some(msg) = msg {+ // New message arrived through channel+ if let WsMessage::Close(close_frame) = msg {+ break Ok(close_frame);+ }++ if let Err(e) = ws_tx.feed(msg).await {+ break Err(e);+ }+ } else {+ break Ok(None);+ }+ },+ e = keep_flushing(&mut ws_tx) => {+ break Err(e)+ }+ else => (),+ }+ };++ send_rx.close();++ // I don't trust in tokio_tungstenite's implementation of Sink::close.+ let result = match result {+ Ok(close_frame) => ws_tx.send(WsMessage::Close(close_frame)).await,+ Err(WsError::AlreadyClosed) | Err(WsError::ConnectionClosed) => ws_tx.flush().await,+ Err(e) => {+ warn!("Dealer finished with an error: {e}");+ ws_tx.send(WsMessage::Close(None)).await+ }+ };++ if let Err(e) = result {+ warn!("Error while closing websocket: {e}");+ }++ debug!("Dropping send task");+ })+ };++ let shared = Arc::clone(shared);++ // A task that receives messages from the web socket.+ let receive_task = tokio::spawn(async {+ let pong_received = AtomicBool::new(true);+ let send_tx = send_tx;+ let shared = shared;++ let receive_task = async {+ let mut ws_rx = ws_rx;++ loop {+ match ws_rx.next().await {+ Some(Ok(msg)) => match msg {+ WsMessage::Text(t) => match serde_json::from_str(&t) {+ Ok(m) => shared.dispatch(m, &send_tx),+ Err(e) => warn!("Message couldn't be parsed: {e}. Message was {t}"),+ },+ WsMessage::Binary(_) => {+ info!("Received invalid binary message");+ }+ WsMessage::Pong(_) => {+ trace!("Received pong");+ pong_received.store(true, atomic::Ordering::Relaxed);+ }+ _ => (), // tungstenite handles Close and Ping automatically+ },+ Some(Err(e)) => {+ warn!("Websocket connection failed: {e}");+ break;+ }+ None => {+ debug!("Websocket connection closed.");+ break;+ }+ }+ }+ };++ // Sends pings and checks whether a pong comes back.+ let ping_task = async {+ use tokio::time::{interval, sleep};++ let mut timer = interval(PING_INTERVAL);++ loop {+ timer.tick().await;++ pong_received.store(false, atomic::Ordering::Relaxed);+ if send_tx+ .send(WsMessage::Ping(bytes::Bytes::default()))+ .is_err()+ {+ // The sender is closed.+ break;+ }++ trace!("Sent ping");++ sleep(PING_TIMEOUT).await;++ if !pong_received.load(atomic::Ordering::SeqCst) {+ // No response+ warn!("Websocket peer does not respond.");+ break;+ }+ }+ };++ // Exit this task as soon as one our subtasks fails.+ // In both cases the connection is probably lost.+ select! {+ () = ping_task => (),+ () = receive_task => ()+ }++ // Try to take send_task down with us, in case it's still alive.+ let _ = send_tx.send(WsMessage::Close(None));++ debug!("Dropping receive task");+ });++ Ok((send_task, receive_task))+}++/// The main background task for `Dealer`, which coordinates reconnecting.+async fn run<F, Fut>(+ shared: Arc<DealerShared>,+ initial_tasks: Option<(JoinHandle<()>, JoinHandle<()>)>,+ mut get_url: F,+ proxy: Option<Url>,+) -> Result<(), Error>+where+ Fut: Future<Output = GetUrlResult> + Send + 'static,+ F: (FnMut() -> Fut) + Send + 'static,+{+ let init_task = |t| Some(TimeoutOnDrop::new(t, WEBSOCKET_CLOSE_TIMEOUT));++ let mut tasks = if let Some((s, r)) = initial_tasks {+ (init_task(s), init_task(r))+ } else {+ (None, None)+ };++ while !shared.is_closed() {+ match &mut tasks {+ (Some(t0), Some(t1)) => {+ select! {+ () = shared.closed() => break,+ r = t0 => {+ if let Err(e) = r {+ error!("timeout on task 0: {e}");+ }+ tasks.0.take();+ },+ r = t1 => {+ if let Err(e) = r {+ error!("timeout on task 1: {e}");+ }+ tasks.1.take();+ }+ }+ }+ _ => {+ let url = select! {+ () = shared.closed() => {+ break+ },+ e = get_url() => e+ }?;++ match connect(&url, proxy.as_ref(), &shared).await {+ Ok((s, r)) => tasks = (init_task(s), init_task(r)),+ Err(e) => {+ error!("Error while connecting: {e}");+ tokio::time::sleep(RECONNECT_INTERVAL).await;+ }+ }+ }+ }+ }++ let tasks = tasks.0.into_iter().chain(tasks.1);++ let _ = join_all(tasks).await;++ Ok(())+}diff --git a/native/vendor/librespot-core/src/dealer/protocol.rs b/native/vendor/librespot-core/src/dealer/protocol.rsnew file mode 100644index 0000000..803fe30--- /dev/null+++ b/native/vendor/librespot-core/src/dealer/protocol.rs@@ -0,0 +1,196 @@+pub mod request;++pub use request::*;++use std::collections::HashMap;+use std::io::{Error as IoError, Read};++use crate::{Error, deserialize_with::json_proto};+use base64::{DecodeError, Engine, prelude::BASE64_STANDARD};+use flate2::read::GzDecoder;+use log::LevelFilter;+use serde::Deserialize;+use serde_json::Error as SerdeError;+use thiserror::Error;++const IGNORE_UNKNOWN: protobuf_json_mapping::ParseOptions = protobuf_json_mapping::ParseOptions {+ ignore_unknown_fields: true,+ _future_options: (),+};++type JsonValue = serde_json::Value;++#[derive(Debug, Error)]+enum ProtocolError {+ #[error("base64 decoding failed: {0}")]+ Base64(DecodeError),+ #[error("gzip decoding failed: {0}")]+ GZip(IoError),+ #[error("deserialization failed: {0}")]+ Deserialization(SerdeError),+ #[error("payload had more then one value. had {0} values")]+ MoreThenOneValue(usize),+ #[error("received unexpected data {0:#?}")]+ UnexpectedData(PayloadValue),+ #[error("payload was empty")]+ Empty,+}++impl From<ProtocolError> for Error {+ fn from(err: ProtocolError) -> Self {+ match err {+ ProtocolError::UnexpectedData(_) => Error::unavailable(err),+ _ => Error::failed_precondition(err),+ }+ }+}++#[derive(Clone, Debug, Deserialize)]+pub(super) struct Payload {+ pub compressed: String,+}++#[derive(Clone, Debug, Deserialize)]+pub(super) struct WebsocketRequest {+ #[serde(default)]+ pub headers: HashMap<String, String>,+ pub message_ident: String,+ pub key: String,+ pub payload: Payload,+}++#[derive(Clone, Debug, Deserialize)]+pub(super) struct WebsocketMessage {+ #[serde(default)]+ pub headers: HashMap<String, String>,+ pub method: Option<String>,+ #[serde(default)]+ pub payloads: Vec<MessagePayloadValue>,+ pub uri: String,+}++#[derive(Clone, Debug, Deserialize)]+#[serde(untagged)]+pub enum MessagePayloadValue {+ String(String),+ Bytes(Vec<u8>),+ Json(JsonValue),+}++#[derive(Clone, Debug, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub(super) enum MessageOrRequest {+ Message(WebsocketMessage),+ Request(WebsocketRequest),+}++#[derive(Clone, Debug)]+pub enum PayloadValue {+ Empty,+ Raw(Vec<u8>),+ Json(String),+}++#[derive(Clone, Debug)]+pub struct Message {+ pub headers: HashMap<String, String>,+ pub payload: PayloadValue,+ pub uri: String,+}++#[derive(Deserialize)]+#[serde(untagged)]+pub enum FallbackWrapper<T: protobuf::MessageFull> {+ Inner(#[serde(deserialize_with = "json_proto")] T),+ Fallback(JsonValue),+}++impl Message {+ pub fn try_from_json<M: protobuf::MessageFull>(+ value: Self,+ ) -> Result<FallbackWrapper<M>, Error> {+ match value.payload {+ PayloadValue::Json(json) => Ok(serde_json::from_str(&json)?),+ other => Err(ProtocolError::UnexpectedData(other).into()),+ }+ }++ pub fn from_raw<M: protobuf::Message>(value: Self) -> Result<M, Error> {+ match value.payload {+ PayloadValue::Raw(bytes) => {+ M::parse_from_bytes(&bytes).map_err(Error::failed_precondition)+ }+ other => Err(ProtocolError::UnexpectedData(other).into()),+ }+ }+}++impl WebsocketMessage {+ pub fn handle_payload(&mut self) -> Result<PayloadValue, Error> {+ if self.payloads.is_empty() {+ return Ok(PayloadValue::Empty);+ } else if self.payloads.len() > 1 {+ return Err(ProtocolError::MoreThenOneValue(self.payloads.len()).into());+ }++ let payload = self.payloads.pop().ok_or(ProtocolError::Empty)?;+ let bytes = match payload {+ MessagePayloadValue::String(string) => BASE64_STANDARD+ .decode(string)+ .map_err(ProtocolError::Base64)?,+ MessagePayloadValue::Bytes(bytes) => bytes,+ MessagePayloadValue::Json(json) => return Ok(PayloadValue::Json(json.to_string())),+ };++ handle_transfer_encoding(&self.headers, bytes).map(PayloadValue::Raw)+ }+}++impl WebsocketRequest {+ pub fn handle_payload(&self) -> Result<Request, Error> {+ let payload_bytes = BASE64_STANDARD+ .decode(&self.payload.compressed)+ .map_err(ProtocolError::Base64)?;++ let payload = handle_transfer_encoding(&self.headers, payload_bytes)?;+ let payload = String::from_utf8(payload)?;++ if log::max_level() >= LevelFilter::Trace {+ if let Ok(json) = serde_json::from_str::<serde_json::Value>(&payload) {+ trace!("websocket request: {json:#?}");+ } else {+ trace!("websocket request: {payload}");+ }+ }++ serde_json::from_str(&payload)+ .map_err(ProtocolError::Deserialization)+ .map_err(Into::into)+ }+}++fn handle_transfer_encoding(+ headers: &HashMap<String, String>,+ data: Vec<u8>,+) -> Result<Vec<u8>, Error> {+ let encoding = headers.get("Transfer-Encoding").map(String::as_str);+ if let Some(encoding) = encoding {+ trace!("message was sent with {encoding} encoding ");+ } else {+ trace!("message was sent with no encoding ");+ }++ if !matches!(encoding, Some("gzip")) {+ return Ok(data);+ }++ let mut gz = GzDecoder::new(&data[..]);+ let mut bytes = vec![];+ match gz.read_to_end(&mut bytes) {+ Ok(i) if i == bytes.len() => Ok(bytes),+ Ok(_) => Err(Error::failed_precondition(+ "read bytes mismatched with expected bytes",+ )),+ Err(why) => Err(ProtocolError::GZip(why).into()),+ }+}diff --git a/native/vendor/librespot-core/src/dealer/protocol/request.rs b/native/vendor/librespot-core/src/dealer/protocol/request.rsnew file mode 100644index 0000000..8125750--- /dev/null+++ b/native/vendor/librespot-core/src/dealer/protocol/request.rs@@ -0,0 +1,217 @@+use crate::{+ deserialize_with::*,+ protocol::{+ context::Context,+ context_player_options::ContextPlayerOptionOverrides,+ player::{PlayOrigin, ProvidedTrack},+ transfer_state::TransferState,+ },+};+use serde::{Deserialize, Serialize};+use serde_json::Value;+use std::fmt::{Display, Formatter};++#[derive(Clone, Debug, Deserialize)]+pub struct Request {+ pub message_id: u32,+ // todo: did only send target_alias_id: null so far, maybe we just ignore it, will see+ // pub target_alias_id: Option<()>,+ pub sent_by_device_id: String,+ pub command: Command,+}++#[derive(Clone, Debug, Deserialize)]+#[serde(tag = "endpoint", rename_all = "snake_case")]+pub enum Command {+ Transfer(TransferCommand),+ #[serde(deserialize_with = "boxed")]+ Play(Box<PlayCommand>),+ Pause(PauseCommand),+ SeekTo(SeekToCommand),+ SetShufflingContext(SetValueCommand),+ SetRepeatingTrack(SetValueCommand),+ SetRepeatingContext(SetValueCommand),+ AddToQueue(AddToQueueCommand),+ SetQueue(SetQueueCommand),+ SetOptions(SetOptionsCommand),+ UpdateContext(UpdateContextCommand),+ SkipNext(SkipNextCommand),+ // commands that don't send any context (at least not usually...)+ SkipPrev(GenericCommand),+ Resume(GenericCommand),+ // catch unknown commands, so that we can implement them later+ #[serde(untagged)]+ Unknown(Value),+}++impl Display for Command {+ fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {+ use Command::*;++ write!(+ f,+ "endpoint: {}{}",+ matches!(self, Unknown(_))+ .then_some("unknown ")+ .unwrap_or_default(),+ match self {+ Transfer(_) => "transfer",+ Play(_) => "play",+ Pause(_) => "pause",+ SeekTo(_) => "seek_to",+ SetShufflingContext(_) => "set_shuffling_context",+ SetRepeatingContext(_) => "set_repeating_context",+ SetRepeatingTrack(_) => "set_repeating_track",+ AddToQueue(_) => "add_to_queue",+ SetQueue(_) => "set_queue",+ SetOptions(_) => "set_options",+ UpdateContext(_) => "update_context",+ SkipNext(_) => "skip_next",+ SkipPrev(_) => "skip_prev",+ Resume(_) => "resume",+ Unknown(json) => {+ json.as_object()+ .and_then(|obj| obj.get("endpoint").map(|v| v.as_str()))+ .flatten()+ .unwrap_or("???")+ }+ }+ )+ }+}++#[derive(Clone, Debug, Deserialize)]+pub struct TransferCommand {+ #[serde(default, deserialize_with = "base64_proto")]+ pub data: Option<TransferState>,+ pub options: TransferOptions,+ pub from_device_identifier: String,+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Deserialize)]+pub struct PlayCommand {+ #[serde(deserialize_with = "json_proto")]+ pub context: Context,+ #[serde(deserialize_with = "json_proto")]+ pub play_origin: PlayOrigin,+ pub options: PlayOptions,+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Deserialize)]+pub struct PauseCommand {+ // does send options with it, but seems to be empty, investigate which options are send here+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Deserialize)]+pub struct SeekToCommand {+ pub value: u32,+ pub position: u32,+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Deserialize)]+pub struct SkipNextCommand {+ #[serde(default, deserialize_with = "option_json_proto")]+ pub track: Option<ProvidedTrack>,+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Deserialize)]+pub struct SetValueCommand {+ pub value: bool,+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Deserialize)]+pub struct AddToQueueCommand {+ #[serde(deserialize_with = "json_proto")]+ pub track: ProvidedTrack,+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Deserialize)]+pub struct SetQueueCommand {+ #[serde(deserialize_with = "vec_json_proto")]+ pub next_tracks: Vec<ProvidedTrack>,+ #[serde(deserialize_with = "vec_json_proto")]+ pub prev_tracks: Vec<ProvidedTrack>,+ // this queue revision is actually the last revision, so using it will not update the web ui+ // might be that internally they use the last revision to create the next revision+ pub queue_revision: String,+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Deserialize)]+pub struct SetOptionsCommand {+ pub shuffling_context: Option<bool>,+ pub repeating_context: Option<bool>,+ pub repeating_track: Option<bool>,+ pub options: Option<OptionsOptions>,+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Deserialize)]+pub struct UpdateContextCommand {+ #[serde(deserialize_with = "json_proto")]+ pub context: Context,+ pub session_id: Option<String>,+}++#[derive(Clone, Debug, Deserialize)]+pub struct GenericCommand {+ pub logging_params: LoggingParams,+}++#[derive(Clone, Debug, Default, Deserialize, Serialize)]+pub struct TransferOptions {+ #[serde(skip_serializing_if = "Option::is_none")]+ pub restore_paused: Option<String>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub restore_position: Option<String>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub restore_track: Option<String>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub retain_session: Option<String>,+}++#[derive(Clone, Debug, Deserialize)]+pub struct PlayOptions {+ pub skip_to: Option<SkipTo>,+ #[serde(default, deserialize_with = "option_json_proto")]+ pub player_options_override: Option<ContextPlayerOptionOverrides>,+ pub license: Option<String>,+ // possible to send wie web-api+ pub seek_to: Option<u32>,+ // mobile+ pub always_play_something: Option<bool>,+ pub audio_stream: Option<String>,+ pub initially_paused: Option<bool>,+ pub prefetch_level: Option<String>,+ pub system_initiated: Option<bool>,+}++#[derive(Clone, Debug, Deserialize)]+pub struct OptionsOptions {+ only_for_local_device: bool,+ override_restrictions: bool,+ system_initiated: bool,+}++#[derive(Clone, Debug, Deserialize, Default)]+pub struct SkipTo {+ pub track_uid: Option<String>,+ pub track_uri: Option<String>,+ pub track_index: Option<u32>,+}++#[derive(Clone, Debug, Deserialize)]+pub struct LoggingParams {+ pub interaction_ids: Option<Vec<String>>,+ pub device_identifier: Option<String>,+ pub command_initiated_time: Option<i64>,+ pub page_instance_ids: Option<Vec<String>>,+ pub command_id: Option<String>,+}diff --git a/native/vendor/librespot-core/src/deserialize_with.rs b/native/vendor/librespot-core/src/deserialize_with.rsnew file mode 100644index 0000000..22fc24a--- /dev/null+++ b/native/vendor/librespot-core/src/deserialize_with.rs@@ -0,0 +1,90 @@+use base64::Engine;+use base64::prelude::BASE64_STANDARD;+use protobuf::MessageFull;+use serde::de::{Error, Unexpected};+use serde::{Deserialize, Deserializer};+use serde_json::Value;++const IGNORE_UNKNOWN: protobuf_json_mapping::ParseOptions = protobuf_json_mapping::ParseOptions {+ ignore_unknown_fields: true,+ _future_options: (),+};++fn parse_value_to_msg<T: MessageFull>(+ value: &Value,+) -> Result<T, protobuf_json_mapping::ParseError> {+ protobuf_json_mapping::parse_from_str_with_options::<T>(&value.to_string(), &IGNORE_UNKNOWN)+}++pub fn base64_proto<'de, T, D>(de: D) -> Result<Option<T>, D::Error>+where+ T: MessageFull,+ D: Deserializer<'de>,+{+ let v: String = Deserialize::deserialize(de)?;+ let bytes = BASE64_STANDARD+ .decode(v)+ .map_err(|e| Error::custom(e.to_string()))?;++ T::parse_from_bytes(&bytes).map(Some).map_err(Error::custom)+}++pub fn json_proto<'de, T, D>(de: D) -> Result<T, D::Error>+where+ T: MessageFull,+ D: Deserializer<'de>,+{+ let v: Value = Deserialize::deserialize(de)?;+ parse_value_to_msg(&v).map_err(Error::custom)+}++pub fn option_json_proto<'de, T, D>(de: D) -> Result<Option<T>, D::Error>+where+ T: MessageFull,+ D: Deserializer<'de>,+{+ let v: Value = Deserialize::deserialize(de)?;+ parse_value_to_msg(&v).map(Some).map_err(Error::custom)+}++pub fn vec_json_proto<'de, T, D>(de: D) -> Result<Vec<T>, D::Error>+where+ T: MessageFull,+ D: Deserializer<'de>,+{+ let v: Value = Deserialize::deserialize(de)?;+ let array = match v {+ Value::Array(array) => array,+ _ => return Err(Error::custom("the value wasn't an array")),+ };++ let res = array+ .iter()+ .flat_map(parse_value_to_msg)+ .collect::<Vec<T>>();++ Ok(res)+}++pub fn boxed<'de, T, D>(de: D) -> Result<Box<T>, D::Error>+where+ T: Deserialize<'de>,+ D: Deserializer<'de>,+{+ let v: T = Deserialize::deserialize(de)?;+ Ok(Box::new(v))+}++pub fn bool_from_string<'de, D>(de: D) -> Result<bool, D::Error>+where+ D: Deserializer<'de>,+{+ match String::deserialize(de)?.as_ref() {+ "true" => Ok(true),+ "false" => Ok(false),+ other => Err(Error::invalid_value(+ Unexpected::Str(other),+ &"true or false",+ )),+ }+}diff --git a/native/vendor/librespot-core/src/diffie_hellman.rs b/native/vendor/librespot-core/src/diffie_hellman.rsnew file mode 100644index 0000000..283aa02--- /dev/null+++ b/native/vendor/librespot-core/src/diffie_hellman.rs@@ -0,0 +1,67 @@+use std::sync::LazyLock;++use num_bigint::BigUint;+use num_integer::Integer;+use num_traits::{One, Zero};+use rand::{CryptoRng, Rng};++static DH_GENERATOR: LazyLock<BigUint> = LazyLock::new(|| BigUint::from_bytes_be(&[0x02]));+static DH_PRIME: LazyLock<BigUint> = LazyLock::new(|| {+ BigUint::from_bytes_be(&[+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc9, 0x0f, 0xda, 0xa2, 0x21, 0x68, 0xc2,+ 0x34, 0xc4, 0xc6, 0x62, 0x8b, 0x80, 0xdc, 0x1c, 0xd1, 0x29, 0x02, 0x4e, 0x08, 0x8a, 0x67,+ 0xcc, 0x74, 0x02, 0x0b, 0xbe, 0xa6, 0x3b, 0x13, 0x9b, 0x22, 0x51, 0x4a, 0x08, 0x79, 0x8e,+ 0x34, 0x04, 0xdd, 0xef, 0x95, 0x19, 0xb3, 0xcd, 0x3a, 0x43, 0x1b, 0x30, 0x2b, 0x0a, 0x6d,+ 0xf2, 0x5f, 0x14, 0x37, 0x4f, 0xe1, 0x35, 0x6d, 0x6d, 0x51, 0xc2, 0x45, 0xe4, 0x85, 0xb5,+ 0x76, 0x62, 0x5e, 0x7e, 0xc6, 0xf4, 0x4c, 0x42, 0xe9, 0xa6, 0x3a, 0x36, 0x20, 0xff, 0xff,+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,+ ])+});++fn powm(base: &BigUint, exp: &BigUint, modulus: &BigUint) -> BigUint {+ let mut base = base.clone();+ let mut exp = exp.clone();+ let mut result: BigUint = One::one();++ while !exp.is_zero() {+ if exp.is_odd() {+ result = (result * &base) % modulus;+ }+ exp >>= 1;+ base = (&base * &base) % modulus;+ }++ result+}++pub struct DhLocalKeys {+ private_key: BigUint,+ public_key: BigUint,+}++impl DhLocalKeys {+ pub fn random<R: Rng + CryptoRng>(rng: &mut R) -> DhLocalKeys {+ let mut bytes = [0u8; 95];+ rng.fill_bytes(&mut bytes);+ let private_key = BigUint::from_bytes_le(&bytes);+ let public_key = powm(&DH_GENERATOR, &private_key, &DH_PRIME);++ DhLocalKeys {+ private_key,+ public_key,+ }+ }++ pub fn public_key(&self) -> Vec<u8> {+ self.public_key.to_bytes_be()+ }++ pub fn shared_secret(&self, remote_key: &[u8]) -> Vec<u8> {+ let shared_key = powm(+ &BigUint::from_bytes_be(remote_key),+ &self.private_key,+ &DH_PRIME,+ );+ shared_key.to_bytes_be()+ }+}diff --git a/native/vendor/librespot-core/src/error.rs b/native/vendor/librespot-core/src/error.rsnew file mode 100644index 0000000..7f29957--- /dev/null+++ b/native/vendor/librespot-core/src/error.rs@@ -0,0 +1,507 @@+use std::{+ error, fmt,+ num::{ParseIntError, TryFromIntError},+ str::Utf8Error,+ string::FromUtf8Error,+};++use base64::DecodeError;+use http::{+ header::{InvalidHeaderName, InvalidHeaderValue, ToStrError},+ method::InvalidMethod,+ status::InvalidStatusCode,+ uri::{InvalidUri, InvalidUriParts},+};+use protobuf::Error as ProtobufError;+use thiserror::Error;+use tokio::sync::{+ AcquireError, TryAcquireError, mpsc::error::SendError, oneshot::error::RecvError,+};+use url::ParseError;++use librespot_oauth::OAuthError;++#[derive(Debug)]+pub struct Error {+ pub kind: ErrorKind,+ pub error: Box<dyn error::Error + Send + Sync>,+}++#[derive(Clone, Copy, Debug, Eq, Error, Hash, Ord, PartialEq, PartialOrd)]+pub enum ErrorKind {+ #[error("The operation was cancelled by the caller")]+ Cancelled = 1,++ #[error("Unknown error")]+ Unknown = 2,++ #[error("Client specified an invalid argument")]+ InvalidArgument = 3,++ #[error("Deadline expired before operation could complete")]+ DeadlineExceeded = 4,++ #[error("Requested entity was not found")]+ NotFound = 5,++ #[error("Attempt to create entity that already exists")]+ AlreadyExists = 6,++ #[error("Permission denied")]+ PermissionDenied = 7,++ #[error("No valid authentication credentials")]+ Unauthenticated = 16,++ #[error("Resource has been exhausted")]+ ResourceExhausted = 8,++ #[error("Invalid state")]+ FailedPrecondition = 9,++ #[error("Operation aborted")]+ Aborted = 10,++ #[error("Operation attempted past the valid range")]+ OutOfRange = 11,++ #[error("Not implemented")]+ Unimplemented = 12,++ #[error("Internal error")]+ Internal = 13,++ #[error("Service unavailable")]+ Unavailable = 14,++ #[error("Unrecoverable data loss or corruption")]+ DataLoss = 15,++ #[error("Operation must not be used")]+ DoNotUse = -1,+}++#[derive(Debug, Error)]+struct ErrorMessage(String);++impl fmt::Display for ErrorMessage {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ write!(f, "{}", self.0)+ }+}++impl Error {+ pub fn new<E>(kind: ErrorKind, error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind,+ error: error.into(),+ }+ }++ pub fn aborted<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::Aborted,+ error: error.into(),+ }+ }++ pub fn already_exists<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::AlreadyExists,+ error: error.into(),+ }+ }++ pub fn cancelled<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::Cancelled,+ error: error.into(),+ }+ }++ pub fn data_loss<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::DataLoss,+ error: error.into(),+ }+ }++ pub fn deadline_exceeded<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::DeadlineExceeded,+ error: error.into(),+ }+ }++ pub fn do_not_use<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::DoNotUse,+ error: error.into(),+ }+ }++ pub fn failed_precondition<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::FailedPrecondition,+ error: error.into(),+ }+ }++ pub fn internal<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::Internal,+ error: error.into(),+ }+ }++ pub fn invalid_argument<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::InvalidArgument,+ error: error.into(),+ }+ }++ pub fn not_found<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::NotFound,+ error: error.into(),+ }+ }++ pub fn out_of_range<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::OutOfRange,+ error: error.into(),+ }+ }++ pub fn permission_denied<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::PermissionDenied,+ error: error.into(),+ }+ }++ pub fn resource_exhausted<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::ResourceExhausted,+ error: error.into(),+ }+ }++ pub fn unauthenticated<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::Unauthenticated,+ error: error.into(),+ }+ }++ pub fn unavailable<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::Unavailable,+ error: error.into(),+ }+ }++ pub fn unimplemented<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::Unimplemented,+ error: error.into(),+ }+ }++ pub fn unknown<E>(error: E) -> Error+ where+ E: Into<Box<dyn error::Error + Send + Sync>>,+ {+ Self {+ kind: ErrorKind::Unknown,+ error: error.into(),+ }+ }+}++impl std::error::Error for Error {+ fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {+ self.error.source()+ }+}++impl fmt::Display for Error {+ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {+ write!(fmt, "{} {{ ", self.kind)?;+ self.error.fmt(fmt)?;+ write!(fmt, " }}")+ }+}++impl From<OAuthError> for Error {+ fn from(err: OAuthError) -> Self {+ use OAuthError::*;+ match err {+ AuthCodeBadUri { .. }+ | AuthCodeNotFound { .. }+ | AuthCodeListenerRead+ | AuthCodeListenerParse => Error::unavailable(err),+ AuthCodeStdinRead+ | AuthCodeListenerBind { .. }+ | AuthCodeListenerTerminated+ | AuthCodeListenerWrite+ | Recv+ | ExchangeCode { .. } => Error::internal(err),+ _ => Error::failed_precondition(err),+ }+ }+}++impl From<DecodeError> for Error {+ fn from(err: DecodeError) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<http::Error> for Error {+ fn from(err: http::Error) -> Self {+ if err.is::<InvalidHeaderName>()+ || err.is::<InvalidHeaderValue>()+ || err.is::<InvalidMethod>()+ || err.is::<InvalidUri>()+ || err.is::<InvalidUriParts>()+ {+ return Self::new(ErrorKind::InvalidArgument, err);+ }++ if err.is::<InvalidStatusCode>() {+ return Self::new(ErrorKind::FailedPrecondition, err);+ }++ Self::new(ErrorKind::Unknown, err)+ }+}++impl From<hyper::Error> for Error {+ fn from(err: hyper::Error) -> Self {+ if err.is_parse() || err.is_parse_status() || err.is_user() {+ return Self::new(ErrorKind::Internal, err);+ }++ if err.is_canceled() {+ return Self::new(ErrorKind::Cancelled, err);+ }++ if err.is_incomplete_message() {+ return Self::new(ErrorKind::DataLoss, err);+ }++ if err.is_body_write_aborted() || err.is_closed() {+ return Self::new(ErrorKind::Aborted, err);+ }++ if err.is_timeout() {+ return Self::new(ErrorKind::DeadlineExceeded, err);+ }++ Self::new(ErrorKind::Unknown, err)+ }+}++impl From<hyper_util::client::legacy::Error> for Error {+ fn from(err: hyper_util::client::legacy::Error) -> Self {+ if err.is_connect() {+ return Self::new(ErrorKind::Unavailable, err);+ }++ Self::new(ErrorKind::Unknown, err)+ }+}++impl From<time::error::Parse> for Error {+ fn from(err: time::error::Parse) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<quick_xml::Error> for Error {+ fn from(err: quick_xml::Error) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<serde_json::Error> for Error {+ fn from(err: serde_json::Error) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<std::io::Error> for Error {+ fn from(err: std::io::Error) -> Self {+ use std::io::ErrorKind as IoErrorKind;+ match err.kind() {+ IoErrorKind::NotFound => Self::new(ErrorKind::NotFound, err),+ IoErrorKind::PermissionDenied => Self::new(ErrorKind::PermissionDenied, err),+ IoErrorKind::AddrInUse | IoErrorKind::AlreadyExists => {+ Self::new(ErrorKind::AlreadyExists, err)+ }+ IoErrorKind::AddrNotAvailable+ | IoErrorKind::ConnectionRefused+ | IoErrorKind::NotConnected => Self::new(ErrorKind::Unavailable, err),+ IoErrorKind::BrokenPipe+ | IoErrorKind::ConnectionReset+ | IoErrorKind::ConnectionAborted => Self::new(ErrorKind::Aborted, err),+ IoErrorKind::Interrupted | IoErrorKind::WouldBlock => {+ Self::new(ErrorKind::Cancelled, err)+ }+ IoErrorKind::InvalidData | IoErrorKind::UnexpectedEof => {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+ IoErrorKind::TimedOut => Self::new(ErrorKind::DeadlineExceeded, err),+ IoErrorKind::InvalidInput => Self::new(ErrorKind::InvalidArgument, err),+ IoErrorKind::WriteZero => Self::new(ErrorKind::ResourceExhausted, err),+ _ => Self::new(ErrorKind::Unknown, err),+ }+ }+}++impl From<FromUtf8Error> for Error {+ fn from(err: FromUtf8Error) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<InvalidHeaderValue> for Error {+ fn from(err: InvalidHeaderValue) -> Self {+ Self::new(ErrorKind::InvalidArgument, err)+ }+}++impl From<InvalidUri> for Error {+ fn from(err: InvalidUri) -> Self {+ Self::new(ErrorKind::InvalidArgument, err)+ }+}++impl From<ParseError> for Error {+ fn from(err: ParseError) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<ParseIntError> for Error {+ fn from(err: ParseIntError) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<TryFromIntError> for Error {+ fn from(err: TryFromIntError) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<ProtobufError> for Error {+ fn from(err: ProtobufError) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<RecvError> for Error {+ fn from(err: RecvError) -> Self {+ Self::new(ErrorKind::Internal, err)+ }+}++impl<T> From<SendError<T>> for Error {+ fn from(err: SendError<T>) -> Self {+ Self {+ kind: ErrorKind::Internal,+ error: ErrorMessage(err.to_string()).into(),+ }+ }+}++impl From<AcquireError> for Error {+ fn from(err: AcquireError) -> Self {+ Self {+ kind: ErrorKind::ResourceExhausted,+ error: ErrorMessage(err.to_string()).into(),+ }+ }+}++impl From<TryAcquireError> for Error {+ fn from(err: TryAcquireError) -> Self {+ Self {+ kind: ErrorKind::ResourceExhausted,+ error: ErrorMessage(err.to_string()).into(),+ }+ }+}++impl From<ToStrError> for Error {+ fn from(err: ToStrError) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<Utf8Error> for Error {+ fn from(err: Utf8Error) -> Self {+ Self::new(ErrorKind::FailedPrecondition, err)+ }+}++impl From<protobuf_json_mapping::ParseError> for Error {+ fn from(err: protobuf_json_mapping::ParseError) -> Self {+ Self::failed_precondition(err)+ }+}diff --git a/native/vendor/librespot-core/src/file_id.rs b/native/vendor/librespot-core/src/file_id.rsnew file mode 100644index 0000000..e513d97--- /dev/null+++ b/native/vendor/librespot-core/src/file_id.rs@@ -0,0 +1,62 @@+use std::fmt;++use librespot_protocol as protocol;++use crate::{Error, spotify_id::to_base16};++const RAW_LEN: usize = 20;++#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]+pub struct FileId(pub [u8; RAW_LEN]);++impl FileId {+ pub fn from_raw(src: &[u8]) -> FileId {+ let mut dst = [0u8; RAW_LEN];+ let len = src.len();+ // some tracks return 16 instead of 20 bytes: #1188+ if len <= RAW_LEN {+ dst[..len].clone_from_slice(src);+ }+ FileId(dst)+ }++ #[allow(clippy::wrong_self_convention)]+ pub fn to_base16(&self) -> Result<String, Error> {+ to_base16(&self.0, &mut [0u8; 40])+ }+}++impl fmt::Debug for FileId {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ f.debug_tuple("FileId").field(&self.to_base16()).finish()+ }+}++impl fmt::Display for FileId {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ f.write_str(&self.to_base16().unwrap_or_default())+ }+}++impl From<&[u8]> for FileId {+ fn from(src: &[u8]) -> Self {+ Self::from_raw(src)+ }+}+impl From<&protocol::metadata::Image> for FileId {+ fn from(image: &protocol::metadata::Image) -> Self {+ Self::from(image.file_id())+ }+}++impl From<&protocol::metadata::AudioFile> for FileId {+ fn from(file: &protocol::metadata::AudioFile) -> Self {+ Self::from(file.file_id())+ }+}++impl From<&protocol::metadata::VideoFile> for FileId {+ fn from(video: &protocol::metadata::VideoFile) -> Self {+ Self::from(video.file_id())+ }+}diff --git a/native/vendor/librespot-core/src/http_client.rs b/native/vendor/librespot-core/src/http_client.rsnew file mode 100644index 0000000..bbd6383--- /dev/null+++ b/native/vendor/librespot-core/src/http_client.rs@@ -0,0 +1,304 @@+use std::{+ sync::OnceLock,+ time::{Duration, Instant},+};++use bytes::Bytes;+use futures_util::{FutureExt, future::IntoStream};+use governor::{+ Quota, RateLimiter, clock::MonotonicClock, middleware::NoOpMiddleware,+ state::keyed::DefaultKeyedStateStore,+};+use http::{Uri, header::HeaderValue};+use http_body_util::{BodyExt, Full};+use hyper::{HeaderMap, Request, Response, StatusCode, body::Incoming, header::USER_AGENT};+use hyper_proxy2::{Intercept, Proxy, ProxyConnector};+use hyper_util::{+ client::legacy::{Client, ResponseFuture, connect::HttpConnector},+ rt::TokioExecutor,+};+use nonzero_ext::nonzero;+use thiserror::Error;+use url::Url;++#[cfg(all(feature = "__rustls", not(feature = "native-tls")))]+use hyper_rustls::{HttpsConnector, HttpsConnectorBuilder};+#[cfg(all(feature = "native-tls", not(feature = "__rustls")))]+use hyper_tls::HttpsConnector;++use crate::{+ Error,+ config::{OS, os_version},+ date::Date,+ version::{FALLBACK_USER_AGENT, VERSION_STRING, spotify_version},+};++// The 30 seconds interval is documented by Spotify, but the calls per interval+// is a guesstimate and probably subject to licensing (purchasing extra calls)+// and may change at any time.+pub const RATE_LIMIT_INTERVAL: Duration = Duration::from_secs(30);+pub const RATE_LIMIT_MAX_WAIT: Duration = Duration::from_secs(10);+pub const RATE_LIMIT_CALLS_PER_INTERVAL: u32 = 300;++#[derive(Debug, Error)]+pub enum HttpClientError {+ #[error("Response status code: {0}")]+ StatusCode(hyper::StatusCode),+}++impl From<HttpClientError> for Error {+ fn from(err: HttpClientError) -> Self {+ match err {+ HttpClientError::StatusCode(code) => {+ // not exhaustive, but what reasonably could be expected+ match code {+ StatusCode::GATEWAY_TIMEOUT | StatusCode::REQUEST_TIMEOUT => {+ Error::deadline_exceeded(err)+ }+ StatusCode::GONE+ | StatusCode::NOT_FOUND+ | StatusCode::MOVED_PERMANENTLY+ | StatusCode::PERMANENT_REDIRECT+ | StatusCode::TEMPORARY_REDIRECT => Error::not_found(err),+ StatusCode::FORBIDDEN | StatusCode::PAYMENT_REQUIRED => {+ Error::permission_denied(err)+ }+ StatusCode::NETWORK_AUTHENTICATION_REQUIRED+ | StatusCode::PROXY_AUTHENTICATION_REQUIRED+ | StatusCode::UNAUTHORIZED => Error::unauthenticated(err),+ StatusCode::EXPECTATION_FAILED+ | StatusCode::PRECONDITION_FAILED+ | StatusCode::PRECONDITION_REQUIRED => Error::failed_precondition(err),+ StatusCode::RANGE_NOT_SATISFIABLE => Error::out_of_range(err),+ StatusCode::INTERNAL_SERVER_ERROR+ | StatusCode::MISDIRECTED_REQUEST+ | StatusCode::SERVICE_UNAVAILABLE+ | StatusCode::UNAVAILABLE_FOR_LEGAL_REASONS => Error::unavailable(err),+ StatusCode::BAD_REQUEST+ | StatusCode::HTTP_VERSION_NOT_SUPPORTED+ | StatusCode::LENGTH_REQUIRED+ | StatusCode::METHOD_NOT_ALLOWED+ | StatusCode::NOT_ACCEPTABLE+ | StatusCode::PAYLOAD_TOO_LARGE+ | StatusCode::REQUEST_HEADER_FIELDS_TOO_LARGE+ | StatusCode::UNSUPPORTED_MEDIA_TYPE+ | StatusCode::URI_TOO_LONG => Error::invalid_argument(err),+ StatusCode::TOO_MANY_REQUESTS => Error::resource_exhausted(err),+ StatusCode::NOT_IMPLEMENTED => Error::unimplemented(err),+ _ => Error::unknown(err),+ }+ }+ }+ }+}++type HyperClient = Client<ProxyConnector<HttpsConnector<HttpConnector>>, Full<bytes::Bytes>>;++pub struct HttpClient {+ user_agent: HeaderValue,+ proxy_url: Option<Url>,+ hyper_client: OnceLock<HyperClient>,++ rate_limiter:+ RateLimiter<String, DefaultKeyedStateStore<String>, MonotonicClock, NoOpMiddleware>,+}++impl HttpClient {+ pub fn new(proxy_url: Option<&Url>) -> Self {+ let zero_str = String::from("0");+ let os_version = os_version();++ let (spotify_platform, os_version) = match OS {+ "android" => ("Android", os_version),+ "ios" => ("iOS", os_version),+ "macos" => ("OSX", zero_str),+ "windows" => ("Win32", zero_str),+ _ => ("Linux", zero_str),+ };++ let user_agent_str = &format!(+ "Spotify/{} {}/{} ({})",+ spotify_version(),+ spotify_platform,+ os_version,+ VERSION_STRING+ );++ let user_agent = HeaderValue::from_str(user_agent_str).unwrap_or_else(|err| {+ error!("Invalid user agent <{user_agent_str}>: {err}");+ HeaderValue::from_static(FALLBACK_USER_AGENT)+ });++ let replenish_interval_ns =+ RATE_LIMIT_INTERVAL.as_nanos() / RATE_LIMIT_CALLS_PER_INTERVAL as u128;+ let quota = Quota::with_period(Duration::from_nanos(replenish_interval_ns as u64))+ .expect("replenish interval should be valid")+ .allow_burst(nonzero![RATE_LIMIT_CALLS_PER_INTERVAL]);+ let rate_limiter = RateLimiter::keyed(quota);++ Self {+ user_agent,+ proxy_url: proxy_url.cloned(),+ hyper_client: OnceLock::new(),+ rate_limiter,+ }+ }++ fn try_create_hyper_client(proxy_url: Option<&Url>) -> Result<HyperClient, Error> {+ // configuring TLS is expensive and should be done once per process++ #[cfg(all(feature = "__rustls", not(feature = "native-tls")))]+ let https_connector = {+ #[cfg(feature = "rustls-tls-native-roots")]+ let tls = HttpsConnectorBuilder::new().with_native_roots()?;+ #[cfg(feature = "rustls-tls-webpki-roots")]+ let tls = HttpsConnectorBuilder::new().with_webpki_roots();+ tls.https_or_http().enable_http1().enable_http2().build()+ };++ #[cfg(all(feature = "native-tls", not(feature = "__rustls")))]+ let https_connector = HttpsConnector::new();++ // When not using a proxy a dummy proxy is configured that will not intercept any traffic.+ // This prevents needing to carry the Client Connector generics through the whole project+ let proxy = match &proxy_url {+ Some(proxy_url) => Proxy::new(Intercept::All, proxy_url.to_string().parse()?),+ None => Proxy::new(Intercept::None, Uri::from_static("0.0.0.0")),+ };+ let proxy_connector = ProxyConnector::from_proxy(https_connector, proxy)?;++ let client = Client::builder(TokioExecutor::new())+ .http2_adaptive_window(true)+ .build(proxy_connector);+ Ok(client)+ }++ fn hyper_client(&self) -> &HyperClient {+ self.hyper_client+ .get_or_init(|| Self::try_create_hyper_client(self.proxy_url.as_ref()).unwrap())+ }++ pub async fn request(&self, req: Request<Bytes>) -> Result<Response<Incoming>, Error> {+ debug!("Requesting {}", req.uri());++ // `Request` does not implement `Clone` because its `Body` may be a single-shot stream.+ // As correct as that may be technically, we now need all this boilerplate to clone it+ // ourselves, as any `Request` is moved in the loop.+ let (parts, body_as_bytes) = req.into_parts();++ loop {+ let mut req = Request::builder()+ .method(parts.method.clone())+ .uri(parts.uri.clone())+ .version(parts.version)+ .body(body_as_bytes.clone())?;+ *req.headers_mut() = parts.headers.clone();++ let request = self.request_fut(req)?;+ let response = request.await;++ if let Ok(response) = &response {+ let code = response.status();++ if code == StatusCode::TOO_MANY_REQUESTS {+ if let Some(duration) = Self::get_retry_after(response.headers()) {+ warn!(+ "Rate limited by service, retrying in {} seconds...",+ duration.as_secs()+ );+ tokio::time::sleep(duration).await;+ continue;+ }+ }++ if !code.is_success() {+ return Err(HttpClientError::StatusCode(code).into());+ }+ }++ let response = response?;+ return Ok(response);+ }+ }++ pub async fn request_body(&self, req: Request<Bytes>) -> Result<Bytes, Error> {+ let response = self.request(req).await?;+ Ok(response.into_body().collect().await?.to_bytes())+ }++ pub fn request_stream(&self, req: Request<Bytes>) -> Result<IntoStream<ResponseFuture>, Error> {+ Ok(self.request_fut(req)?.into_stream())+ }++ pub fn request_fut(&self, mut req: Request<Bytes>) -> Result<ResponseFuture, Error> {+ let headers_mut = req.headers_mut();+ headers_mut.insert(USER_AGENT, self.user_agent.clone());++ // For rate limiting we cannot *just* depend on Spotify sending us HTTP/429+ // Retry-After headers. For example, when there is a service interruption+ // and HTTP/500 is returned, we don't want to DoS the Spotify infrastructure.+ let domain = match req.uri().host() {+ Some(host) => {+ // strip the prefix from *.domain.tld (assume rate limit is per domain, not subdomain)+ let mut parts = host+ .split('.')+ .map(|s| s.to_string())+ .collect::<Vec<String>>();+ let n = parts.len().saturating_sub(2);+ parts.drain(n..).collect()+ }+ None => String::from(""),+ };+ self.rate_limiter.check_key(&domain).map_err(|e| {+ Error::resource_exhausted(format!(+ "rate limited for at least another {} seconds",+ e.wait_time_from(Instant::now()).as_secs()+ ))+ })?;++ Ok(self.hyper_client().request(req.map(Full::new)))+ }++ pub fn get_retry_after(headers: &HeaderMap<HeaderValue>) -> Option<Duration> {+ let now = Date::now_utc().as_timestamp_ms();++ let mut retry_after_ms = None;+ if let Some(header_val) = headers.get("X-RateLimit-Next") {+ // *.akamaized.net (Akamai)+ if let Ok(date_str) = header_val.to_str() {+ if let Ok(target) = Date::from_iso8601(date_str) {+ retry_after_ms = Some(target.as_timestamp_ms().saturating_sub(now))+ }+ }+ } else if let Some(header_val) = headers.get("Fastly-RateLimit-Reset") {+ // *.scdn.co (Fastly)+ if let Ok(timestamp) = header_val.to_str() {+ if let Ok(target) = timestamp.parse::<i64>() {+ retry_after_ms = Some(target.saturating_sub(now))+ }+ }+ } else if let Some(header_val) = headers.get("Retry-After") {+ // Generic RFC compliant (including *.spotify.com)+ if let Ok(retry_after) = header_val.to_str() {+ if let Ok(duration) = retry_after.parse::<i64>() {+ retry_after_ms = Some(duration * 1000)+ }+ }+ }++ if let Some(retry_after) = retry_after_ms {+ let duration = Duration::from_millis(retry_after as u64);+ if duration <= RATE_LIMIT_MAX_WAIT {+ return Some(duration);+ } else {+ debug!(+ "Waiting {} seconds would exceed {} second limit",+ duration.as_secs(),+ RATE_LIMIT_MAX_WAIT.as_secs()+ );+ }+ }++ None+ }+}diff --git a/native/vendor/librespot-core/src/lib.rs b/native/vendor/librespot-core/src/lib.rsnew file mode 100644index 0000000..f4ead23--- /dev/null+++ b/native/vendor/librespot-core/src/lib.rs@@ -0,0 +1,46 @@+#[macro_use]+extern crate log;++use librespot_protocol as protocol;++#[macro_use]+mod component;++pub mod apresolve;+pub mod audio_key;+pub mod authentication;+pub mod cache;+pub mod cdn_url;+pub mod channel;+pub mod config;+mod connection;+pub mod date;+#[allow(dead_code)]+pub mod dealer;+pub mod deserialize_with;+#[doc(hidden)]+pub mod diffie_hellman;+pub mod error;+pub mod file_id;+pub mod http_client;+pub mod login5;+pub mod mercury;+pub mod packet;+mod proxytunnel;+pub mod session;+mod socket;+#[allow(dead_code)]+pub mod spclient;+pub mod spotify_id;+pub mod spotify_uri;+pub mod token;+#[doc(hidden)]+pub mod util;+pub mod version;++pub use config::SessionConfig;+pub use error::Error;+pub use file_id::FileId;+pub use session::Session;+pub use spotify_id::SpotifyId;+pub use spotify_uri::SpotifyUri;diff --git a/native/vendor/librespot-core/src/login5.rs b/native/vendor/librespot-core/src/login5.rsnew file mode 100644index 0000000..9cf7133--- /dev/null+++ b/native/vendor/librespot-core/src/login5.rs@@ -0,0 +1,270 @@+use crate::config::OS;+use crate::spclient::CLIENT_TOKEN;+use crate::token::Token;+use crate::{Error, SessionConfig, util};+use bytes::Bytes;+use http::{HeaderValue, Method, Request, header::ACCEPT};+use librespot_protocol::login5::login_response::Response;+use librespot_protocol::{+ client_info::ClientInfo,+ credentials::{Password, StoredCredential},+ hashcash::HashcashSolution,+ login5::{+ ChallengeSolution, LoginError, LoginOk, LoginRequest, LoginResponse,+ login_request::Login_method,+ },+};+use protobuf::well_known_types::duration::Duration as ProtoDuration;+use protobuf::{Message, MessageField};+use std::time::{Duration, SystemTime};+use thiserror::Error;+use tokio::time::sleep;++const MAX_LOGIN_TRIES: u8 = 3;+const LOGIN_TIMEOUT: Duration = Duration::from_secs(3);++component! {+ Login5Manager : Login5ManagerInner {+ auth_token: Option<Token> = None,+ }+}++#[derive(Debug, Error)]+enum Login5Error {+ #[error("Login request was denied: {0:?}")]+ FaultyRequest(LoginError),+ #[error("Code challenge is not supported")]+ CodeChallenge,+ #[error("Tried to acquire token without stored credentials")]+ NoStoredCredentials,+ #[error("Couldn't successfully authenticate after {0} times")]+ RetriesFailed(u8),+ #[error("Login via login5 is only allowed for android or ios")]+ OnlyForMobile,+}++impl From<Login5Error> for Error {+ fn from(err: Login5Error) -> Self {+ match err {+ Login5Error::NoStoredCredentials | Login5Error::OnlyForMobile => {+ Error::unavailable(err)+ }+ Login5Error::RetriesFailed(_) | Login5Error::FaultyRequest(_) => {+ Error::failed_precondition(err)+ }+ Login5Error::CodeChallenge => Error::unimplemented(err),+ }+ }+}++impl Login5Manager {+ async fn request(&self, message: &LoginRequest) -> Result<Bytes, Error> {+ let client_token = self.session().spclient().client_token().await?;+ let body = message.write_to_bytes()?;++ let request = Request::builder()+ .method(&Method::POST)+ .uri("https://login5.spotify.com/v3/login")+ .header(ACCEPT, HeaderValue::from_static("application/x-protobuf"))+ .header(CLIENT_TOKEN, HeaderValue::from_str(&client_token)?)+ .body(body.into())?;++ self.session().http_client().request_body(request).await+ }++ async fn login5_request(&self, login: Login_method) -> Result<LoginOk, Error> {+ let client_id = match OS {+ "macos" | "windows" => self.session().client_id(),+ // StoredCredential is used to get an access_token from Session credentials.+ // Using the session client_id allows user to use Keymaster on Android/IOS+ // if their Credentials::with_access_token was obtained there, assuming+ // they have overriden the SessionConfig::client_id with the Keymaster's.+ _ if matches!(login, Login_method::StoredCredential(_)) => self.session().client_id(),+ _ => SessionConfig::default().client_id,+ };++ let mut login_request = LoginRequest {+ client_info: MessageField::some(ClientInfo {+ client_id,+ device_id: self.session().device_id().to_string(),+ special_fields: Default::default(),+ }),+ login_method: Some(login),+ ..Default::default()+ };++ let mut response = self.request(&login_request).await?;+ let mut count = 0;++ loop {+ count += 1;++ let message = LoginResponse::parse_from_bytes(&response)?;+ if let Some(Response::Ok(ok)) = message.response {+ break Ok(ok);+ }++ if message.has_error() {+ match message.error() {+ LoginError::TIMEOUT | LoginError::TOO_MANY_ATTEMPTS => {+ sleep(LOGIN_TIMEOUT).await+ }+ others => return Err(Login5Error::FaultyRequest(others).into()),+ }+ }++ if message.has_challenges() {+ // handles the challenges, and updates the login context with the response+ Self::handle_challenges(&mut login_request, message)?;+ }++ if count < MAX_LOGIN_TRIES {+ response = self.request(&login_request).await?;+ } else {+ return Err(Login5Error::RetriesFailed(MAX_LOGIN_TRIES).into());+ }+ }+ }++ /// Login for android and ios+ ///+ /// This request doesn't require a connected session as it is the entrypoint for android or ios+ ///+ /// This request will only work when:+ /// - client_id => android or ios | can be easily adjusted in [SessionConfig::default_for_os]+ /// - user-agent => android or ios | has to be adjusted in [HttpClient::new](crate::http_client::HttpClient::new)+ pub async fn login(+ &self,+ id: impl Into<String>,+ password: impl Into<String>,+ ) -> Result<(Token, Vec<u8>), Error> {+ if !matches!(OS, "android" | "ios") {+ // by manipulating the user-agent and client-id it can be also used/tested on desktop+ return Err(Login5Error::OnlyForMobile.into());+ }++ let method = Login_method::Password(Password {+ id: id.into(),+ password: password.into(),+ ..Default::default()+ });++ let token_response = self.login5_request(method).await?;+ let auth_token = Self::token_from_login(+ token_response.access_token,+ token_response.access_token_expires_in,+ );++ Ok((auth_token, token_response.stored_credential))+ }++ /// Retrieve the access_token via login5+ ///+ /// This request will only work when the store credentials match the client-id. Meaning that+ /// stored credentials generated with the keymaster client-id will not work, for example, with+ /// the android client-id.+ pub async fn auth_token(&self) -> Result<Token, Error> {+ let auth_data = self.session().auth_data();+ if auth_data.is_empty() {+ return Err(Login5Error::NoStoredCredentials.into());+ }++ let auth_token = self.lock(|inner| {+ if let Some(token) = &inner.auth_token {+ if token.is_expired() {+ inner.auth_token = None;+ }+ }+ inner.auth_token.clone()+ });++ if let Some(auth_token) = auth_token {+ return Ok(auth_token);+ }++ let method = Login_method::StoredCredential(StoredCredential {+ username: self.session().username().to_string(),+ data: auth_data,+ ..Default::default()+ });++ let token_response = self.login5_request(method).await?;+ let auth_token = Self::token_from_login(+ token_response.access_token,+ token_response.access_token_expires_in,+ );++ let token = self.lock(|inner| {+ inner.auth_token = Some(auth_token.clone());+ inner.auth_token.clone()+ });++ trace!("Got auth token: {auth_token:?}");++ token.ok_or(Login5Error::NoStoredCredentials.into())+ }++ fn handle_challenges(+ login_request: &mut LoginRequest,+ message: LoginResponse,+ ) -> Result<(), Error> {+ let challenges = message.challenges();+ debug!(+ "Received {} challenges, solving...",+ challenges.challenges.len()+ );++ for challenge in &challenges.challenges {+ if challenge.has_code() {+ return Err(Login5Error::CodeChallenge.into());+ } else if !challenge.has_hashcash() {+ debug!("Challenge was empty, skipping...");+ continue;+ }++ let hash_cash_challenge = challenge.hashcash();++ let mut suffix = [0u8; 0x10];+ let duration = util::solve_hash_cash(+ &message.login_context,+ &hash_cash_challenge.prefix,+ hash_cash_challenge.length,+ &mut suffix,+ )?;++ let (seconds, nanos) = (duration.as_secs() as i64, duration.subsec_nanos() as i32);+ debug!("Solving hashcash took {seconds}s {nanos}ns");++ let mut solution = ChallengeSolution::new();+ solution.set_hashcash(HashcashSolution {+ suffix: Vec::from(suffix),+ duration: MessageField::some(ProtoDuration {+ seconds,+ nanos,+ ..Default::default()+ }),+ ..Default::default()+ });++ login_request+ .challenge_solutions+ .mut_or_insert_default()+ .solutions+ .push(solution);+ }++ login_request.login_context = message.login_context;++ Ok(())+ }++ fn token_from_login(token: String, expires_in: i32) -> Token {+ Token {+ access_token: token,+ expires_in: Duration::from_secs(expires_in.try_into().unwrap_or(3600)),+ token_type: "Bearer".to_string(),+ scopes: vec![],+ timestamp: SystemTime::now(),+ }+ }+}diff --git a/native/vendor/librespot-core/src/mercury/mod.rs b/native/vendor/librespot-core/src/mercury/mod.rsnew file mode 100644index 0000000..b32aeb1--- /dev/null+++ b/native/vendor/librespot-core/src/mercury/mod.rs@@ -0,0 +1,306 @@+use std::{+ collections::HashMap,+ future::Future,+ pin::Pin,+ task::{Context, Poll},+};++use byteorder::{BigEndian, ByteOrder};+use bytes::Bytes;+use futures_util::FutureExt;+use protobuf::Message;+use tokio::sync::{mpsc, oneshot};++use crate::{Error, packet::PacketType, protocol, util::SeqGenerator};++mod types;+pub use self::types::*;++mod sender;+pub use self::sender::MercurySender;++component! {+ MercuryManager : MercuryManagerInner {+ sequence: SeqGenerator<u64> = SeqGenerator::new(0),+ pending: HashMap<Vec<u8>, MercuryPending> = HashMap::new(),+ subscriptions: Vec<(String, mpsc::UnboundedSender<MercuryResponse>)> = Vec::new(),+ invalid: bool = false,+ }+}++pub struct MercuryPending {+ parts: Vec<Vec<u8>>,+ partial: Option<Vec<u8>>,+ callback: Option<oneshot::Sender<Result<MercuryResponse, Error>>>,+}++pub struct MercuryFuture<T> {+ receiver: oneshot::Receiver<Result<T, Error>>,+}++impl<T> Future for MercuryFuture<T> {+ type Output = Result<T, Error>;++ fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {+ self.receiver.poll_unpin(cx)?+ }+}++impl MercuryManager {+ fn next_seq(&self) -> Vec<u8> {+ let mut seq = vec![0u8; 8];+ BigEndian::write_u64(&mut seq, self.lock(|inner| inner.sequence.get()));+ seq+ }++ fn request(&self, req: MercuryRequest) -> Result<MercuryFuture<MercuryResponse>, Error> {+ let (tx, rx) = oneshot::channel();++ let pending = MercuryPending {+ parts: Vec::new(),+ partial: None,+ callback: Some(tx),+ };++ let seq = self.next_seq();+ self.lock(|inner| {+ if !inner.invalid {+ inner.pending.insert(seq.clone(), pending);+ }+ });++ let cmd = req.method.command();+ let data = req.encode(&seq)?;++ self.session().send_packet(cmd, data)?;+ Ok(MercuryFuture { receiver: rx })+ }++ pub fn get<T: Into<String>>(&self, uri: T) -> Result<MercuryFuture<MercuryResponse>, Error> {+ self.request(MercuryRequest {+ method: MercuryMethod::Get,+ uri: uri.into(),+ content_type: None,+ payload: Vec::new(),+ })+ }++ pub fn send<T: Into<String>>(+ &self,+ uri: T,+ data: Vec<u8>,+ ) -> Result<MercuryFuture<MercuryResponse>, Error> {+ self.request(MercuryRequest {+ method: MercuryMethod::Send,+ uri: uri.into(),+ content_type: None,+ payload: vec![data],+ })+ }++ pub fn sender<T: Into<String>>(&self, uri: T) -> MercurySender {+ MercurySender::new(self.clone(), uri.into())+ }++ pub fn subscribe<T: Into<String>>(+ &self,+ uri: T,+ ) -> impl Future<Output = Result<mpsc::UnboundedReceiver<MercuryResponse>, Error>> + 'static+ {+ let uri = uri.into();+ let request = self.request(MercuryRequest {+ method: MercuryMethod::Sub,+ uri: uri.clone(),+ content_type: None,+ payload: Vec::new(),+ });++ let manager = self.clone();+ async move {+ let response = request?.await?;++ let (tx, rx) = mpsc::unbounded_channel();++ manager.lock(move |inner| {+ if !inner.invalid {+ debug!("subscribed uri={} count={}", uri, response.payload.len());+ if !response.payload.is_empty() {+ // Old subscription protocol, watch the provided list of URIs+ for sub in response.payload {+ match protocol::pubsub::Subscription::parse_from_bytes(&sub) {+ Ok(mut sub) => {+ let sub_uri = sub.take_uri();++ debug!("subscribed sub_uri={sub_uri}");++ inner.subscriptions.push((sub_uri, tx.clone()));+ }+ Err(e) => {+ error!("could not subscribe to {uri}: {e}");+ }+ }+ }+ } else {+ // New subscription protocol, watch the requested URI+ inner.subscriptions.push((uri, tx));+ }+ }+ });++ Ok(rx)+ }+ }++ pub fn listen_for<T: Into<String>>(+ &self,+ uri: T,+ ) -> impl Future<Output = mpsc::UnboundedReceiver<MercuryResponse>> + 'static {+ let uri = uri.into();++ let manager = self.clone();+ async move {+ let (tx, rx) = mpsc::unbounded_channel();++ manager.lock(move |inner| {+ if !inner.invalid {+ debug!("listening to uri={uri}");+ inner.subscriptions.push((uri, tx));+ }+ });++ rx+ }+ }++ pub(crate) fn dispatch(&self, cmd: PacketType, mut data: Bytes) -> Result<(), Error> {+ let seq_len = BigEndian::read_u16(data.split_to(2).as_ref()) as usize;+ let seq = data.split_to(seq_len).as_ref().to_owned();++ let flags = data.split_to(1).as_ref()[0];+ let count = BigEndian::read_u16(data.split_to(2).as_ref()) as usize;++ let pending = self.lock(|inner| inner.pending.remove(&seq));++ let mut pending = match pending {+ Some(pending) => pending,+ None => {+ if let PacketType::MercuryEvent = cmd {+ MercuryPending {+ parts: Vec::new(),+ partial: None,+ callback: None,+ }+ } else {+ warn!("Ignore seq {:?} cmd {:x}", seq, cmd as u8);+ return Err(MercuryError::Command(cmd).into());+ }+ }+ };++ for i in 0..count {+ let mut part = Self::parse_part(&mut data);+ if let Some(mut partial) = pending.partial.take() {+ partial.extend_from_slice(&part);+ part = partial;+ }++ if i == count - 1 && (flags == 2) {+ pending.partial = Some(part)+ } else {+ pending.parts.push(part);+ }+ }++ if flags == 0x1 {+ self.complete_request(cmd, pending)?;+ } else {+ self.lock(move |inner| inner.pending.insert(seq, pending));+ }++ Ok(())+ }++ fn parse_part(data: &mut Bytes) -> Vec<u8> {+ let size = BigEndian::read_u16(data.split_to(2).as_ref()) as usize;+ data.split_to(size).as_ref().to_owned()+ }++ fn complete_request(&self, cmd: PacketType, mut pending: MercuryPending) -> Result<(), Error> {+ let header_data = pending.parts.remove(0);+ let header = protocol::mercury::Header::parse_from_bytes(&header_data)?;++ let response = MercuryResponse {+ uri: header.uri().to_string(),+ status_code: header.status_code(),+ payload: pending.parts,+ };++ let status_code = response.status_code;+ if status_code >= 500 {+ error!("error {} for uri {}", status_code, &response.uri);+ Err(MercuryError::Response(response).into())+ } else if status_code >= 400 {+ error!("error {} for uri {}", status_code, &response.uri);+ if let Some(cb) = pending.callback {+ cb.send(Err(MercuryError::Response(response.clone()).into()))+ .map_err(|_| MercuryError::Channel)?;+ }+ Err(MercuryError::Response(response).into())+ } else if let PacketType::MercuryEvent = cmd {+ // TODO: This is just a workaround to make utf-8 encoded usernames work.+ // A better solution would be to use an uri struct and urlencode it directly+ // before sending while saving the subscription under its unencoded form.+ let mut uri_split = response.uri.split('/');++ let encoded_uri = std::iter::once(uri_split.next().unwrap_or_default().to_string())+ .chain(uri_split.map(|component| {+ form_urlencoded::byte_serialize(component.as_bytes()).collect::<String>()+ }))+ .collect::<Vec<String>>()+ .join("/");++ let mut found = false;++ self.lock(|inner| {+ inner.subscriptions.retain(|(prefix, sub)| {+ if encoded_uri.starts_with(prefix) {+ found = true;++ // if send fails, remove from list of subs+ // TODO: send unsub message+ sub.send(response.clone()).is_ok()+ } else {+ // URI doesn't match+ true+ }+ });+ });++ if found {+ Ok(())+ } else if self.session().dealer().handles(&response.uri) {+ trace!("mercury response <{}> is handled by dealer", response.uri);+ Ok(())+ } else {+ debug!("unknown subscription uri={}", &response.uri);+ trace!("response pushed over Mercury: {response:?}");+ Err(MercuryError::Response(response).into())+ }+ } else if let Some(cb) = pending.callback {+ cb.send(Ok(response)).map_err(|_| MercuryError::Channel)?;+ Ok(())+ } else {+ error!("can't handle Mercury response: {response:?}");+ Err(MercuryError::Response(response).into())+ }+ }++ pub(crate) fn shutdown(&self) {+ self.lock(|inner| {+ inner.invalid = true;+ // destroy the sending halves of the channels to signal everyone who is waiting for something.+ inner.pending.clear();+ inner.subscriptions.clear();+ });+ }+}diff --git a/native/vendor/librespot-core/src/mercury/sender.rs b/native/vendor/librespot-core/src/mercury/sender.rsnew file mode 100644index 0000000..31409e8--- /dev/null+++ b/native/vendor/librespot-core/src/mercury/sender.rs@@ -0,0 +1,56 @@+use std::collections::VecDeque;++use super::{MercuryFuture, MercuryManager, MercuryResponse};++use crate::Error;++pub struct MercurySender {+ mercury: MercuryManager,+ uri: String,+ pending: VecDeque<MercuryFuture<MercuryResponse>>,+ buffered_future: Option<MercuryFuture<MercuryResponse>>,+}++impl MercurySender {+ pub(crate) fn new(mercury: MercuryManager, uri: String) -> MercurySender {+ MercurySender {+ mercury,+ uri,+ pending: VecDeque::new(),+ buffered_future: None,+ }+ }++ pub fn is_flushed(&self) -> bool {+ self.buffered_future.is_none() && self.pending.is_empty()+ }++ pub fn send(&mut self, item: Vec<u8>) -> Result<(), Error> {+ let task = self.mercury.send(self.uri.clone(), item)?;+ self.pending.push_back(task);+ Ok(())+ }++ pub async fn flush(&mut self) -> Result<(), Error> {+ if self.buffered_future.is_none() {+ self.buffered_future = self.pending.pop_front();+ }++ while let Some(fut) = self.buffered_future.as_mut() {+ fut.await?;+ self.buffered_future = self.pending.pop_front();+ }+ Ok(())+ }+}++impl Clone for MercurySender {+ fn clone(&self) -> MercurySender {+ MercurySender {+ mercury: self.mercury.clone(),+ uri: self.uri.clone(),+ pending: VecDeque::new(),+ buffered_future: None,+ }+ }+}diff --git a/native/vendor/librespot-core/src/mercury/types.rs b/native/vendor/librespot-core/src/mercury/types.rsnew file mode 100644index 0000000..3cc8d8b--- /dev/null+++ b/native/vendor/librespot-core/src/mercury/types.rs@@ -0,0 +1,101 @@+use std::io::Write;++use byteorder::{BigEndian, WriteBytesExt};+use protobuf::Message;+use thiserror::Error;++use crate::{Error, packet::PacketType, protocol};++#[derive(Debug, PartialEq, Eq)]+pub enum MercuryMethod {+ Get,+ Sub,+ Unsub,+ Send,+}++#[derive(Debug)]+pub struct MercuryRequest {+ pub method: MercuryMethod,+ pub uri: String,+ pub content_type: Option<String>,+ pub payload: Vec<Vec<u8>>,+}++#[derive(Debug, Clone)]+pub struct MercuryResponse {+ pub uri: String,+ pub status_code: i32,+ pub payload: Vec<Vec<u8>>,+}++#[derive(Debug, Error)]+pub enum MercuryError {+ #[error("callback receiver was disconnected")]+ Channel,+ #[error("error handling packet type: {0:?}")]+ Command(PacketType),+ #[error("error handling Mercury response: {0:?}")]+ Response(MercuryResponse),+}++impl From<MercuryError> for Error {+ fn from(err: MercuryError) -> Self {+ match err {+ MercuryError::Channel => Error::aborted(err),+ MercuryError::Command(_) => Error::unimplemented(err),+ MercuryError::Response(_) => Error::unavailable(err),+ }+ }+}++impl std::fmt::Display for MercuryMethod {+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {+ let s = match *self {+ MercuryMethod::Get => "GET",+ MercuryMethod::Sub => "SUB",+ MercuryMethod::Unsub => "UNSUB",+ MercuryMethod::Send => "SEND",+ };+ write!(f, "{s}")+ }+}++impl MercuryMethod {+ pub fn command(&self) -> PacketType {+ use PacketType::*;+ match *self {+ MercuryMethod::Get | MercuryMethod::Send => MercuryReq,+ MercuryMethod::Sub => MercurySub,+ MercuryMethod::Unsub => MercuryUnsub,+ }+ }+}++impl MercuryRequest {+ pub fn encode(&self, seq: &[u8]) -> Result<Vec<u8>, Error> {+ let mut packet = Vec::new();+ packet.write_u16::<BigEndian>(seq.len() as u16)?;+ packet.write_all(seq)?;+ packet.write_u8(1)?; // Flags: FINAL+ packet.write_u16::<BigEndian>(1 + self.payload.len() as u16)?; // Part count++ let mut header = protocol::mercury::Header::new();+ header.set_uri(self.uri.clone());+ header.set_method(self.method.to_string());++ if let Some(ref content_type) = self.content_type {+ header.set_content_type(content_type.clone());+ }++ packet.write_u16::<BigEndian>(header.compute_size() as u16)?;+ header.write_to_writer(&mut packet)?;++ for p in &self.payload {+ packet.write_u16::<BigEndian>(p.len() as u16)?;+ packet.write_all(p)?;+ }++ Ok(packet)+ }+}diff --git a/native/vendor/librespot-core/src/packet.rs b/native/vendor/librespot-core/src/packet.rsnew file mode 100644index 0000000..2f50d15--- /dev/null+++ b/native/vendor/librespot-core/src/packet.rs@@ -0,0 +1,41 @@+// Ported from librespot-java. Relicensed under MIT with permission.++use num_derive::{FromPrimitive, ToPrimitive};++#[derive(Debug, Copy, Clone, FromPrimitive, ToPrimitive)]+pub enum PacketType {+ SecretBlock = 0x02,+ Ping = 0x04,+ StreamChunk = 0x08,+ StreamChunkRes = 0x09,+ ChannelError = 0x0a,+ ChannelAbort = 0x0b,+ RequestKey = 0x0c,+ AesKey = 0x0d,+ AesKeyError = 0x0e,+ Image = 0x19,+ CountryCode = 0x1b,+ Pong = 0x49,+ PongAck = 0x4a,+ Pause = 0x4b,+ ProductInfo = 0x50,+ LegacyWelcome = 0x69,+ LicenseVersion = 0x76,+ Login = 0xab,+ APWelcome = 0xac,+ AuthFailure = 0xad,+ MercuryReq = 0xb2,+ MercurySub = 0xb3,+ MercuryUnsub = 0xb4,+ MercuryEvent = 0xb5,+ TrackEndedTime = 0x82,+ UnknownDataAllZeros = 0x1f,+ PreferredLocale = 0x74,+ Unknown0x0f = 0x0f,+ Unknown0x10 = 0x10,+ Unknown0x4f = 0x4f,++ // TODO - occurs when subscribing with an empty URI. Maybe a MercuryError?+ // Payload: b"\0\x08\0\0\0\0\0\0\0\0\x01\0\x01\0\x03 \xb0\x06"+ Unknown0xb6 = 0xb6,+}diff --git a/native/vendor/librespot-core/src/proxytunnel.rs b/native/vendor/librespot-core/src/proxytunnel.rsnew file mode 100644index 0000000..9e8cd3b--- /dev/null+++ b/native/vendor/librespot-core/src/proxytunnel.rs@@ -0,0 +1,52 @@+use std::io;++use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt};++pub async fn proxy_connect<T: AsyncRead + AsyncWrite + Unpin>(+ mut proxy_connection: T,+ connect_host: &str,+ connect_port: &str,+) -> io::Result<T> {+ let mut buffer = Vec::new();+ buffer.extend_from_slice(b"CONNECT ");+ buffer.extend_from_slice(connect_host.as_bytes());+ buffer.push(b':');+ buffer.extend_from_slice(connect_port.as_bytes());+ buffer.extend_from_slice(b" HTTP/1.1\r\n\r\n");++ proxy_connection.write_all(buffer.as_ref()).await?;++ buffer.resize(buffer.capacity(), 0);++ let mut offset = 0;+ loop {+ let bytes_read = proxy_connection.read(&mut buffer[offset..]).await?;+ if bytes_read == 0 {+ return Err(io::Error::other("Early EOF from proxy"));+ }+ offset += bytes_read;++ let mut headers = [httparse::EMPTY_HEADER; 16];+ let mut response = httparse::Response::new(&mut headers);++ let status = response+ .parse(&buffer[..offset])+ .map_err(io::Error::other)?;++ if status.is_complete() {+ return match response.code {+ Some(200) => Ok(proxy_connection), // Proxy says all is well+ Some(code) => {+ let reason = response.reason.unwrap_or("no reason");+ let msg = format!("Proxy responded with {code}: {reason}");+ Err(io::Error::other(msg))+ }+ None => Err(io::Error::other("Malformed response from proxy")),+ };+ }++ if offset >= buffer.len() {+ buffer.resize(buffer.len() + 100, 0);+ }+ }+}diff --git a/native/vendor/librespot-core/src/session.rs b/native/vendor/librespot-core/src/session.rsnew file mode 100644index 0000000..333678f--- /dev/null+++ b/native/vendor/librespot-core/src/session.rs@@ -0,0 +1,957 @@+use std::{+ collections::HashMap,+ future::Future,+ io,+ pin::Pin,+ process::exit,+ sync::{Arc, OnceLock, RwLock, Weak},+ task::{Context, Poll},+ time::{Duration, SystemTime, UNIX_EPOCH},+};++use crate::dealer::manager::DealerManager;+use crate::{+ Error,+ apresolve::{ApResolver, SocketAddress},+ audio_key::AudioKeyManager,+ authentication::Credentials,+ cache::Cache,+ channel::ChannelManager,+ config::SessionConfig,+ connection::{self, AuthenticationError, Transport},+ http_client::HttpClient,+ login5::Login5Manager,+ mercury::MercuryManager,+ packet::PacketType,+ protocol::keyexchange::ErrorCode,+ spclient::SpClient,+ token::TokenProvider,+};+use byteorder::{BigEndian, ByteOrder};+use bytes::Bytes;+use futures_core::TryStream;+use futures_util::StreamExt;+use librespot_protocol::authentication::AuthenticationType;+use num_traits::FromPrimitive;+use pin_project_lite::pin_project;+use quick_xml::events::Event;+use thiserror::Error;+use tokio::{+ sync::mpsc,+ time::{Duration as TokioDuration, Instant as TokioInstant, Sleep, sleep},+};+use tokio_stream::wrappers::UnboundedReceiverStream;+use uuid::Uuid;++const SESSION_DATA_POISON_MSG: &str = "session data rwlock should not be poisoned";++#[derive(Debug, Error)]+pub enum SessionError {+ #[error(transparent)]+ AuthenticationError(#[from] AuthenticationError),+ #[error("Cannot create session: {0}")]+ IoError(#[from] io::Error),+ #[error("Session is not connected")]+ NotConnected,+ #[error("packet {0} unknown")]+ Packet(u8),+}++impl From<SessionError> for Error {+ fn from(err: SessionError) -> Self {+ match err {+ SessionError::AuthenticationError(_) => Error::unauthenticated(err),+ SessionError::IoError(_) => Error::unavailable(err),+ SessionError::NotConnected => Error::unavailable(err),+ SessionError::Packet(_) => Error::unimplemented(err),+ }+ }+}++impl From<quick_xml::encoding::EncodingError> for Error {+ fn from(err: quick_xml::encoding::EncodingError) -> Self {+ Error::invalid_argument(err)+ }+}++pub type UserAttributes = HashMap<String, String>;++#[derive(Debug, Clone, Default)]+pub struct UserData {+ pub country: String,+ pub canonical_username: String,+ pub attributes: UserAttributes,+}++#[derive(Debug, Clone, Default)]+struct SessionData {+ session_id: String,+ client_id: String,+ client_name: String,+ client_brand_name: String,+ client_model_name: String,+ connection_id: String,+ auth_data: Vec<u8>,+ time_delta: i64,+ invalid: bool,+ user_data: UserData,+}++struct SessionInternal {+ config: SessionConfig,+ data: RwLock<SessionData>,++ http_client: HttpClient,+ tx_connection: OnceLock<mpsc::UnboundedSender<(u8, Vec<u8>)>>,++ apresolver: OnceLock<ApResolver>,+ audio_key: OnceLock<AudioKeyManager>,+ channel: OnceLock<ChannelManager>,+ mercury: OnceLock<MercuryManager>,+ dealer: OnceLock<DealerManager>,+ spclient: OnceLock<SpClient>,+ token_provider: OnceLock<TokenProvider>,+ login5: OnceLock<Login5Manager>,+ cache: Option<Arc<Cache>>,++ handle: tokio::runtime::Handle,+}++/// A shared reference to a Spotify session.+///+/// After instantiating, you need to login via [Session::connect].+/// You can either implement the whole playback logic yourself by using+/// this structs interface directly or hand it to a+/// `Player`.+///+/// *Note*: [Session] instances cannot yet be reused once invalidated. After+/// an unexpectedly closed connection, you'll need to create a new [Session].+#[derive(Clone)]+pub struct Session(Arc<SessionInternal>);++impl Session {+ pub fn new(config: SessionConfig, cache: Option<Cache>) -> Self {+ let http_client = HttpClient::new(config.proxy.as_ref());++ debug!("new Session");++ let session_data = SessionData {+ client_id: config.client_id.clone(),+ // can be any guid, doesn't need to be simple+ session_id: Uuid::new_v4().as_simple().to_string(),+ ..SessionData::default()+ };++ Self(Arc::new(SessionInternal {+ config,+ data: RwLock::new(session_data),+ http_client,+ tx_connection: OnceLock::new(),+ cache: cache.map(Arc::new),+ apresolver: OnceLock::new(),+ audio_key: OnceLock::new(),+ channel: OnceLock::new(),+ mercury: OnceLock::new(),+ dealer: OnceLock::new(),+ spclient: OnceLock::new(),+ token_provider: OnceLock::new(),+ login5: OnceLock::new(),+ handle: tokio::runtime::Handle::current(),+ }))+ }++ async fn connect_inner(+ &self,+ access_point: &SocketAddress,+ credentials: Credentials,+ ) -> Result<(Credentials, Transport), Error> {+ const MAX_RETRIES: u8 = 1;+ let mut transport = connection::connect_with_retry(+ &access_point.0,+ access_point.1,+ self.config().proxy.as_ref(),+ MAX_RETRIES,+ )+ .await?;+ let mut reusable_credentials = connection::authenticate(+ &mut transport,+ credentials.clone(),+ &self.config().device_id,+ )+ .await?;++ // Might be able to remove this once keymaster is replaced with login5.+ if credentials.auth_type == AuthenticationType::AUTHENTICATION_SPOTIFY_TOKEN {+ trace!(+ "Reconnect using stored credentials as token authed sessions cannot use keymaster."+ );+ transport = connection::connect_with_retry(+ &access_point.0,+ access_point.1,+ self.config().proxy.as_ref(),+ MAX_RETRIES,+ )+ .await?;+ reusable_credentials = connection::authenticate(+ &mut transport,+ reusable_credentials.clone(),+ &self.config().device_id,+ )+ .await?;+ }++ Ok((reusable_credentials, transport))+ }++ pub async fn connect(+ &self,+ credentials: Credentials,+ store_credentials: bool,+ ) -> Result<(), Error> {+ // There currently happen to be 6 APs but anything will do to avoid an infinite loop.+ const MAX_AP_TRIES: u8 = 6;+ let mut num_ap_tries = 0;+ let (reusable_credentials, transport) = loop {+ let ap = self.apresolver().resolve("accesspoint").await?;+ info!("Connecting to AP \"{}:{}\"", ap.0, ap.1);+ match self.connect_inner(&ap, credentials.clone()).await {+ Ok(ct) => break ct,+ Err(e) => {+ num_ap_tries += 1;+ if MAX_AP_TRIES == num_ap_tries {+ error!("Tried too many access points");+ return Err(e);+ }+ if let Some(AuthenticationError::LoginFailed(ErrorCode::TryAnotherAP)) =+ e.error.downcast_ref::<AuthenticationError>()+ {+ warn!("Instructed to try another access point...");+ continue;+ } else if let Some(AuthenticationError::LoginFailed(..)) =+ e.error.downcast_ref::<AuthenticationError>()+ {+ return Err(e);+ } else {+ warn!("Try another access point...");+ continue;+ }+ }+ }+ };++ let username = reusable_credentials+ .username+ .as_ref()+ .map_or("UNKNOWN", |s| s.as_str());+ info!("Authenticated as '{username}' !");+ self.set_username(username);+ self.set_auth_data(&reusable_credentials.auth_data);+ if let Some(cache) = self.cache() {+ if store_credentials {+ let cred_changed = cache+ .credentials()+ .map(|c| c != reusable_credentials)+ .unwrap_or(true);+ if cred_changed {+ cache.save_credentials(&reusable_credentials);+ }+ }+ }++ // This channel serves as a buffer for packets and serializes access to the TcpStream, such+ // that `self.send_packet` can return immediately and needs no additional synchronization.+ let (tx_connection, rx_connection) = mpsc::unbounded_channel();+ self.0+ .tx_connection+ .set(tx_connection)+ .map_err(|_| SessionError::NotConnected)?;++ let (sink, stream) = transport.split();+ let sender_task = UnboundedReceiverStream::new(rx_connection)+ .map(Ok)+ .forward(sink);+ let session_weak = self.weak();+ tokio::spawn(async move {+ if let Err(e) = sender_task.await {+ error!("{e}");+ if let Some(session) = session_weak.try_upgrade() {+ if !session.is_invalid() {+ session.shutdown();+ }+ }+ }+ });++ tokio::spawn(DispatchTask::new(self.weak(), stream));++ Ok(())+ }++ pub fn apresolver(&self) -> &ApResolver {+ self.0+ .apresolver+ .get_or_init(|| ApResolver::new(self.weak()))+ }++ pub fn audio_key(&self) -> &AudioKeyManager {+ self.0+ .audio_key+ .get_or_init(|| AudioKeyManager::new(self.weak()))+ }++ pub fn channel(&self) -> &ChannelManager {+ self.0+ .channel+ .get_or_init(|| ChannelManager::new(self.weak()))+ }++ pub fn http_client(&self) -> &HttpClient {+ &self.0.http_client+ }++ pub fn mercury(&self) -> &MercuryManager {+ self.0+ .mercury+ .get_or_init(|| MercuryManager::new(self.weak()))+ }++ pub fn dealer(&self) -> &DealerManager {+ self.0+ .dealer+ .get_or_init(|| DealerManager::new(self.weak()))+ }++ pub fn spclient(&self) -> &SpClient {+ self.0.spclient.get_or_init(|| SpClient::new(self.weak()))+ }++ pub fn token_provider(&self) -> &TokenProvider {+ self.0+ .token_provider+ .get_or_init(|| TokenProvider::new(self.weak()))+ }++ pub fn login5(&self) -> &Login5Manager {+ self.0+ .login5+ .get_or_init(|| Login5Manager::new(self.weak()))+ }++ pub fn time_delta(&self) -> i64 {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .time_delta+ }++ pub fn spawn<T>(&self, task: T)+ where+ T: Future + Send + 'static,+ T::Output: Send + 'static,+ {+ self.0.handle.spawn(task);+ }++ fn debug_info(&self) {+ debug!(+ "Session strong={} weak={}",+ Arc::strong_count(&self.0),+ Arc::weak_count(&self.0)+ );+ }++ fn check_catalogue(attributes: &UserAttributes) {+ if let Some(account_type) = attributes.get("type") {+ if account_type != "premium" {+ error!("librespot does not support {account_type:?} accounts.");+ info!("Please support Spotify and your artists and sign up for a premium account.");++ // TODO: logout instead of exiting+ exit(1);+ }+ }+ }++ pub fn send_packet(&self, cmd: PacketType, data: Vec<u8>) -> Result<(), Error> {+ match self.0.tx_connection.get() {+ Some(tx) => Ok(tx.send((cmd as u8, data))?),+ None => Err(SessionError::NotConnected.into()),+ }+ }++ pub fn cache(&self) -> Option<&Arc<Cache>> {+ self.0.cache.as_ref()+ }++ pub fn config(&self) -> &SessionConfig {+ &self.0.config+ }++ // This clones a fairly large struct, so use a specific getter or setter unless+ // you need more fields at once, in which case this can spare multiple `read`+ // locks.+ pub fn user_data(&self) -> UserData {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .user_data+ .clone()+ }++ pub fn session_id(&self) -> String {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .session_id+ .clone()+ }++ pub fn set_session_id(&self, session_id: &str) {+ session_id.clone_into(+ &mut self+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .session_id,+ );+ }++ pub fn device_id(&self) -> &str {+ &self.config().device_id+ }++ pub fn client_id(&self) -> String {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .client_id+ .clone()+ }++ pub fn set_client_id(&self, client_id: &str) {+ client_id.clone_into(+ &mut self+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .client_id,+ );+ }++ pub fn client_name(&self) -> String {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .client_name+ .clone()+ }++ pub fn set_client_name(&self, client_name: &str) {+ client_name.clone_into(+ &mut self+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .client_name,+ );+ }++ pub fn client_brand_name(&self) -> String {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .client_brand_name+ .clone()+ }++ pub fn set_client_brand_name(&self, client_brand_name: &str) {+ client_brand_name.clone_into(+ &mut self+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .client_brand_name,+ );+ }++ pub fn client_model_name(&self) -> String {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .client_model_name+ .clone()+ }++ pub fn set_client_model_name(&self, client_model_name: &str) {+ client_model_name.clone_into(+ &mut self+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .client_model_name,+ );+ }++ pub fn connection_id(&self) -> String {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .connection_id+ .clone()+ }++ pub fn set_connection_id(&self, connection_id: &str) {+ connection_id.clone_into(+ &mut self+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .connection_id,+ );+ }++ pub fn username(&self) -> String {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .user_data+ .canonical_username+ .clone()+ }++ pub fn set_username(&self, username: &str) {+ username.clone_into(+ &mut self+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .user_data+ .canonical_username,+ );+ }++ pub fn auth_data(&self) -> Vec<u8> {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .auth_data+ .clone()+ }++ pub fn set_auth_data(&self, auth_data: &[u8]) {+ auth_data.clone_into(+ &mut self+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .auth_data,+ );+ }++ pub fn country(&self) -> String {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .user_data+ .country+ .clone()+ }++ pub fn filter_explicit_content(&self) -> bool {+ match self.get_user_attribute("filter-explicit-content") {+ Some(value) => matches!(&*value, "1"),+ None => false,+ }+ }++ pub fn autoplay(&self) -> bool {+ if let Some(overide) = self.config().autoplay {+ return overide;+ }++ match self.get_user_attribute("autoplay") {+ Some(value) => matches!(&*value, "1"),+ None => false,+ }+ }++ pub fn set_user_attribute(&self, key: &str, value: &str) -> Option<String> {+ let mut dummy_attributes = UserAttributes::new();+ dummy_attributes.insert(key.to_owned(), value.to_owned());+ Self::check_catalogue(&dummy_attributes);++ self.0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .user_data+ .attributes+ .insert(key.to_owned(), value.to_owned())+ }++ pub fn set_user_attributes(&self, attributes: UserAttributes) {+ Self::check_catalogue(&attributes);++ self.0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .user_data+ .attributes+ .extend(attributes)+ }++ pub fn get_user_attribute(&self, key: &str) -> Option<String> {+ self.0+ .data+ .read()+ .expect(SESSION_DATA_POISON_MSG)+ .user_data+ .attributes+ .get(key)+ .cloned()+ }++ fn weak(&self) -> SessionWeak {+ SessionWeak(Arc::downgrade(&self.0))+ }++ pub fn shutdown(&self) {+ debug!("Shutdown: Invalidating session");+ self.0.data.write().expect(SESSION_DATA_POISON_MSG).invalid = true;+ self.mercury().shutdown();+ self.channel().shutdown();+ }++ pub fn is_invalid(&self) -> bool {+ self.0.data.read().expect(SESSION_DATA_POISON_MSG).invalid+ }+}++#[derive(Clone)]+pub struct SessionWeak(Weak<SessionInternal>);++impl SessionWeak {+ fn try_upgrade(&self) -> Option<Session> {+ self.0.upgrade().map(Session)+ }++ pub(crate) fn upgrade(&self) -> Session {+ self.try_upgrade()+ .expect("session was dropped and so should have this component")+ }+}++impl Drop for SessionInternal {+ fn drop(&mut self) {+ debug!("drop Session");+ }+}++#[derive(Clone, Copy, Default, Debug, PartialEq)]+enum KeepAliveState {+ #[default]+ // Expecting a Ping from the server, either after startup or after a PongAck.+ ExpectingPing,++ // We need to send a Pong at the given time.+ PendingPong,++ // We just sent a Pong and wait for it be ACK'd.+ ExpectingPongAck,+}++const INITIAL_PING_TIMEOUT: TokioDuration = TokioDuration::from_secs(20);+const PING_TIMEOUT: TokioDuration = TokioDuration::from_secs(80); // 60s expected + 20s buffer+const PONG_DELAY: TokioDuration = TokioDuration::from_secs(60);+const PONG_ACK_TIMEOUT: TokioDuration = TokioDuration::from_secs(20);++impl KeepAliveState {+ fn debug(&self, sleep: &Sleep) {+ let delay = sleep+ .deadline()+ .checked_duration_since(TokioInstant::now())+ .map(|t| t.as_secs_f64())+ .unwrap_or(f64::INFINITY);++ trace!("keep-alive state: {self:?}, timeout in {delay:.1}");+ }+}++pin_project! {+ struct DispatchTask<S>+ where+ S: TryStream<Ok = (u8, Bytes)>+ {+ session: SessionWeak,+ keep_alive_state: KeepAliveState,+ #[pin]+ stream: S,+ #[pin]+ timeout: Sleep,+ }++ impl<S> PinnedDrop for DispatchTask<S>+ where+ S: TryStream<Ok = (u8, Bytes)>+ {+ fn drop(_this: Pin<&mut Self>) {+ debug!("drop Dispatch");+ }+ }+}++impl<S> DispatchTask<S>+where+ S: TryStream<Ok = (u8, Bytes)>,+{+ fn new(session: SessionWeak, stream: S) -> Self {+ Self {+ session,+ keep_alive_state: KeepAliveState::ExpectingPing,+ stream,+ timeout: sleep(INITIAL_PING_TIMEOUT),+ }+ }++ fn dispatch(+ mut self: Pin<&mut Self>,+ session: &Session,+ cmd: u8,+ data: Bytes,+ ) -> Result<(), Error> {+ use KeepAliveState::*;+ use PacketType::*;++ let packet_type = FromPrimitive::from_u8(cmd);+ let cmd = match packet_type {+ Some(cmd) => cmd,+ None => {+ trace!("Ignoring unknown packet {cmd:x}");+ return Err(SessionError::Packet(cmd).into());+ }+ };++ match packet_type {+ Some(Ping) => {+ trace!("Received Ping");+ if self.keep_alive_state != ExpectingPing {+ warn!("Received unexpected Ping from server")+ }+ let mut this = self.as_mut().project();+ *this.keep_alive_state = PendingPong;+ this.timeout+ .as_mut()+ .reset(TokioInstant::now() + PONG_DELAY);+ this.keep_alive_state.debug(&this.timeout);++ let server_timestamp = BigEndian::read_u32(data.as_ref()) as i64;+ let timestamp = SystemTime::now()+ .duration_since(UNIX_EPOCH)+ .unwrap_or(Duration::ZERO)+ .as_secs() as i64;+ {+ let mut data = session.0.data.write().expect(SESSION_DATA_POISON_MSG);+ data.time_delta = server_timestamp.saturating_sub(timestamp);+ }++ session.debug_info();++ Ok(())+ }+ Some(PongAck) => {+ trace!("Received PongAck");+ if self.keep_alive_state != ExpectingPongAck {+ warn!("Received unexpected PongAck from server")+ }+ let mut this = self.as_mut().project();+ *this.keep_alive_state = ExpectingPing;+ this.timeout+ .as_mut()+ .reset(TokioInstant::now() + PING_TIMEOUT);+ this.keep_alive_state.debug(&this.timeout);++ Ok(())+ }+ Some(CountryCode) => {+ let country = String::from_utf8(data.as_ref().to_owned())?;+ info!("Country: {country:?}");+ session+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .user_data+ .country = country;+ Ok(())+ }+ Some(StreamChunkRes) | Some(ChannelError) => session.channel().dispatch(cmd, data),+ Some(AesKey) | Some(AesKeyError) => session.audio_key().dispatch(cmd, data),+ Some(MercuryReq) | Some(MercurySub) | Some(MercuryUnsub) | Some(MercuryEvent) => {+ session.mercury().dispatch(cmd, data)+ }+ Some(ProductInfo) => {+ let data = std::str::from_utf8(&data)?;+ let mut reader = quick_xml::Reader::from_str(data);++ let mut buf = Vec::new();+ let mut current_element = String::new();+ let mut user_attributes: UserAttributes = HashMap::new();++ loop {+ match reader.read_event_into(&mut buf) {+ Ok(Event::Start(ref element)) => {+ std::str::from_utf8(element)?.clone_into(&mut current_element)+ }+ Ok(Event::End(_)) => {+ current_element = String::new();+ }+ Ok(Event::Text(ref value)) => {+ if !current_element.is_empty() {+ let _ = user_attributes.insert(+ current_element.clone(),+ value.xml_content()?.to_string(),+ );+ }+ }+ Ok(Event::Eof) => break,+ Ok(_) => (),+ Err(e) => warn!(+ "Error parsing XML at position {}: {:?}",+ reader.buffer_position(),+ e+ ),+ }+ }++ trace!("Received product info: {user_attributes:#?}");+ Session::check_catalogue(&user_attributes);++ session+ .0+ .data+ .write()+ .expect(SESSION_DATA_POISON_MSG)+ .user_data+ .attributes = user_attributes;+ Ok(())+ }+ Some(SecretBlock)+ | Some(LegacyWelcome)+ | Some(UnknownDataAllZeros)+ | Some(LicenseVersion) => Ok(()),+ _ => {+ trace!("Ignoring {cmd:?} packet with data {data:#?}");+ Err(SessionError::Packet(cmd as u8).into())+ }+ }+ }+}++impl<S> Future for DispatchTask<S>+where+ S: TryStream<Ok = (u8, Bytes), Error = std::io::Error>,+ <S as TryStream>::Ok: std::fmt::Debug,+{+ type Output = Result<(), S::Error>;++ fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {+ use KeepAliveState::*;++ let session = match self.session.try_upgrade() {+ Some(session) => session,+ None => return Poll::Ready(Ok(())),+ };++ // Process all messages that are immediately ready+ loop {+ match self.as_mut().project().stream.try_poll_next(cx) {+ Poll::Ready(Some(Ok((cmd, data)))) => {+ let result = self.as_mut().dispatch(&session, cmd, data);+ if let Err(e) = result {+ debug!("could not dispatch command: {e}");+ }+ }+ Poll::Ready(None) => {+ warn!("Connection to server closed.");+ session.shutdown();+ return Poll::Ready(Ok(()));+ }+ Poll::Ready(Some(Err(e))) => {+ error!("Connection to server closed.");+ session.shutdown();+ return Poll::Ready(Err(e));+ }+ Poll::Pending => break,+ }+ }++ // Handle the keep-alive sequence, returning an error when we haven't received a+ // Ping/PongAck for too long.+ //+ // The expected keepalive sequence is+ // - Server: Ping+ // - wait 60s+ // - Client: Pong+ // - Server: PongAck+ // - wait 60s+ // - repeat+ //+ // This means that we silently lost connection to Spotify servers if+ // - we don't receive Ping immediately after connecting,+ // - we don't receive a Ping 60s after the last PongAck or+ // - we don't receive a PongAck immediately after our Pong.+ //+ // Currently, we add a safety margin of 20s to these expected deadlines.+ let mut this = self.as_mut().project();+ if let Poll::Ready(()) = this.timeout.as_mut().poll(cx) {+ match this.keep_alive_state {+ ExpectingPing | ExpectingPongAck => {+ if !session.is_invalid() {+ session.shutdown();+ }+ // TODO: Optionally reconnect (with cached/last credentials?)+ return Poll::Ready(Err(io::Error::new(+ io::ErrorKind::TimedOut,+ format!(+ "session lost connection to server ({:?})",+ this.keep_alive_state+ ),+ )));+ }+ PendingPong => {+ trace!("Sending Pong");+ // TODO: Ideally, this should flush the `Framed<TcpStream> as Sink`+ // before starting the timeout.+ let _ = session.send_packet(PacketType::Pong, vec![0, 0, 0, 0]);+ *this.keep_alive_state = ExpectingPongAck;+ this.timeout+ .as_mut()+ .reset(TokioInstant::now() + PONG_ACK_TIMEOUT);+ this.keep_alive_state.debug(&this.timeout);+ }+ }+ }++ Poll::Pending+ }+}diff --git a/native/vendor/librespot-core/src/socket.rs b/native/vendor/librespot-core/src/socket.rsnew file mode 100644index 0000000..71b0d6b--- /dev/null+++ b/native/vendor/librespot-core/src/socket.rs@@ -0,0 +1,34 @@+use std::{io, net::ToSocketAddrs};++use tokio::net::TcpStream;+use url::Url;++use crate::proxytunnel;++pub async fn connect(host: &str, port: u16, proxy: Option<&Url>) -> io::Result<TcpStream> {+ let socket = if let Some(proxy_url) = proxy {+ info!("Using proxy \"{proxy_url}\"");++ let socket_addr = proxy_url.socket_addrs(|| None).and_then(|addrs| {+ addrs.into_iter().next().ok_or_else(|| {+ io::Error::new(+ io::ErrorKind::NotFound,+ "Can't resolve proxy server address",+ )+ })+ })?;+ let socket = TcpStream::connect(&socket_addr).await?;++ proxytunnel::proxy_connect(socket, host, &port.to_string()).await?+ } else {+ let socket_addr = (host, port).to_socket_addrs()?.next().ok_or_else(|| {+ io::Error::new(+ io::ErrorKind::NotFound,+ "Can't resolve access point address",+ )+ })?;++ TcpStream::connect(&socket_addr).await?+ };+ Ok(socket)+}diff --git a/native/vendor/librespot-core/src/spclient.rs b/native/vendor/librespot-core/src/spclient.rsnew file mode 100644index 0000000..6eaa33c--- /dev/null+++ b/native/vendor/librespot-core/src/spclient.rs@@ -0,0 +1,960 @@+use std::{+ fmt::Write,+ time::{Duration, SystemTime},+};++use crate::config::{OS, os_version};+use crate::{+ Error, FileId, SpotifyId, SpotifyUri,+ apresolve::SocketAddress,+ config::SessionConfig,+ dealer::protocol::TransferOptions,+ error::ErrorKind,+ protocol::{+ autoplay_context_request::AutoplayContextRequest,+ clienttoken_http::{+ ChallengeAnswer, ChallengeType, ClientTokenRequest, ClientTokenRequestType,+ ClientTokenResponse, ClientTokenResponseType,+ },+ connect::PutStateRequest,+ context::Context,+ extended_metadata::BatchedEntityRequest,+ extended_metadata::{BatchedExtensionResponse, EntityRequest, ExtensionQuery},+ extension_kind::ExtensionKind,+ },+ token::Token,+ util,+ version::spotify_semantic_version,+};+use bytes::Bytes;+use data_encoding::HEXUPPER_PERMISSIVE;+use futures_util::future::IntoStream;+use http::{Uri, header::HeaderValue};+use hyper::{+ HeaderMap, Method, Request,+ header::{ACCEPT, AUTHORIZATION, CONTENT_LENGTH, CONTENT_TYPE, HeaderName, RANGE},+};+use hyper_util::client::legacy::ResponseFuture;+use protobuf::{Enum, EnumOrUnknown, Message, MessageFull};+use rand::RngCore;+use serde::Serialize;+use sysinfo::System;+use thiserror::Error;++component! {+ SpClient : SpClientInner {+ accesspoint: Option<SocketAddress> = None,+ strategy: RequestStrategy = RequestStrategy::default(),+ client_token: Option<Token> = None,+ }+}++pub type SpClientResult = Result<Bytes, Error>;++#[allow(clippy::declare_interior_mutable_const)]+pub const CLIENT_TOKEN: HeaderName = HeaderName::from_static("client-token");+#[allow(clippy::declare_interior_mutable_const)]+const CONNECTION_ID: HeaderName = HeaderName::from_static("x-spotify-connection-id");++const NO_METRICS_AND_SALT: RequestOptions = RequestOptions {+ metrics: false,+ salt: false,+ base_url: None,+};++#[derive(Debug, Error)]+pub enum SpClientError {+ #[error("missing attribute {0}")]+ Attribute(String),+ #[error("expected data but received none")]+ NoData,+ #[error("expected an entry to exist in {0}")]+ ExpectedEntry(&'static str),+}++impl From<SpClientError> for Error {+ fn from(err: SpClientError) -> Self {+ Self::failed_precondition(err)+ }+}++#[derive(Copy, Clone, Debug)]+pub enum RequestStrategy {+ TryTimes(usize),+ Infinitely,+}++impl Default for RequestStrategy {+ fn default() -> Self {+ RequestStrategy::TryTimes(10)+ }+}++pub struct RequestOptions {+ metrics: bool,+ salt: bool,+ base_url: Option<&'static str>,+}++impl Default for RequestOptions {+ fn default() -> Self {+ Self {+ metrics: true,+ salt: true,+ base_url: None,+ }+ }+}++#[derive(Debug, Serialize)]+pub struct TransferRequest {+ pub transfer_options: TransferOptions,+}++impl SpClient {+ pub fn set_strategy(&self, strategy: RequestStrategy) {+ self.lock(|inner| inner.strategy = strategy)+ }++ pub async fn flush_accesspoint(&self) {+ self.lock(|inner| inner.accesspoint = None)+ }++ pub async fn get_accesspoint(&self) -> Result<SocketAddress, Error> {+ // Memoize the current access point.+ let ap = self.lock(|inner| inner.accesspoint.clone());+ let tuple = match ap {+ Some(tuple) => tuple,+ None => {+ let tuple = self.session().apresolver().resolve("spclient").await?;+ self.lock(|inner| inner.accesspoint = Some(tuple.clone()));+ info!(+ "Resolved \"{}:{}\" as spclient access point",+ tuple.0, tuple.1+ );+ tuple+ }+ };+ Ok(tuple)+ }++ pub async fn base_url(&self) -> Result<String, Error> {+ let ap = self.get_accesspoint().await?;+ Ok(format!("https://{}:{}", ap.0, ap.1))+ }++ async fn client_token_request<M: Message>(&self, message: &M) -> Result<Bytes, Error> {+ let body = message.write_to_bytes()?;++ let request = Request::builder()+ .method(&Method::POST)+ .uri("https://clienttoken.spotify.com/v1/clienttoken")+ .header(ACCEPT, HeaderValue::from_static("application/x-protobuf"))+ .body(body.into())?;++ self.session().http_client().request_body(request).await+ }++ pub async fn client_token(&self) -> Result<String, Error> {+ let client_token = self.lock(|inner| {+ if let Some(token) = &inner.client_token {+ if token.is_expired() {+ inner.client_token = None;+ }+ }+ inner.client_token.clone()+ });++ if let Some(client_token) = client_token {+ return Ok(client_token.access_token);+ }++ debug!("Client token unavailable or expired, requesting new token.");++ let mut request = ClientTokenRequest::new();+ request.request_type = ClientTokenRequestType::REQUEST_CLIENT_DATA_REQUEST.into();++ let client_data = request.mut_client_data();++ client_data.client_version = spotify_semantic_version();++ // Current state of affairs: keymaster ID works on all tested platforms, but may be phased out,+ // so it seems a good idea to mimick the real clients. `self.session().client_id()` returns the+ // ID of the client that last connected, but requesting a client token with this ID only works+ // on macOS and Windows. On Android and iOS we can send a platform-specific client ID and are+ // then presented with a hash cash challenge. On Linux, we have to pass the old keymaster ID.+ // We delegate most of this logic to `SessionConfig`.+ let os = OS;+ let client_id = match os {+ "macos" | "windows" => self.session().client_id(),+ os => SessionConfig::default_for_os(os).client_id,+ };+ client_data.client_id = client_id;++ let connectivity_data = client_data.mut_connectivity_sdk_data();+ connectivity_data.device_id = self.session().device_id().to_string();++ let platform_data = connectivity_data+ .platform_specific_data+ .mut_or_insert_default();++ let os_version = os_version();+ let kernel_version = System::kernel_version().unwrap_or_else(|| String::from("0"));++ match os {+ "windows" => {+ let os_version = os_version.parse::<f32>().unwrap_or(10.) as i32;+ let kernel_version = kernel_version.parse::<i32>().unwrap_or(21370);++ let (pe, image_file) = match std::env::consts::ARCH {+ "arm" => (448, 452),+ "aarch64" => (43620, 452),+ "x86_64" => (34404, 34404),+ _ => (332, 332), // x86+ };++ let windows_data = platform_data.mut_desktop_windows();+ windows_data.os_version = os_version;+ windows_data.os_build = kernel_version;+ windows_data.platform_id = 2;+ windows_data.unknown_value_6 = 9;+ windows_data.image_file_machine = image_file;+ windows_data.pe_machine = pe;+ windows_data.unknown_value_10 = true;+ }+ "ios" => {+ let ios_data = platform_data.mut_ios();+ ios_data.user_interface_idiom = 0;+ ios_data.target_iphone_simulator = false;+ ios_data.hw_machine = "iPhone14,5".to_string();+ ios_data.system_version = os_version;+ }+ "android" => {+ let android_data = platform_data.mut_android();+ android_data.android_version = os_version;+ android_data.api_version = 31;+ "Pixel".clone_into(&mut android_data.device_name);+ "GF5KQ".clone_into(&mut android_data.model_str);+ "Google".clone_into(&mut android_data.vendor);+ }+ "macos" => {+ let macos_data = platform_data.mut_desktop_macos();+ macos_data.system_version = os_version;+ macos_data.hw_model = "iMac21,1".to_string();+ macos_data.compiled_cpu_type = std::env::consts::ARCH.to_string();+ }+ _ => {+ let linux_data = platform_data.mut_desktop_linux();+ linux_data.system_name = "Linux".to_string();+ linux_data.system_release = kernel_version;+ linux_data.system_version = os_version;+ linux_data.hardware = std::env::consts::ARCH.to_string();+ }+ }++ let mut response = self.client_token_request(&request).await?;+ let mut count = 0;+ const MAX_TRIES: u8 = 3;++ let token_response = loop {+ count += 1;++ let message = ClientTokenResponse::parse_from_bytes(&response)?;++ match ClientTokenResponseType::from_i32(message.response_type.value()) {+ // depending on the platform, you're either given a token immediately+ // or are presented a hash cash challenge to solve first+ Some(ClientTokenResponseType::RESPONSE_GRANTED_TOKEN_RESPONSE) => {+ debug!("Received a granted token");+ break message;+ }+ Some(ClientTokenResponseType::RESPONSE_CHALLENGES_RESPONSE) => {+ debug!("Received a hash cash challenge, solving...");++ let challenges = message.challenges().clone();+ let state = challenges.state;+ if let Some(challenge) = challenges.challenges.first() {+ let hash_cash_challenge = challenge.evaluate_hashcash_parameters();++ let ctx = vec![];+ let prefix = HEXUPPER_PERMISSIVE+ .decode(hash_cash_challenge.prefix.as_bytes())+ .map_err(|e| {+ Error::failed_precondition(format!(+ "Unable to decode hash cash challenge: {e}"+ ))+ })?;+ let length = hash_cash_challenge.length;++ let mut suffix = [0u8; 0x10];+ let answer = util::solve_hash_cash(&ctx, &prefix, length, &mut suffix);++ match answer {+ Ok(_) => {+ // the suffix must be in uppercase+ let suffix = HEXUPPER_PERMISSIVE.encode(&suffix);++ let mut answer_message = ClientTokenRequest::new();+ answer_message.request_type =+ ClientTokenRequestType::REQUEST_CHALLENGE_ANSWERS_REQUEST+ .into();++ let challenge_answers = answer_message.mut_challenge_answers();++ let mut challenge_answer = ChallengeAnswer::new();+ challenge_answer.mut_hash_cash().suffix = suffix;+ challenge_answer.ChallengeType =+ ChallengeType::CHALLENGE_HASH_CASH.into();++ challenge_answers.state = state.to_string();+ challenge_answers.answers.push(challenge_answer);++ trace!("Answering hash cash challenge");+ match self.client_token_request(&answer_message).await {+ Ok(token) => {+ response = token;+ continue;+ }+ Err(e) => {+ trace!("Answer not accepted {count}/{MAX_TRIES}: {e}");+ }+ }+ }+ Err(e) => trace!(+ "Unable to solve hash cash challenge {count}/{MAX_TRIES}: {e}"+ ),+ }++ if count < MAX_TRIES {+ response = self.client_token_request(&request).await?;+ } else {+ return Err(Error::failed_precondition(format!(+ "Unable to solve any of {MAX_TRIES} hash cash challenges"+ )));+ }+ } else {+ return Err(Error::failed_precondition("No challenges found"));+ }+ }++ Some(unknown) => {+ return Err(Error::unimplemented(format!(+ "Unknown client token response type: {unknown:?}"+ )));+ }+ None => return Err(Error::failed_precondition("No client token response type")),+ }+ };++ let granted_token = token_response.granted_token();+ let access_token = granted_token.token.to_owned();++ self.lock(|inner| {+ let client_token = Token {+ access_token: access_token.clone(),+ expires_in: Duration::from_secs(+ granted_token+ .refresh_after_seconds+ .try_into()+ .unwrap_or(7200),+ ),+ token_type: "client-token".to_string(),+ scopes: granted_token+ .domains+ .iter()+ .map(|d| d.domain.clone())+ .collect(),+ timestamp: SystemTime::now(),+ };++ inner.client_token = Some(client_token);+ });++ trace!("Got client token: {granted_token:?}");++ Ok(access_token)+ }++ pub async fn request_with_protobuf<M: Message + MessageFull>(+ &self,+ method: &Method,+ endpoint: &str,+ headers: Option<HeaderMap>,+ message: &M,+ ) -> SpClientResult {+ self.request_with_protobuf_and_options(+ method,+ endpoint,+ headers,+ message,+ &Default::default(),+ )+ .await+ }++ pub async fn request_with_protobuf_and_options<M: Message + MessageFull>(+ &self,+ method: &Method,+ endpoint: &str,+ headers: Option<HeaderMap>,+ message: &M,+ options: &RequestOptions,+ ) -> SpClientResult {+ let body = message.write_to_bytes()?;++ let mut headers = headers.unwrap_or_default();+ headers.insert(+ CONTENT_TYPE,+ HeaderValue::from_static("application/x-protobuf"),+ );++ self.request_with_options(method, endpoint, Some(headers), Some(&body), options)+ .await+ }++ pub async fn request_as_json(+ &self,+ method: &Method,+ endpoint: &str,+ headers: Option<HeaderMap>,+ body: Option<&str>,+ ) -> SpClientResult {+ let mut headers = headers.unwrap_or_default();+ headers.insert(ACCEPT, HeaderValue::from_static("application/json"));++ self.request(method, endpoint, Some(headers), body.map(|s| s.as_bytes()))+ .await+ }++ pub async fn request(+ &self,+ method: &Method,+ endpoint: &str,+ headers: Option<HeaderMap>,+ body: Option<&[u8]>,+ ) -> SpClientResult {+ self.request_with_options(method, endpoint, headers, body, &Default::default())+ .await+ }++ pub async fn request_with_options(+ &self,+ method: &Method,+ endpoint: &str,+ headers: Option<HeaderMap>,+ body: Option<&[u8]>,+ options: &RequestOptions,+ ) -> SpClientResult {+ let mut tries: usize = 0;+ let mut last_response;++ let body = body.unwrap_or_default();++ loop {+ tries += 1;++ // Reconnection logic: retrieve the endpoint every iteration, so we can try+ // another access point when we are experiencing network issues (see below).+ let mut url = match options.base_url {+ Some(base_url) => base_url.to_string(),+ None => self.base_url().await?,+ };+ url.push_str(endpoint);++ // Add metrics. There is also an optional `partner` key with a value like+ // `vodafone-uk` but we've yet to discover how we can find that value.+ // For the sake of documentation you could also do "product=free" but+ // we only support premium anyway.+ if options.metrics && !url.contains("product=0") {+ let _ = write!(+ url,+ "{}product=0&country={}",+ util::get_next_query_separator(&url),+ self.session().country()+ );+ }++ // Defeat caches. Spotify-generated URLs already contain this.+ if options.salt && !url.contains("salt=") {+ let _ = write!(+ url,+ "{}salt={}",+ util::get_next_query_separator(&url),+ rand::rng().next_u32()+ );+ }++ let mut request = Request::builder()+ .method(method)+ .uri(url)+ .header(CONTENT_LENGTH, body.len())+ .body(Bytes::copy_from_slice(body))?;++ // Reconnection logic: keep getting (cached) tokens because they might have expired.+ let token = self.session().login5().auth_token().await?;++ let headers_mut = request.headers_mut();+ if let Some(ref headers) = headers {+ for (name, value) in headers {+ headers_mut.insert(name, value.clone());+ }+ }++ headers_mut.insert(+ AUTHORIZATION,+ HeaderValue::from_str(&format!("{} {}", token.token_type, token.access_token,))?,+ );++ match self.client_token().await {+ Ok(client_token) => {+ let _ = headers_mut.insert(CLIENT_TOKEN, HeaderValue::from_str(&client_token)?);+ }+ Err(e) => {+ // currently these endpoints seem to work fine without it+ warn!("Unable to get client token: {e} Trying to continue without...")+ }+ }++ last_response = self.session().http_client().request_body(request).await;++ if last_response.is_ok() {+ return last_response;+ }++ // Break before the reconnection logic below, so that the current access point+ // is retained when max_tries == 1. Leave it up to the caller when to flush.+ if let RequestStrategy::TryTimes(max_tries) = self.lock(|inner| inner.strategy) {+ if tries >= max_tries {+ break;+ }+ }++ // Reconnection logic: drop the current access point if we are experiencing issues.+ // This will cause the next call to base_url() to resolve a new one.+ if let Err(ref network_error) = last_response {+ match network_error.kind {+ ErrorKind::Unavailable | ErrorKind::DeadlineExceeded => {+ // Keep trying the current access point three times before dropping it.+ if tries % 3 == 0 {+ self.flush_accesspoint().await+ }+ }+ _ => break, // if we can't build the request now, then we won't ever+ }+ }++ debug!("Error was: {last_response:?}");+ }++ last_response+ }++ pub async fn put_connect_state_request(&self, state: &PutStateRequest) -> SpClientResult {+ let endpoint = format!("/connect-state/v1/devices/{}", self.session().device_id());++ let mut headers = HeaderMap::new();+ headers.insert(CONNECTION_ID, self.session().connection_id().parse()?);++ self.request_with_protobuf(&Method::PUT, &endpoint, Some(headers), state)+ .await+ }++ pub async fn delete_connect_state_request(&self) -> SpClientResult {+ let endpoint = format!("/connect-state/v1/devices/{}", self.session().device_id());+ self.request(&Method::DELETE, &endpoint, None, None).await+ }++ pub async fn put_connect_state_inactive(&self, notify: bool) -> SpClientResult {+ let endpoint = format!(+ "/connect-state/v1/devices/{}/inactive?notify={notify}",+ self.session().device_id()+ );++ let mut headers = HeaderMap::new();+ headers.insert(CONNECTION_ID, self.session().connection_id().parse()?);++ self.request(&Method::PUT, &endpoint, Some(headers), None)+ .await+ }++ pub async fn get_extended_metadata(+ &self,+ request: BatchedEntityRequest,+ ) -> Result<BatchedExtensionResponse, Error> {+ let res = self+ .request_with_protobuf(+ &Method::POST,+ "/extended-metadata/v0/extended-metadata",+ None,+ &request,+ )+ .await?;+ Ok(BatchedExtensionResponse::parse_from_bytes(&res)?)+ }++ pub async fn get_metadata(&self, kind: ExtensionKind, id: &SpotifyUri) -> SpClientResult {+ let req = BatchedEntityRequest {+ entity_request: vec![EntityRequest {+ entity_uri: id.to_uri()?,+ query: vec![ExtensionQuery {+ extension_kind: EnumOrUnknown::new(kind),+ ..Default::default()+ }],+ ..Default::default()+ }],+ ..Default::default()+ };++ let mut res = self.get_extended_metadata(req).await?;+ let mut extended_metadata = res+ .extended_metadata+ .pop()+ .ok_or(SpClientError::ExpectedEntry("extended_metadata"))?;++ let mut data = extended_metadata+ .extension_data+ .pop()+ .ok_or(SpClientError::ExpectedEntry("extension_data"))?;++ match data.extension_data.take() {+ None => Err(SpClientError::ExpectedEntry("data").into()),+ Some(data) => Ok(Bytes::from(data.value)),+ }+ }++ pub async fn get_track_metadata(&self, track_uri: &SpotifyUri) -> SpClientResult {+ self.get_metadata(ExtensionKind::TRACK_V4, track_uri).await+ }++ pub async fn get_episode_metadata(&self, episode_uri: &SpotifyUri) -> SpClientResult {+ self.get_metadata(ExtensionKind::EPISODE_V4, episode_uri)+ .await+ }++ pub async fn get_album_metadata(&self, album_uri: &SpotifyUri) -> SpClientResult {+ self.get_metadata(ExtensionKind::ALBUM_V4, album_uri).await+ }++ pub async fn get_artist_metadata(&self, artist_uri: &SpotifyUri) -> SpClientResult {+ self.get_metadata(ExtensionKind::ARTIST_V4, artist_uri)+ .await+ }++ pub async fn get_show_metadata(&self, show_uri: &SpotifyUri) -> SpClientResult {+ self.get_metadata(ExtensionKind::SHOW_V4, show_uri).await+ }++ pub async fn get_lyrics(&self, track_id: &SpotifyId) -> SpClientResult {+ let endpoint = format!("/color-lyrics/v2/track/{}", track_id.to_base62()?);++ self.request_as_json(&Method::GET, &endpoint, None, None)+ .await+ }++ pub async fn get_lyrics_for_image(+ &self,+ track_id: &SpotifyId,+ image_id: &FileId,+ ) -> SpClientResult {+ let endpoint = format!(+ "/color-lyrics/v2/track/{}/image/spotify:image:{}",+ track_id.to_base62()?,+ image_id+ );++ self.request_as_json(&Method::GET, &endpoint, None, None)+ .await+ }++ pub async fn get_playlist(&self, playlist_id: &SpotifyId) -> SpClientResult {+ let endpoint = format!("/playlist/v2/playlist/{}", playlist_id.to_base62()?);++ self.request(&Method::GET, &endpoint, None, None).await+ }++ pub async fn get_user_profile(+ &self,+ username: &str,+ playlist_limit: Option<u32>,+ artist_limit: Option<u32>,+ ) -> SpClientResult {+ let mut endpoint = format!("/user-profile-view/v3/profile/{username}");++ if playlist_limit.is_some() || artist_limit.is_some() {+ let _ = write!(endpoint, "?");++ if let Some(limit) = playlist_limit {+ let _ = write!(endpoint, "playlist_limit={limit}");+ if artist_limit.is_some() {+ let _ = write!(endpoint, "&");+ }+ }++ if let Some(limit) = artist_limit {+ let _ = write!(endpoint, "artist_limit={limit}");+ }+ }++ self.request_as_json(&Method::GET, &endpoint, None, None)+ .await+ }++ pub async fn get_user_followers(&self, username: &str) -> SpClientResult {+ let endpoint = format!("/user-profile-view/v3/profile/{username}/followers");++ self.request_as_json(&Method::GET, &endpoint, None, None)+ .await+ }++ pub async fn get_user_following(&self, username: &str) -> SpClientResult {+ let endpoint = format!("/user-profile-view/v3/profile/{username}/following");++ self.request_as_json(&Method::GET, &endpoint, None, None)+ .await+ }++ pub async fn get_radio_for_track(&self, track_uri: &SpotifyUri) -> SpClientResult {+ let endpoint = format!(+ "/inspiredby-mix/v2/seed_to_playlist/{}?response-format=json",+ track_uri.to_uri()?+ );++ self.request_as_json(&Method::GET, &endpoint, None, None)+ .await+ }++ // Known working scopes: stations, tracks+ // For others see: https://gist.github.com/roderickvd/62df5b74d2179a12de6817a37bb474f9+ //+ // Seen-in-the-wild but unimplemented query parameters:+ // - image_style=gradient_overlay+ // - excludeClusters=true+ // - language=en+ // - count_tracks=0+ // - market=from_token+ pub async fn get_apollo_station(+ &self,+ scope: &str,+ context_uri: &str,+ count: Option<usize>,+ previous_tracks: Vec<SpotifyId>,+ autoplay: bool,+ ) -> SpClientResult {+ let mut endpoint = format!("/radio-apollo/v3/{scope}/{context_uri}?autoplay={autoplay}");++ // Spotify has a default of 50+ if let Some(count) = count {+ let _ = write!(endpoint, "&count={count}");+ }++ let previous_track_str = previous_tracks+ .iter()+ .map(|track| track.to_base62())+ .collect::<Result<Vec<_>, _>>()?+ .join(",");+ // better than checking `previous_tracks.len() > 0` because the `filter_map` could still return 0 items+ if !previous_track_str.is_empty() {+ let _ = write!(endpoint, "&prev_tracks={previous_track_str}");+ }++ self.request_as_json(&Method::GET, &endpoint, None, None)+ .await+ }++ pub async fn get_next_page(&self, next_page_uri: &str) -> SpClientResult {+ let endpoint = next_page_uri.trim_start_matches("hm:/");+ self.request_as_json(&Method::GET, endpoint, None, None)+ .await+ }++ // TODO: Seen-in-the-wild but unimplemented endpoints+ // - /presence-view/v1/buddylist++ pub async fn get_audio_storage(&self, file_id: &FileId) -> SpClientResult {+ let endpoint = format!(+ "/storage-resolve/files/audio/interactive/{}",+ file_id.to_base16()?+ );+ self.request(&Method::GET, &endpoint, None, None).await+ }++ pub fn stream_from_cdn<U>(+ &self,+ cdn_url: U,+ offset: usize,+ length: usize,+ ) -> Result<IntoStream<ResponseFuture>, Error>+ where+ U: TryInto<Uri>,+ <U as TryInto<Uri>>::Error: Into<http::Error>,+ {+ let req = Request::builder()+ .method(&Method::GET)+ .uri(cdn_url)+ .header(+ RANGE,+ HeaderValue::from_str(&format!("bytes={}-{}", offset, offset + length - 1))?,+ )+ .body(Bytes::new())?;++ let stream = self.session().http_client().request_stream(req)?;++ Ok(stream)+ }++ pub async fn request_url(&self, url: &str) -> SpClientResult {+ let request = Request::builder()+ .method(&Method::GET)+ .uri(url)+ .body(Bytes::new())?;++ self.session().http_client().request_body(request).await+ }++ // Audio preview in 96 kbps MP3, unencrypted+ pub async fn get_audio_preview(&self, preview_id: &FileId) -> SpClientResult {+ const ATTRIBUTE: &str = "audio-preview-url-template";+ let template = self+ .session()+ .get_user_attribute(ATTRIBUTE)+ .ok_or_else(|| SpClientError::Attribute(ATTRIBUTE.to_string()))?;++ let mut url = template.replace("{id}", &preview_id.to_base16()?);+ let separator = match url.find('?') {+ Some(_) => "&",+ None => "?",+ };+ let _ = write!(url, "{}cid={}", separator, self.session().client_id());++ self.request_url(&url).await+ }++ // The first 128 kB of a track, unencrypted+ pub async fn get_head_file(&self, file_id: &FileId) -> SpClientResult {+ const ATTRIBUTE: &str = "head-files-url";+ let template = self+ .session()+ .get_user_attribute(ATTRIBUTE)+ .ok_or_else(|| SpClientError::Attribute(ATTRIBUTE.to_string()))?;++ let url = template.replace("{file_id}", &file_id.to_base16()?);++ self.request_url(&url).await+ }++ pub async fn get_image(&self, image_id: &FileId) -> SpClientResult {+ const ATTRIBUTE: &str = "image-url";+ let template = self+ .session()+ .get_user_attribute(ATTRIBUTE)+ .ok_or_else(|| SpClientError::Attribute(ATTRIBUTE.to_string()))?;+ let url = template.replace("{file_id}", &image_id.to_base16()?);++ self.request_url(&url).await+ }++ /// Request the context for an uri+ ///+ /// All [SpotifyId] uris are supported in addition to the following special uris:+ /// - liked songs:+ /// - all: `spotify:user:<user_id>:collection`+ /// - of artist: `spotify:user:<user_id>:collection:artist:<artist_id>`+ /// - search: `spotify:search:<search+query>` (whitespaces are replaced with `+`)+ ///+ /// ## Query params found in the wild:+ /// - include_video=true+ ///+ /// ## Known results of uri types:+ /// - uris of type `track`+ /// - returns a single page with a single track+ /// - when requesting a single track with a query in the request, the returned track uri+ /// **will** contain the query+ /// - uris of type `artist`+ /// - returns 2 pages with tracks: 10 most popular tracks and latest/popular album+ /// - remaining pages are artist albums sorted by popularity (only provided as page_url)+ /// - uris of type `search`+ /// - is massively influenced by the provided query+ /// - the query result shown by the search expects no query at all+ /// - uri looks like `spotify:search:never+gonna`+ pub async fn get_context(&self, uri: &str) -> Result<Context, Error> {+ let uri = format!("/context-resolve/v1/{uri}");++ let res = self+ .request_with_options(&Method::GET, &uri, None, None, &NO_METRICS_AND_SALT)+ .await?;+ let ctx_json = String::from_utf8(res.to_vec())?;+ if ctx_json.is_empty() {+ Err(SpClientError::NoData)?+ }++ let ctx = protobuf_json_mapping::parse_from_str::<Context>(&ctx_json);++ if ctx.is_err() {+ trace!("failed parsing context: {ctx_json}")+ }++ Ok(ctx?)+ }++ pub async fn get_autoplay_context(+ &self,+ context_request: &AutoplayContextRequest,+ ) -> Result<Context, Error> {+ let res = self+ .request_with_protobuf_and_options(+ &Method::POST,+ "/context-resolve/v1/autoplay",+ None,+ context_request,+ &NO_METRICS_AND_SALT,+ )+ .await?;++ let ctx_json = String::from_utf8(res.to_vec())?;+ if ctx_json.is_empty() {+ Err(SpClientError::NoData)?+ }++ let ctx = protobuf_json_mapping::parse_from_str::<Context>(&ctx_json);++ if ctx.is_err() {+ trace!("failed parsing context: {ctx_json}")+ }++ Ok(ctx?)+ }++ pub async fn get_rootlist(&self, from: usize, length: Option<usize>) -> SpClientResult {+ let length = length.unwrap_or(120);+ let user = self.session().username();+ let endpoint = format!(+ "/playlist/v2/user/{user}/rootlist?decorate=revision,attributes,length,owner,capabilities,status_code&from={from}&length={length}"+ );++ self.request(&Method::GET, &endpoint, None, None).await+ }++ /// Triggers the transfers of the playback from one device to another+ ///+ /// Using the same `device_id` for `from_device_id` and `to_device_id`, initiates the transfer+ /// from the currently active device.+ pub async fn transfer(+ &self,+ from_device_id: &str,+ to_device_id: &str,+ transfer_request: Option<&TransferRequest>,+ ) -> SpClientResult {+ let body = transfer_request.map(serde_json::to_string).transpose()?;++ let endpoint =+ format!("/connect-state/v1/connect/transfer/from/{from_device_id}/to/{to_device_id}");+ self.request_with_options(+ &Method::POST,+ &endpoint,+ None,+ body.as_deref().map(|s| s.as_bytes()),+ &NO_METRICS_AND_SALT,+ )+ .await+ }+}diff --git a/native/vendor/librespot-core/src/spotify_id.rs b/native/vendor/librespot-core/src/spotify_id.rsnew file mode 100644index 0000000..c627b55--- /dev/null+++ b/native/vendor/librespot-core/src/spotify_id.rs@@ -0,0 +1,387 @@+use std::fmt;++use thiserror::Error;++use crate::{Error, SpotifyUri};++// re-export FileId for historic reasons, when it was part of this mod+pub use crate::FileId;++#[derive(Clone, Copy, PartialEq, Eq, Hash)]+pub struct SpotifyId {+ pub id: u128,+}++#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]+pub enum SpotifyIdError {+ #[error("ID cannot be parsed")]+ InvalidId,+ #[error("not a valid Spotify ID")]+ InvalidFormat,+}++impl From<SpotifyIdError> for Error {+ fn from(err: SpotifyIdError) -> Self {+ Error::invalid_argument(err)+ }+}++pub type SpotifyIdResult = Result<SpotifyId, Error>;++const BASE62_DIGITS: &[u8; 62] = b"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";+const BASE16_DIGITS: &[u8; 16] = b"0123456789abcdef";++impl SpotifyId {+ const SIZE: usize = 16;+ const SIZE_BASE16: usize = 32;+ const SIZE_BASE62: usize = 22;++ /// Parses a base16 (hex) encoded [Spotify ID] into a `SpotifyId`.+ ///+ /// `src` is expected to be 32 bytes long and encoded using valid characters.+ ///+ /// [Spotify ID]: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids+ pub fn from_base16(src: &str) -> SpotifyIdResult {+ if src.len() != 32 {+ return Err(SpotifyIdError::InvalidId.into());+ }+ let mut dst: u128 = 0;++ for c in src.as_bytes() {+ let p = match c {+ b'0'..=b'9' => c - b'0',+ b'a'..=b'f' => c - b'a' + 10,+ _ => return Err(SpotifyIdError::InvalidId.into()),+ } as u128;++ dst <<= 4;+ dst += p;+ }++ Ok(Self { id: dst })+ }++ /// Parses a base62 encoded [Spotify ID] into a `u128`.+ ///+ /// `src` is expected to be 22 bytes long and encoded using valid characters.+ ///+ /// [Spotify ID]: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids+ pub fn from_base62(src: &str) -> SpotifyIdResult {+ if src.len() != Self::SIZE_BASE62 {+ return Err(SpotifyIdError::InvalidId.into());+ }+ let mut dst: u128 = 0;++ for c in src.as_bytes() {+ let p = match c {+ b'0'..=b'9' => c - b'0',+ b'a'..=b'z' => c - b'a' + 10,+ b'A'..=b'Z' => c - b'A' + 36,+ _ => return Err(SpotifyIdError::InvalidId.into()),+ } as u128;++ dst = dst.checked_mul(62).ok_or(SpotifyIdError::InvalidId)?;+ dst = dst.checked_add(p).ok_or(SpotifyIdError::InvalidId)?;+ }++ Ok(Self { id: dst })+ }++ /// Creates a `u128` from a copy of `SpotifyId::SIZE` (16) bytes in big-endian order.+ ///+ /// The resulting `SpotifyId` will default to a `SpotifyItemType::Unknown`.+ pub fn from_raw(src: &[u8]) -> SpotifyIdResult {+ match src.try_into() {+ Ok(dst) => Ok(Self {+ id: u128::from_be_bytes(dst),+ }),+ Err(_) => Err(SpotifyIdError::InvalidId.into()),+ }+ }++ /// Returns the `SpotifyId` as a base16 (hex) encoded, `SpotifyId::SIZE_BASE16` (32)+ /// character long `String`.+ #[allow(clippy::wrong_self_convention)]+ pub fn to_base16(&self) -> Result<String, Error> {+ to_base16(&self.to_raw(), &mut [0u8; Self::SIZE_BASE16])+ }++ /// Returns the `SpotifyId` as a [canonically] base62 encoded, `SpotifyId::SIZE_BASE62` (22)+ /// character long `String`.+ ///+ /// [canonically]: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids+ #[allow(clippy::wrong_self_convention)]+ pub fn to_base62(&self) -> Result<String, Error> {+ let mut dst = [0u8; 22];+ let mut i = 0;+ let n = self.id;++ // The algorithm is based on:+ // https://github.com/trezor/trezor-crypto/blob/c316e775a2152db255ace96b6b65ac0f20525ec0/base58.c+ //+ // We are not using naive division of self.id as it is an u128 and div + mod are software+ // emulated at runtime (and unoptimized into mul + shift) on non-128bit platforms,+ // making them very expensive.+ //+ // Trezor's algorithm allows us to stick to arithmetic on native registers making this+ // an order of magnitude faster. Additionally, as our sizes are known, instead of+ // dealing with the ID on a byte by byte basis, we decompose it into four u32s and+ // use 64-bit arithmetic on them for an additional speedup.+ for shift in &[96, 64, 32, 0] {+ let mut carry = (n >> shift) as u32 as u64;++ for b in &mut dst[..i] {+ carry += (*b as u64) << 32;+ *b = (carry % 62) as u8;+ carry /= 62;+ }++ while carry > 0 {+ dst[i] = (carry % 62) as u8;+ carry /= 62;+ i += 1;+ }+ }++ for b in &mut dst {+ *b = BASE62_DIGITS[*b as usize];+ }++ dst.reverse();++ String::from_utf8(dst.to_vec()).map_err(|_| SpotifyIdError::InvalidId.into())+ }++ /// Returns a copy of the `SpotifyId` as an array of `SpotifyId::SIZE` (16) bytes in+ /// big-endian order.+ #[allow(clippy::wrong_self_convention)]+ pub fn to_raw(&self) -> [u8; Self::SIZE] {+ self.id.to_be_bytes()+ }+}++impl fmt::Debug for SpotifyId {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ f.debug_tuple("SpotifyId")+ .field(&self.to_base62().unwrap_or_else(|_| "invalid uri".into()))+ .finish()+ }+}++impl fmt::Display for SpotifyId {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ f.write_str(&self.to_base62().unwrap_or_else(|_| "invalid uri".into()))+ }+}++impl TryFrom<&[u8]> for SpotifyId {+ type Error = crate::Error;+ fn try_from(src: &[u8]) -> Result<Self, Self::Error> {+ Self::from_raw(src)+ }+}++impl TryFrom<&str> for SpotifyId {+ type Error = crate::Error;+ fn try_from(src: &str) -> Result<Self, Self::Error> {+ Self::from_base62(src)+ }+}++impl TryFrom<String> for SpotifyId {+ type Error = crate::Error;+ fn try_from(src: String) -> Result<Self, Self::Error> {+ Self::try_from(src.as_str())+ }+}++impl TryFrom<&Vec<u8>> for SpotifyId {+ type Error = crate::Error;+ fn try_from(src: &Vec<u8>) -> Result<Self, Self::Error> {+ Self::try_from(src.as_slice())+ }+}++impl TryFrom<&SpotifyUri> for SpotifyId {+ type Error = crate::Error;+ fn try_from(value: &SpotifyUri) -> Result<Self, Self::Error> {+ match value {+ SpotifyUri::Album { id }+ | SpotifyUri::Artist { id }+ | SpotifyUri::Episode { id }+ | SpotifyUri::Playlist { id, .. }+ | SpotifyUri::Show { id }+ | SpotifyUri::Track { id } => Ok(*id),+ SpotifyUri::Local { .. } | SpotifyUri::Unknown { .. } => {+ Err(SpotifyIdError::InvalidFormat.into())+ }+ }+ }+}++pub fn to_base16(src: &[u8], buf: &mut [u8]) -> Result<String, Error> {+ let mut i = 0;+ for v in src {+ buf[i] = BASE16_DIGITS[(v >> 4) as usize];+ buf[i + 1] = BASE16_DIGITS[(v & 0x0f) as usize];+ i += 2;+ }++ String::from_utf8(buf.to_vec()).map_err(|_| SpotifyIdError::InvalidId.into())+}++#[cfg(test)]+mod tests {+ use super::*;++ struct ConversionCase {+ id: u128,+ base16: &'static str,+ base62: &'static str,+ raw: &'static [u8],+ }++ static CONV_VALID: [ConversionCase; 5] = [+ ConversionCase {+ id: 238762092608182713602505436543891614649,+ base16: "b39fe8081e1f4c54be38e8d6f9f12bb9",+ base62: "5sWHDYs0csV6RS48xBl0tH",+ raw: &[+ 179, 159, 232, 8, 30, 31, 76, 84, 190, 56, 232, 214, 249, 241, 43, 185,+ ],+ },+ ConversionCase {+ id: 204841891221366092811751085145916697048,+ base16: "9a1b1cfbc6f244569ae0356c77bbe9d8",+ base62: "4GNcXTGWmnZ3ySrqvol3o4",+ raw: &[+ 154, 27, 28, 251, 198, 242, 68, 86, 154, 224, 53, 108, 119, 187, 233, 216,+ ],+ },+ ConversionCase {+ id: 204841891221366092811751085145916697048,+ base16: "9a1b1cfbc6f244569ae0356c77bbe9d8",+ base62: "4GNcXTGWmnZ3ySrqvol3o4",+ raw: &[+ 154, 27, 28, 251, 198, 242, 68, 86, 154, 224, 53, 108, 119, 187, 233, 216,+ ],+ },+ ConversionCase {+ id: 204841891221366092811751085145916697048,+ base16: "9a1b1cfbc6f244569ae0356c77bbe9d8",+ base62: "4GNcXTGWmnZ3ySrqvol3o4",+ raw: &[+ 154, 27, 28, 251, 198, 242, 68, 86, 154, 224, 53, 108, 119, 187, 233, 216,+ ],+ },+ ConversionCase {+ id: 0,+ base16: "00000000000000000000000000000000",+ base62: "0000000000000000000000",+ raw: &[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],+ },+ ];++ static CONV_INVALID: [ConversionCase; 5] = [+ ConversionCase {+ id: 0,+ base16: "ZZZZZ8081e1f4c54be38e8d6f9f12bb9",+ base62: "!!!!!Ys0csV6RS48xBl0tH",+ raw: &[+ // Invalid length.+ 154, 27, 28, 251, 198, 242, 68, 86, 154, 224, 5, 3, 108, 119, 187, 233, 216, 255,+ ],+ },+ ConversionCase {+ id: 0,+ base16: "--------------------",+ base62: "....................",+ raw: &[+ // Invalid length.+ 154, 27, 28, 251,+ ],+ },+ ConversionCase {+ id: 0,+ // too long, should return error but not panic overflow+ base16: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",+ // too long, should return error but not panic overflow+ base62: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",+ raw: &[+ // Invalid length.+ 154, 27, 28, 251,+ ],+ },+ ConversionCase {+ id: 0,+ base16: "--------------------",+ // too short to encode a 128 bits int+ base62: "aa",+ raw: &[+ // Invalid length.+ 154, 27, 28, 251,+ ],+ },+ ConversionCase {+ id: 0,+ base16: "--------------------",+ // too high of a value, this would need a 132 bits int+ base62: "ZZZZZZZZZZZZZZZZZZZZZZ",+ raw: &[+ // Invalid length.+ 154, 27, 28, 251,+ ],+ },+ ];++ #[test]+ fn from_base62() {+ for c in &CONV_VALID {+ assert_eq!(SpotifyId::from_base62(c.base62).unwrap().id, c.id);+ }++ for c in &CONV_INVALID {+ assert!(SpotifyId::from_base62(c.base62).is_err(),);+ }+ }++ #[test]+ fn to_base62() {+ for c in &CONV_VALID {+ let id = SpotifyId { id: c.id };++ assert_eq!(id.to_base62().unwrap(), c.base62);+ }+ }++ #[test]+ fn from_base16() {+ for c in &CONV_VALID {+ assert_eq!(SpotifyId::from_base16(c.base16).unwrap().id, c.id);+ }++ for c in &CONV_INVALID {+ assert!(SpotifyId::from_base16(c.base16).is_err(),);+ }+ }++ #[test]+ fn to_base16() {+ for c in &CONV_VALID {+ let id = SpotifyId { id: c.id };++ assert_eq!(id.to_base16().unwrap(), c.base16);+ }+ }++ #[test]+ fn from_raw() {+ for c in &CONV_VALID {+ assert_eq!(SpotifyId::from_raw(c.raw).unwrap().id, c.id);+ }++ for c in &CONV_INVALID {+ assert!(SpotifyId::from_raw(c.raw).is_err());+ }+ }+}diff --git a/native/vendor/librespot-core/src/spotify_uri.rs b/native/vendor/librespot-core/src/spotify_uri.rsnew file mode 100644index 0000000..f92f2d3--- /dev/null+++ b/native/vendor/librespot-core/src/spotify_uri.rs@@ -0,0 +1,615 @@+use crate::{Error, SpotifyId};+use std::{borrow::Cow, fmt, str::FromStr, time::Duration};+use thiserror::Error;++use librespot_protocol as protocol;++const SPOTIFY_ITEM_TYPE_ALBUM: &str = "album";+const SPOTIFY_ITEM_TYPE_ARTIST: &str = "artist";+const SPOTIFY_ITEM_TYPE_EPISODE: &str = "episode";+const SPOTIFY_ITEM_TYPE_PLAYLIST: &str = "playlist";+const SPOTIFY_ITEM_TYPE_SHOW: &str = "show";+const SPOTIFY_ITEM_TYPE_TRACK: &str = "track";+const SPOTIFY_ITEM_TYPE_LOCAL: &str = "local";+const SPOTIFY_ITEM_TYPE_UNKNOWN: &str = "unknown";++#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]+pub enum SpotifyUriError {+ #[error("not a valid Spotify URI")]+ InvalidFormat,+ #[error("URI does not belong to Spotify")]+ InvalidRoot,+}++impl From<SpotifyUriError> for Error {+ fn from(err: SpotifyUriError) -> Self {+ Error::invalid_argument(err)+ }+}++pub type SpotifyUriResult = Result<SpotifyUri, Error>;++#[derive(Clone, PartialEq, Eq, Hash)]+pub enum SpotifyUri {+ Album {+ id: SpotifyId,+ },+ Artist {+ id: SpotifyId,+ },+ Episode {+ id: SpotifyId,+ },+ Playlist {+ user: Option<String>,+ id: SpotifyId,+ },+ Show {+ id: SpotifyId,+ },+ Track {+ id: SpotifyId,+ },+ Local {+ artist: String,+ album_title: String,+ track_title: String,+ duration: std::time::Duration,+ },+ Unknown {+ kind: Cow<'static, str>,+ id: String,+ },+}++impl SpotifyUri {+ /// Returns whether this `SpotifyUri` is for a playable audio item, if known.+ pub fn is_playable(&self) -> bool {+ matches!(+ self,+ SpotifyUri::Episode { .. } | SpotifyUri::Track { .. } | SpotifyUri::Local { .. }+ )+ }++ /// Gets the item type of this URI as a static string+ pub fn item_type(&self) -> &'static str {+ match &self {+ SpotifyUri::Album { .. } => SPOTIFY_ITEM_TYPE_ALBUM,+ SpotifyUri::Artist { .. } => SPOTIFY_ITEM_TYPE_ARTIST,+ SpotifyUri::Episode { .. } => SPOTIFY_ITEM_TYPE_EPISODE,+ SpotifyUri::Playlist { .. } => SPOTIFY_ITEM_TYPE_PLAYLIST,+ SpotifyUri::Show { .. } => SPOTIFY_ITEM_TYPE_SHOW,+ SpotifyUri::Track { .. } => SPOTIFY_ITEM_TYPE_TRACK,+ SpotifyUri::Local { .. } => SPOTIFY_ITEM_TYPE_LOCAL,+ SpotifyUri::Unknown { .. } => SPOTIFY_ITEM_TYPE_UNKNOWN,+ }+ }++ /// Gets the ID of this URI. The resource ID is the component of the URI that identifies+ /// the resource after its type label. If `self` is a named ID, the user will be omitted.+ pub fn to_id(&self) -> Result<String, Error> {+ match &self {+ SpotifyUri::Album { id }+ | SpotifyUri::Artist { id }+ | SpotifyUri::Episode { id }+ | SpotifyUri::Playlist { id, .. }+ | SpotifyUri::Show { id }+ | SpotifyUri::Track { id } => id.to_base62(),+ SpotifyUri::Local {+ artist,+ album_title,+ track_title,+ duration,+ } => {+ let duration_secs = duration.as_secs();+ Ok(format!(+ "{artist}:{album_title}:{track_title}:{duration_secs}"+ ))+ }+ SpotifyUri::Unknown { id, .. } => Ok(id.clone()),+ }+ }++ /// Parses a [Spotify URI] into a `SpotifyUri`.+ ///+ /// `uri` is expected to be in the canonical form `spotify:{type}:{id}`, where `{type}`+ /// can be arbitrary while `{id}` is in a format that varies based on the `{type}`:+ ///+ /// - For most item types, a 22-character long, base62 encoded Spotify ID is expected.+ /// - For local files, an arbitrary length string with the fields+ /// `{artist}:{album_title}:{track_title}:{duration_in_seconds}` is expected.+ ///+ /// Spotify URI: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids+ pub fn from_uri(src: &str) -> SpotifyUriResult {+ // Basic: `spotify:{type}:{id}`+ // Named: `spotify:user:{user}:{type}:{id}`+ // Local: `spotify:local:{artist}:{album_title}:{track_title}:{duration_in_seconds}`+ let mut parts = src.split(':');++ let scheme = parts.next().ok_or(SpotifyUriError::InvalidFormat)?;++ if scheme != "spotify" {+ return Err(SpotifyUriError::InvalidRoot.into());+ }++ let mut username: Option<String> = None;++ let item_type = {+ let next = parts.next().ok_or(SpotifyUriError::InvalidFormat)?;+ if next == "user" {+ username.replace(+ parts+ .next()+ .ok_or(SpotifyUriError::InvalidFormat)?+ .to_owned(),+ );+ parts.next().ok_or(SpotifyUriError::InvalidFormat)?+ } else {+ next+ }+ };++ let name = parts.next().ok_or(SpotifyUriError::InvalidFormat)?;++ match item_type {+ SPOTIFY_ITEM_TYPE_ALBUM => Ok(Self::Album {+ id: SpotifyId::from_base62(name)?,+ }),+ SPOTIFY_ITEM_TYPE_ARTIST => Ok(Self::Artist {+ id: SpotifyId::from_base62(name)?,+ }),+ SPOTIFY_ITEM_TYPE_EPISODE => Ok(Self::Episode {+ id: SpotifyId::from_base62(name)?,+ }),+ SPOTIFY_ITEM_TYPE_PLAYLIST => Ok(Self::Playlist {+ id: SpotifyId::from_base62(name)?,+ user: username,+ }),+ SPOTIFY_ITEM_TYPE_SHOW => Ok(Self::Show {+ id: SpotifyId::from_base62(name)?,+ }),+ SPOTIFY_ITEM_TYPE_TRACK => Ok(Self::Track {+ id: SpotifyId::from_base62(name)?,+ }),+ SPOTIFY_ITEM_TYPE_LOCAL => {+ let artist = name;+ let album_title = parts.next().ok_or(SpotifyUriError::InvalidFormat)?;+ let track_title = parts.next().ok_or(SpotifyUriError::InvalidFormat)?;+ let duration_secs = parts+ .next()+ .and_then(|f| u64::from_str(f).ok())+ .ok_or(SpotifyUriError::InvalidFormat)?;++ Ok(Self::Local {+ artist: artist.to_owned(),+ album_title: album_title.to_owned(),+ track_title: track_title.to_owned(),+ duration: Duration::from_secs(duration_secs),+ })+ }+ _ => Ok(Self::Unknown {+ kind: item_type.to_owned().into(),+ id: name.to_owned(),+ }),+ }+ }++ /// Returns the `SpotifyUri` as a [Spotify URI] in the canonical form `spotify:{type}:{id}`,+ /// where `{type}` is an arbitrary string and `{id}` is a 22-character long, base62 encoded+ /// Spotify ID.+ ///+ /// If the `SpotifyUri` has an associated type unrecognized by the library, `{type}` will+ /// be encoded as `unknown`.+ ///+ /// If the `SpotifyUri` is named, it will be returned in the form+ /// `spotify:user:{user}:{type}:{id}`.+ ///+ /// [Spotify URI]: https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids+ pub fn to_uri(&self) -> Result<String, Error> {+ let item_type = self.item_type();+ let name = self.to_id()?;++ if let SpotifyUri::Playlist {+ id,+ user: Some(user),+ } = self+ {+ Ok(format!("spotify:user:{user}:{item_type}:{id}"))+ } else {+ Ok(format!("spotify:{item_type}:{name}"))+ }+ }++ /// Gets the name of this URI. The resource name is the component of the URI that identifies+ /// the resource after its type label. If `self` is a named ID, the user will be omitted.+ ///+ /// Deprecated: not all IDs can be represented in Base62, so this function has been renamed to+ /// [SpotifyUri::to_id], which this implementation forwards to.+ #[deprecated(since = "0.8.0", note = "use to_name instead")]+ pub fn to_base62(&self) -> Result<String, Error> {+ self.to_id()+ }+}++impl fmt::Debug for SpotifyUri {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ f.debug_tuple("SpotifyUri")+ .field(&self.to_uri().unwrap_or_else(|_| "invalid uri".into()))+ .finish()+ }+}++impl fmt::Display for SpotifyUri {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ f.write_str(&self.to_uri().unwrap_or_else(|_| "invalid uri".into()))+ }+}++impl TryFrom<&protocol::metadata::Album> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(album: &protocol::metadata::Album) -> Result<Self, Self::Error> {+ Ok(Self::Album {+ id: SpotifyId::from_raw(album.gid())?,+ })+ }+}++impl TryFrom<&protocol::metadata::Artist> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(artist: &protocol::metadata::Artist) -> Result<Self, Self::Error> {+ Ok(Self::Artist {+ id: SpotifyId::from_raw(artist.gid())?,+ })+ }+}++impl TryFrom<&protocol::metadata::Episode> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(episode: &protocol::metadata::Episode) -> Result<Self, Self::Error> {+ Ok(Self::Episode {+ id: SpotifyId::from_raw(episode.gid())?,+ })+ }+}++impl TryFrom<&protocol::metadata::Track> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(track: &protocol::metadata::Track) -> Result<Self, Self::Error> {+ Ok(Self::Track {+ id: SpotifyId::from_raw(track.gid())?,+ })+ }+}++impl TryFrom<&protocol::metadata::Show> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(show: &protocol::metadata::Show) -> Result<Self, Self::Error> {+ Ok(Self::Show {+ id: SpotifyId::from_raw(show.gid())?,+ })+ }+}++impl TryFrom<&protocol::metadata::ArtistWithRole> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(artist: &protocol::metadata::ArtistWithRole) -> Result<Self, Self::Error> {+ Ok(Self::Artist {+ id: SpotifyId::from_raw(artist.artist_gid())?,+ })+ }+}++impl TryFrom<&protocol::playlist4_external::Item> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(item: &protocol::playlist4_external::Item) -> Result<Self, Self::Error> {+ Self::from_uri(item.uri())+ }+}++// Note that this is the unique revision of an item's metadata on a playlist,+// not the ID of that item or playlist.+impl TryFrom<&protocol::playlist4_external::MetaItem> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(item: &protocol::playlist4_external::MetaItem) -> Result<Self, Self::Error> {+ Ok(Self::Unknown {+ kind: "MetaItem".into(),+ id: SpotifyId::try_from(item.revision())?.to_base62()?,+ })+ }+}++// Note that this is the unique revision of a playlist, not the ID of that playlist.+impl TryFrom<&protocol::playlist4_external::SelectedListContent> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(+ playlist: &protocol::playlist4_external::SelectedListContent,+ ) -> Result<Self, Self::Error> {+ Ok(Self::Unknown {+ kind: "SelectedListContent".into(),+ id: SpotifyId::try_from(playlist.revision())?.to_base62()?,+ })+ }+}++// TODO: check meaning and format of this field in the wild. This might be a FileId,+// which is why we now don't create a separate `Playlist` enum value yet and choose+// to discard any item type.+impl TryFrom<&protocol::playlist_annotate3::TranscodedPicture> for SpotifyUri {+ type Error = crate::Error;+ fn try_from(+ picture: &protocol::playlist_annotate3::TranscodedPicture,+ ) -> Result<Self, Self::Error> {+ Ok(Self::Unknown {+ kind: "TranscodedPicture".into(),+ id: picture.uri().to_owned(),+ })+ }+}++#[cfg(test)]+mod tests {+ use super::*;++ struct ConversionCase {+ parsed: SpotifyUri,+ uri: &'static str,+ base62: &'static str,+ }++ static CONV_VALID: [ConversionCase; 4] = [+ ConversionCase {+ parsed: SpotifyUri::Track {+ id: SpotifyId {+ id: 238762092608182713602505436543891614649,+ },+ },+ uri: "spotify:track:5sWHDYs0csV6RS48xBl0tH",+ base62: "5sWHDYs0csV6RS48xBl0tH",+ },+ ConversionCase {+ parsed: SpotifyUri::Track {+ id: SpotifyId {+ id: 204841891221366092811751085145916697048,+ },+ },+ uri: "spotify:track:4GNcXTGWmnZ3ySrqvol3o4",+ base62: "4GNcXTGWmnZ3ySrqvol3o4",+ },+ ConversionCase {+ parsed: SpotifyUri::Episode {+ id: SpotifyId {+ id: 204841891221366092811751085145916697048,+ },+ },+ uri: "spotify:episode:4GNcXTGWmnZ3ySrqvol3o4",+ base62: "4GNcXTGWmnZ3ySrqvol3o4",+ },+ ConversionCase {+ parsed: SpotifyUri::Show {+ id: SpotifyId {+ id: 204841891221366092811751085145916697048,+ },+ },+ uri: "spotify:show:4GNcXTGWmnZ3ySrqvol3o4",+ base62: "4GNcXTGWmnZ3ySrqvol3o4",+ },+ ];++ static CONV_INVALID: [ConversionCase; 5] = [+ ConversionCase {+ parsed: SpotifyUri::Track {+ id: SpotifyId { id: 0 },+ },+ // Invalid ID in the URI.+ uri: "spotify:track:5sWHDYs0Bl0tH",+ base62: "!!!!!Ys0csV6RS48xBl0tH",+ },+ ConversionCase {+ parsed: SpotifyUri::Track {+ id: SpotifyId { id: 0 },+ },+ // Missing colon between ID and type.+ uri: "spotify:arbitrarywhatever5sWHDYs0csV6RS48xBl0tH",+ base62: "....................",+ },+ ConversionCase {+ parsed: SpotifyUri::Track {+ id: SpotifyId { id: 0 },+ },+ // Uri too short+ uri: "spotify:track:aRS48xBl0tH",+ // too long, should return error but not panic overflow+ base62: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",+ },+ ConversionCase {+ parsed: SpotifyUri::Track {+ id: SpotifyId { id: 0 },+ },+ // Uri too short+ uri: "spotify:track:aRS48xBl0tH",+ // too short to encode a 128 bits int+ base62: "aa",+ },+ ConversionCase {+ parsed: SpotifyUri::Track {+ id: SpotifyId { id: 0 },+ },+ uri: "cleary invalid uri",+ // too high of a value, this would need a 132 bits int+ base62: "ZZZZZZZZZZZZZZZZZZZZZZ",+ },+ ];++ struct ItemTypeCase {+ uri: SpotifyUri,+ expected_type: &'static str,+ }++ static ITEM_TYPES: [ItemTypeCase; 6] = [+ ItemTypeCase {+ uri: SpotifyUri::Album {+ id: SpotifyId { id: 0 },+ },+ expected_type: "album",+ },+ ItemTypeCase {+ uri: SpotifyUri::Artist {+ id: SpotifyId { id: 0 },+ },+ expected_type: "artist",+ },+ ItemTypeCase {+ uri: SpotifyUri::Episode {+ id: SpotifyId { id: 0 },+ },+ expected_type: "episode",+ },+ ItemTypeCase {+ uri: SpotifyUri::Playlist {+ user: None,+ id: SpotifyId { id: 0 },+ },+ expected_type: "playlist",+ },+ ItemTypeCase {+ uri: SpotifyUri::Show {+ id: SpotifyId { id: 0 },+ },+ expected_type: "show",+ },+ ItemTypeCase {+ uri: SpotifyUri::Track {+ id: SpotifyId { id: 0 },+ },+ expected_type: "track",+ },+ ];++ #[test]+ fn to_id() {+ for c in &CONV_VALID {+ assert_eq!(c.parsed.to_id().unwrap(), c.base62);+ }+ }++ #[test]+ fn item_type() {+ for i in &ITEM_TYPES {+ assert_eq!(i.uri.item_type(), i.expected_type);+ }++ // These need to use methods that can't be used in the static context like to_owned() and+ // into().++ let local_file = SpotifyUri::Local {+ artist: "".to_owned(),+ album_title: "".to_owned(),+ track_title: "".to_owned(),+ duration: Default::default(),+ };++ assert_eq!(local_file.item_type(), "local");++ let unknown = SpotifyUri::Unknown {+ kind: "not used".into(),+ id: "".to_owned(),+ };++ assert_eq!(unknown.item_type(), "unknown");+ }++ #[test]+ fn from_uri() {+ for c in &CONV_VALID {+ let actual = SpotifyUri::from_uri(c.uri).unwrap();++ assert_eq!(actual, c.parsed);+ }++ for c in &CONV_INVALID {+ assert!(SpotifyUri::from_uri(c.uri).is_err());+ }+ }++ #[test]+ fn from_invalid_type_uri() {+ let actual =+ SpotifyUri::from_uri("spotify:arbitrarywhatever:5sWHDYs0csV6RS48xBl0tH").unwrap();++ assert_eq!(+ actual,+ SpotifyUri::Unknown {+ kind: "arbitrarywhatever".into(),+ id: "5sWHDYs0csV6RS48xBl0tH".to_owned()+ }+ )+ }++ #[test]+ fn from_local_uri() {+ let actual = SpotifyUri::from_uri(+ "spotify:local:David+Wise:Donkey+Kong+Country%3A+Tropical+Freeze:Snomads+Island:127",+ )+ .unwrap();++ assert_eq!(+ actual,+ SpotifyUri::Local {+ artist: "David+Wise".to_owned(),+ album_title: "Donkey+Kong+Country%3A+Tropical+Freeze".to_owned(),+ track_title: "Snomads+Island".to_owned(),+ duration: Duration::from_secs(127),+ }+ );+ }++ #[test]+ fn from_local_uri_missing_fields() {+ let actual = SpotifyUri::from_uri("spotify:local:::Snomads+Island:127").unwrap();++ assert_eq!(+ actual,+ SpotifyUri::Local {+ artist: "".to_owned(),+ album_title: "".to_owned(),+ track_title: "Snomads+Island".to_owned(),+ duration: Duration::from_secs(127),+ }+ );+ }++ #[test]+ fn from_named_uri() {+ let actual =+ SpotifyUri::from_uri("spotify:user:spotify:playlist:37i9dQZF1DWSw8liJZcPOI").unwrap();++ let SpotifyUri::Playlist { ref user, id } = actual else {+ panic!("wrong id type");+ };++ assert_eq!(*user, Some("spotify".to_owned()));+ assert_eq!(+ id,+ SpotifyId {+ id: 136159921382084734723401526672209703396+ },+ );+ }++ #[test]+ fn to_uri() {+ for c in &CONV_VALID {+ assert_eq!(c.parsed.to_uri().unwrap(), c.uri);+ }+ }++ #[test]+ fn to_named_uri() {+ let string = "spotify:user:spotify:playlist:37i9dQZF1DWSw8liJZcPOI";++ let actual =+ SpotifyUri::from_uri("spotify:user:spotify:playlist:37i9dQZF1DWSw8liJZcPOI").unwrap();++ assert_eq!(actual.to_uri().unwrap(), string);+ }+}diff --git a/native/vendor/librespot-core/src/token.rs b/native/vendor/librespot-core/src/token.rsnew file mode 100644index 0000000..913edf4--- /dev/null+++ b/native/vendor/librespot-core/src/token.rs@@ -0,0 +1,143 @@+// Ported from librespot-java. Relicensed under MIT with permission.++// Known scopes:+// ugc-image-upload, playlist-read-collaborative, playlist-modify-private,+// playlist-modify-public, playlist-read-private, user-read-playback-position,+// user-read-recently-played, user-top-read, user-modify-playback-state,+// user-read-currently-playing, user-read-playback-state, user-read-private, user-read-email,+// user-library-modify, user-library-read, user-follow-modify, user-follow-read, streaming,+// app-remote-control++use std::time::{Duration, SystemTime};++use serde::Deserialize;+use thiserror::Error;++use crate::Error;++component! {+ TokenProvider : TokenProviderInner {+ tokens: Vec<Token> = vec![],+ }+}++#[derive(Debug, Error)]+pub enum TokenError {+ #[error("no tokens available")]+ Empty,+}++impl From<TokenError> for Error {+ fn from(err: TokenError) -> Self {+ Error::unavailable(err)+ }+}++#[derive(Clone, Debug)]+pub struct Token {+ pub access_token: String,+ pub expires_in: Duration,+ pub token_type: String,+ pub scopes: Vec<String>,+ pub timestamp: SystemTime,+}++#[derive(Deserialize)]+#[serde(rename_all = "camelCase")]+struct TokenData {+ access_token: String,+ expires_in: u64,+ token_type: String,+ scope: Vec<String>,+}++impl TokenProvider {+ fn find_token(&self, scopes: Vec<&str>) -> Option<usize> {+ self.lock(|inner| {+ (0..inner.tokens.len()).find(|&i| inner.tokens[i].in_scopes(scopes.clone()))+ })+ }++ // Not all combinations of scopes and client ID are allowed.+ // Depending on the client ID currently used, the function may return an error for specific scopes.+ // In this case get_token_with_client_id() can be used, where an appropriate client ID can be provided.+ // scopes must be comma-separated+ pub async fn get_token(&self, scopes: &str) -> Result<Token, Error> {+ let client_id = self.session().client_id();+ self.get_token_with_client_id(scopes, &client_id).await+ }++ pub async fn get_token_with_client_id(+ &self,+ scopes: &str,+ client_id: &str,+ ) -> Result<Token, Error> {+ if client_id.is_empty() {+ return Err(Error::invalid_argument("Client ID cannot be empty"));+ }++ if let Some(index) = self.find_token(scopes.split(',').collect()) {+ let cached_token = self.lock(|inner| inner.tokens[index].clone());+ if cached_token.is_expired() {+ self.lock(|inner| inner.tokens.remove(index));+ } else {+ return Ok(cached_token);+ }+ }++ trace!(+ "Requested token in scopes {scopes:?} unavailable or expired, requesting new token."+ );++ let query_uri = format!(+ "hm://keymaster/token/authenticated?scope={}&client_id={}&device_id={}",+ scopes,+ client_id,+ self.session().device_id(),+ );+ let request = self.session().mercury().get(query_uri)?;+ let response = request.await?;+ let data = response.payload.first().ok_or(TokenError::Empty)?.to_vec();+ let token = Token::from_json(String::from_utf8(data)?)?;+ trace!("Got token: {token:#?}");+ self.lock(|inner| inner.tokens.push(token.clone()));+ Ok(token)+ }+}++impl Token {+ const EXPIRY_THRESHOLD: Duration = Duration::from_secs(10);++ pub fn from_json(body: String) -> Result<Self, Error> {+ let data: TokenData = serde_json::from_slice(body.as_ref())?;+ Ok(Self {+ access_token: data.access_token,+ expires_in: Duration::from_secs(data.expires_in),+ token_type: data.token_type,+ scopes: data.scope,+ timestamp: SystemTime::now(),+ })+ }++ pub fn is_expired(&self) -> bool {+ self.timestamp + self.expires_in.saturating_sub(Self::EXPIRY_THRESHOLD) < SystemTime::now()+ }++ pub fn in_scope(&self, scope: &str) -> bool {+ for s in &self.scopes {+ if *s == scope {+ return true;+ }+ }+ false+ }++ pub fn in_scopes(&self, scopes: Vec<&str>) -> bool {+ for s in scopes {+ if !self.in_scope(s) {+ return false;+ }+ }+ true+ }+}diff --git a/native/vendor/librespot-core/src/util.rs b/native/vendor/librespot-core/src/util.rsnew file mode 100644index 0000000..04a3366--- /dev/null+++ b/native/vendor/librespot-core/src/util.rs@@ -0,0 +1,175 @@+use crate::Error;+use byteorder::{BigEndian, ByteOrder};+use futures_core::ready;+use futures_util::{FutureExt, Sink, SinkExt, future};+use hmac::digest::Digest;+use sha1::Sha1;+use std::time::{Duration, Instant};+use std::{+ future::Future,+ mem,+ pin::Pin,+ task::{Context, Poll},+};+use tokio::{task::JoinHandle, time::timeout};++/// Returns a future that will flush the sink, even if flushing is temporarily completed.+/// Finishes only if the sink throws an error.+pub(crate) fn keep_flushing<'a, T, S: Sink<T> + Unpin + 'a>(+ mut s: S,+) -> impl Future<Output = S::Error> + 'a {+ future::poll_fn(move |cx| match s.poll_flush_unpin(cx) {+ Poll::Ready(Err(e)) => Poll::Ready(e),+ _ => Poll::Pending,+ })+}++pub struct CancelOnDrop<T>(pub JoinHandle<T>);++impl<T> Future for CancelOnDrop<T> {+ type Output = <JoinHandle<T> as Future>::Output;++ fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {+ self.0.poll_unpin(cx)+ }+}++impl<T> Drop for CancelOnDrop<T> {+ fn drop(&mut self) {+ self.0.abort();+ }+}++pub struct TimeoutOnDrop<T: Send + 'static> {+ handle: Option<JoinHandle<T>>,+ timeout: tokio::time::Duration,+}++impl<T: Send + 'static> TimeoutOnDrop<T> {+ pub fn new(handle: JoinHandle<T>, timeout: tokio::time::Duration) -> Self {+ Self {+ handle: Some(handle),+ timeout,+ }+ }++ pub fn take(&mut self) -> Option<JoinHandle<T>> {+ self.handle.take()+ }+}++impl<T: Send + 'static> Future for TimeoutOnDrop<T> {+ type Output = <JoinHandle<T> as Future>::Output;++ fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {+ let r = ready!(+ self.handle+ .as_mut()+ .expect("Polled after ready")+ .poll_unpin(cx)+ );+ self.handle = None;+ Poll::Ready(r)+ }+}++impl<T: Send + 'static> Drop for TimeoutOnDrop<T> {+ fn drop(&mut self) {+ let mut handle = if let Some(handle) = self.handle.take() {+ handle+ } else {+ return;+ };++ if (&mut handle).now_or_never().is_some() {+ // Already finished+ return;+ }++ match tokio::runtime::Handle::try_current() {+ Ok(h) => {+ h.spawn(timeout(self.timeout, CancelOnDrop(handle)));+ }+ Err(_) => {+ // Not in tokio context, can't spawn+ handle.abort();+ }+ }+ }+}++pub trait Seq {+ fn next(&self) -> Self;+}++macro_rules! impl_seq {+ ($($ty:ty)*) => { $(+ impl Seq for $ty {+ fn next(&self) -> Self { (*self).wrapping_add(1) }+ }+ )* }+}++impl_seq!(u8 u16 u32 u64 usize);++#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord, Default)]+pub struct SeqGenerator<T: Seq>(T);++impl<T: Seq> SeqGenerator<T> {+ pub fn new(value: T) -> Self {+ SeqGenerator(value)+ }++ pub fn get(&mut self) -> T {+ let value = self.0.next();+ mem::replace(&mut self.0, value)+ }+}++pub fn solve_hash_cash(+ ctx: &[u8],+ prefix: &[u8],+ length: i32,+ dst: &mut [u8],+) -> Result<Duration, Error> {+ // after a certain number of seconds, the challenge expires+ const TIMEOUT: u64 = 5; // seconds+ let now = Instant::now();++ let md = Sha1::digest(ctx);++ let mut counter: i64 = 0;+ let target: i64 = BigEndian::read_i64(&md[12..20]);++ let suffix = loop {+ if now.elapsed().as_secs() >= TIMEOUT {+ return Err(Error::deadline_exceeded(format!(+ "{TIMEOUT} seconds expired"+ )));+ }++ let suffix = [(target + counter).to_be_bytes(), counter.to_be_bytes()].concat();++ let mut hasher = Sha1::new();+ hasher.update(prefix);+ hasher.update(&suffix);+ let md = hasher.finalize();++ if BigEndian::read_i64(&md[12..20]).trailing_zeros() >= (length as u32) {+ break suffix;+ }++ counter += 1;+ };++ dst.copy_from_slice(&suffix);++ Ok(now.elapsed())+}++pub fn get_next_query_separator(url: &str) -> &'static str {+ match url.find('?') {+ Some(_) => "&",+ None => "?",+ }+}diff --git a/native/vendor/librespot-core/src/version.rs b/native/vendor/librespot-core/src/version.rsnew file mode 100644index 0000000..0e48a47--- /dev/null+++ b/native/vendor/librespot-core/src/version.rs@@ -0,0 +1,53 @@+/// Version string of the form "librespot-\<sha\>"+pub const VERSION_STRING: &str = concat!("librespot-", env!("VERGEN_GIT_SHA"));++/// Generate a timestamp string representing the build date (UTC).+pub const BUILD_DATE: &str = env!("VERGEN_BUILD_DATE");++/// Short sha of the latest git commit.+pub const SHA_SHORT: &str = env!("VERGEN_GIT_SHA");++/// Date of the latest git commit.+pub const COMMIT_DATE: &str = env!("VERGEN_GIT_COMMIT_DATE");++/// Librespot crate version.+pub const SEMVER: &str = env!("CARGO_PKG_VERSION");++/// A random build id.+pub const BUILD_ID: &str = env!("LIBRESPOT_BUILD_ID");++/// The protocol version of the Spotify desktop client.+pub const SPOTIFY_VERSION: u64 = 124200290;++/// The semantic version of the Spotify desktop client.+pub const SPOTIFY_SEMANTIC_VERSION: &str = "1.2.52.442";++/// `property_set_id` related to desktop version 1.2.52.442+pub const SPOTIFY_PROPERTY_SET_ID: &str = "b4c7e4b5835079ed94391b2e65fca0fdba65eb50";++/// The protocol version of the Spotify mobile app.+pub const SPOTIFY_MOBILE_VERSION: &str = "8.9.82.620";++/// `property_set_id` related to mobile version 8.9.82.620+pub const SPOTIFY_MOBILE_PROPERTY_SET_ID: &str =+ "5ec87c2cc32e7c509703582cfaaa3c7ad253129d5701127c1f5eab5c9531736c";++/// The general spirc version+pub const SPOTIFY_SPIRC_VERSION: &str = "3.2.6";++/// The user agent to fall back to, if one could not be determined dynamically.+pub const FALLBACK_USER_AGENT: &str = "Spotify/124200290 Linux/0 (librespot)";++pub fn spotify_version() -> String {+ match crate::config::OS {+ "android" | "ios" => SPOTIFY_MOBILE_VERSION.to_owned(),+ _ => SPOTIFY_VERSION.to_string(),+ }+}++pub fn spotify_semantic_version() -> String {+ match crate::config::OS {+ "android" | "ios" => SPOTIFY_MOBILE_VERSION.to_owned(),+ _ => SPOTIFY_SEMANTIC_VERSION.to_string(),+ }+}diff --git a/native/vendor/librespot-core/tests/connect.rs b/native/vendor/librespot-core/tests/connect.rsnew file mode 100644index 0000000..91679f9--- /dev/null+++ b/native/vendor/librespot-core/tests/connect.rs@@ -0,0 +1,21 @@+use std::time::Duration;++use tokio::time::timeout;++use librespot_core::{authentication::Credentials, config::SessionConfig, session::Session};++#[tokio::test]+async fn test_connection() {+ timeout(Duration::from_secs(30), async {+ let result = Session::new(SessionConfig::default(), None)+ .connect(Credentials::with_password("test", "test"), false)+ .await;++ match result {+ Ok(_) => panic!("Authentication succeeded despite of bad credentials."),+ Err(e) => assert!(!e.to_string().is_empty()), // there should be some error message+ }+ })+ .await+ .unwrap();+}diff --git a/settings.gradle.kts b/settings.gradle.ktsnew file mode 100644index 0000000..042e68b--- /dev/null+++ b/settings.gradle.kts@@ -0,0 +1,24 @@+pluginManagement {+ repositories {+ google {+ content {+ includeGroupByRegex("com\\.android.*")+ includeGroupByRegex("com\\.google.*")+ includeGroupByRegex("androidx.*")+ }+ }+ mavenCentral()+ gradlePluginPortal()+ }+}++dependencyResolutionManagement {+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)+ repositories {+ google()+ mavenCentral()+ }+}++rootProject.name = "Spot"+include(":app")