emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode 0bc8d8d 477/496: Use isAvailable when reading s


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 0bc8d8d 477/496: Use isAvailable when reading simctl device JSON
Date: Sun, 29 Aug 2021 11:34:31 -0400 (EDT)

branch: elpa/swift-mode
commit 0bc8d8d80736d6d874edf8f59c0b37618368b183
Author: Josh Caswell <josh@scylla>
Commit: taku0 <taku0@users.noreply.github.com>

    Use isAvailable when reading simctl device JSON
    
    `swift-mode:debug-ios-app` was failing because no simulator could
    be configured; the output of `simctl` was not as expected.
    
    The `availability` field of the `device` object had been deprecated
    and was removed as of Xcode 11 (see
    
https://developer.apple.com/documentation/xcode-release-notes/xcode-11-release-notes
    heading "Resolved Issues") in favor of a boolean `isAvailable`.
---
 swift-mode-repl.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/swift-mode-repl.el b/swift-mode-repl.el
index fdbf76c..0425cd9 100644
--- a/swift-mode-repl.el
+++ b/swift-mode-repl.el
@@ -431,8 +431,7 @@ or its ancestors."
          (flattened (apply 'seq-concatenate 'list (seq-map 'cdr devices)))
          (available-devices
           (seq-filter
-           (lambda (device)
-             (string-equal (cdr (assoc 'availability device)) "(available)"))
+           (lambda (device) (cdr (assoc 'isAvailable device)))
            flattened)))
     available-devices))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]