Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2022-2023 Jamf


* @macblazer @jamf/apple-natives-write
3 changes: 3 additions & 0 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2022-2023 Jamf

name: Build and Publish Docs

on:
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2022-2023 Jamf

name: Run unit tests

on:
Expand All @@ -14,12 +17,17 @@ concurrency:
cancel-in-progress: true

jobs:
spm_tests:
name: Run package tests
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
UnitTests:
runs-on: macos-latest
name: Run unit tests

- name: Unit Test
steps:
- uses: actions/checkout@v3
- name: Unit Test (macOS)
run: swift test -v

- name: Unit Test (iOS)
run: xcodebuild test -scheme ManagedAppConfigLib -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 13"

- name: Unit Test (tvOS)
run: xcodebuild test -scheme ManagedAppConfigLib -sdk appletvsimulator16.1 -destination "OS=16.1,name=Apple TV"
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.1] - 2023-05-08
### Added
- Added CODEOWNERS file.

### Fixed
- Fixed issue compiling for iOS and tvOS [PR #6](https://github.com/jamf/ManagedAppConfigLib/pull/6) [@crakaC](https://github.com/crakaC).

### Changed
- Updated GitHub action to run tests on macOS, iOS, and tvOS.
- Updated copyright to be simply "Jamf".

## [1.1.0] - 2022-10-28
### Added
- Property wrapper for SwiftUI and non-SwiftUI to make grabbing AppConfig values very simple.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 Jamf Open Source Community
Copyright 2023 Jamf

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:

Expand Down
2 changes: 1 addition & 1 deletion ManagedAppConfigLib.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ManagedAppConfigLib"
s.version = "1.1.0"
s.version = "1.1.1"
s.summary = "Simplify working with Managed App Configuration and Feedback."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PackageDescription
let package = Package(
name: "ManagedAppConfigLib",
platforms: [
.macOS(.v10_15),
.macOS(.v11),
Comment thread
JacobHearst marked this conversation as resolved.
.iOS(.v8),
.tvOS(.v10)
],
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ dependencies: [
],
```

## Complete Documentation
## Learn More

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

## Basic Usage
You will need to `import ManagedAppConfigLib` in each Swift file you wish to use it.
Expand Down
2 changes: 1 addition & 1 deletion Sources/ManagedAppConfigLib/AppConfig.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SPDX-License-Identifier: MIT
Copyright (c) 2022 Jamf Open Source Community
Copyright (c) 2022-2023 Jamf
*/

import Foundation
Expand Down
8 changes: 4 additions & 4 deletions Sources/ManagedAppConfigLib/AppConfigPlain.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
SPDX-License-Identifier: MIT
Copyright (c) 2022 Jamf Open Source Community
*/
SPDX-License-Identifier: MIT
Copyright (c) 2022-2023 Jamf
*/

import Foundation

Expand All @@ -25,7 +25,7 @@ import Foundation
AppConfigService.shared.use(userDefaults: store)
value = AppConfigService.shared.value(for: key, store) ?? defaultValue
subscriber = NotificationCenter.default.addObserver(forName: .appConfigMayHaveChanged,
object: store, queue: nil) { [weak self] _ in
object: store, queue: nil) { [weak self] _ in
guard let self = self else { return }
self.value = AppConfigService.shared.value(for: key, store) ?? defaultValue
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/ManagedAppConfigLib/AppConfigService.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SPDX-License-Identifier: MIT
Copyright (c) 2022 Jamf Open Source Community
Copyright (c) 2022-2023 Jamf
*/

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/ManagedAppConfigLib/ManagedAppConfig.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SPDX-License-Identifier: MIT
Copyright (c) 2017-2022 Jamf Open Source Community
Copyright (c) 2017-2023 Jamf
*/

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Tests/ManagedAppConfigLibTests/AppConfigPlainTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SPDX-License-Identifier: MIT
Copyright (c) 2017-2022 Jamf Open Source Community
Copyright (c) 2017-2023 Jamf
*/

import ManagedAppConfigLib
Expand Down