Skip to content

Commit b4f3701

Browse files
committed
update readme
1 parent 61d4733 commit b4f3701

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Once the list of unused items is generated you can edit it within the app. If y
4848
</tr>
4949
<tr>
5050
<td>Computer Groups</td>
51-
<td>Check for usage in policies, computer configuration profiles, computer groups, eBooks, restricted software, advanced searches, enabled state</td>
51+
<td>Check for usage in policies, computer configuration profiles, computer groups, eBooks, restricted software, advanced searches, app installers, enabled state</td>
5252
</tr>
5353
<tr>
5454
<td>Computer Profiles</td>
@@ -100,13 +100,14 @@ Once the list of unused items is generated you can edit it within the app. If y
100100
* **Policies** scoped only to users and/or user groups will show as unused due to an issue with the API (it doesn't list the users or user groups).
101101
* **Mac App** enabled/disabled state is not available via the API and thus not used to determine usage.
102102
* **Bookmarks** are not accessible via the API. As a result groups that are only used to scope bookmarks will show as unused.
103-
* **App-Installer** are not available through the API. As a result groups used for scoping may erroneously show as unused.
104103

105104
Logging information is written to: ```~/Library/Containers/com.jamf.pse.prune/Data/Library/Logs/Prune.log```
106105

107106
<br><hr><br>
108107

109108
### History:
109+
2024-02-09 - v3.2.1: Query App Installers for groups used for scoping.
110+
110111
2024-02-04 - v3.2.0: Update login window. Add support for bearer token. Provide an alert if some lookups fail, which may result in inaccurate results.
111112

112113
2023-10-15 - v3.1.1: Fix issue #42. Updated token refresh process to address issue #41 and update logging.

prune/JamfPro.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class JamfPro: NSObject, URLSessionDelegate {
4444
if id != "" && id != "0" {
4545
urlString = urlString + "/\(id)"
4646
}
47-
print("[Jpapi] urlString: \(urlString)")
47+
// print("[Jpapi] urlString: \(urlString)")
4848

4949
let url = URL(string: "\(urlString)")
5050
let configuration = URLSessionConfiguration.ephemeral
@@ -67,10 +67,10 @@ class JamfPro: NSObject, URLSessionDelegate {
6767
(data, response, error) -> Void in
6868
session.finishTasksAndInvalidate()
6969
if let httpResponse = response as? HTTPURLResponse {
70-
print("[jpapiAction] \(endpoint) - status code \(httpResponse.statusCode).")
70+
// print("[jpapiAction] \(endpoint) - status code \(httpResponse.statusCode).")
7171
if httpResponse.statusCode >= 200 && httpResponse.statusCode <= 299 {
7272
let json = try? JSONSerialization.jsonObject(with: data!, options: .allowFragments)
73-
print("[Jpapi] json: \(String(describing: json))")
73+
// print("[Jpapi] json: \(String(describing: json))")
7474
if let endpointJSON = json as? [String:Any] {
7575
completion(endpointJSON)
7676
return

prune/LoginViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ class LoginViewController: NSViewController, NSTextFieldDelegate {
480480
}
481481

482482
func setWindowSize(setting: Int) {
483-
print("[setWindowSize] setting: \(setting)")
483+
// print("[setWindowSize] setting: \(setting)")
484484
if setting == 0 {
485485
preferredContentSize = CGSize(width: 518, height: 85)
486486
hideCreds_button.toolTip = "show username/password fields"
@@ -541,7 +541,7 @@ class LoginViewController: NSViewController, NSTextFieldDelegate {
541541
// jamfProPassword_textfield.delegate = self
542542

543543
lastServer = defaults.string(forKey: "currentServer") ?? ""
544-
print("[viewDidLoad] lastServer: \(lastServer)")
544+
// print("[viewDidLoad] lastServer: \(lastServer)")
545545
var foundServer = false
546546

547547
useApiClient = defaults.integer(forKey: "sourceUseApiClient")

0 commit comments

Comments
 (0)