Files
sizzletracker-android/ios/app/project.yml
T
ReactorcoremeltdownandClaude Opus 5 ba98ec56f4 0.41.2 (78): cleanup and optimisation round (Android and iOS)
Nothing user-visible changes, except that the Android app is half the size and
both are lighter on the battery.

R8 is on for release builds (21.5 MB -> 10.1 MB); only the two JNI classes are
pinned by name, since the app reflects over nothing of its own, and `make dist`
keeps the mapping beside the APK. The Kotlin DSP that core/ replaced in 0.37.0
was still compiled into every APK with nothing calling it — it moves to the test
source set, where it belongs as the reference the C++ is checked against — and
the golden tests' TestVoice wrappers leave core/src for core/tests/voices, so
neither app compiles them either.

Speed: channel gain, mute/solo and the FX chain are read once per audio block
instead of once per frame in Engine::fillBlock (both platforms, bit-identical —
all 61 reference scenarios still match); the transport pollers idle at 100 ms
(Android) and 10 Hz (iOS) instead of polling flat out while a song is stopped,
woken by any transport call; ProjectIo.save builds into one pre-sized buffer and
a burst of edits is coalesced into one engine sync; the Kotlin grain sources and
factory wavetables are built when their editor opens rather than at launch, where
they duplicated ~6 MB the engine already renders in core/; and Xcode builds the
DSP core at -O2, the level the golden tests measure, not -Os.

Fix: `make lint` failed on a manifest asking for ACCESS_FINE_LOCATION without
ACCESS_COARSE_LOCATION (the BLE MIDI scan on Android 8-11), so `make check`
passes again.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-18 21:01:29 +01:00

102 lines
4.2 KiB
YAML

# XcodeGen spec for Sizzle on iOS/iPadOS (see ios/README.md). `make -C ios project`
# generates Sizzle.xcodeproj (git-ignored). Versions are passed in by the Makefile
# from versions.properties (versionName / versionCode, shared with Android).
name: Sizzle
options:
bundleIdPrefix: cc.tiredsysadmin.ios
deploymentTarget:
iOS: "15.0"
settings:
base:
SWIFT_VERSION: "5.0"
TARGETED_DEVICE_FAMILY: "1,2"
ARCHS: arm64
DEVELOPMENT_TEAM: ""
CLANG_CXX_LANGUAGE_STANDARD: c++17
CLANG_ENABLE_OBJC_ARC: YES
HEADER_SEARCH_PATHS: ["$(SRCROOT)/../../core/include", "$(SRCROOT)/../../core/src", "$(SRCROOT)/../../core/src/fx"]
targets:
SizzleCore:
type: library.static
platform: iOS
sources:
- path: ../../core/src
excludes: ["**/*.md"]
settings:
base:
PRODUCT_NAME: SizzleCore
# -O2 in every configuration, matching ios/Makefile's CXXFLAGS — the one
# build of this code the golden tests actually measure. It was -Os, which
# trades the DSP's speed for a few hundred KB in an app that has to hold a
# 4 ms deadline; and optimising Debug too is deliberate (the Android
# CMakeLists does the same), because an -O0 core cannot render in real time.
GCC_OPTIMIZATION_LEVEL: 2
SizzleFX:
type: app-extension
platform: iOS
sources: [FX]
dependencies:
- target: SizzleCore
- sdk: AudioToolbox.framework
- sdk: AVFoundation.framework
- sdk: CoreAudioKit.framework
- sdk: UIKit.framework
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: cc.tiredsysadmin.ios.sizzle.fx
CODE_SIGN_ENTITLEMENTS: FX/FX.entitlements
INFOPLIST_FILE: FX/Info.plist
SWIFT_OBJC_BRIDGING_HEADER: FX/Bridging.h
# force_load: the effects are found through weak placeholder makers (Registry.cpp),
# so without it the linker keeps the placeholders and skips the real ports.
OTHER_LDFLAGS: ["-lc++", "-lz", "-force_load", "$(BUILT_PRODUCTS_DIR)/libSizzleCore.a"]
Sizzle:
type: application
platform: iOS
info:
path: Host/Info.plist
properties:
UIBackgroundModes: [audio]
NSMicrophoneUsageDescription: Sizzle records the microphone or an audio interface's input into samples.
NSBluetoothAlwaysUsageDescription: Sizzle connects Bluetooth MIDI controllers and reconnects them when it starts.
# Documents (songs, samples, recordings, backups) shows in the Files app.
UIFileSharingEnabled: true
LSSupportsOpeningDocumentsInPlace: true
# The app hosts the devices itself (in-process), so it compiles the plugin
# classes and the editor too, and links the whole core.
sources:
- Host
- FX/SizzleDeviceAU.mm
- FX/SizzleEffectAU.mm
- FX/SizzleInstrumentAU.mm
- FX/SizzleDeviceAU+Sources.mm
- FX/SizzleFXViewController.mm
- FX/Editor
- FX/DeviceLayouts.json
dependencies:
- target: SizzleFX
embed: true
codeSign: false
- target: SizzleCore
- sdk: AudioToolbox.framework
- sdk: AVFoundation.framework
- sdk: CoreAudioKit.framework
- sdk: CoreMIDI.framework
- sdk: GameController.framework
- sdk: CoreBluetooth.framework
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: cc.tiredsysadmin.ios.sizzle
CODE_SIGN_ENTITLEMENTS: Host/Host.entitlements
GENERATE_INFOPLIST_FILE: YES
INFOPLIST_KEY_CFBundleDisplayName: Sizzle
INFOPLIST_KEY_UILaunchScreen_Generation: YES
INFOPLIST_KEY_UIApplicationSceneManifest_Generation: YES
INFOPLIST_KEY_UISupportedInterfaceOrientations: "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
SWIFT_OBJC_BRIDGING_HEADER: Host/Bridging.h
USER_HEADER_SEARCH_PATHS: ["$(SRCROOT)/FX"]
OTHER_LDFLAGS: ["-lc++", "-lz", "-force_load", "$(BUILT_PRODUCTS_DIR)/libSizzleCore.a"]