client-core

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT

README

Life@USTC client core

Shared Go domain logic for the iOS app, Bot and CLI. The server remains the source of business permissions and persisted state; clients share calculations and use cases through this module.

The first slice provides inclusive calendar bounds, explicit week conventions, Shanghai civil dates and bounded request windows. Bot/CLI import calendar; iOS consumes mobile through a generated XCFramework.

See the PRD and roadmap. Cross-client delivery is tracked in Task #109.

go test -race -count=1 ./...
go vet ./...
(cd mobile && go test -race -count=1 ./... && go vet ./...)

Apple framework generation and bridge verification require macOS and Xcode. Generated binaries remain build artifacts and are not committed to this repo.

scripts/build-apple.sh
cd apple
swift test
xcodebuild test -scheme LifeClientCore \
  -destination 'platform=iOS Simulator,name=iPhone 17'

The build uses the gomobile tools pinned by mobile/go.mod. The framework contains iOS device, iOS simulator and macOS slices; macOS tests exercise the same Swift adapter and shared fixtures without booting a simulator. CI publishes the framework archive, its checksum and the exact source commit as one artifact.

calendar has no third-party module dependencies. The mobile build module isolates gomobile and its tools so they cannot upgrade Bot/CLI dependencies. Its local core replacement binds the checked-out source; applications consume the released Go module or framework, not this build module.

Directories

Path Synopsis
Package calendar defines the Shanghai civil-date rules shared by Life@USTC clients.
Package calendar defines the Shanghai civil-date rules shared by Life@USTC clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL