Commit Graph
11 Commits
Author SHA1 Message Date
zarzet 83b5ca96f7 build(rust): trim bundled SQLite and hide C symbols
The build scripts compile the bundled SQLite without the subsystems
the backend never calls (FTS3, R-Tree, math functions, extension
loading, UTF-16, shared cache, deprecated entry points) on every
platform. FTS5 with the trigram tokenizer, JSON, WAL and triggers
stay. C code builds with hidden visibility, libusb included, and for
size on Android.

SQLite stays bundled on Apple platforms as well: rusqlite 0.43 calls
sqlite3_set_clientdata (SQLite 3.44), which the system library of
iOS 16 and macOS 12 does not have.

build_rust_backend.sh builds a single macOS architecture with
MORNYE_MACOS_ARCH and strips local symbols from the desktop libraries.
2026-11-22 00:21:30 +07:00
zarzet d9c5c52ed8 fix(build): name the macOS SDK for Rust C code built inside Xcode
The embed phase clears SDKROOT, and inside Xcode cc is the toolchain
clang, which finds no SDK without it. ring (TLS for Mornye Link) then
failed on TargetConditionals.h. The desktop build now sets SDKROOT from
xcrun when unset, which also keeps Xcode and command line builds on one
Cargo cache.
2026-10-25 04:01:54 +07:00
zarzet 5d369a2628 build(desktop): install the Rust library in the Linux and Windows bundles
Linux installs libmornye_desktop.so into the bundle's lib/ directory and
Windows installs mornye_desktop.dll next to mornye.exe. Both fail at
configure time with a clear message when the library was not built.
Add scripts/build_rust_backend_windows.ps1 as the Windows counterpart of
`build_rust_backend.sh desktop`, replacing the commented commands.
2026-10-20 14:27:17 +07:00
zarzet 40f6f0b346 build(desktop): stage the desktop library from build_rust_backend.sh
Add a desktop mode that builds mornye-desktop for the host: a universal
macOS dylib (arm64 and x86_64, install name @rpath, ad hoc signed) or the
Linux shared library, staged under rust_backend/target/desktop/<os>/.
Document the intended Windows commands and the new crate in the README.
2026-10-20 13:45:43 +07:00
zarzet 51d3459426 chore(branding): drop remaining SpotiFLAC references
Remove the original SpotiFLAC creator and PC source links from About,
point docs links and podspec homepages at mornye.com, drop stale
SpotiFLAC build artifact cleanup, and rename incidental test data.
Legacy compatibility (backup magic, lyrics provider id, extension
suffix, signed session protocol) is kept so old data still loads.
2026-10-20 12:27:29 +07:00
zarzet 37e21b5712 feat(branding): rename app and native backend to Mornye
Rename the Dart package, Android and iOS identifiers, Rust crates, native libraries, and Discord plugin. Preserve legacy data readers and compatibility aliases.

Update localized branding, documentation, artwork, build tooling, and release artifacts. Route Telegram release notifications to @mornyeupdates and link @mornyecommunity.
2026-10-20 12:00:44 +07:00
zarzet 43f7257d3d docs(rust): say that Go is the retired backend in crate docs
Rust is the only backend and routes the app on Android and iOS. Rewrite
the migration-era crate, script and comment wording that implied Go still
runs, and note in each crate doc that Go mentions describe the retired
backend whose observable behavior remains a compatibility contract.
2026-10-18 22:02:52 +07:00
zarzet d611590039 chore(android): update Gradle Kotlin NDK and native build dependencies 2026-10-11 14:33:52 +07:00
zarzet b8c50b1527 perf(android): reduce release APK size
Keep Dart debug data outside libapp.so and archive matching symbols and R8 mappings in CI. Pack native relocations, preserve JNI exports, and recompress PNG assets losslessly.

ARM64 APK shrinks from 80,306,680 to 76,080,247 bytes (5.26%). Verified with 1,877 Flutter tests, 19 native device tests, Discord SDK integration, and release startup on a 16 KiB Android emulator.
2026-10-06 15:22:42 +07:00
zarzet 3e50dd75d6 chore(rust): update crypto, network and UniFFI dependencies 2026-09-17 02:59:14 +07:00
zarzet aa99726439 feat(backend): migrate production backend to Rust
Replace the Go backend with the Rust workspace and route Android/iOS through
UniFFI bindings. Include the migrated extension runtime, network, providers,
media metadata, downloads and library operations, with version 5.0.0+147.

Remove Go sources, adapters, native build selection and CI dependencies.
Build Rust unconditionally and lock the iOS Rust pod using a relative path.
Retain legacy source and migration evidence in a local ignored archive.

Validation: Android Kotlin compile and 53 native tests; Swift Rust-branch
equivalence and syntax; CocoaPods install; workflow, shell, Ruby, plist and
diff checks. Reuse the preceding 100 Rust tests, fmt/Clippy and five-ABI
build checkpoint; no new APK or iOS application build for this cleanup.

Known follow-up: URL/URLSearchParams globals are missing from the Rust JS
runtime. A controlled extension replay confirms a URL-resolution regression;
this commit does not fix that runtime gap.
2026-09-14 22:58:27 +07:00