-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: watchOS/tvOS/visionOS support (#3)
* feat: watchOS/tvOS/visionOS support * ci: update ci * feat: release 1.2.0 * ci: update ci * ci: update ci * Revert "ci: update ci" This reverts commit 7d05d50. * ci: update ci * ci: update ci * ci: update ci
- Loading branch information
Showing
17 changed files
with
465 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Cocoapods | ||
name: Cocoapods Trunk Push | ||
on: | ||
release: | ||
types: [published] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Pod Lint | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Force Xcode 15 | ||
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Pod Lint | ||
run: pod lib lint GrowingUtils.podspec --allow-warnings --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: SPM | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-iOS: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Force Xcode 15 | ||
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: | | ||
set -euo pipefail | ||
xcodebuild build -scheme GrowingUtils-Package -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' \ | ||
| xcbeautify --renderer github-actions | ||
build-catalyst: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Force Xcode 15 | ||
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: | | ||
set -euo pipefail | ||
xcodebuild build -scheme GrowingUtils-Package -destination 'platform=macOS,variant=Mac Catalyst' \ | ||
| xcbeautify --renderer github-actions | ||
build-macOS: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Force Xcode 15 | ||
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: | | ||
set -euo pipefail | ||
xcodebuild build -scheme GrowingUtils-Package -destination 'platform=macOS' \ | ||
| xcbeautify --renderer github-actions | ||
build-watchOS: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Force Xcode 15 | ||
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: | | ||
set -euo pipefail | ||
xcodebuild build -scheme GrowingUtils-Package -destination 'platform=watchOS Simulator,name=Apple Watch Ultra 2 (49mm)' \ | ||
| xcbeautify --renderer github-actions | ||
build-tvOS: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Force Xcode 15 | ||
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: | | ||
set -euo pipefail | ||
xcodebuild build -scheme GrowingUtils-Package -destination 'platform=tvOS Simulator,name=Apple TV' \ | ||
| xcbeautify --renderer github-actions | ||
build-visionOS: | ||
runs-on: macos-14 | ||
|
||
steps: | ||
- name: Force Xcode 15 | ||
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: | | ||
set -euo pipefail | ||
xcodebuild build -scheme GrowingUtils-Package -destination 'platform=visionOS Simulator,name=Apple Vision Pro' \ | ||
| xcbeautify --renderer github-actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// swift-tools-version:5.9 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
// | ||
// Package.swift | ||
// GrowingAnalytics | ||
// | ||
// Created by YoloMao on 2024/2/1. | ||
// Copyright (C) 2024 Beijing Yishu Technology Co., Ltd. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "GrowingUtils", | ||
platforms: [ | ||
.iOS(.v12), | ||
.macCatalyst(.v13), | ||
.macOS(.v10_14), | ||
.tvOS(.v12), | ||
.watchOS(.v7), | ||
.visionOS(.v1) | ||
], | ||
products: [ | ||
.library( | ||
name: "GrowingUtilsTrackerCore", | ||
targets: ["GrowingUtilsTrackerCore_Wrapper"] | ||
), | ||
.library( | ||
name: "GrowingUtilsAutotrackerCore", | ||
targets: ["GrowingUtilsAutotrackerCore_Wrapper"] | ||
), | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "GrowingUtilsTrackerCore_Wrapper", | ||
dependencies: [.target(name: "GrowingUtilsTrackerCore", | ||
condition: .when(platforms: [.iOS, .macCatalyst, .macOS]))], | ||
path: "SwiftPM-Wrap/TrackerCore-Wrapper" | ||
), | ||
.target( | ||
name: "GrowingUtilsAutotrackerCore_Wrapper", | ||
dependencies: [.target(name: "GrowingUtilsAutotrackerCore", | ||
condition: .when(platforms: [.iOS, .macCatalyst]))], | ||
path: "SwiftPM-Wrap/AutotrackerCore-Wrapper" | ||
), | ||
.target( | ||
name: "GrowingUtilsTrackerCore", | ||
dependencies: [], | ||
path: "Sources/TrackerCore", | ||
resources: [.copy("Resources/PrivacyInfo.xcprivacy")], | ||
cSettings: [ | ||
.headerSearchPath("include"), | ||
] | ||
), | ||
.target( | ||
name: "GrowingUtilsAutotrackerCore", | ||
dependencies: ["GrowingUtilsTrackerCore"], | ||
path: "Sources/AutotrackerCore", | ||
cSettings: [ | ||
.headerSearchPath("include"), | ||
] | ||
), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.