Skip to content

Commit 2d76648

Browse files
committed
feat(app): watch app target
1 parent c1e3e24 commit 2d76648

File tree

13 files changed

+262
-7
lines changed

13 files changed

+262
-7
lines changed

.github/workflows/app-ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ jobs:
1818
swift-version: 5.10
1919
- uses: actions/checkout@v4
2020

21-
- name: Build and test
21+
- name: Build
22+
run: |
23+
cd ./app/metro-now
24+
xcodebuild build -scheme metro-now -project metro-now.xcodeproj -destination 'platform=iOS Simulator,name=iPhone ${{ matrix.device }},OS=${{ matrix.iOS }}' | xcpretty && exit ${PIPESTATUS[0]}
25+
26+
- name: Test
2227
run: |
2328
cd ./app/metro-now
2429
xcodebuild test -scheme metro-now -project metro-now.xcodeproj -destination 'platform=iOS Simulator,name=iPhone ${{ matrix.device }},OS=${{ matrix.iOS }}' | xcpretty && exit ${PIPESTATUS[0]}

.github/workflows/check-format.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ jobs:
1818

1919
js-format-check:
2020
name: JS format check 💅
21-
strategy:
22-
fail-fast: false
23-
matrix:
24-
os: [ubuntu-latest, macos-latest]
25-
runs-on: ${{ matrix.os }}
21+
runs-on: ubuntu-latest
2622

2723
steps:
2824
- uses: actions/checkout@v2
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors": [
3+
{
4+
"idiom": "universal"
5+
}
6+
],
7+
"info": {
8+
"author": "xcode",
9+
"version": 1
10+
}
11+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"images": [
3+
{
4+
"filename": "icon-1024x1024.png",
5+
"idiom": "universal",
6+
"platform": "watchos",
7+
"size": "1024x1024"
8+
}
9+
],
10+
"info": {
11+
"author": "xcode",
12+
"version": 1
13+
}
14+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info": {
3+
"author": "xcode",
4+
"version": 1
5+
}
6+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// ContentView.swift
3+
// metro-now-watch Watch App
4+
//
5+
// Created by Kryštof Krátký on 19.05.2024.
6+
//
7+
8+
import SwiftUI
9+
10+
struct ContentView: View {
11+
var body: some View {
12+
VStack {
13+
Image(systemName: "globe")
14+
.imageScale(.large)
15+
.foregroundStyle(.tint)
16+
Text("Hello, world!")
17+
}
18+
.padding()
19+
}
20+
}
21+
22+
#Preview {
23+
ContentView()
24+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info": {
3+
"author": "xcode",
4+
"version": 1
5+
}
6+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// metro_now_watchApp.swift
3+
// metro-now-watch Watch App
4+
//
5+
// Created by Kryštof Krátký on 19.05.2024.
6+
//
7+
8+
import SwiftUI
9+
10+
@main
11+
struct metro_now_watch_Watch_AppApp: App {
12+
var body: some Scene {
13+
WindowGroup {
14+
ContentView()
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)