From db092c79a175e3283f479ee0b234b24bde3c736e Mon Sep 17 00:00:00 2001 From: soryu-co Date: Fri, 24 Apr 2026 13:15:29 +0000 Subject: Add Makima iOS app scaffold (M0 + M1 design system) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pure-native SwiftUI client for makima.jp under makima/ios/. M0 (scaffold) - XcodeGen project (iOS 18+, Swift 5.10, bundle co.soryu.makima) - Makefile targets: bootstrap, xcgen, ios-sim-fast, ios-device-fast, test, lint - GitHub Actions workflow ios-ci.yml — builds + runs XCTest on macos-14 - MIT repo root license already in place M1 (design system, web-aesthetic port) - Palette: #0c1729 background, #9bc3ff accent, #3f6fb3 border (ported from Tailwind) - Typography: SF Mono for chrome, uppercase tracked nav labels - Components: DashedBorder, GridOverlay, MastheadBar + WebSocketStatus pill, NavStripPlaceholder (NAV// prefix), JapaneseLongPressText (mobile analogue of JapaneseHoverText), Logo (reuses frontend/public/logo/makima-logo.svg with Canvas concentric-ring fallback), Badge - RootView demo screen: masthead, nav strip, logo, CONTROL SYSTEM badge, SYSTEM// status card, GLOSSARY// card with 命令/契約/聴取/史料 long-press terms Auth (v1 plan, not wired here): x-makima-api-key header — verified against src/server/auth.rs. Authorization: Bearer reserved for v1.1 Supabase OAuth. v1 plan doc: makima/ios/docs/ios-v1-plan.md Not in this PR: networking, WebSocket client, stores, feature surfaces (Home/Contracts/Tasks/Directives/Daemons/Listen), notifications. Those land across M2-M8 per the plan. --- makima/ios/Makefile | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 makima/ios/Makefile (limited to 'makima/ios/Makefile') diff --git a/makima/ios/Makefile b/makima/ios/Makefile new file mode 100644 index 0000000..8d2a23c --- /dev/null +++ b/makima/ios/Makefile @@ -0,0 +1,54 @@ +# Makima iOS — build shortcuts +# Requires: xcodegen (brew install xcodegen), Xcode 16+ +# Run `make xcgen` after editing project.yml. + +SCHEME := Makima +WORKSPACE := Makima.xcodeproj +SIM_DEVICE := iPhone 16 Pro + +.PHONY: help bootstrap xcgen ios-sim-fast ios-device-fast clean test lint + +help: + @echo "Targets:" + @echo " bootstrap install xcodegen if missing" + @echo " xcgen (re)generate Makima.xcodeproj from project.yml" + @echo " ios-sim-fast build for simulator ($(SIM_DEVICE))" + @echo " ios-device-fast build for generic iOS device" + @echo " test run unit tests on simulator" + @echo " clean remove generated project + DerivedData" + @echo " lint swift format lint (if installed)" + +bootstrap: + @command -v xcodegen >/dev/null || (echo "Installing xcodegen..." && brew install xcodegen) + +xcgen: bootstrap + xcodegen generate + +ios-sim-fast: xcgen + set -o pipefail; xcodebuild \ + -project $(WORKSPACE) \ + -scheme $(SCHEME) \ + -destination 'platform=iOS Simulator,name=$(SIM_DEVICE)' \ + -configuration Debug \ + build | xcbeautify || true + +ios-device-fast: xcgen + set -o pipefail; xcodebuild \ + -project $(WORKSPACE) \ + -scheme $(SCHEME) \ + -destination 'generic/platform=iOS' \ + -configuration Debug \ + build | xcbeautify || true + +test: xcgen + set -o pipefail; xcodebuild \ + -project $(WORKSPACE) \ + -scheme $(SCHEME) \ + -destination 'platform=iOS Simulator,name=$(SIM_DEVICE)' \ + test | xcbeautify || true + +clean: + rm -rf Makima.xcodeproj DerivedData build + +lint: + @command -v swift-format >/dev/null && swift-format lint -r Sources Tests || echo "swift-format not installed, skipping" -- cgit v1.2.3