Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ DerivedData/
**/xcuserdata/
*.xcuserstate
*.profraw
*.xcodeproj
*.xcworkspace
17 changes: 17 additions & 0 deletions ios/PPGMobile/PPGMobile/App/ContentView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import SwiftUI

struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "terminal")
.imageScale(.large)
.foregroundStyle(.tint)
Text("PPG Mobile")
}
.padding()
}
}

#Preview {
ContentView()
}
10 changes: 10 additions & 0 deletions ios/PPGMobile/PPGMobile/App/PPGMobileApp.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import SwiftUI

@main
struct PPGMobileApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"images": [
{
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
6 changes: 6 additions & 0 deletions ios/PPGMobile/PPGMobile/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info": {
"author": "xcode",
"version": 1
}
}
36 changes: 36 additions & 0 deletions ios/PPGMobile/project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PPGMobile
options:
bundleIdPrefix: com.2witstudios
deploymentTarget:
iOS: "17.0"
xcodeVersion: "16.0"
generateEmptyDirectories: true

settings:
base:
SWIFT_VERSION: "5.9"

targets:
PPGMobile:
type: application
platform: iOS
sources:
- PPGMobile
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.2witstudios.ppg-mobile
INFOPLIST_GENERATION_MODE: GeneratedFile
MARKETING_VERSION: "1.0.0"
CURRENT_PROJECT_VERSION: "1"
GENERATE_INFOPLIST_FILE: true
INFOPLIST_KEY_UIApplicationSceneManifest_Generation: true
INFOPLIST_KEY_UILaunchScreen_Generation: true
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone: "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
SWIFT_EMIT_LOC_STRINGS: true

schemes:
PPGMobile:
build:
targets:
PPGMobile: all
5 changes: 3 additions & 2 deletions src/commands/spawn.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { spawnAgent } from '../core/agent.js';
import { getRepoRoot } from '../core/worktree.js';
import { agentId, sessionId } from '../lib/id.js';
import * as tmux from '../core/tmux.js';
import type { Manifest } from '../types/manifest.js';

vi.mock('node:fs/promises', async () => {
const actual = await vi.importActual<typeof import('node:fs/promises')>('node:fs/promises');
Expand Down Expand Up @@ -79,7 +80,7 @@ const mockedEnsureSession = vi.mocked(tmux.ensureSession);
const mockedCreateWindow = vi.mocked(tmux.createWindow);
const mockedSplitPane = vi.mocked(tmux.splitPane);

function createManifest(tmuxWindow = '') {
function createManifest(tmuxWindow = ''): Manifest {
return {
version: 1 as const,
projectRoot: '/tmp/repo',
Expand All @@ -103,7 +104,7 @@ function createManifest(tmuxWindow = '') {
}

describe('spawnCommand', () => {
let manifestState = createManifest();
let manifestState: Manifest = createManifest();
let nextAgent = 1;
let nextSession = 1;

Expand Down