Skip to content

Commit d3c0091

Browse files
authored
Merge pull request #7 from macblazer/release_1_1_1
Release 1.1.1
2 parents 5d50920 + 5ab4b73 commit d3c0091

13 files changed

Lines changed: 47 additions & 22 deletions

File tree

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: MIT
2+
# Copyright (c) 2022-2023 Jamf
3+
4+
5+
* @macblazer @jamf/apple-natives-write

.github/workflows/publish_docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: MIT
2+
# Copyright (c) 2022-2023 Jamf
3+
14
name: Build and Publish Docs
25

36
on:

.github/workflows/run_tests.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: MIT
2+
# Copyright (c) 2022-2023 Jamf
3+
14
name: Run unit tests
25

36
on:
@@ -14,12 +17,17 @@ concurrency:
1417
cancel-in-progress: true
1518

1619
jobs:
17-
spm_tests:
18-
name: Run package tests
19-
runs-on: macos-12
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v3
20+
UnitTests:
21+
runs-on: macos-latest
22+
name: Run unit tests
2323

24-
- name: Unit Test
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Unit Test (macOS)
2527
run: swift test -v
28+
29+
- name: Unit Test (iOS)
30+
run: xcodebuild test -scheme ManagedAppConfigLib -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 13"
31+
32+
- name: Unit Test (tvOS)
33+
run: xcodebuild test -scheme ManagedAppConfigLib -sdk appletvsimulator16.1 -destination "OS=16.1,name=Apple TV"

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.1.1] - 2023-05-08
8+
### Added
9+
- Added CODEOWNERS file.
10+
11+
### Fixed
12+
- Fixed issue compiling for iOS and tvOS [PR #6](https://github.com/jamf/ManagedAppConfigLib/pull/6) [@crakaC](https://github.com/crakaC).
13+
14+
### Changed
15+
- Updated GitHub action to run tests on macOS, iOS, and tvOS.
16+
- Updated copyright to be simply "Jamf".
17+
718
## [1.1.0] - 2022-10-28
819
### Added
920
- Property wrapper for SwiftUI and non-SwiftUI to make grabbing AppConfig values very simple.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2022 Jamf Open Source Community
1+
Copyright 2023 Jamf
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

ManagedAppConfigLib.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "ManagedAppConfigLib"
3-
s.version = "1.1.0"
3+
s.version = "1.1.1"
44
s.summary = "Simplify working with Managed App Configuration and Feedback."
55

66
s.description = <<-DESC

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "ManagedAppConfigLib",
66
platforms: [
7-
.macOS(.v10_15),
7+
.macOS(.v11),
88
.iOS(.v8),
99
.tvOS(.v10)
1010
],

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ dependencies: [
2727
],
2828
```
2929

30-
## Complete Documentation
30+
## Learn More
3131

3232
[The documentation](https://jamf.github.io/ManagedAppConfigLib/documentation/managedappconfiglib/)
3333
for this package was generated by [DocC](https://developer.apple.com/documentation/docc)
34-
from GitHub Actions. Take a look at the workflow file
35-
[publish_docs.yml](https://github.com/jamf/ManagedAppConfigLib/blob/main/.github/workflows/publish_docs.yml)
36-
for more details.
34+
using [publish_docs.yml](https://github.com/jamf/ManagedAppConfigLib/blob/main/.github/workflows/publish_docs.yml) with GitHub Actions.
3735

3836
## Basic Usage
3937
You will need to `import ManagedAppConfigLib` in each Swift file you wish to use it.

Sources/ManagedAppConfigLib/AppConfig.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
SPDX-License-Identifier: MIT
3-
Copyright (c) 2022 Jamf Open Source Community
3+
Copyright (c) 2022-2023 Jamf
44
*/
55

66
import Foundation

Sources/ManagedAppConfigLib/AppConfigPlain.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
SPDX-License-Identifier: MIT
3-
Copyright (c) 2022 Jamf Open Source Community
4-
*/
2+
SPDX-License-Identifier: MIT
3+
Copyright (c) 2022-2023 Jamf
4+
*/
55

66
import Foundation
77

@@ -25,7 +25,7 @@ import Foundation
2525
AppConfigService.shared.use(userDefaults: store)
2626
value = AppConfigService.shared.value(for: key, store) ?? defaultValue
2727
subscriber = NotificationCenter.default.addObserver(forName: .appConfigMayHaveChanged,
28-
object: store, queue: nil) { [weak self] _ in
28+
object: store, queue: nil) { [weak self] _ in
2929
guard let self = self else { return }
3030
self.value = AppConfigService.shared.value(for: key, store) ?? defaultValue
3131
}

0 commit comments

Comments
 (0)