Skip to content

Commit

Permalink
Add wathOS example
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed May 19, 2024
1 parent 63d766b commit e24bf4d
Show file tree
Hide file tree
Showing 24 changed files with 1,108 additions and 483 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/ci-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,38 @@ jobs:
strategy:
matrix:
destination:
- platform=iOS Simulator,name=iPhone 14 Pro,OS=16.0
- platform=iOS Simulator,name=iPhone 14 Pro,OS=16.5
- platform=iOS Simulator,name=iPhone 15 Pro,OS=17.0
- platform=iOS Simulator,name=iPhone 15 Pro,OS=17.5
- platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=16.0
- platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=16.5
- platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=17.0
- platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=17.5
- platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p),OS=17.0
- platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p),OS=17.5
- platform=watchOS Simulator,name=Apple Watch SE (44mm) (2nd generation),OS=10.5
- platform=macOS,arch=arm64
with:
path: AppExample/Example
scheme: Example
destination: ${{ matrix.destination }}
secrets: inherit

build-watchOS-example:
name: Build watchOS Example
needs: build-swiftpm
uses: oversizedev/GithubWorkflows/.github/workflows/build-app.yml@main
strategy:
matrix:
destination:
- platform=watchOS Simulator,name=Apple Watch SE (44mm) (2nd generation),OS=10.0
- platform=watchOS Simulator,name=Apple Watch SE (44mm) (2nd generation),OS=10.5
with:
path: AppExample/Example
scheme: Example (watchOS) Watch App
destination: ${{ matrix.destination }}
secrets: inherit

# tests:
# name: Test
# needs: build-example
Expand Down
28 changes: 26 additions & 2 deletions .github/workflows/ci-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,37 @@ jobs:
strategy:
matrix:
destination:
- platform=iOS Simulator,name=iPhone 14 Pro,OS=16.0
- platform=iOS Simulator,name=iPhone 14 Pro,OS=16.5
- platform=iOS Simulator,name=iPhone 15 Pro,OS=17.0
- platform=iOS Simulator,name=iPhone 15 Pro,OS=17.5
- platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=16.0
- platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=16.5
- platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=17.0
- platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=17.5
- platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p),OS=17.0
- platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p),OS=17.5
- platform=watchOS Simulator,name=Apple Watch SE (44mm) (2nd generation),OS=10.5
- platform=macOS,arch=arm64
with:
path: AppExample/Example
scheme: Example
destination: ${{ matrix.destination }}
secrets: inherit

build-watchOS-example:
name: Build watchOS Example
needs: build-swiftpm
uses: oversizedev/GithubWorkflows/.github/workflows/build-app.yml@main
strategy:
matrix:
destination:
- platform=watchOS Simulator,name=Apple Watch SE (44mm) (2nd generation),OS=10.0
- platform=watchOS Simulator,name=Apple Watch SE (44mm) (2nd generation),OS=10.5
with:
path: AppExample/Example
scheme: Example (watchOS) Watch App
destination: ${{ matrix.destination }}
secrets: inherit

# tests:
# name: Test
Expand All @@ -51,7 +73,9 @@ jobs:

bump:
name: Bump version
needs: build-example
needs:
- build-example
- build-watchOS-example
uses: oversizedev/GithubWorkflows/.github/workflows/bump.yml@main
secrets: inherit

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "watchos",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
30 changes: 30 additions & 0 deletions AppExample/Example (watchOS) Watch App/ContentView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// Copyright © 2024 Alexander Romanov
// ContentView.swift, created on 19.05.2024
//

import OversizeKit
import OversizeContactsKit
import OversizeLocationKit
import OversizePhotoKit
import OversizeCalendarKit
import OversizeNoticeKit
import OversizeNotificationKit
import OversizeOnboardingKit
import SwiftUI

struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
}
.padding()
}
}

#Preview {
ContentView()
}
22 changes: 22 additions & 0 deletions AppExample/Example (watchOS) Watch App/Example__watchOS_App.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// Copyright © 2024 Alexander Romanov
// Example__watchOS_App.swift, created on 19.05.2024
//

import Factory
import OversizeKit
import OversizeServices
import OversizeUI
import SwiftUI

@main
struct Example__watchOS__Watch_AppApp: App {

@Injected(\.appStateService) var appStateService: AppStateService

var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading

0 comments on commit e24bf4d

Please sign in to comment.