Skip to content

Commit

Permalink
Develop (#16)
Browse files Browse the repository at this point in the history
* Add new router

* Add routing draft

* Add router

* Upd CI push develop

* Test fix

* Fix tvOS errors

* Fix tvOS support

* Fix tvOS

* Add wathOS example

* Fix ci

* Up

* Upd

* Remove build macOS

* Fix support iPad

* Up router

* Fix iPhone 15 version

* Add iPhone 14 Pro build

* Add macOS build

* Fix ci

* Delete macOS build

* Update routing, onboarding and up to Swift6

* Fix #major

* Fix ci

* Update CI

* Fix EventKit and Contacts

* Format code

* Fix example

* Fix macOS

* Update CI
  • Loading branch information
aromanov91 authored Nov 11, 2024
1 parent 430af61 commit d8e2eab
Show file tree
Hide file tree
Showing 85 changed files with 4,264 additions and 3,559 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/ci-pull-request.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/ci-push.yml

This file was deleted.

100 changes: 100 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: CI

on:
push:
branches:
- '**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-oversize-kit:
name: Build OversizeKit
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main
with:
package: OversizeKit
secrets: inherit

build-calendar-kit:
name: Build CalendarKit
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main
with:
package: OversizeCalendarKit
secrets: inherit

build-contacts-kit:
name: Build OversizeContactsKit
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main
with:
package: OversizeContactsKit
secrets: inherit

build-location-kit:
name: Build LocationKit
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main
with:
package: OversizeLocationKit
secrets: inherit

build-notice-kit:
name: Build NoticeKit
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main
with:
package: OversizeNoticeKit
secrets: inherit

build-notification-kit:
name: Build NotificationKit
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main
with:
package: OversizeNotificationKit
secrets: inherit

build-onboarding-kit:
name: Build OnboardingKit
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main
with:
package: OversizeOnboardingKit
secrets: inherit

build-photo-kit:
name: Build PhotoKit
uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm-all-platforms.yml@main
with:
package: OversizePhotoKit
secrets: inherit

build-example:
name: Build Example
needs:
- build-oversize-kit
- build-calendar-kit
- build-contacts-kit
- build-location-kit
- build-notice-kit
- build-notification-kit
- build-onboarding-kit
- build-photo-kit
uses: oversizedev/GithubWorkflows/.github/workflows/build-app.yml@main
with:
path: AppExample/Example
scheme: Example
destination: platform=iOS Simulator,name=iPhone 16,OS=18.1
secrets: inherit

# tests:
# name: Test
# needs: build-swiftpm
# uses: oversizedev/GithubWorkflows/.github/workflows/test.yml@main
# secrets: inherit

bump:
name: Bump version
needs:
- build-example
if: github.ref == 'refs/heads/main'
uses: oversizedev/GithubWorkflows/.github/workflows/bump.yml@main
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "*.*.*"

jobs:
build:
release:
name: Create release
runs-on: ubuntu-latest
steps:
Expand Down
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 OversizeCalendarKit
import OversizeContactsKit
import OversizeKit
import OversizeLocationKit
import OversizeNoticeKit
import OversizeNotificationKit
import OversizeOnboardingKit
import OversizePhotoKit
import SwiftUI

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

#Preview {
ContentView()
}
21 changes: 21 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,21 @@
//
// 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 d8e2eab

Please sign in to comment.