.
30 | This will help ensure that any vulnerabilities that _are_ found
31 | can be [disclosed responsibly](http://en.wikipedia.org/wiki/Responsible_disclosure)
32 | to any affected parties.
33 |
34 | ## Reporting Other Issues
35 |
36 | A great way to contribute to the project
37 | is to send a detailed issue when you encounter a problem.
38 | We always appreciate a well-written, thorough bug report.
39 |
40 | Check that the project issues database
41 | doesn't already include that problem or suggestion before submitting an issue.
42 | If you find a match, add a quick "+1" or "I have this problem too."
43 | Doing this helps prioritize the most common problems and requests.
44 |
45 | When reporting issues, please include the following:
46 |
47 | * The version of Xcode you're using
48 | * The version of iOS or macOS you're targeting
49 | * The full output of any stack trace or compiler error
50 | * A code snippet that reproduces the described behavior, if applicable
51 | * Any other details that would be useful in understanding the problem
52 |
53 | This information will help us review and fix your issue faster.
54 |
55 | ## Developer's Certificate of Origin 1.1
56 |
57 | By making a contribution to this project, I certify that:
58 |
59 | - (a) The contribution was created in whole or in part by me and I
60 | have the right to submit it under the open source license
61 | indicated in the file; or
62 |
63 | - (b) The contribution is based upon previous work that, to the best
64 | of my knowledge, is covered under an appropriate open source
65 | license and I have the right under that license to submit that
66 | work with modifications, whether created in whole or in part
67 | by me, under the same open source license (unless I am
68 | permitted to submit under a different license), as indicated
69 | in the file; or
70 |
71 | - (c) The contribution was provided directly to me by some other
72 | person who certified (a), (b) or (c) and I have not modified
73 | it.
74 |
75 | - (d) I understand and agree that this project and the contribution
76 | are public and that a record of the contribution (including all
77 | personal information I submit with it, including my sign-off) is
78 | maintained indefinitely and may be redistributed consistent with
79 | this project or the open source license(s) involved.
80 |
81 | ## Code of Conduct
82 |
83 | The Code of Conduct governs how we behave in public or in private
84 | whenever the project will be judged by our actions.
85 | We expect it to be honored by everyone who contributes to this project.
86 |
87 | See [CONDUCT.md](https://github.com/Alamofire/Foundation/blob/master/CONDUCT.md) for details.
88 |
89 | ---
90 |
91 | *Some of the ideas and wording for the statements above were based on work by the [Docker](https://github.com/docker/docker/blob/master/CONTRIBUTING.md) and [Linux](http://elinux.org/Developer_Certificate_Of_Origin) communities. We commend them for their efforts to facilitate collaboration in their projects.*
92 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/Resources/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "83.5x83.5",
66 | "scale" : "2x"
67 | }
68 | ],
69 | "info" : {
70 | "version" : 1,
71 | "author" : "xcode"
72 | }
73 | }
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/Resources/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "7.0",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "portrait",
12 | "idiom" : "iphone",
13 | "subtype" : "retina4",
14 | "extent" : "full-screen",
15 | "minimum-system-version" : "7.0",
16 | "scale" : "2x"
17 | },
18 | {
19 | "orientation" : "portrait",
20 | "idiom" : "ipad",
21 | "extent" : "full-screen",
22 | "minimum-system-version" : "7.0",
23 | "scale" : "1x"
24 | },
25 | {
26 | "orientation" : "landscape",
27 | "idiom" : "ipad",
28 | "extent" : "full-screen",
29 | "minimum-system-version" : "7.0",
30 | "scale" : "1x"
31 | },
32 | {
33 | "orientation" : "portrait",
34 | "idiom" : "ipad",
35 | "extent" : "full-screen",
36 | "minimum-system-version" : "7.0",
37 | "scale" : "2x"
38 | },
39 | {
40 | "orientation" : "landscape",
41 | "idiom" : "ipad",
42 | "extent" : "full-screen",
43 | "minimum-system-version" : "7.0",
44 | "scale" : "2x"
45 | }
46 | ],
47 | "info" : {
48 | "version" : 1,
49 | "author" : "xcode"
50 | }
51 | }
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/Resources/Images.xcassets/Logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "Logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "Logo@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/Resources/Images.xcassets/Logo.imageset/Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Example/Resources/Images.xcassets/Logo.imageset/Logo.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/Resources/Images.xcassets/Logo.imageset/Logo@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Example/Resources/Images.xcassets/Logo.imageset/Logo@2x.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/Resources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | Alamofire
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UIMainStoryboardFile
26 | Main
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UIStatusBarTintParameters
34 |
35 | UINavigationBar
36 |
37 | Style
38 | UIBarStyleDefault
39 | Translucent
40 |
41 |
42 |
43 | UISupportedInterfaceOrientations
44 |
45 | UIInterfaceOrientationPortrait
46 | UIInterfaceOrientationLandscapeLeft
47 | UIInterfaceOrientationLandscapeRight
48 |
49 | UISupportedInterfaceOrientations~ipad
50 |
51 | UIInterfaceOrientationPortrait
52 | UIInterfaceOrientationPortraitUpsideDown
53 | UIInterfaceOrientationLandscapeLeft
54 | UIInterfaceOrientationLandscapeRight
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/Source/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import UIKit
26 |
27 | @UIApplicationMain
28 | class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDelegate {
29 |
30 | var window: UIWindow?
31 |
32 | // MARK: - UIApplicationDelegate
33 |
34 | func application(
35 | _ application: UIApplication,
36 | didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?)
37 | -> Bool
38 | {
39 | let splitViewController = window!.rootViewController as! UISplitViewController
40 | let navigationController = splitViewController.viewControllers.last as! UINavigationController
41 | navigationController.topViewController!.navigationItem.leftBarButtonItem = splitViewController.displayModeButtonItem
42 | splitViewController.delegate = self
43 |
44 | return true
45 | }
46 |
47 | // MARK: - UISplitViewControllerDelegate
48 |
49 | func splitViewController(
50 | _ splitViewController: UISplitViewController,
51 | collapseSecondary secondaryViewController: UIViewController,
52 | onto primaryViewController: UIViewController)
53 | -> Bool
54 | {
55 | if
56 | let secondaryAsNavController = secondaryViewController as? UINavigationController,
57 | let topAsDetailController = secondaryAsNavController.topViewController as? DetailViewController
58 | {
59 | return topAsDetailController.request == nil
60 | }
61 |
62 | return false
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/Source/MasterViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MasterViewController.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import Alamofire
26 | import UIKit
27 |
28 | class MasterViewController: UITableViewController {
29 |
30 | @IBOutlet weak var titleImageView: UIImageView!
31 |
32 | var detailViewController: DetailViewController? = nil
33 | var objects = NSMutableArray()
34 |
35 | // MARK: - View Lifecycle
36 |
37 | override func awakeFromNib() {
38 | super.awakeFromNib()
39 |
40 | navigationItem.titleView = titleImageView
41 | }
42 |
43 | override func viewDidLoad() {
44 | super.viewDidLoad()
45 |
46 | if let split = splitViewController {
47 | let controllers = split.viewControllers
48 |
49 | if
50 | let navigationController = controllers.last as? UINavigationController,
51 | let topViewController = navigationController.topViewController as? DetailViewController
52 | {
53 | detailViewController = topViewController
54 | }
55 | }
56 | }
57 |
58 | // MARK: - UIStoryboardSegue
59 |
60 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
61 | if
62 | let navigationController = segue.destination as? UINavigationController,
63 | let detailViewController = navigationController.topViewController as? DetailViewController
64 | {
65 | func requestForSegue(_ segue: UIStoryboardSegue) -> Request? {
66 | switch segue.identifier! {
67 | case "GET":
68 | detailViewController.segueIdentifier = "GET"
69 | return Alamofire.request("https://httpbin.org/get")
70 | case "POST":
71 | detailViewController.segueIdentifier = "POST"
72 | return Alamofire.request("https://httpbin.org/post", method: .post)
73 | case "PUT":
74 | detailViewController.segueIdentifier = "PUT"
75 | return Alamofire.request("https://httpbin.org/put", method: .put)
76 | case "DELETE":
77 | detailViewController.segueIdentifier = "DELETE"
78 | return Alamofire.request("https://httpbin.org/delete", method: .delete)
79 | case "DOWNLOAD":
80 | detailViewController.segueIdentifier = "DOWNLOAD"
81 | let destination = DownloadRequest.suggestedDownloadDestination(
82 | for: .cachesDirectory,
83 | in: .userDomainMask
84 | )
85 | return Alamofire.download("https://httpbin.org/stream/1", to: destination)
86 | default:
87 | return nil
88 | }
89 | }
90 |
91 | if let request = requestForSegue(segue) {
92 | detailViewController.request = request
93 | }
94 | }
95 | }
96 | }
97 |
98 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/iOS Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Example/iOS Example.xcodeproj/xcshareddata/xcschemes/iOS Example.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
33 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
56 |
58 |
64 |
65 |
66 |
67 |
71 |
72 |
73 |
74 |
75 |
76 |
82 |
84 |
90 |
91 |
92 |
93 |
95 |
96 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 |
3 | gem "cocoapods"
4 | gem "jazzy"
5 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | CFPropertyList (2.3.5)
5 | activesupport (4.2.10)
6 | i18n (~> 0.7)
7 | minitest (~> 5.1)
8 | thread_safe (~> 0.3, >= 0.3.4)
9 | tzinfo (~> 1.1)
10 | claide (1.0.2)
11 | cocoapods (1.3.1)
12 | activesupport (>= 4.0.2, < 5)
13 | claide (>= 1.0.2, < 2.0)
14 | cocoapods-core (= 1.3.1)
15 | cocoapods-deintegrate (>= 1.0.1, < 2.0)
16 | cocoapods-downloader (>= 1.1.3, < 2.0)
17 | cocoapods-plugins (>= 1.0.0, < 2.0)
18 | cocoapods-search (>= 1.0.0, < 2.0)
19 | cocoapods-stats (>= 1.0.0, < 2.0)
20 | cocoapods-trunk (>= 1.2.0, < 2.0)
21 | cocoapods-try (>= 1.1.0, < 2.0)
22 | colored2 (~> 3.1)
23 | escape (~> 0.0.4)
24 | fourflusher (~> 2.0.1)
25 | gh_inspector (~> 1.0)
26 | molinillo (~> 0.5.7)
27 | nap (~> 1.0)
28 | ruby-macho (~> 1.1)
29 | xcodeproj (>= 1.5.1, < 2.0)
30 | cocoapods-core (1.3.1)
31 | activesupport (>= 4.0.2, < 6)
32 | fuzzy_match (~> 2.0.4)
33 | nap (~> 1.0)
34 | cocoapods-deintegrate (1.0.1)
35 | cocoapods-downloader (1.1.3)
36 | cocoapods-plugins (1.0.0)
37 | nap
38 | cocoapods-search (1.0.0)
39 | cocoapods-stats (1.0.0)
40 | cocoapods-trunk (1.3.0)
41 | nap (>= 0.8, < 2.0)
42 | netrc (~> 0.11)
43 | cocoapods-try (1.1.0)
44 | colored2 (3.1.2)
45 | concurrent-ruby (1.0.5)
46 | escape (0.0.4)
47 | ffi (1.9.18)
48 | fourflusher (2.0.1)
49 | fuzzy_match (2.0.4)
50 | gh_inspector (1.0.3)
51 | i18n (0.9.1)
52 | concurrent-ruby (~> 1.0)
53 | jazzy (0.9.0)
54 | cocoapods (~> 1.0)
55 | mustache (~> 0.99)
56 | open4
57 | redcarpet (~> 3.2)
58 | rouge (~> 1.5)
59 | sass (~> 3.4)
60 | sqlite3 (~> 1.3)
61 | xcinvoke (~> 0.3.0)
62 | liferaft (0.0.6)
63 | minitest (5.10.3)
64 | molinillo (0.5.7)
65 | mustache (0.99.8)
66 | nanaimo (0.2.3)
67 | nap (1.1.0)
68 | netrc (0.11.0)
69 | open4 (1.3.4)
70 | rb-fsevent (0.10.2)
71 | rb-inotify (0.9.10)
72 | ffi (>= 0.5.0, < 2)
73 | redcarpet (3.4.0)
74 | rouge (1.11.1)
75 | ruby-macho (1.1.0)
76 | sass (3.5.3)
77 | sass-listen (~> 4.0.0)
78 | sass-listen (4.0.0)
79 | rb-fsevent (~> 0.9, >= 0.9.4)
80 | rb-inotify (~> 0.9, >= 0.9.7)
81 | sqlite3 (1.3.13)
82 | thread_safe (0.3.6)
83 | tzinfo (1.2.4)
84 | thread_safe (~> 0.1)
85 | xcinvoke (0.3.0)
86 | liferaft (~> 0.0.6)
87 | xcodeproj (1.5.3)
88 | CFPropertyList (~> 2.3.3)
89 | claide (>= 1.0.2, < 2.0)
90 | colored2 (~> 3.1)
91 | nanaimo (~> 0.2.3)
92 |
93 | PLATFORMS
94 | ruby
95 |
96 | DEPENDENCIES
97 | cocoapods
98 | jazzy
99 |
100 | BUNDLED WITH
101 | 1.15.4
102 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | > ℹ Please fill out this template when filing an issue.
2 | > All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.
3 | >
4 | > Per our [*CONTRIBUTING guidelines](https://github.com/Alamofire/Alamofire/blob/master/CONTRIBUTING.md), we use GitHub for
5 | > bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag `alamofire`.
6 | >
7 | > Please remove this line and everything above it before submitting.
8 |
9 | * [ ] I've read, understood, and done my best to follow the [*CONTRIBUTING guidelines](https://github.com/Alamofire/Alamofire/blob/master/CONTRIBUTING.md).
10 |
11 | ## What did you do?
12 |
13 | ℹ Please replace this with what you did.
14 |
15 | ## What did you expect to happen?
16 |
17 | ℹ Please replace this with what you expected to happen.
18 |
19 | ## What happened instead?
20 |
21 | ℹ Please replace this with of what happened instead.
22 |
23 | ## Alamofire Environment
24 |
25 | **Alamofire version:**
26 | **Xcode version:**
27 | **Swift version:**
28 | **Platform(s) running Alamofire:**
29 | **macOS version running Xcode:**
30 |
31 | ## Demo Project
32 |
33 | ℹ Please link to or upload a project we can download that reproduces the issue.
34 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ### Issue Link :link:
2 |
3 |
4 | ### Goals :soccer:
5 |
6 |
7 |
8 | ### Implementation Details :construction:
9 |
10 |
11 |
12 | ### Testing Details :mag:
13 |
14 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Package.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Package.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import PackageDescription
26 |
27 | let package = Package(name: "Alamofire", dependencies : [], exclude: ["Tests"])
28 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Source/Alamofire.h:
--------------------------------------------------------------------------------
1 | //
2 | // Alamofire.h
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | @import Foundation;
26 |
27 | FOUNDATION_EXPORT double AlamofireVersionNumber;
28 | FOUNDATION_EXPORT const unsigned char AlamofireVersionString[];
29 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Source/DispatchQueue+Alamofire.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DispatchQueue+Alamofire.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import Dispatch
26 | import Foundation
27 |
28 | extension DispatchQueue {
29 | static var userInteractive: DispatchQueue { return DispatchQueue.global(qos: .userInteractive) }
30 | static var userInitiated: DispatchQueue { return DispatchQueue.global(qos: .userInitiated) }
31 | static var utility: DispatchQueue { return DispatchQueue.global(qos: .utility) }
32 | static var background: DispatchQueue { return DispatchQueue.global(qos: .background) }
33 |
34 | func after(_ delay: TimeInterval, execute closure: @escaping () -> Void) {
35 | asyncAfter(deadline: .now() + delay, execute: closure)
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Source/Info-tvOS.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 4.6.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(CURRENT_PROJECT_VERSION)
23 | NSPrincipalClass
24 |
25 | UIRequiredDeviceCapabilities
26 |
27 | arm64
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Source/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 4.6.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(CURRENT_PROJECT_VERSION)
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Source/Notifications.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Notifications.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import Foundation
26 |
27 | extension Notification.Name {
28 | /// Used as a namespace for all `URLSessionTask` related notifications.
29 | public struct Task {
30 | /// Posted when a `URLSessionTask` is resumed. The notification `object` contains the resumed `URLSessionTask`.
31 | public static let DidResume = Notification.Name(rawValue: "org.alamofire.notification.name.task.didResume")
32 |
33 | /// Posted when a `URLSessionTask` is suspended. The notification `object` contains the suspended `URLSessionTask`.
34 | public static let DidSuspend = Notification.Name(rawValue: "org.alamofire.notification.name.task.didSuspend")
35 |
36 | /// Posted when a `URLSessionTask` is cancelled. The notification `object` contains the cancelled `URLSessionTask`.
37 | public static let DidCancel = Notification.Name(rawValue: "org.alamofire.notification.name.task.didCancel")
38 |
39 | /// Posted when a `URLSessionTask` is completed. The notification `object` contains the completed `URLSessionTask`.
40 | public static let DidComplete = Notification.Name(rawValue: "org.alamofire.notification.name.task.didComplete")
41 | }
42 | }
43 |
44 | // MARK: -
45 |
46 | extension Notification {
47 | /// Used as a namespace for all `Notification` user info dictionary keys.
48 | public struct Key {
49 | /// User info dictionary key representing the `URLSessionTask` associated with the notification.
50 | public static let Task = "org.alamofire.notification.key.task"
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/BaseTestCase.swift:
--------------------------------------------------------------------------------
1 | //
2 | // BaseTestCase.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import Alamofire
26 | import Foundation
27 | import XCTest
28 |
29 | class BaseTestCase: XCTestCase {
30 | let timeout: TimeInterval = 30.0
31 |
32 | static var testDirectoryURL: URL { return FileManager.temporaryDirectoryURL.appendingPathComponent("org.alamofire.tests") }
33 | var testDirectoryURL: URL { return BaseTestCase.testDirectoryURL }
34 |
35 | override func setUp() {
36 | super.setUp()
37 |
38 | FileManager.removeAllItemsInsideDirectory(at: testDirectoryURL)
39 | FileManager.createDirectory(at: testDirectoryURL)
40 | }
41 |
42 | func url(forResource fileName: String, withExtension ext: String) -> URL {
43 | let bundle = Bundle(for: BaseTestCase.self)
44 | return bundle.url(forResource: fileName, withExtension: ext)!
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/FileManager+AlamofireTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // FileManager+AlamofireTests.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import Foundation
26 |
27 | extension FileManager {
28 |
29 | // MARK: - Common Directories
30 |
31 | static var temporaryDirectoryPath: String {
32 | return NSTemporaryDirectory()
33 | }
34 |
35 | static var temporaryDirectoryURL: URL {
36 | return URL(fileURLWithPath: FileManager.temporaryDirectoryPath, isDirectory: true)
37 | }
38 |
39 | // MARK: - File System Modification
40 |
41 | @discardableResult
42 | static func createDirectory(atPath path: String) -> Bool {
43 | do {
44 | try FileManager.default.createDirectory(atPath: path, withIntermediateDirectories: true, attributes: nil)
45 | return true
46 | } catch {
47 | return false
48 | }
49 | }
50 |
51 | @discardableResult
52 | static func createDirectory(at url: URL) -> Bool {
53 | return createDirectory(atPath: url.path)
54 | }
55 |
56 | @discardableResult
57 | static func removeItem(atPath path: String) -> Bool {
58 | do {
59 | try FileManager.default.removeItem(atPath: path)
60 | return true
61 | } catch {
62 | return false
63 | }
64 | }
65 |
66 | @discardableResult
67 | static func removeItem(at url: URL) -> Bool {
68 | return removeItem(atPath: url.path)
69 | }
70 |
71 | @discardableResult
72 | static func removeAllItemsInsideDirectory(atPath path: String) -> Bool {
73 | let enumerator = FileManager.default.enumerator(atPath: path)
74 | var result = true
75 |
76 | while let fileName = enumerator?.nextObject() as? String {
77 | let success = removeItem(atPath: path + "/\(fileName)")
78 | if !success { result = false }
79 | }
80 |
81 | return result
82 | }
83 |
84 | @discardableResult
85 | static func removeAllItemsInsideDirectory(at url: URL) -> Bool {
86 | return removeAllItemsInsideDirectory(atPath: url.path)
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/alamofire-root-ca.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/alamofire-root-ca.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/alamofire-signing-ca1.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/alamofire-signing-ca1.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/alamofire-signing-ca2.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/alamofire-signing-ca2.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/expired.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/expired.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/missing-dns-name-and-uri.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/missing-dns-name-and-uri.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/multiple-dns-names.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/multiple-dns-names.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/signed-by-ca1.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/signed-by-ca1.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/signed-by-ca2.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/signed-by-ca2.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/test.alamofire.org.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/test.alamofire.org.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/valid-dns-name.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/valid-dns-name.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/valid-uri.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/valid-uri.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/wildcard.alamofire.org.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/alamofire.org/wildcard.alamofire.org.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/expired.badssl.com/expired.badssl.com-intermediate-ca-1.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/expired.badssl.com/expired.badssl.com-intermediate-ca-1.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/expired.badssl.com/expired.badssl.com-intermediate-ca-2.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/expired.badssl.com/expired.badssl.com-intermediate-ca-2.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/expired.badssl.com/expired.badssl.com-leaf.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/expired.badssl.com/expired.badssl.com-leaf.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/expired.badssl.com/expired.badssl.com-root-ca.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/expired.badssl.com/expired.badssl.com-root-ca.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/certDER.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/certDER.cer
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/certDER.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/certDER.crt
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/certDER.der:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/certDER.der
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/certPEM.cer:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIID9DCCAtygAwIBAgIJAIqBVOBRW4qMMA0GCSqGSIb3DQEBCwUAMFkxCzAJBgNV
3 | BAYTAlVTMQswCQYDVQQIEwJDQTERMA8GA1UEBxMIQmVya2VsZXkxKjAoBgNVBAoT
4 | IVRlc3RpbmcgQ2VydGlmaWNhdGVzIGluIEFsYW1vRmlyZTAeFw0xNTEyMTEwMjA5
5 | MDlaFw0xNjEyMTAwMjA5MDlaMFkxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTER
6 | MA8GA1UEBxMIQmVya2VsZXkxKjAoBgNVBAoTIVRlc3RpbmcgQ2VydGlmaWNhdGVz
7 | IGluIEFsYW1vRmlyZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJy9
8 | FTR4QzhYyo2v2yv8SwlBQ32MHQF8Ez1J+YBsyZjcTVOGJtyPxrbJxGuRhyDzKUqz
9 | X/zTsT+JPvZQXXBmyq0l0DhCcK84cHyVLcdEAzukam85EpJRWzSg8kDKzuTx2oLk
10 | X8Zdcj7EEtYWV/5+/YahM4tXYhg+Lqm6koJEVHMld6zfedC7HN+jsTb73IrAY0dd
11 | BPl7WPgDIPEl0kcGI6F7NS0+CKsgX412E5+TGUkvA8VI+e9+cn/EXBdklVQQGSOu
12 | rHpcoOi1VqnQI0hGXlFi4MpamwMG2yArIUU0TXZ7G+/AbUYiGdB6ogvg5UTCfyZy
13 | UXVljSJyzYmLs7hXQK8CAwEAAaOBvjCBuzAdBgNVHQ4EFgQU9EaWHrJGYvpCEW5f
14 | CUEMRk9DlN8wgYsGA1UdIwSBgzCBgIAU9EaWHrJGYvpCEW5fCUEMRk9DlN+hXaRb
15 | MFkxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTERMA8GA1UEBxMIQmVya2VsZXkx
16 | KjAoBgNVBAoTIVRlc3RpbmcgQ2VydGlmaWNhdGVzIGluIEFsYW1vRmlyZYIJAIqB
17 | VOBRW4qMMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAEeHeXNZGHJW
18 | VImbOHrYmSsZ5jFnzjGw8ynkOrcoJzaxg3OHoo/pNCQ7KcrIa5YPNFiNoaSa/Lzn
19 | LBt6HkM1Vi1rMaERHLWp/W5ruInCu4CuVtQshdNcOEofJ03wdrQylOBZq8MZkTVn
20 | NcqUFg/sBANM/9WhafVi7XaUjWl+V7ZnzdbKP/ywvsiJ+wyKMA7Wt19HMrV2dTBz
21 | CD4vxpwOBev0oTp2NvAHdgNkeK52skHoz+MY8uivVJQr4hqLYJPXUyAcVZCaqeK/
22 | hxDkbRo6eZsYcjTRqMKtGMVjHHd8alXcVJwcuWkhUYxy8jRf0kFj/9mMie9jRokJ
23 | ovKLbNJfEbI=
24 | -----END CERTIFICATE-----
25 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/certPEM.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIID9DCCAtygAwIBAgIJAIqBVOBRW4qMMA0GCSqGSIb3DQEBCwUAMFkxCzAJBgNV
3 | BAYTAlVTMQswCQYDVQQIEwJDQTERMA8GA1UEBxMIQmVya2VsZXkxKjAoBgNVBAoT
4 | IVRlc3RpbmcgQ2VydGlmaWNhdGVzIGluIEFsYW1vRmlyZTAeFw0xNTEyMTEwMjA5
5 | MDlaFw0xNjEyMTAwMjA5MDlaMFkxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTER
6 | MA8GA1UEBxMIQmVya2VsZXkxKjAoBgNVBAoTIVRlc3RpbmcgQ2VydGlmaWNhdGVz
7 | IGluIEFsYW1vRmlyZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJy9
8 | FTR4QzhYyo2v2yv8SwlBQ32MHQF8Ez1J+YBsyZjcTVOGJtyPxrbJxGuRhyDzKUqz
9 | X/zTsT+JPvZQXXBmyq0l0DhCcK84cHyVLcdEAzukam85EpJRWzSg8kDKzuTx2oLk
10 | X8Zdcj7EEtYWV/5+/YahM4tXYhg+Lqm6koJEVHMld6zfedC7HN+jsTb73IrAY0dd
11 | BPl7WPgDIPEl0kcGI6F7NS0+CKsgX412E5+TGUkvA8VI+e9+cn/EXBdklVQQGSOu
12 | rHpcoOi1VqnQI0hGXlFi4MpamwMG2yArIUU0TXZ7G+/AbUYiGdB6ogvg5UTCfyZy
13 | UXVljSJyzYmLs7hXQK8CAwEAAaOBvjCBuzAdBgNVHQ4EFgQU9EaWHrJGYvpCEW5f
14 | CUEMRk9DlN8wgYsGA1UdIwSBgzCBgIAU9EaWHrJGYvpCEW5fCUEMRk9DlN+hXaRb
15 | MFkxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTERMA8GA1UEBxMIQmVya2VsZXkx
16 | KjAoBgNVBAoTIVRlc3RpbmcgQ2VydGlmaWNhdGVzIGluIEFsYW1vRmlyZYIJAIqB
17 | VOBRW4qMMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAEeHeXNZGHJW
18 | VImbOHrYmSsZ5jFnzjGw8ynkOrcoJzaxg3OHoo/pNCQ7KcrIa5YPNFiNoaSa/Lzn
19 | LBt6HkM1Vi1rMaERHLWp/W5ruInCu4CuVtQshdNcOEofJ03wdrQylOBZq8MZkTVn
20 | NcqUFg/sBANM/9WhafVi7XaUjWl+V7ZnzdbKP/ywvsiJ+wyKMA7Wt19HMrV2dTBz
21 | CD4vxpwOBev0oTp2NvAHdgNkeK52skHoz+MY8uivVJQr4hqLYJPXUyAcVZCaqeK/
22 | hxDkbRo6eZsYcjTRqMKtGMVjHHd8alXcVJwcuWkhUYxy8jRf0kFj/9mMie9jRokJ
23 | ovKLbNJfEbI=
24 | -----END CERTIFICATE-----
25 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/keyDER.der:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/keyDER.der
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/randomGibberish.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Certificates/selfSignedAndMalformedCerts/randomGibberish.crt
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Images/rainbow.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Images/rainbow.jpg
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Images/unicorn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Images/unicorn.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/JSON/empty_data.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/JSON/empty_data.json
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/JSON/invalid_data.json:
--------------------------------------------------------------------------------
1 | this is not going
2 | "to" be happy json
3 | data at all
4 | {
5 | "10": whoops
6 | }
7 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/JSON/valid_data.json:
--------------------------------------------------------------------------------
1 | {
2 | "team": "royals",
3 | "score": 23
4 | }
5 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/Property List/empty.data:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/Property List/empty.data
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/Property List/invalid.data:
--------------------------------------------------------------------------------
1 | this is not going
2 | "to" be happy json
3 | data at all
4 | {
5 | "10": whoops
6 | }
7 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/Property List/valid.data:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 4.0.0-beta.2
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(CURRENT_PROJECT_VERSION)
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/String/empty_string.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/String/empty_string.txt
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/String/utf32_string.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/String/utf32_string.txt
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/Resources/Responses/String/utf8_string.txt:
--------------------------------------------------------------------------------
1 | random data
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/Tests/URLProtocolTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // URLProtocolTests.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import Alamofire
26 | import Foundation
27 | import XCTest
28 |
29 | class ProxyURLProtocol: URLProtocol {
30 |
31 | // MARK: Properties
32 |
33 | struct PropertyKeys {
34 | static let handledByForwarderURLProtocol = "HandledByProxyURLProtocol"
35 | }
36 |
37 | lazy var session: URLSession = {
38 | let configuration: URLSessionConfiguration = {
39 | let configuration = URLSessionConfiguration.ephemeral
40 | configuration.httpAdditionalHeaders = SessionManager.defaultHTTPHeaders
41 |
42 | return configuration
43 | }()
44 |
45 | let session = Foundation.URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
46 |
47 | return session
48 | }()
49 |
50 | var activeTask: URLSessionTask?
51 |
52 | // MARK: Class Request Methods
53 |
54 | override class func canInit(with request: URLRequest) -> Bool {
55 | if URLProtocol.property(forKey: PropertyKeys.handledByForwarderURLProtocol, in: request) != nil {
56 | return false
57 | }
58 |
59 | return true
60 | }
61 |
62 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
63 | if let headers = request.allHTTPHeaderFields {
64 | do {
65 | return try URLEncoding.default.encode(request, with: headers)
66 | } catch {
67 | return request
68 | }
69 | }
70 |
71 | return request
72 | }
73 |
74 | override class func requestIsCacheEquivalent(_ a: URLRequest, to b: URLRequest) -> Bool {
75 | return false
76 | }
77 |
78 | // MARK: Loading Methods
79 |
80 | override func startLoading() {
81 | // rdar://26849668 - URLProtocol had some API's that didnt make the value type conversion
82 | let urlRequest = (request.urlRequest! as NSURLRequest).mutableCopy() as! NSMutableURLRequest
83 | URLProtocol.setProperty(true, forKey: PropertyKeys.handledByForwarderURLProtocol, in: urlRequest)
84 | activeTask = session.dataTask(with: urlRequest as URLRequest)
85 | activeTask?.resume()
86 | }
87 |
88 | override func stopLoading() {
89 | activeTask?.cancel()
90 | }
91 | }
92 |
93 | // MARK: -
94 |
95 | extension ProxyURLProtocol: URLSessionDataDelegate {
96 |
97 | // MARK: NSURLSessionDelegate
98 |
99 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
100 | client?.urlProtocol(self, didLoad: data)
101 | }
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
104 | if let response = task.response {
105 | client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
106 | }
107 |
108 | client?.urlProtocolDidFinishLoading(self)
109 | }
110 | }
111 |
112 | // MARK: -
113 |
114 | class URLProtocolTestCase: BaseTestCase {
115 | var manager: SessionManager!
116 |
117 | // MARK: Setup and Teardown
118 |
119 | override func setUp() {
120 | super.setUp()
121 |
122 | manager = {
123 | let configuration: URLSessionConfiguration = {
124 | let configuration = URLSessionConfiguration.default
125 | configuration.protocolClasses = [ProxyURLProtocol.self]
126 | configuration.httpAdditionalHeaders = ["Session-Configuration-Header": "foo"]
127 |
128 | return configuration
129 | }()
130 |
131 | return SessionManager(configuration: configuration)
132 | }()
133 | }
134 |
135 | // MARK: Tests
136 |
137 | func testThatURLProtocolReceivesRequestHeadersAndSessionConfigurationHeaders() {
138 | // Given
139 | let urlString = "https://httpbin.org/response-headers"
140 | let url = URL(string: urlString)!
141 |
142 | var urlRequest = URLRequest(url: url)
143 | urlRequest.httpMethod = HTTPMethod.get.rawValue
144 | urlRequest.setValue("foobar", forHTTPHeaderField: "Request-Header")
145 |
146 | let expectation = self.expectation(description: "GET request should succeed")
147 |
148 | var response: DefaultDataResponse?
149 |
150 | // When
151 | manager.request(urlRequest)
152 | .response { resp in
153 | response = resp
154 | expectation.fulfill()
155 | }
156 |
157 | waitForExpectations(timeout: timeout, handler: nil)
158 |
159 | // Then
160 | XCTAssertNotNil(response?.request)
161 | XCTAssertNotNil(response?.response)
162 | XCTAssertNotNil(response?.data)
163 | XCTAssertNil(response?.error)
164 |
165 | if let headers = response?.response?.allHeaderFields as? [String: String] {
166 | XCTAssertEqual(headers["Request-Header"], "foobar")
167 |
168 | // Configuration headers are only passed in on iOS 9.0+
169 | if #available(iOS 9.0, *) {
170 | XCTAssertEqual(headers["Session-Configuration-Header"], "foo")
171 | } else {
172 | XCTAssertNil(headers["Session-Configuration-Header"])
173 | }
174 | } else {
175 | XCTFail("headers should not be nil")
176 | }
177 | }
178 | }
179 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/alamofire.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/alamofire.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-minimal
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/badge.svg:
--------------------------------------------------------------------------------
1 |
29 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/css/highlight.css:
--------------------------------------------------------------------------------
1 | /* Credit to https://gist.github.com/wataru420/2048287 */
2 | .highlight {
3 | /* Comment */
4 | /* Error */
5 | /* Keyword */
6 | /* Operator */
7 | /* Comment.Multiline */
8 | /* Comment.Preproc */
9 | /* Comment.Single */
10 | /* Comment.Special */
11 | /* Generic.Deleted */
12 | /* Generic.Deleted.Specific */
13 | /* Generic.Emph */
14 | /* Generic.Error */
15 | /* Generic.Heading */
16 | /* Generic.Inserted */
17 | /* Generic.Inserted.Specific */
18 | /* Generic.Output */
19 | /* Generic.Prompt */
20 | /* Generic.Strong */
21 | /* Generic.Subheading */
22 | /* Generic.Traceback */
23 | /* Keyword.Constant */
24 | /* Keyword.Declaration */
25 | /* Keyword.Pseudo */
26 | /* Keyword.Reserved */
27 | /* Keyword.Type */
28 | /* Literal.Number */
29 | /* Literal.String */
30 | /* Name.Attribute */
31 | /* Name.Builtin */
32 | /* Name.Class */
33 | /* Name.Constant */
34 | /* Name.Entity */
35 | /* Name.Exception */
36 | /* Name.Function */
37 | /* Name.Namespace */
38 | /* Name.Tag */
39 | /* Name.Variable */
40 | /* Operator.Word */
41 | /* Text.Whitespace */
42 | /* Literal.Number.Float */
43 | /* Literal.Number.Hex */
44 | /* Literal.Number.Integer */
45 | /* Literal.Number.Oct */
46 | /* Literal.String.Backtick */
47 | /* Literal.String.Char */
48 | /* Literal.String.Doc */
49 | /* Literal.String.Double */
50 | /* Literal.String.Escape */
51 | /* Literal.String.Heredoc */
52 | /* Literal.String.Interpol */
53 | /* Literal.String.Other */
54 | /* Literal.String.Regex */
55 | /* Literal.String.Single */
56 | /* Literal.String.Symbol */
57 | /* Name.Builtin.Pseudo */
58 | /* Name.Variable.Class */
59 | /* Name.Variable.Global */
60 | /* Name.Variable.Instance */
61 | /* Literal.Number.Integer.Long */ }
62 | .highlight .c {
63 | color: #999988;
64 | font-style: italic; }
65 | .highlight .err {
66 | color: #a61717;
67 | background-color: #e3d2d2; }
68 | .highlight .k {
69 | color: #000000;
70 | font-weight: bold; }
71 | .highlight .o {
72 | color: #000000;
73 | font-weight: bold; }
74 | .highlight .cm {
75 | color: #999988;
76 | font-style: italic; }
77 | .highlight .cp {
78 | color: #999999;
79 | font-weight: bold; }
80 | .highlight .c1 {
81 | color: #999988;
82 | font-style: italic; }
83 | .highlight .cs {
84 | color: #999999;
85 | font-weight: bold;
86 | font-style: italic; }
87 | .highlight .gd {
88 | color: #000000;
89 | background-color: #ffdddd; }
90 | .highlight .gd .x {
91 | color: #000000;
92 | background-color: #ffaaaa; }
93 | .highlight .ge {
94 | color: #000000;
95 | font-style: italic; }
96 | .highlight .gr {
97 | color: #aa0000; }
98 | .highlight .gh {
99 | color: #999999; }
100 | .highlight .gi {
101 | color: #000000;
102 | background-color: #ddffdd; }
103 | .highlight .gi .x {
104 | color: #000000;
105 | background-color: #aaffaa; }
106 | .highlight .go {
107 | color: #888888; }
108 | .highlight .gp {
109 | color: #555555; }
110 | .highlight .gs {
111 | font-weight: bold; }
112 | .highlight .gu {
113 | color: #aaaaaa; }
114 | .highlight .gt {
115 | color: #aa0000; }
116 | .highlight .kc {
117 | color: #000000;
118 | font-weight: bold; }
119 | .highlight .kd {
120 | color: #000000;
121 | font-weight: bold; }
122 | .highlight .kp {
123 | color: #000000;
124 | font-weight: bold; }
125 | .highlight .kr {
126 | color: #000000;
127 | font-weight: bold; }
128 | .highlight .kt {
129 | color: #445588; }
130 | .highlight .m {
131 | color: #009999; }
132 | .highlight .s {
133 | color: #d14; }
134 | .highlight .na {
135 | color: #008080; }
136 | .highlight .nb {
137 | color: #0086B3; }
138 | .highlight .nc {
139 | color: #445588;
140 | font-weight: bold; }
141 | .highlight .no {
142 | color: #008080; }
143 | .highlight .ni {
144 | color: #800080; }
145 | .highlight .ne {
146 | color: #990000;
147 | font-weight: bold; }
148 | .highlight .nf {
149 | color: #990000; }
150 | .highlight .nn {
151 | color: #555555; }
152 | .highlight .nt {
153 | color: #000080; }
154 | .highlight .nv {
155 | color: #008080; }
156 | .highlight .ow {
157 | color: #000000;
158 | font-weight: bold; }
159 | .highlight .w {
160 | color: #bbbbbb; }
161 | .highlight .mf {
162 | color: #009999; }
163 | .highlight .mh {
164 | color: #009999; }
165 | .highlight .mi {
166 | color: #009999; }
167 | .highlight .mo {
168 | color: #009999; }
169 | .highlight .sb {
170 | color: #d14; }
171 | .highlight .sc {
172 | color: #d14; }
173 | .highlight .sd {
174 | color: #d14; }
175 | .highlight .s2 {
176 | color: #d14; }
177 | .highlight .se {
178 | color: #d14; }
179 | .highlight .sh {
180 | color: #d14; }
181 | .highlight .si {
182 | color: #d14; }
183 | .highlight .sx {
184 | color: #d14; }
185 | .highlight .sr {
186 | color: #009926; }
187 | .highlight .s1 {
188 | color: #d14; }
189 | .highlight .ss {
190 | color: #990073; }
191 | .highlight .bp {
192 | color: #999999; }
193 | .highlight .vc {
194 | color: #008080; }
195 | .highlight .vg {
196 | color: #008080; }
197 | .highlight .vi {
198 | color: #008080; }
199 | .highlight .il {
200 | color: #009999; }
201 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleIdentifier
6 | com.jazzy.alamofire
7 | CFBundleName
8 | Alamofire
9 | DocSetPlatformFamily
10 | alamofire
11 | isDashDocset
12 |
13 | dashIndexFilePath
14 | index.html
15 | isJavaScriptEnabled
16 |
17 | DashDocSetFamily
18 | dashtoc
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-minimal
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/badge.svg:
--------------------------------------------------------------------------------
1 |
29 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/css/highlight.css:
--------------------------------------------------------------------------------
1 | /* Credit to https://gist.github.com/wataru420/2048287 */
2 | .highlight {
3 | /* Comment */
4 | /* Error */
5 | /* Keyword */
6 | /* Operator */
7 | /* Comment.Multiline */
8 | /* Comment.Preproc */
9 | /* Comment.Single */
10 | /* Comment.Special */
11 | /* Generic.Deleted */
12 | /* Generic.Deleted.Specific */
13 | /* Generic.Emph */
14 | /* Generic.Error */
15 | /* Generic.Heading */
16 | /* Generic.Inserted */
17 | /* Generic.Inserted.Specific */
18 | /* Generic.Output */
19 | /* Generic.Prompt */
20 | /* Generic.Strong */
21 | /* Generic.Subheading */
22 | /* Generic.Traceback */
23 | /* Keyword.Constant */
24 | /* Keyword.Declaration */
25 | /* Keyword.Pseudo */
26 | /* Keyword.Reserved */
27 | /* Keyword.Type */
28 | /* Literal.Number */
29 | /* Literal.String */
30 | /* Name.Attribute */
31 | /* Name.Builtin */
32 | /* Name.Class */
33 | /* Name.Constant */
34 | /* Name.Entity */
35 | /* Name.Exception */
36 | /* Name.Function */
37 | /* Name.Namespace */
38 | /* Name.Tag */
39 | /* Name.Variable */
40 | /* Operator.Word */
41 | /* Text.Whitespace */
42 | /* Literal.Number.Float */
43 | /* Literal.Number.Hex */
44 | /* Literal.Number.Integer */
45 | /* Literal.Number.Oct */
46 | /* Literal.String.Backtick */
47 | /* Literal.String.Char */
48 | /* Literal.String.Doc */
49 | /* Literal.String.Double */
50 | /* Literal.String.Escape */
51 | /* Literal.String.Heredoc */
52 | /* Literal.String.Interpol */
53 | /* Literal.String.Other */
54 | /* Literal.String.Regex */
55 | /* Literal.String.Single */
56 | /* Literal.String.Symbol */
57 | /* Name.Builtin.Pseudo */
58 | /* Name.Variable.Class */
59 | /* Name.Variable.Global */
60 | /* Name.Variable.Instance */
61 | /* Literal.Number.Integer.Long */ }
62 | .highlight .c {
63 | color: #999988;
64 | font-style: italic; }
65 | .highlight .err {
66 | color: #a61717;
67 | background-color: #e3d2d2; }
68 | .highlight .k {
69 | color: #000000;
70 | font-weight: bold; }
71 | .highlight .o {
72 | color: #000000;
73 | font-weight: bold; }
74 | .highlight .cm {
75 | color: #999988;
76 | font-style: italic; }
77 | .highlight .cp {
78 | color: #999999;
79 | font-weight: bold; }
80 | .highlight .c1 {
81 | color: #999988;
82 | font-style: italic; }
83 | .highlight .cs {
84 | color: #999999;
85 | font-weight: bold;
86 | font-style: italic; }
87 | .highlight .gd {
88 | color: #000000;
89 | background-color: #ffdddd; }
90 | .highlight .gd .x {
91 | color: #000000;
92 | background-color: #ffaaaa; }
93 | .highlight .ge {
94 | color: #000000;
95 | font-style: italic; }
96 | .highlight .gr {
97 | color: #aa0000; }
98 | .highlight .gh {
99 | color: #999999; }
100 | .highlight .gi {
101 | color: #000000;
102 | background-color: #ddffdd; }
103 | .highlight .gi .x {
104 | color: #000000;
105 | background-color: #aaffaa; }
106 | .highlight .go {
107 | color: #888888; }
108 | .highlight .gp {
109 | color: #555555; }
110 | .highlight .gs {
111 | font-weight: bold; }
112 | .highlight .gu {
113 | color: #aaaaaa; }
114 | .highlight .gt {
115 | color: #aa0000; }
116 | .highlight .kc {
117 | color: #000000;
118 | font-weight: bold; }
119 | .highlight .kd {
120 | color: #000000;
121 | font-weight: bold; }
122 | .highlight .kp {
123 | color: #000000;
124 | font-weight: bold; }
125 | .highlight .kr {
126 | color: #000000;
127 | font-weight: bold; }
128 | .highlight .kt {
129 | color: #445588; }
130 | .highlight .m {
131 | color: #009999; }
132 | .highlight .s {
133 | color: #d14; }
134 | .highlight .na {
135 | color: #008080; }
136 | .highlight .nb {
137 | color: #0086B3; }
138 | .highlight .nc {
139 | color: #445588;
140 | font-weight: bold; }
141 | .highlight .no {
142 | color: #008080; }
143 | .highlight .ni {
144 | color: #800080; }
145 | .highlight .ne {
146 | color: #990000;
147 | font-weight: bold; }
148 | .highlight .nf {
149 | color: #990000; }
150 | .highlight .nn {
151 | color: #555555; }
152 | .highlight .nt {
153 | color: #000080; }
154 | .highlight .nv {
155 | color: #008080; }
156 | .highlight .ow {
157 | color: #000000;
158 | font-weight: bold; }
159 | .highlight .w {
160 | color: #bbbbbb; }
161 | .highlight .mf {
162 | color: #009999; }
163 | .highlight .mh {
164 | color: #009999; }
165 | .highlight .mi {
166 | color: #009999; }
167 | .highlight .mo {
168 | color: #009999; }
169 | .highlight .sb {
170 | color: #d14; }
171 | .highlight .sc {
172 | color: #d14; }
173 | .highlight .sd {
174 | color: #d14; }
175 | .highlight .s2 {
176 | color: #d14; }
177 | .highlight .se {
178 | color: #d14; }
179 | .highlight .sh {
180 | color: #d14; }
181 | .highlight .si {
182 | color: #d14; }
183 | .highlight .sx {
184 | color: #d14; }
185 | .highlight .sr {
186 | color: #009926; }
187 | .highlight .s1 {
188 | color: #d14; }
189 | .highlight .ss {
190 | color: #990073; }
191 | .highlight .bp {
192 | color: #999999; }
193 | .highlight .vc {
194 | color: #008080; }
195 | .highlight .vg {
196 | color: #008080; }
197 | .highlight .vi {
198 | color: #008080; }
199 | .highlight .il {
200 | color: #009999; }
201 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/carat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/carat.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/dash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/dash.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/gh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/gh.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/img/spinner.gif
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js:
--------------------------------------------------------------------------------
1 | window.jazzy = {'docset': false}
2 | if (typeof window.dash != 'undefined') {
3 | document.documentElement.className += ' dash'
4 | window.jazzy.docset = true
5 | }
6 | if (navigator.userAgent.match(/xcode/i)) {
7 | document.documentElement.className += ' xcode'
8 | window.jazzy.docset = true
9 | }
10 |
11 | // On doc load, toggle the URL hash discussion if present
12 | $(document).ready(function() {
13 | if (!window.jazzy.docset) {
14 | var linkToHash = $('a[href="' + window.location.hash +'"]');
15 | linkToHash.trigger("click");
16 | }
17 | });
18 |
19 | // On token click, toggle its discussion and animate token.marginLeft
20 | $(".token").click(function(event) {
21 | if (window.jazzy.docset) {
22 | return;
23 | }
24 | var link = $(this);
25 | var animationDuration = 300;
26 | $content = link.parent().parent().next();
27 | $content.slideToggle(animationDuration);
28 |
29 | // Keeps the document from jumping to the hash.
30 | var href = $(this).attr('href');
31 | if (history.pushState) {
32 | history.pushState({}, '', href);
33 | } else {
34 | location.hash = href;
35 | }
36 | event.preventDefault();
37 | });
38 |
39 | // Dumb down quotes within code blocks that delimit strings instead of quotations
40 | // https://github.com/realm/jazzy/issues/714
41 | $("code q").replaceWith(function () {
42 | return ["\"", $(this).contents(), "\""];
43 | });
44 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.search.js:
--------------------------------------------------------------------------------
1 | $(function(){
2 | var searchIndex = lunr(function() {
3 | this.ref('url');
4 | this.field('name');
5 | });
6 |
7 | var $typeahead = $('[data-typeahead]');
8 | var $form = $typeahead.parents('form');
9 | var searchURL = $form.attr('action');
10 |
11 | function displayTemplate(result) {
12 | return result.name;
13 | }
14 |
15 | function suggestionTemplate(result) {
16 | var t = '';
17 | t += '' + result.name + '';
18 | if (result.parent_name) {
19 | t += '' + result.parent_name + '';
20 | }
21 | t += '
';
22 | return t;
23 | }
24 |
25 | $typeahead.one('focus', function() {
26 | $form.addClass('loading');
27 |
28 | $.getJSON(searchURL).then(function(searchData) {
29 | $.each(searchData, function (url, doc) {
30 | searchIndex.add({url: url, name: doc.name});
31 | });
32 |
33 | $typeahead.typeahead(
34 | {
35 | highlight: true,
36 | minLength: 3
37 | },
38 | {
39 | limit: 10,
40 | display: displayTemplate,
41 | templates: { suggestion: suggestionTemplate },
42 | source: function(query, sync) {
43 | var results = searchIndex.search(query).map(function(result) {
44 | var doc = searchData[result.ref];
45 | doc.url = result.ref;
46 | return doc;
47 | });
48 | sync(results);
49 | }
50 | }
51 | );
52 | $form.removeClass('loading');
53 | $typeahead.trigger('focus');
54 | });
55 | });
56 |
57 | var baseURL = searchURL.slice(0, -"search.json".length);
58 |
59 | $typeahead.on('typeahead:select', function(e, result) {
60 | window.location = baseURL + result.url;
61 | });
62 | });
63 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/docSet.dsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.docset/Contents/Resources/docSet.dsidx
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.tgz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.tgz
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/docsets/Alamofire.xml:
--------------------------------------------------------------------------------
1 | 4.6.0https://alamofire.github.io/Alamofire/docsets/Alamofire.tgz
2 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/img/carat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/img/carat.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/img/dash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/img/dash.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/img/gh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/img/gh.png
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/img/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Carthage/Checkouts/Alamofire/docs/img/spinner.gif
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/js/jazzy.js:
--------------------------------------------------------------------------------
1 | window.jazzy = {'docset': false}
2 | if (typeof window.dash != 'undefined') {
3 | document.documentElement.className += ' dash'
4 | window.jazzy.docset = true
5 | }
6 | if (navigator.userAgent.match(/xcode/i)) {
7 | document.documentElement.className += ' xcode'
8 | window.jazzy.docset = true
9 | }
10 |
11 | // On doc load, toggle the URL hash discussion if present
12 | $(document).ready(function() {
13 | if (!window.jazzy.docset) {
14 | var linkToHash = $('a[href="' + window.location.hash +'"]');
15 | linkToHash.trigger("click");
16 | }
17 | });
18 |
19 | // On token click, toggle its discussion and animate token.marginLeft
20 | $(".token").click(function(event) {
21 | if (window.jazzy.docset) {
22 | return;
23 | }
24 | var link = $(this);
25 | var animationDuration = 300;
26 | $content = link.parent().parent().next();
27 | $content.slideToggle(animationDuration);
28 |
29 | // Keeps the document from jumping to the hash.
30 | var href = $(this).attr('href');
31 | if (history.pushState) {
32 | history.pushState({}, '', href);
33 | } else {
34 | location.hash = href;
35 | }
36 | event.preventDefault();
37 | });
38 |
39 | // Dumb down quotes within code blocks that delimit strings instead of quotations
40 | // https://github.com/realm/jazzy/issues/714
41 | $("code q").replaceWith(function () {
42 | return ["\"", $(this).contents(), "\""];
43 | });
44 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/Alamofire/docs/js/jazzy.search.js:
--------------------------------------------------------------------------------
1 | $(function(){
2 | var searchIndex = lunr(function() {
3 | this.ref('url');
4 | this.field('name');
5 | });
6 |
7 | var $typeahead = $('[data-typeahead]');
8 | var $form = $typeahead.parents('form');
9 | var searchURL = $form.attr('action');
10 |
11 | function displayTemplate(result) {
12 | return result.name;
13 | }
14 |
15 | function suggestionTemplate(result) {
16 | var t = '';
17 | t += '' + result.name + '';
18 | if (result.parent_name) {
19 | t += '' + result.parent_name + '';
20 | }
21 | t += '
';
22 | return t;
23 | }
24 |
25 | $typeahead.one('focus', function() {
26 | $form.addClass('loading');
27 |
28 | $.getJSON(searchURL).then(function(searchData) {
29 | $.each(searchData, function (url, doc) {
30 | searchIndex.add({url: url, name: doc.name});
31 | });
32 |
33 | $typeahead.typeahead(
34 | {
35 | highlight: true,
36 | minLength: 3
37 | },
38 | {
39 | limit: 10,
40 | display: displayTemplate,
41 | templates: { suggestion: suggestionTemplate },
42 | source: function(query, sync) {
43 | var results = searchIndex.search(query).map(function(result) {
44 | var doc = searchData[result.ref];
45 | doc.url = result.ref;
46 | return doc;
47 | });
48 | sync(results);
49 | }
50 | }
51 | );
52 | $form.removeClass('loading');
53 | $typeahead.trigger('focus');
54 | });
55 | });
56 |
57 | var baseURL = searchURL.slice(0, -"search.json".length);
58 |
59 | $typeahead.on('typeahead:select', function(e, result) {
60 | window.location = baseURL + result.url;
61 | });
62 | });
63 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/.gitignore:
--------------------------------------------------------------------------------
1 | # OS X
2 | .DS_Store
3 |
4 | # Xcode
5 | .build/
6 | build/
7 | *.pbxuser
8 | !default.pbxuser
9 | *.mode1v3
10 | !default.mode1v3
11 | *.mode2v3
12 | !default.mode2v3
13 | *.perspectivev3
14 | !default.perspectivev3
15 | xcuserdata
16 | *.xccheckout
17 | profile
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 |
23 | # Bundler
24 | .bundle
25 |
26 | # We recommend against adding the Pods directory to your .gitignore. However
27 | # you should judge for yourself, the pros and cons are mentioned at:
28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
29 | #
30 | # Note: if you ignore the Pods directory, make sure to uncomment
31 | # `pod install` in .travis.yml
32 | #
33 | # Pods/
34 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/.rubocop.yml:
--------------------------------------------------------------------------------
1 | ##################
2 | # All rules specific to this repo
3 | ##################
4 |
5 | inherit_from: .rubocop_general.yml
6 |
7 | Style/Documentation:
8 | Enabled: false
9 |
10 | Style/PerlBackrefs:
11 | Enabled: false
12 |
13 | Bundler/OrderedGems:
14 | Enabled: false
15 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/.rubocop_general.yml:
--------------------------------------------------------------------------------
1 | ##################
2 | # General Rubocop Config
3 | ##################
4 |
5 | Style/ClassCheck:
6 | EnforcedStyle: kind_of?
7 |
8 | # Cop supports --auto-correct.
9 | # Configuration parameters: EnforcedStyle, SupportedStyles.
10 | Style/BracesAroundHashParameters:
11 | Enabled: false
12 |
13 | Lint/UselessAssignment:
14 | Exclude:
15 | - 'spec/**/*'
16 |
17 | # Cop supports --auto-correct.
18 | # Configuration parameters: EnforcedStyle, SupportedStyles.
19 | Style/IndentHash:
20 | Enabled: false
21 |
22 | Style/RaiseArgs:
23 | EnforcedStyle: exploded
24 |
25 | Style/DoubleNegation:
26 | Enabled: false
27 |
28 | Lint/HandleExceptions:
29 | Enabled: false
30 |
31 | # Cop supports --auto-correct.
32 | Lint/UnusedBlockArgument:
33 | Enabled: false
34 |
35 | # Needed for $verbose
36 | Style/GlobalVars:
37 | Enabled: false
38 |
39 | Style/FileName:
40 | Enabled: false
41 |
42 | # $? Exit
43 | Style/SpecialGlobalVars:
44 | Enabled: false
45 |
46 | # the let(:key) { ... } should be allowed in tests
47 | Lint/ParenthesesAsGroupedExpression:
48 | Exclude:
49 | - 'spec/**/*'
50 |
51 | # Block length
52 | Metrics/BlockLength:
53 | Max: 200
54 |
55 | # options.rb might be large, we know that
56 | Metrics/MethodLength:
57 | Max: 60
58 | Exclude:
59 | - 'lib/*/options.rb'
60 |
61 | Metrics/AbcSize:
62 | Max: 60
63 | Exclude:
64 | - 'lib/*/options.rb'
65 |
66 | # Both string notations are okay
67 | Style/StringLiterals:
68 | Enabled: true
69 | EnforcedStyle: double_quotes
70 |
71 | # The %w might be confusing for new users
72 | Style/WordArray:
73 | MinSize: 19
74 |
75 | # Not a good thing
76 | Style/RedundantSelf:
77 | Enabled: false
78 |
79 | # raise and fail are both okay
80 | Style/SignalException:
81 | Enabled: false
82 |
83 | # Better too much 'return' than one missing
84 | Style/RedundantReturn:
85 | Enabled: false
86 |
87 | # Having if in the same line might not always be good
88 | Style/IfUnlessModifier:
89 | Enabled: false
90 |
91 | # That looks wrong
92 | Style/AlignHash:
93 | Enabled: false
94 |
95 | # and and or is okay
96 | Style/AndOr:
97 | Enabled: false
98 |
99 | # Configuration parameters: CountComments.
100 | Metrics/ClassLength:
101 | Max: 320
102 |
103 | Metrics/CyclomaticComplexity:
104 | Max: 17
105 |
106 | # Configuration parameters: AllowURI, URISchemes.
107 | Metrics/LineLength:
108 | Max: 370
109 |
110 | # Configuration parameters: CountKeywordArgs.
111 | Metrics/ParameterLists:
112 | Max: 17
113 |
114 | Metrics/PerceivedComplexity:
115 | Max: 18
116 |
117 | Style/DotPosition:
118 | Enabled: false
119 |
120 | Style/GuardClause:
121 | Enabled: false
122 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/.swift-version:
--------------------------------------------------------------------------------
1 | 4.0
2 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/.travis.yml:
--------------------------------------------------------------------------------
1 | # references:
2 | # * http://www.objc.io/issue-6/travis-ci.html
3 | # * https://github.com/supermarin/xcpretty#usage
4 |
5 | os: osx
6 | osx_image: xcode9.2
7 | language: swift
8 | # cache: cocoapods
9 | # podfile: Example/Podfile
10 | # before_install:
11 | # - gem install cocoapods # Since Travis is not always on latest version
12 | # - pod install --project-directory=Example
13 | install:
14 | - gem install xcpretty --no-rdoc --no-ri --no-document --quiet
15 | script:
16 | - swift build
17 | - set -o pipefail && xcodebuild build -project SwiftScriptRunner.xcodeproj -scheme SwiftScriptRunner -sdk macosx ONLY_ACTIVE_ARCH=NO | xcpretty -c
18 | - pod lib lint --quick
19 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Carthage/Build:
--------------------------------------------------------------------------------
1 | ../../../../Carthage/Build
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Examples/Cartfile:
--------------------------------------------------------------------------------
1 | github "mgrebenets/SwiftScriptRunner" >= 1.0
2 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Examples/Podfile:
--------------------------------------------------------------------------------
1 | platform :osx, "10.10"
2 | use_frameworks!
3 | plugin "cocoapods-rome"
4 |
5 | target :dummy do
6 | pod "SwiftScriptRunner" "~> 1.0"
7 | end
8 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 |
3 | gem "cocoapods", "1.4.0"
4 | gem "cocoapods-rome", "0.8.0"
5 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | CFPropertyList (2.3.6)
5 | activesupport (4.2.10)
6 | i18n (~> 0.7)
7 | minitest (~> 5.1)
8 | thread_safe (~> 0.3, >= 0.3.4)
9 | tzinfo (~> 1.1)
10 | atomos (0.1.2)
11 | claide (1.0.2)
12 | cocoapods (1.4.0)
13 | activesupport (>= 4.0.2, < 5)
14 | claide (>= 1.0.2, < 2.0)
15 | cocoapods-core (= 1.4.0)
16 | cocoapods-deintegrate (>= 1.0.2, < 2.0)
17 | cocoapods-downloader (>= 1.1.3, < 2.0)
18 | cocoapods-plugins (>= 1.0.0, < 2.0)
19 | cocoapods-search (>= 1.0.0, < 2.0)
20 | cocoapods-stats (>= 1.0.0, < 2.0)
21 | cocoapods-trunk (>= 1.3.0, < 2.0)
22 | cocoapods-try (>= 1.1.0, < 2.0)
23 | colored2 (~> 3.1)
24 | escape (~> 0.0.4)
25 | fourflusher (~> 2.0.1)
26 | gh_inspector (~> 1.0)
27 | molinillo (~> 0.6.4)
28 | nap (~> 1.0)
29 | ruby-macho (~> 1.1)
30 | xcodeproj (>= 1.5.4, < 2.0)
31 | cocoapods-core (1.4.0)
32 | activesupport (>= 4.0.2, < 6)
33 | fuzzy_match (~> 2.0.4)
34 | nap (~> 1.0)
35 | cocoapods-deintegrate (1.0.2)
36 | cocoapods-downloader (1.1.3)
37 | cocoapods-plugins (1.0.0)
38 | nap
39 | cocoapods-rome (0.8.0)
40 | cocoapods (>= 1.1.0, < 2.0)
41 | fourflusher (~> 2.0)
42 | cocoapods-search (1.0.0)
43 | cocoapods-stats (1.0.0)
44 | cocoapods-trunk (1.3.0)
45 | nap (>= 0.8, < 2.0)
46 | netrc (~> 0.11)
47 | cocoapods-try (1.1.0)
48 | colored2 (3.1.2)
49 | concurrent-ruby (1.0.5)
50 | escape (0.0.4)
51 | fourflusher (2.0.1)
52 | fuzzy_match (2.0.4)
53 | gh_inspector (1.1.2)
54 | i18n (0.9.5)
55 | concurrent-ruby (~> 1.0)
56 | minitest (5.11.3)
57 | molinillo (0.6.4)
58 | nanaimo (0.2.3)
59 | nap (1.1.0)
60 | netrc (0.11.0)
61 | ruby-macho (1.1.0)
62 | thread_safe (0.3.6)
63 | tzinfo (1.2.5)
64 | thread_safe (~> 0.1)
65 | xcodeproj (1.5.6)
66 | CFPropertyList (~> 2.3.3)
67 | atomos (~> 0.1.2)
68 | claide (>= 1.0.2, < 2.0)
69 | colored2 (~> 3.1)
70 | nanaimo (~> 0.2.3)
71 |
72 | PLATFORMS
73 | ruby
74 |
75 | DEPENDENCIES
76 | cocoapods (= 1.4.0)
77 | cocoapods-rome (= 0.8.0)
78 |
79 | BUNDLED WITH
80 | 1.16.1
81 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015 Maksym Grebenets
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Package.swift:
--------------------------------------------------------------------------------
1 | // swift-tools-version:4.0
2 |
3 | import PackageDescription
4 |
5 | let package = Package(
6 | name: "SwiftScriptRunner",
7 | products: [
8 | .library(
9 | name: "SwiftScriptRunner",
10 | targets: ["SwiftScriptRunner"]
11 | )
12 | ],
13 | dependencies: [],
14 | targets: [
15 | .target(
16 | name: "SwiftScriptRunner",
17 | dependencies: [],
18 | path: "Sources"
19 | )
20 | ]
21 | )
22 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/README.md:
--------------------------------------------------------------------------------
1 | # SwiftScriptRunner
2 |
3 | [](https://travis-ci.org/mgrebenets/SwiftScriptRunner)
4 | [](http://cocoapods.org/pods/SwiftScriptRunner)
5 | [](http://cocoapods.org/pods/SwiftScriptRunner)
6 | [](http://cocoapods.org/pods/SwiftScriptRunner)
7 |
8 | A simple utility for writing Swift scripts with async callbacks to 3rd party frameworks.
9 |
10 | See [this blog post](http://mgrebenets.github.io/swift/2015/10/08/async-swift-scripting/) for more details.
11 |
12 | ## Requirements
13 |
14 | - Xcode 7.0.1
15 | - cocoapods gem version 0.38.2
16 | - [cocoapods-rome](https://github.com/neonichu/Rome) gem version 0.2.0
17 | - carthage version 0.8.0
18 |
19 | ## Installation
20 |
21 | SwiftScriptRunner is available through [CocoaPods Rome](https://github.com/neonichu/Rome) and [Carthage](https://github.com/Carthage/Carthage).
22 |
23 | ### CocoaPods Rome
24 |
25 | Make sure you have [cocoapods-rome](https://github.com/neonichu/Rome) Ruby gem installed.
26 |
27 | Add the following line to your Podfile:
28 |
29 | ```ruby
30 | platform :osx, "10.10"
31 | use_frameworks!
32 | plugin "cocoapods-rome"
33 |
34 | pod "SwiftScriptRunner"
35 | ```
36 |
37 | And run
38 |
39 | ```bash
40 | pod install --no-integrate
41 | ```
42 |
43 | ### Carthage
44 |
45 | Add the following line to your Cartfile:
46 |
47 | ```ruby
48 | github "mgrebenets/SwiftScriptRunner"
49 | ```
50 |
51 | And run
52 |
53 | ```bash
54 | carthage update --platform mac
55 | ```
56 |
57 | ## Usage
58 |
59 | Example with [Alamofire](https://github.com/Alamofire/Alamofire).
60 |
61 | ```swift
62 | // alamofire.swift
63 |
64 | import Alamofire
65 | import SwiftScriptRunner
66 |
67 | var runner = SwiftScriptRunner()
68 | runner.lock() // Lock
69 |
70 | Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
71 | .responseJSON { response in
72 | print(response.result) // Result of response serialization
73 | runner.unlock() // Unlock
74 | }
75 |
76 | runner.wait() // Wait
77 | ```
78 |
79 | Now you can run it.
80 |
81 | ```bash
82 | # When using CocoaPods
83 | swift -F Rome alamofire.swift
84 |
85 | # When using Carthage
86 | swift -F Carthage/Build/Mac alamofire.swift
87 | ```
88 |
89 | ## Author
90 |
91 | Maksym Grebenets, mgrebenets@gmail.com, [@mgrebenets](https://twitter.com/mgrebenets)
92 |
93 | ## License
94 |
95 | SwiftScriptRunner is available under the MIT license. See the LICENSE file for more info.
96 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Sources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | $(CURRENT_PROJECT_VERSION)
21 | NSHumanReadableCopyright
22 | SwiftScriptRunner is available under the MIT license. See the LICENSE file for more info.
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Sources/SwiftScriptRunner.h:
--------------------------------------------------------------------------------
1 | // SwiftScriptRunner.h
2 |
3 | #import
4 |
5 | //! Project version number for SwiftScriptRunner.
6 | FOUNDATION_EXPORT double SwiftScriptRunnerVersionNumber;
7 |
8 | //! Project version string for SwiftScriptRunner.
9 | FOUNDATION_EXPORT const unsigned char SwiftScriptRunnerVersionString[];
10 |
11 | // In this header, you should import all the public headers of your framework using statements like #import
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Sources/SwiftScriptRunner.swift:
--------------------------------------------------------------------------------
1 | // Swift Script Runner
2 |
3 | import Foundation
4 |
5 | /// Helper for running Swift scripts with async callbacks.
6 | open class SwiftScriptRunner {
7 |
8 | /// A poor man's mutex.
9 | private var count = 0
10 |
11 | /// Current run loop.
12 | private let runLoop = RunLoop.current
13 |
14 | /// Initializer.
15 | public init() {}
16 |
17 | /// Lock the script runner.
18 | open func lock() {
19 | count += 1
20 | }
21 |
22 | /// Unlock the script runner.
23 | open func unlock() {
24 | count -= 1
25 | }
26 |
27 | /// Wait for all locks to unlock.
28 | open func wait() {
29 | while count > 0 &&
30 | runLoop.run(mode: .defaultRunLoopMode, before: Date(timeIntervalSinceNow: 0.1)) {
31 | // Run, run, run
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/SwiftScriptRunner.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # Be sure to run `pod lib lint SwiftScriptRunner.podspec' to ensure this is a
3 | # valid spec before submitting.
4 | #
5 | # Any lines starting with a # are optional, but their use is encouraged
6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
7 | #
8 |
9 | Pod::Spec.new do |s|
10 | s.name = "SwiftScriptRunner"
11 | s.version = "1.0.1"
12 | s.summary = "A helper class for running Swift scripts with asynchronous callbacks."
13 |
14 | s.description = <<-DESC
15 | A helper class for running Swift scripts with asynchronous callbacks.
16 | * Initialize runner, lock before each async call and unlock once it's done.
17 | * Wait for all locks to unlock at the end of the script.
18 | DESC
19 | s.homepage = "https://github.com/mgrebenets/SwiftScriptRunner"
20 | s.license = "MIT"
21 | s.author = { "Maksym Grebenets" => "mgrebenets@gmail.com" }
22 | s.source = { git: "https://github.com/mgrebenets/SwiftScriptRunner.git", tag: s.version.to_s }
23 | s.social_media_url = "https://twitter.com/mgrebenets"
24 |
25 | s.platform = :osx, "10.10"
26 | s.requires_arc = true
27 |
28 | s.source_files = "Sources/**/*"
29 |
30 | s.frameworks = "Foundation"
31 | end
32 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/SwiftScriptRunner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/SwiftScriptRunner.xcodeproj/xcshareddata/xcschemes/SwiftScriptRunner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
34 |
40 |
41 |
42 |
43 |
44 |
50 |
51 |
52 |
53 |
54 |
55 |
66 |
67 |
73 |
74 |
75 |
76 |
77 |
78 |
84 |
85 |
91 |
92 |
93 |
94 |
96 |
97 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Tests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Examples/Carthage/Checkouts/SwiftScriptRunner/Tests/SwiftScriptRunnerTests.swift:
--------------------------------------------------------------------------------
1 | // SwiftScriptRunnerTests.swift
2 |
3 | import XCTest
4 | @testable import SwiftScriptRunner
5 |
6 | class SwiftScriptRunnerTests: XCTestCase {
7 | // TODO: Tests.
8 | }
9 |
--------------------------------------------------------------------------------
/Examples/Example.swift:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env xcrun swift -F Carthage/Build/Mac
2 |
3 | // Shebangs for using with different dependency managers.
4 | //
5 | // - Carthage:
6 | // #!/usr/bin/env xcrun swift -F Carthage/Build/Mac
7 | // - CocoaPods Rome:
8 | // #!/usr/bin/env xcrun swift -F Rome
9 |
10 | import Alamofire
11 | import SwiftScriptRunner
12 |
13 | var runner = SwiftScriptRunner()
14 | runner.lock() // Lock
15 |
16 | Alamofire.request("http://httpbin.org/get")
17 | .responseJSON { response in
18 | print("Successful response:")
19 | print(response) // Result of response serialization
20 | runner.unlock() // Unlock
21 | }
22 |
23 | runner.wait() // Wait
--------------------------------------------------------------------------------
/Examples/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 |
3 | gem "cocoapods", "1.4.0"
4 | gem "cocoapods-rome", "0.8.0"
5 |
--------------------------------------------------------------------------------
/Examples/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | CFPropertyList (2.3.6)
5 | activesupport (4.2.10)
6 | i18n (~> 0.7)
7 | minitest (~> 5.1)
8 | thread_safe (~> 0.3, >= 0.3.4)
9 | tzinfo (~> 1.1)
10 | atomos (0.1.2)
11 | claide (1.0.2)
12 | cocoapods (1.4.0)
13 | activesupport (>= 4.0.2, < 5)
14 | claide (>= 1.0.2, < 2.0)
15 | cocoapods-core (= 1.4.0)
16 | cocoapods-deintegrate (>= 1.0.2, < 2.0)
17 | cocoapods-downloader (>= 1.1.3, < 2.0)
18 | cocoapods-plugins (>= 1.0.0, < 2.0)
19 | cocoapods-search (>= 1.0.0, < 2.0)
20 | cocoapods-stats (>= 1.0.0, < 2.0)
21 | cocoapods-trunk (>= 1.3.0, < 2.0)
22 | cocoapods-try (>= 1.1.0, < 2.0)
23 | colored2 (~> 3.1)
24 | escape (~> 0.0.4)
25 | fourflusher (~> 2.0.1)
26 | gh_inspector (~> 1.0)
27 | molinillo (~> 0.6.4)
28 | nap (~> 1.0)
29 | ruby-macho (~> 1.1)
30 | xcodeproj (>= 1.5.4, < 2.0)
31 | cocoapods-core (1.4.0)
32 | activesupport (>= 4.0.2, < 6)
33 | fuzzy_match (~> 2.0.4)
34 | nap (~> 1.0)
35 | cocoapods-deintegrate (1.0.2)
36 | cocoapods-downloader (1.1.3)
37 | cocoapods-plugins (1.0.0)
38 | nap
39 | cocoapods-rome (0.8.0)
40 | cocoapods (>= 1.1.0, < 2.0)
41 | fourflusher (~> 2.0)
42 | cocoapods-search (1.0.0)
43 | cocoapods-stats (1.0.0)
44 | cocoapods-trunk (1.3.0)
45 | nap (>= 0.8, < 2.0)
46 | netrc (~> 0.11)
47 | cocoapods-try (1.1.0)
48 | colored2 (3.1.2)
49 | concurrent-ruby (1.0.5)
50 | escape (0.0.4)
51 | fourflusher (2.0.1)
52 | fuzzy_match (2.0.4)
53 | gh_inspector (1.1.2)
54 | i18n (0.9.5)
55 | concurrent-ruby (~> 1.0)
56 | minitest (5.11.3)
57 | molinillo (0.6.4)
58 | nanaimo (0.2.3)
59 | nap (1.1.0)
60 | netrc (0.11.0)
61 | ruby-macho (1.1.0)
62 | thread_safe (0.3.6)
63 | tzinfo (1.2.5)
64 | thread_safe (~> 0.1)
65 | xcodeproj (1.5.6)
66 | CFPropertyList (~> 2.3.3)
67 | atomos (~> 0.1.2)
68 | claide (>= 1.0.2, < 2.0)
69 | colored2 (~> 3.1)
70 | nanaimo (~> 0.2.3)
71 |
72 | PLATFORMS
73 | ruby
74 |
75 | DEPENDENCIES
76 | cocoapods (= 1.4.0)
77 | cocoapods-rome (= 0.8.0)
78 |
79 | BUNDLED WITH
80 | 1.16.1
81 |
--------------------------------------------------------------------------------
/Examples/Podfile:
--------------------------------------------------------------------------------
1 | platform :osx, "10.10"
2 | use_frameworks!
3 | plugin "cocoapods-rome"
4 |
5 | target :dummy do
6 | pod "Alamofire", "~> 4.6.0"
7 | pod "SwiftScriptRunner", "~> 1.0.1"
8 | end
9 |
10 | post_install do |installer|
11 | swift_version = `cat .swift-version`.strip
12 | installer.pods_project.targets.each do |target|
13 | target.build_configurations.each do |config|
14 | puts "Setting SWIFT_VERSION to #{swift_version} for #{target} in #{config} configuration"
15 | config.build_settings["SWIFT_VERSION"] = swift_version
16 | end
17 | end
18 | end
19 |
--------------------------------------------------------------------------------
/Examples/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Alamofire (4.6.0)
3 | - SwiftScriptRunner (1.0.1)
4 |
5 | DEPENDENCIES:
6 | - Alamofire (~> 4.6.0)
7 | - SwiftScriptRunner (~> 1.0.1)
8 |
9 | SPEC CHECKSUMS:
10 | Alamofire: f41a599bd63041760b26d393ec1069d9d7b917f4
11 | SwiftScriptRunner: 5a78eab8bc8f13ea8ba7c017327af1e6a9530687
12 |
13 | PODFILE CHECKSUM: c444315796c5b8aaaa01e65584a8bd1af2a12cba
14 |
15 | COCOAPODS: 1.4.0
16 |
--------------------------------------------------------------------------------
/Examples/Pods/Alamofire/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Examples/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift:
--------------------------------------------------------------------------------
1 | //
2 | // DispatchQueue+Alamofire.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import Dispatch
26 | import Foundation
27 |
28 | extension DispatchQueue {
29 | static var userInteractive: DispatchQueue { return DispatchQueue.global(qos: .userInteractive) }
30 | static var userInitiated: DispatchQueue { return DispatchQueue.global(qos: .userInitiated) }
31 | static var utility: DispatchQueue { return DispatchQueue.global(qos: .utility) }
32 | static var background: DispatchQueue { return DispatchQueue.global(qos: .background) }
33 |
34 | func after(_ delay: TimeInterval, execute closure: @escaping () -> Void) {
35 | asyncAfter(deadline: .now() + delay, execute: closure)
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Examples/Pods/Alamofire/Source/Notifications.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Notifications.swift
3 | //
4 | // Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 | //
24 |
25 | import Foundation
26 |
27 | extension Notification.Name {
28 | /// Used as a namespace for all `URLSessionTask` related notifications.
29 | public struct Task {
30 | /// Posted when a `URLSessionTask` is resumed. The notification `object` contains the resumed `URLSessionTask`.
31 | public static let DidResume = Notification.Name(rawValue: "org.alamofire.notification.name.task.didResume")
32 |
33 | /// Posted when a `URLSessionTask` is suspended. The notification `object` contains the suspended `URLSessionTask`.
34 | public static let DidSuspend = Notification.Name(rawValue: "org.alamofire.notification.name.task.didSuspend")
35 |
36 | /// Posted when a `URLSessionTask` is cancelled. The notification `object` contains the cancelled `URLSessionTask`.
37 | public static let DidCancel = Notification.Name(rawValue: "org.alamofire.notification.name.task.didCancel")
38 |
39 | /// Posted when a `URLSessionTask` is completed. The notification `object` contains the completed `URLSessionTask`.
40 | public static let DidComplete = Notification.Name(rawValue: "org.alamofire.notification.name.task.didComplete")
41 | }
42 | }
43 |
44 | // MARK: -
45 |
46 | extension Notification {
47 | /// Used as a namespace for all `Notification` user info dictionary keys.
48 | public struct Key {
49 | /// User info dictionary key representing the `URLSessionTask` associated with the notification.
50 | public static let Task = "org.alamofire.notification.key.task"
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Examples/Pods/Manifest.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Alamofire (4.6.0)
3 | - SwiftScriptRunner (1.0.1)
4 |
5 | DEPENDENCIES:
6 | - Alamofire (~> 4.6.0)
7 | - SwiftScriptRunner (~> 1.0.1)
8 |
9 | SPEC CHECKSUMS:
10 | Alamofire: f41a599bd63041760b26d393ec1069d9d7b917f4
11 | SwiftScriptRunner: 5a78eab8bc8f13ea8ba7c017327af1e6a9530687
12 |
13 | PODFILE CHECKSUM: c444315796c5b8aaaa01e65584a8bd1af2a12cba
14 |
15 | COCOAPODS: 1.4.0
16 |
--------------------------------------------------------------------------------
/Examples/Pods/SwiftScriptRunner/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015 Maksym Grebenets
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Examples/Pods/SwiftScriptRunner/README.md:
--------------------------------------------------------------------------------
1 | # SwiftScriptRunner
2 |
3 | [](https://travis-ci.org/mgrebenets/SwiftScriptRunner)
4 | [](http://cocoapods.org/pods/SwiftScriptRunner)
5 | [](http://cocoapods.org/pods/SwiftScriptRunner)
6 | [](http://cocoapods.org/pods/SwiftScriptRunner)
7 |
8 | A simple utility for writing Swift scripts with async callbacks to 3rd party frameworks.
9 |
10 | See [this blog post](http://mgrebenets.github.io/swift/2015/10/08/async-swift-scripting/) for more details.
11 |
12 | ## Requirements
13 |
14 | - Xcode 9.2
15 | - cocoapods gem version 1.4.0
16 | - [cocoapods-rome](https://github.com/neonichu/Rome) gem version 0.8.0
17 | - carthage version 0.28.0
18 |
19 | ## Installation
20 |
21 | SwiftScriptRunner is available through [CocoaPods Rome](https://github.com/neonichu/Rome) and [Carthage](https://github.com/Carthage/Carthage).
22 |
23 | ### CocoaPods Rome
24 |
25 | Make sure you have [cocoapods-rome](https://github.com/neonichu/Rome) Ruby gem installed.
26 |
27 | Add the following line to your `Podfile`:
28 |
29 | ```ruby
30 | platform :osx, "10.10"
31 | use_frameworks!
32 | plugin "cocoapods-rome"
33 |
34 | pod "SwiftScriptRunner", "~> 1.0.1"
35 | ```
36 |
37 | And run
38 |
39 | ```bash
40 | pod install
41 | ```
42 |
43 | ### Carthage
44 |
45 | Add the following line to your `Cartfile`:
46 |
47 | ```ruby
48 | github "mgrebenets/SwiftScriptRunner", ~> 1.0.1
49 | ```
50 |
51 | And run
52 |
53 | ```bash
54 | carthage update --platform mac
55 | ```
56 |
57 | ### Swift Package Manager
58 |
59 | _TODO:_
60 |
61 | ## Usage
62 |
63 | Example of asynchronous network request using [Alamofire](https://github.com/Alamofire/Alamofire).
64 |
65 | ```swift
66 | // Shebangs for using with different dependency managers.
67 | //
68 | // - Carthage:
69 | // #!/usr/bin/env xcrun swift -F Carthage/Build/Mac
70 | // - CocoaPods Rome:
71 | // #!/usr/bin/env xcrun swift -F Rome
72 | // - Swift Package Manager:
73 |
74 | // Example.swift
75 |
76 | import Alamofire
77 | import SwiftScriptRunner
78 |
79 | var runner = SwiftScriptRunner()
80 | runner.lock() // Lock
81 |
82 | Alamofire.request("http://httpbin.org/get")
83 | .responseJSON { response in
84 | print("Successful response:")
85 | print(response) // Result of response serialization
86 | runner.unlock() // Unlock
87 | }
88 |
89 | runner.wait() // Wait
90 | ```
91 |
92 | Now you can run it.
93 |
94 | ```bash
95 | # When using CocoaPods
96 | swift -F Rome Example.swift
97 |
98 | # When using Carthage
99 | swift -F Carthage/Build/Mac Example.swift
100 |
101 | # When -F option is part of shebang and Example.swift is executable
102 | ./Example.swift
103 | ```
104 |
105 | See `Examples` folder for details.
106 |
107 | ## Author
108 |
109 | Maksym Grebenets, mgrebenets@gmail.com, [@mgrebenets](https://twitter.com/mgrebenets)
110 |
111 | ## License
112 |
113 | SwiftScriptRunner is available under the MIT license. See the LICENSE file for more info.
114 |
--------------------------------------------------------------------------------
/Examples/Pods/SwiftScriptRunner/Sources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | $(CURRENT_PROJECT_VERSION)
21 | NSHumanReadableCopyright
22 | SwiftScriptRunner is available under the MIT license. See the LICENSE file for more info.
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Examples/Pods/SwiftScriptRunner/Sources/SwiftScriptRunner.h:
--------------------------------------------------------------------------------
1 | // SwiftScriptRunner.h
2 |
3 | #import
4 |
5 | //! Project version number for SwiftScriptRunner.
6 | FOUNDATION_EXPORT double SwiftScriptRunnerVersionNumber;
7 |
8 | //! Project version string for SwiftScriptRunner.
9 | FOUNDATION_EXPORT const unsigned char SwiftScriptRunnerVersionString[];
10 |
11 | // In this header, you should import all the public headers of your framework using statements like #import
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Examples/Pods/SwiftScriptRunner/Sources/SwiftScriptRunner.swift:
--------------------------------------------------------------------------------
1 | // Swift Script Runner
2 |
3 | import Foundation
4 |
5 | /// Helper for running Swift scripts with async callbacks.
6 | open class SwiftScriptRunner {
7 |
8 | /// A poor man's mutex.
9 | private var count = 0
10 |
11 | /// Current run loop.
12 | private let runLoop = RunLoop.current
13 |
14 | /// Initializer.
15 | public init() {}
16 |
17 | /// Lock the script runner.
18 | open func lock() {
19 | count += 1
20 | }
21 |
22 | /// Unlock the script runner.
23 | open func unlock() {
24 | count -= 1
25 | }
26 |
27 | /// Wait for all locks to unlock.
28 | open func wait() {
29 | while count > 0 &&
30 | runLoop.run(mode: .defaultRunLoopMode, before: Date(timeIntervalSinceNow: 0.1)) {
31 | // Run, run, run
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Alamofire/Alamofire-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Alamofire : NSObject
3 | @end
4 | @implementation PodsDummy_Alamofire
5 | @end
6 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Alamofire/Alamofire-prefix.pch:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Alamofire/Alamofire-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double AlamofireVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char AlamofireVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Alamofire/Alamofire.modulemap:
--------------------------------------------------------------------------------
1 | framework module Alamofire {
2 | umbrella header "Alamofire-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Alamofire/Alamofire.xcconfig:
--------------------------------------------------------------------------------
1 | CODE_SIGN_IDENTITY =
2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Alamofire
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public"
5 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
6 | PODS_BUILD_DIR = ${BUILD_DIR}
7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
8 | PODS_ROOT = ${SRCROOT}
9 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/Alamofire
10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
11 | SKIP_INSTALL = YES
12 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Alamofire/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 4.6.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Pods-dummy/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Pods-dummy/Pods-dummy-acknowledgements.markdown:
--------------------------------------------------------------------------------
1 | # Acknowledgements
2 | This application makes use of the following third party libraries:
3 |
4 | ## Alamofire
5 |
6 | Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
7 |
8 | Permission is hereby granted, free of charge, to any person obtaining a copy
9 | of this software and associated documentation files (the "Software"), to deal
10 | in the Software without restriction, including without limitation the rights
11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 | copies of the Software, and to permit persons to whom the Software is
13 | furnished to do so, subject to the following conditions:
14 |
15 | The above copyright notice and this permission notice shall be included in
16 | all copies or substantial portions of the Software.
17 |
18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | THE SOFTWARE.
25 |
26 |
27 | ## SwiftScriptRunner
28 |
29 | Copyright (c) 2015 Maksym Grebenets
30 |
31 | Permission is hereby granted, free of charge, to any person obtaining a copy
32 | of this software and associated documentation files (the "Software"), to deal
33 | in the Software without restriction, including without limitation the rights
34 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35 | copies of the Software, and to permit persons to whom the Software is
36 | furnished to do so, subject to the following conditions:
37 |
38 | The above copyright notice and this permission notice shall be included in
39 | all copies or substantial portions of the Software.
40 |
41 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
47 | THE SOFTWARE.
48 |
49 | Generated by CocoaPods - https://cocoapods.org
50 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Pods-dummy/Pods-dummy-acknowledgements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreferenceSpecifiers
6 |
7 |
8 | FooterText
9 | This application makes use of the following third party libraries:
10 | Title
11 | Acknowledgements
12 | Type
13 | PSGroupSpecifier
14 |
15 |
16 | FooterText
17 | Copyright (c) 2014-2017 Alamofire Software Foundation (http://alamofire.org/)
18 |
19 | Permission is hereby granted, free of charge, to any person obtaining a copy
20 | of this software and associated documentation files (the "Software"), to deal
21 | in the Software without restriction, including without limitation the rights
22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23 | copies of the Software, and to permit persons to whom the Software is
24 | furnished to do so, subject to the following conditions:
25 |
26 | The above copyright notice and this permission notice shall be included in
27 | all copies or substantial portions of the Software.
28 |
29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
35 | THE SOFTWARE.
36 |
37 | License
38 | MIT
39 | Title
40 | Alamofire
41 | Type
42 | PSGroupSpecifier
43 |
44 |
45 | FooterText
46 | Copyright (c) 2015 Maksym Grebenets <maksym.grebenets@cba.com.au>
47 |
48 | Permission is hereby granted, free of charge, to any person obtaining a copy
49 | of this software and associated documentation files (the "Software"), to deal
50 | in the Software without restriction, including without limitation the rights
51 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
52 | copies of the Software, and to permit persons to whom the Software is
53 | furnished to do so, subject to the following conditions:
54 |
55 | The above copyright notice and this permission notice shall be included in
56 | all copies or substantial portions of the Software.
57 |
58 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
59 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
60 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
61 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
62 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
63 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
64 | THE SOFTWARE.
65 |
66 | License
67 | MIT
68 | Title
69 | SwiftScriptRunner
70 | Type
71 | PSGroupSpecifier
72 |
73 |
74 | FooterText
75 | Generated by CocoaPods - https://cocoapods.org
76 | Title
77 |
78 | Type
79 | PSGroupSpecifier
80 |
81 |
82 | StringsTable
83 | Acknowledgements
84 | Title
85 | Acknowledgements
86 |
87 |
88 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Pods-dummy/Pods-dummy-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods_dummy : NSObject
3 | @end
4 | @implementation PodsDummy_Pods_dummy
5 | @end
6 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Pods-dummy/Pods-dummy-resources.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
5 |
6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
7 | > "$RESOURCES_TO_COPY"
8 |
9 | XCASSET_FILES=()
10 |
11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution
12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
14 |
15 | case "${TARGETED_DEVICE_FAMILY}" in
16 | 1,2)
17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
18 | ;;
19 | 1)
20 | TARGET_DEVICE_ARGS="--target-device iphone"
21 | ;;
22 | 2)
23 | TARGET_DEVICE_ARGS="--target-device ipad"
24 | ;;
25 | 3)
26 | TARGET_DEVICE_ARGS="--target-device tv"
27 | ;;
28 | 4)
29 | TARGET_DEVICE_ARGS="--target-device watch"
30 | ;;
31 | *)
32 | TARGET_DEVICE_ARGS="--target-device mac"
33 | ;;
34 | esac
35 |
36 | install_resource()
37 | {
38 | if [[ "$1" = /* ]] ; then
39 | RESOURCE_PATH="$1"
40 | else
41 | RESOURCE_PATH="${PODS_ROOT}/$1"
42 | fi
43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then
44 | cat << EOM
45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script.
46 | EOM
47 | exit 1
48 | fi
49 | case $RESOURCE_PATH in
50 | *.storyboard)
51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
53 | ;;
54 | *.xib)
55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true
56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS}
57 | ;;
58 | *.framework)
59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true
62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
63 | ;;
64 | *.xcdatamodel)
65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true
66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom"
67 | ;;
68 | *.xcdatamodeld)
69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true
70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd"
71 | ;;
72 | *.xcmappingmodel)
73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true
74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm"
75 | ;;
76 | *.xcassets)
77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH"
78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
79 | ;;
80 | *)
81 | echo "$RESOURCE_PATH" || true
82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY"
83 | ;;
84 | esac
85 | }
86 |
87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
92 | fi
93 | rm -f "$RESOURCES_TO_COPY"
94 |
95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
96 | then
97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets).
98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
99 | while read line; do
100 | if [[ $line != "${PODS_ROOT}*" ]]; then
101 | XCASSET_FILES+=("$line")
102 | fi
103 | done <<<"$OTHER_XCASSETS"
104 |
105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
106 | fi
107 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Pods-dummy/Pods-dummy-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double Pods_dummyVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char Pods_dummyVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Pods-dummy/Pods-dummy.debug.xcconfig:
--------------------------------------------------------------------------------
1 | CODE_SIGN_IDENTITY =
2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES
3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Alamofire" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftScriptRunner"
4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/../Frameworks' '@loader_path/Frameworks'
6 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Alamofire/Alamofire.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SwiftScriptRunner/SwiftScriptRunner.framework/Headers"
7 | OTHER_LDFLAGS = $(inherited) -framework "Alamofire" -framework "SwiftScriptRunner"
8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
9 | PODS_BUILD_DIR = ${BUILD_DIR}
10 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
11 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
12 | PODS_ROOT = ${SRCROOT}/Pods
13 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Pods-dummy/Pods-dummy.modulemap:
--------------------------------------------------------------------------------
1 | framework module Pods_dummy {
2 | umbrella header "Pods-dummy-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/Pods-dummy/Pods-dummy.release.xcconfig:
--------------------------------------------------------------------------------
1 | CODE_SIGN_IDENTITY =
2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES
3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Alamofire" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftScriptRunner"
4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/../Frameworks' '@loader_path/Frameworks'
6 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/Alamofire/Alamofire.framework/Headers" -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SwiftScriptRunner/SwiftScriptRunner.framework/Headers"
7 | OTHER_LDFLAGS = $(inherited) -framework "Alamofire" -framework "SwiftScriptRunner"
8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
9 | PODS_BUILD_DIR = ${BUILD_DIR}
10 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
11 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
12 | PODS_ROOT = ${SRCROOT}/Pods
13 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/SwiftScriptRunner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.1
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/SwiftScriptRunner/SwiftScriptRunner-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_SwiftScriptRunner : NSObject
3 | @end
4 | @implementation PodsDummy_SwiftScriptRunner
5 | @end
6 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/SwiftScriptRunner/SwiftScriptRunner-prefix.pch:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/SwiftScriptRunner/SwiftScriptRunner-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 | #import "SwiftScriptRunner.h"
14 |
15 | FOUNDATION_EXPORT double SwiftScriptRunnerVersionNumber;
16 | FOUNDATION_EXPORT const unsigned char SwiftScriptRunnerVersionString[];
17 |
18 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/SwiftScriptRunner/SwiftScriptRunner.modulemap:
--------------------------------------------------------------------------------
1 | framework module SwiftScriptRunner {
2 | umbrella header "SwiftScriptRunner-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/Examples/Pods/Target Support Files/SwiftScriptRunner/SwiftScriptRunner.xcconfig:
--------------------------------------------------------------------------------
1 | CODE_SIGN_IDENTITY =
2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/SwiftScriptRunner
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public"
5 | OTHER_LDFLAGS = -framework "Foundation"
6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS"
7 | PODS_BUILD_DIR = ${BUILD_DIR}
8 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
9 | PODS_ROOT = ${SRCROOT}
10 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/SwiftScriptRunner
11 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
12 | SKIP_INSTALL = YES
13 |
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Alamofire:
--------------------------------------------------------------------------------
1 | Versions/Current/Alamofire
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Headers:
--------------------------------------------------------------------------------
1 | Versions/Current/Headers
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Modules:
--------------------------------------------------------------------------------
1 | Versions/Current/Modules
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Resources:
--------------------------------------------------------------------------------
1 | Versions/Current/Resources
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Versions/A/Alamofire:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Rome/Alamofire.framework/Versions/A/Alamofire
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Versions/A/Headers/Alamofire-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double AlamofireVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char AlamofireVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Versions/A/Modules/Alamofire.swiftmodule/x86_64.swiftdoc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Rome/Alamofire.framework/Versions/A/Modules/Alamofire.swiftmodule/x86_64.swiftdoc
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Versions/A/Modules/Alamofire.swiftmodule/x86_64.swiftmodule:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Rome/Alamofire.framework/Versions/A/Modules/Alamofire.swiftmodule/x86_64.swiftmodule
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Versions/A/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module Alamofire {
2 | umbrella header "Alamofire-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
8 | module Alamofire.Swift {
9 | header "Alamofire-Swift.h"
10 | requires objc
11 | }
12 |
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Versions/A/Resources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildMachineOSBuild
6 | 17D2047
7 | CFBundleDevelopmentRegion
8 | en
9 | CFBundleExecutable
10 | Alamofire
11 | CFBundleIdentifier
12 | org.cocoapods.Alamofire
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | Alamofire
17 | CFBundlePackageType
18 | FMWK
19 | CFBundleShortVersionString
20 | 4.6.0
21 | CFBundleSignature
22 | ????
23 | CFBundleSupportedPlatforms
24 |
25 | MacOSX
26 |
27 | CFBundleVersion
28 | 1
29 | DTCompiler
30 | com.apple.compilers.llvm.clang.1_0
31 | DTPlatformBuild
32 | 9C40b
33 | DTPlatformVersion
34 | GM
35 | DTSDKBuild
36 | 17C76
37 | DTSDKName
38 | macosx10.13
39 | DTXcode
40 | 0920
41 | DTXcodeBuild
42 | 9C40b
43 |
44 |
45 |
--------------------------------------------------------------------------------
/Examples/Rome/Alamofire.framework/Versions/Current:
--------------------------------------------------------------------------------
1 | A
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Headers:
--------------------------------------------------------------------------------
1 | Versions/Current/Headers
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Modules:
--------------------------------------------------------------------------------
1 | Versions/Current/Modules
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Resources:
--------------------------------------------------------------------------------
1 | Versions/Current/Resources
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/SwiftScriptRunner:
--------------------------------------------------------------------------------
1 | Versions/Current/SwiftScriptRunner
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Versions/A/Headers/SwiftScriptRunner-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 | #import "SwiftScriptRunner.h"
14 |
15 | FOUNDATION_EXPORT double SwiftScriptRunnerVersionNumber;
16 | FOUNDATION_EXPORT const unsigned char SwiftScriptRunnerVersionString[];
17 |
18 |
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Versions/A/Headers/SwiftScriptRunner.h:
--------------------------------------------------------------------------------
1 | // SwiftScriptRunner.h
2 |
3 | #import
4 |
5 | //! Project version number for SwiftScriptRunner.
6 | FOUNDATION_EXPORT double SwiftScriptRunnerVersionNumber;
7 |
8 | //! Project version string for SwiftScriptRunner.
9 | FOUNDATION_EXPORT const unsigned char SwiftScriptRunnerVersionString[];
10 |
11 | // In this header, you should import all the public headers of your framework using statements like #import
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Versions/A/Modules/SwiftScriptRunner.swiftmodule/x86_64.swiftdoc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Rome/SwiftScriptRunner.framework/Versions/A/Modules/SwiftScriptRunner.swiftmodule/x86_64.swiftdoc
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Versions/A/Modules/SwiftScriptRunner.swiftmodule/x86_64.swiftmodule:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Rome/SwiftScriptRunner.framework/Versions/A/Modules/SwiftScriptRunner.swiftmodule/x86_64.swiftmodule
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Versions/A/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module SwiftScriptRunner {
2 | umbrella header "SwiftScriptRunner-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
8 | module SwiftScriptRunner.Swift {
9 | header "SwiftScriptRunner-Swift.h"
10 | requires objc
11 | }
12 |
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Versions/A/Resources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildMachineOSBuild
6 | 17D2047
7 | CFBundleDevelopmentRegion
8 | en
9 | CFBundleExecutable
10 | SwiftScriptRunner
11 | CFBundleIdentifier
12 | org.cocoapods.SwiftScriptRunner
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | SwiftScriptRunner
17 | CFBundlePackageType
18 | FMWK
19 | CFBundleShortVersionString
20 | 1.0.1
21 | CFBundleSignature
22 | ????
23 | CFBundleSupportedPlatforms
24 |
25 | MacOSX
26 |
27 | CFBundleVersion
28 | 1
29 | DTCompiler
30 | com.apple.compilers.llvm.clang.1_0
31 | DTPlatformBuild
32 | 9C40b
33 | DTPlatformVersion
34 | GM
35 | DTSDKBuild
36 | 17C76
37 | DTSDKName
38 | macosx10.13
39 | DTXcode
40 | 0920
41 | DTXcodeBuild
42 | 9C40b
43 |
44 |
45 |
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Versions/A/SwiftScriptRunner:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mgrebenets/SwiftScriptRunner/efcfa1cf87917e941a4aaa14ed8d789458dd4f31/Examples/Rome/SwiftScriptRunner.framework/Versions/A/SwiftScriptRunner
--------------------------------------------------------------------------------
/Examples/Rome/SwiftScriptRunner.framework/Versions/Current:
--------------------------------------------------------------------------------
1 | A
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 |
3 | gem "cocoapods", "1.4.0"
4 | gem "cocoapods-rome", "0.8.0"
5 |
--------------------------------------------------------------------------------
/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | CFPropertyList (2.3.6)
5 | activesupport (4.2.10)
6 | i18n (~> 0.7)
7 | minitest (~> 5.1)
8 | thread_safe (~> 0.3, >= 0.3.4)
9 | tzinfo (~> 1.1)
10 | atomos (0.1.2)
11 | claide (1.0.2)
12 | cocoapods (1.4.0)
13 | activesupport (>= 4.0.2, < 5)
14 | claide (>= 1.0.2, < 2.0)
15 | cocoapods-core (= 1.4.0)
16 | cocoapods-deintegrate (>= 1.0.2, < 2.0)
17 | cocoapods-downloader (>= 1.1.3, < 2.0)
18 | cocoapods-plugins (>= 1.0.0, < 2.0)
19 | cocoapods-search (>= 1.0.0, < 2.0)
20 | cocoapods-stats (>= 1.0.0, < 2.0)
21 | cocoapods-trunk (>= 1.3.0, < 2.0)
22 | cocoapods-try (>= 1.1.0, < 2.0)
23 | colored2 (~> 3.1)
24 | escape (~> 0.0.4)
25 | fourflusher (~> 2.0.1)
26 | gh_inspector (~> 1.0)
27 | molinillo (~> 0.6.4)
28 | nap (~> 1.0)
29 | ruby-macho (~> 1.1)
30 | xcodeproj (>= 1.5.4, < 2.0)
31 | cocoapods-core (1.4.0)
32 | activesupport (>= 4.0.2, < 6)
33 | fuzzy_match (~> 2.0.4)
34 | nap (~> 1.0)
35 | cocoapods-deintegrate (1.0.2)
36 | cocoapods-downloader (1.1.3)
37 | cocoapods-plugins (1.0.0)
38 | nap
39 | cocoapods-rome (0.8.0)
40 | cocoapods (>= 1.1.0, < 2.0)
41 | fourflusher (~> 2.0)
42 | cocoapods-search (1.0.0)
43 | cocoapods-stats (1.0.0)
44 | cocoapods-trunk (1.3.0)
45 | nap (>= 0.8, < 2.0)
46 | netrc (~> 0.11)
47 | cocoapods-try (1.1.0)
48 | colored2 (3.1.2)
49 | concurrent-ruby (1.0.5)
50 | escape (0.0.4)
51 | fourflusher (2.0.1)
52 | fuzzy_match (2.0.4)
53 | gh_inspector (1.1.2)
54 | i18n (0.9.5)
55 | concurrent-ruby (~> 1.0)
56 | minitest (5.11.3)
57 | molinillo (0.6.4)
58 | nanaimo (0.2.3)
59 | nap (1.1.0)
60 | netrc (0.11.0)
61 | ruby-macho (1.1.0)
62 | thread_safe (0.3.6)
63 | tzinfo (1.2.5)
64 | thread_safe (~> 0.1)
65 | xcodeproj (1.5.6)
66 | CFPropertyList (~> 2.3.3)
67 | atomos (~> 0.1.2)
68 | claide (>= 1.0.2, < 2.0)
69 | colored2 (~> 3.1)
70 | nanaimo (~> 0.2.3)
71 |
72 | PLATFORMS
73 | ruby
74 |
75 | DEPENDENCIES
76 | cocoapods (= 1.4.0)
77 | cocoapods-rome (= 0.8.0)
78 |
79 | BUNDLED WITH
80 | 1.16.1
81 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015 Maksym Grebenets
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/Package.swift:
--------------------------------------------------------------------------------
1 | // swift-tools-version:4.0
2 |
3 | import PackageDescription
4 |
5 | let package = Package(
6 | name: "SwiftScriptRunner",
7 | products: [
8 | .library(
9 | name: "SwiftScriptRunner",
10 | targets: ["SwiftScriptRunner"]
11 | )
12 | ],
13 | dependencies: [],
14 | targets: [
15 | .target(
16 | name: "SwiftScriptRunner",
17 | dependencies: [],
18 | path: "Sources"
19 | )
20 | ]
21 | )
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SwiftScriptRunner
2 |
3 | [](https://travis-ci.org/mgrebenets/SwiftScriptRunner)
4 | [](http://cocoapods.org/pods/SwiftScriptRunner)
5 | [](http://cocoapods.org/pods/SwiftScriptRunner)
6 | [](http://cocoapods.org/pods/SwiftScriptRunner)
7 |
8 | A simple utility for writing Swift scripts with async callbacks to 3rd party frameworks.
9 |
10 | See [this blog post](http://mgrebenets.github.io/swift/2015/10/08/async-swift-scripting/) for more details.
11 |
12 | ## Requirements
13 |
14 | - Xcode 9.2
15 | - cocoapods gem version 1.4.0
16 | - [cocoapods-rome](https://github.com/neonichu/Rome) gem version 0.8.0
17 | - carthage version 0.28.0
18 |
19 | ## Installation
20 |
21 | SwiftScriptRunner is available through [CocoaPods Rome](https://github.com/neonichu/Rome) and [Carthage](https://github.com/Carthage/Carthage).
22 |
23 | ### CocoaPods Rome
24 |
25 | Make sure you have [cocoapods-rome](https://github.com/neonichu/Rome) Ruby gem installed.
26 |
27 | Add the following line to your `Podfile`:
28 |
29 | ```ruby
30 | platform :osx, "10.10"
31 | use_frameworks!
32 | plugin "cocoapods-rome"
33 |
34 | pod "SwiftScriptRunner", "~> 1.0.1"
35 | ```
36 |
37 | And run
38 |
39 | ```bash
40 | pod install
41 | ```
42 |
43 | ### Carthage
44 |
45 | Add the following line to your `Cartfile`:
46 |
47 | ```ruby
48 | github "mgrebenets/SwiftScriptRunner", ~> 1.0.1
49 | ```
50 |
51 | And run
52 |
53 | ```bash
54 | carthage update --platform mac
55 | ```
56 |
57 | ### Swift Package Manager
58 |
59 | _TODO:_
60 |
61 | ## Usage
62 |
63 | Example of asynchronous network request using [Alamofire](https://github.com/Alamofire/Alamofire).
64 |
65 | ```swift
66 | // Shebangs for using with different dependency managers.
67 | //
68 | // - Carthage:
69 | // #!/usr/bin/env xcrun swift -F Carthage/Build/Mac
70 | // - CocoaPods Rome:
71 | // #!/usr/bin/env xcrun swift -F Rome
72 | // - Swift Package Manager:
73 |
74 | // Example.swift
75 |
76 | import Alamofire
77 | import SwiftScriptRunner
78 |
79 | var runner = SwiftScriptRunner()
80 | runner.lock() // Lock
81 |
82 | Alamofire.request("http://httpbin.org/get")
83 | .responseJSON { response in
84 | print("Successful response:")
85 | print(response) // Result of response serialization
86 | runner.unlock() // Unlock
87 | }
88 |
89 | runner.wait() // Wait
90 | ```
91 |
92 | Now you can run it.
93 |
94 | ```bash
95 | # When using CocoaPods
96 | swift -F Rome Example.swift
97 |
98 | # When using Carthage
99 | swift -F Carthage/Build/Mac Example.swift
100 |
101 | # When -F option is part of shebang and Example.swift is executable
102 | ./Example.swift
103 | ```
104 |
105 | See `Examples` folder for details.
106 |
107 | ## Author
108 |
109 | Maksym Grebenets, mgrebenets@gmail.com, [@mgrebenets](https://twitter.com/mgrebenets)
110 |
111 | ## License
112 |
113 | SwiftScriptRunner is available under the MIT license. See the LICENSE file for more info.
114 |
--------------------------------------------------------------------------------
/Sources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | $(CURRENT_PROJECT_VERSION)
21 | NSHumanReadableCopyright
22 | SwiftScriptRunner is available under the MIT license. See the LICENSE file for more info.
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Sources/SwiftScriptRunner.h:
--------------------------------------------------------------------------------
1 | // SwiftScriptRunner.h
2 |
3 | #import
4 |
5 | //! Project version number for SwiftScriptRunner.
6 | FOUNDATION_EXPORT double SwiftScriptRunnerVersionNumber;
7 |
8 | //! Project version string for SwiftScriptRunner.
9 | FOUNDATION_EXPORT const unsigned char SwiftScriptRunnerVersionString[];
10 |
11 | // In this header, you should import all the public headers of your framework using statements like #import
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Sources/SwiftScriptRunner.swift:
--------------------------------------------------------------------------------
1 | // Swift Script Runner
2 |
3 | import Foundation
4 |
5 | /// Helper for running Swift scripts with async callbacks.
6 | open class SwiftScriptRunner {
7 |
8 | /// A poor man's mutex.
9 | private var count = 0
10 |
11 | /// Current run loop.
12 | private let runLoop = RunLoop.current
13 |
14 | /// Initializer.
15 | public init() {}
16 |
17 | /// Lock the script runner.
18 | open func lock() {
19 | count += 1
20 | }
21 |
22 | /// Unlock the script runner.
23 | open func unlock() {
24 | count -= 1
25 | }
26 |
27 | /// Wait for all locks to unlock.
28 | open func wait() {
29 | while count > 0 &&
30 | runLoop.run(mode: .defaultRunLoopMode, before: Date(timeIntervalSinceNow: 0.1)) {
31 | // Run, run, run
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/SwiftScriptRunner.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # Be sure to run `pod lib lint SwiftScriptRunner.podspec' to ensure this is a
3 | # valid spec before submitting.
4 | #
5 | # Any lines starting with a # are optional, but their use is encouraged
6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
7 | #
8 |
9 | Pod::Spec.new do |s|
10 | s.name = "SwiftScriptRunner"
11 | s.version = "1.0.1"
12 | s.summary = "A helper class for running Swift scripts with asynchronous callbacks."
13 |
14 | s.description = <<-DESC
15 | A helper class for running Swift scripts with asynchronous callbacks.
16 | * Initialize runner, lock before each async call and unlock once it's done.
17 | * Wait for all locks to unlock at the end of the script.
18 | DESC
19 | s.homepage = "https://github.com/mgrebenets/SwiftScriptRunner"
20 | s.license = "MIT"
21 | s.author = { "Maksym Grebenets" => "mgrebenets@gmail.com" }
22 | s.source = { git: "https://github.com/mgrebenets/SwiftScriptRunner.git", tag: s.version.to_s }
23 | s.social_media_url = "https://twitter.com/mgrebenets"
24 |
25 | s.platform = :osx, "10.10"
26 | s.requires_arc = true
27 |
28 | s.source_files = "Sources/**/*"
29 |
30 | s.frameworks = "Foundation"
31 | end
32 |
--------------------------------------------------------------------------------
/SwiftScriptRunner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SwiftScriptRunner.xcodeproj/xcshareddata/xcschemes/SwiftScriptRunner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
34 |
40 |
41 |
42 |
43 |
44 |
50 |
51 |
52 |
53 |
54 |
55 |
66 |
67 |
73 |
74 |
75 |
76 |
77 |
78 |
84 |
85 |
91 |
92 |
93 |
94 |
96 |
97 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/Tests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Tests/SwiftScriptRunnerTests.swift:
--------------------------------------------------------------------------------
1 | // SwiftScriptRunnerTests.swift
2 |
3 | import XCTest
4 | @testable import SwiftScriptRunner
5 |
6 | class SwiftScriptRunnerTests: XCTestCase {
7 | // TODO: Tests.
8 | }
9 |
--------------------------------------------------------------------------------