ios project skeleton
This commit is contained in:
2
ios/.gitignore
vendored
Normal file
2
ios/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.xcodeproj
|
||||
|
||||
13
ios/Apps/Sybil/Sources/SybilApp.swift
Normal file
13
ios/Apps/Sybil/Sources/SybilApp.swift
Normal file
@@ -0,0 +1,13 @@
|
||||
import Sybil
|
||||
import SwiftUI
|
||||
import UIKit
|
||||
|
||||
@main
|
||||
struct SybilApp: App
|
||||
{
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
SplitView()
|
||||
}
|
||||
}
|
||||
}
|
||||
42
ios/Apps/Sybil/project.yml
Normal file
42
ios/Apps/Sybil/project.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
packages:
|
||||
Sybil:
|
||||
path: Packages/Sybil
|
||||
|
||||
targets:
|
||||
SybilApp:
|
||||
type: application
|
||||
platform: iOS
|
||||
deploymentTarget: "18.0"
|
||||
sources:
|
||||
- Sources
|
||||
dependencies:
|
||||
- package: Sybil
|
||||
product: Sybil
|
||||
settings:
|
||||
base:
|
||||
PRODUCT_BUNDLE_IDENTIFIER: com.sybil.app
|
||||
PRODUCT_MODULE_NAME: SybilApp
|
||||
DEVELOPMENT_TEAM: ""
|
||||
CODE_SIGN_STYLE: Automatic
|
||||
SWIFT_VERSION: 6.0
|
||||
TARGETED_DEVICE_FAMILY: "1,2"
|
||||
GENERATE_INFOPLIST_FILE: YES
|
||||
MARKETING_VERSION: 1.0
|
||||
CURRENT_PROJECT_VERSION: 1
|
||||
INFOPLIST_KEY_CFBundleDisplayName: Sybil
|
||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents: YES
|
||||
INFOPLIST_KEY_UILaunchScreen_Generation: YES
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone: UIInterfaceOrientationPortrait
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
|
||||
|
||||
schemes:
|
||||
Sybil:
|
||||
build:
|
||||
targets:
|
||||
SybilApp: all
|
||||
run:
|
||||
config: Debug
|
||||
test:
|
||||
config: Debug
|
||||
archive:
|
||||
config: Release
|
||||
8
ios/Packages/Sybil/.gitignore
vendored
Normal file
8
ios/Packages/Sybil/.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
xcuserdata/
|
||||
DerivedData/
|
||||
.swiftpm/configuration/registries.json
|
||||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||
.netrc
|
||||
27
ios/Packages/Sybil/Package.swift
Normal file
27
ios/Packages/Sybil/Package.swift
Normal file
@@ -0,0 +1,27 @@
|
||||
// swift-tools-version: 6.1
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "Sybil",
|
||||
platforms: [
|
||||
.iOS("18.0")
|
||||
],
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||
.library(
|
||||
name: "Sybil",
|
||||
targets: ["Sybil"]),
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||||
// Targets can depend on other targets in this package and products from dependencies.
|
||||
.target(
|
||||
name: "Sybil"),
|
||||
.testTarget(
|
||||
name: "SybilTests",
|
||||
dependencies: ["Sybil"]
|
||||
),
|
||||
]
|
||||
)
|
||||
19
ios/Packages/Sybil/Sources/Sybil/SplitView.swift
Normal file
19
ios/Packages/Sybil/Sources/Sybil/SplitView.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// SplitView.swift
|
||||
// Sybil
|
||||
//
|
||||
// Created by James Magahern on 2/19/26.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
public struct SplitView: View
|
||||
{
|
||||
public init() {
|
||||
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
Text("Not Yet Implemented: replace me.")
|
||||
}
|
||||
}
|
||||
6
ios/Packages/Sybil/Tests/SybilTests/SybilTests.swift
Normal file
6
ios/Packages/Sybil/Tests/SybilTests/SybilTests.swift
Normal file
@@ -0,0 +1,6 @@
|
||||
import Testing
|
||||
@testable import Sybil
|
||||
|
||||
@Test func example() async throws {
|
||||
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
|
||||
}
|
||||
6
ios/project.yml
Normal file
6
ios/project.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
name: Sybil
|
||||
options:
|
||||
createIntermediateGroups: true
|
||||
generateEmptyDirectories: true
|
||||
include:
|
||||
- Apps/Sybil/project.yml
|
||||
Reference in New Issue
Block a user