v0.1.0 — Phase β-0 Setup
Repo-Skelett für cards-native, native SwiftUI-Universal-App für Cardecky (mana e.V.). Web-Parität zu cardecky.mana.how. - project.yml mit Bundle ev.mana.cards, ManaSwiftCore-Dep via path - AppConfig: auth.mana.how + cardecky-api.mana.how, Keychain ev.mana.cards - CardsTheme: forest-Werte aus mana/packages/themes/.../forest.css - LoginView (Email/PW gegen mana-auth via ManaCore.AuthClient) - DashboardView als β-1-Placeholder mit cardecky-api-Reachability-Probe - Log unter Subsystem ev.mana.cards - 3 AppConfig-Tests - iOS-Simulator-Build grün Phasen-Plan: mana/docs/playbooks/CARDS_NATIVE_GREENFIELD.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
28b20cd934
21 changed files with 896 additions and 0 deletions
9
Tests/UITests/CardsNativeUITests.swift
Normal file
9
Tests/UITests/CardsNativeUITests.swift
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import XCTest
|
||||
|
||||
final class CardsNativeUITests: XCTestCase {
|
||||
func testAppLaunches() throws {
|
||||
let app = XCUIApplication()
|
||||
app.launch()
|
||||
XCTAssertTrue(app.staticTexts["Cards"].waitForExistence(timeout: 5))
|
||||
}
|
||||
}
|
||||
20
Tests/UnitTests/CardsNativeTests.swift
Normal file
20
Tests/UnitTests/CardsNativeTests.swift
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import Testing
|
||||
@testable import CardsNative
|
||||
|
||||
@Suite("AppConfig")
|
||||
struct AppConfigTests {
|
||||
@Test("Cards-API zeigt auf cardecky-api.mana.how")
|
||||
func apiBaseURLPointsToCardecky() {
|
||||
#expect(AppConfig.apiBaseURL.absoluteString == "https://cardecky-api.mana.how")
|
||||
}
|
||||
|
||||
@Test("Auth zeigt auf auth.mana.how")
|
||||
func authBaseURLPointsToManaAuth() {
|
||||
#expect(AppConfig.manaAppConfig.authBaseURL.absoluteString == "https://auth.mana.how")
|
||||
}
|
||||
|
||||
@Test("Keychain-Service ist ev.mana.cards")
|
||||
func keychainServiceIsAppSpecific() {
|
||||
#expect(AppConfig.manaAppConfig.keychainService == "ev.mana.cards")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue