275e32bf3da74e5e1a0e2bac0a5b64ce9f35d4c5

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Initial xtool scaffold

Diff

  1diff --git a/.gitignore b/.gitignore
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..6f0c38179f03318ffba1012904b40d629d7ca461
  4--- /dev/null
  5+++ b/.gitignore
  6@@ -0,0 +1,10 @@
  7+.DS_Store
  8+/.build
  9+/Packages
 10+xcuserdata/
 11+DerivedData/
 12+.swiftpm/configuration/registries.json
 13+.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
 14+.netrc
 15+
 16+/xtool
 17diff --git a/.sourcekit-lsp/config.json b/.sourcekit-lsp/config.json
 18new file mode 100644
 19index 0000000000000000000000000000000000000000..e7c97382fe2ce6f7ed0a3021cad7410e3bf45818
 20--- /dev/null
 21+++ b/.sourcekit-lsp/config.json
 22@@ -0,0 +1,5 @@
 23+{
 24+    "swiftPM": {
 25+        "swiftSDK": "arm64-apple-ios"
 26+    }
 27+}
 28diff --git a/Package.swift b/Package.swift
 29new file mode 100644
 30index 0000000000000000000000000000000000000000..69d43f1e9bb7a13107b8d22e13420783f018b488
 31--- /dev/null
 32+++ b/Package.swift
 33@@ -0,0 +1,24 @@
 34+// swift-tools-version: 6.0
 35+
 36+import PackageDescription
 37+
 38+let package = Package(
 39+    name: "japanese",
 40+    platforms: [
 41+        .iOS(.v17),
 42+        .macOS(.v14),
 43+    ],
 44+    products: [
 45+        // An xtool project should contain exactly one library product,
 46+        // representing the main app.
 47+        .library(
 48+            name: "japanese",
 49+            targets: ["japanese"]
 50+        ),
 51+    ],
 52+    targets: [
 53+        .target(
 54+            name: "japanese"
 55+        ),
 56+    ]
 57+)
 58diff --git a/Sources/japanese/ContentView.swift b/Sources/japanese/ContentView.swift
 59new file mode 100644
 60index 0000000000000000000000000000000000000000..acf0f4539062d32bf44913f2b6a5083c3ff6524b
 61--- /dev/null
 62+++ b/Sources/japanese/ContentView.swift
 63@@ -0,0 +1,13 @@
 64+import SwiftUI
 65+
 66+struct ContentView: View {
 67+    var body: some View {
 68+        VStack {
 69+            Image(systemName: "globe")
 70+                .imageScale(.large)
 71+                .foregroundStyle(.tint)
 72+            Text("Hello, world!")
 73+        }
 74+        .padding()
 75+    }
 76+}
 77diff --git a/Sources/japanese/japaneseApp.swift b/Sources/japanese/japaneseApp.swift
 78new file mode 100644
 79index 0000000000000000000000000000000000000000..fd4b56e8f3ce50bbd11458e1673f8e7c1dc1082f
 80--- /dev/null
 81+++ b/Sources/japanese/japaneseApp.swift
 82@@ -0,0 +1,10 @@
 83+import SwiftUI
 84+
 85+@main
 86+struct japaneseApp: App {
 87+    var body: some Scene {
 88+        WindowGroup {
 89+            ContentView()
 90+        }
 91+    }
 92+}
 93diff --git a/xtool.yml b/xtool.yml
 94new file mode 100644
 95index 0000000000000000000000000000000000000000..0363a0b7f6a04dcaff066b3ff53844ec743cdef9
 96--- /dev/null
 97+++ b/xtool.yml
 98@@ -0,0 +1,2 @@
 99+version: 1
100+bundleID: com.example.japanese