-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it easier to check for appLanguage, preferredLanguage, and regio…
…n + grand rename (#153) * Make it easier to check for appLanguage, preferredLanguage, and region * Adjust new parameters names, introduce more & send alongside old names * Fix tools version & provide proper support for visionOS * Fix minor issue * Apply grand rename by deprecating existing APIs and introducing new * Bump version to new major version 2.0.0 * Shorten configuration parameter to config * Add a renamed TelemetryDeck library while also keeping the old one * Add TelemetryDeck target to fix potential import issues * Make TelemetryDeck.signal method public * Fix incorrect app language code detection on modern OSes * Update Xcode version to 15 on CI * Fix tests + specify package as scheme as it contains the test target * Fix all SwiftLint warnings * Adjust tests after fixing SwiftLint warnings + switch to Ubuntu-based SwiftLint on CI * Update device destinations on CI builds + add Vision Pro
- Loading branch information
Showing
14 changed files
with
351 additions
and
128 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 |
---|---|---|
|
@@ -10,26 +10,28 @@ on: | |
jobs: | ||
lint: | ||
name: Lint Code | ||
runs-on: macos-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Repository checkout | ||
uses: actions/checkout@v4 | ||
- name: Lint | ||
run: swiftlint | ||
uses: norio-nomura/[email protected] | ||
with: | ||
args: --strict | ||
test: | ||
name: Test Xcode ${{ matrix.xcode }} - ${{ matrix.xcodebuildCommand }} | ||
runs-on: "macos-latest" | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
xcode: | ||
- ^14 | ||
# - ^15 | ||
- ^15 | ||
xcodebuildCommand: | ||
- "-sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14'" | ||
- "-sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15'" | ||
- "-sdk macosx -destination 'platform=macOS'" | ||
- "-sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation)'" | ||
- "-sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)'" | ||
- "-sdk xrsimulator -destination 'platform=visionOS Simulator,name=Apple Vision Pro'" | ||
- "-sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)'" | ||
- "-sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)'" | ||
steps: | ||
- name: Repository checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -38,4 +40,4 @@ jobs: | |
with: | ||
xcode-version: ${{ matrix.xcode }} | ||
- name: Build and Test | ||
run: xcodebuild test -scheme TelemetryClient ${{ matrix.xcodebuildCommand }} | ||
run: xcodebuild test -scheme TelemetryClient-Package ${{ matrix.xcodebuildCommand }} |
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.