Skip to content

Commit f496250

Browse files
committed
Updated Carthage dependencies, implemented auto-zoom for circle resizing
1 parent 2e11510 commit f496250

File tree

55 files changed

+2187
-1662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2187
-1662
lines changed

.gitignore

+6-5
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ playground.xcworkspace
4646
Pods/
4747

4848
# Carthage
49-
#
50-
# Add this line if you want to avoid checking in source code from Carthage dependencies.
51-
# Carthage/Checkouts
52-
49+
Carthage/Checkouts
5350
Carthage/Build
5451

5552
# fastlane
@@ -83,4 +80,8 @@ categories.json
8380

8481
.vscode
8582
__pycache__
86-
__pycache__/*
83+
__pycache__/*
84+
85+
# Cache Server's Source Tree
86+
cache-server
87+
cache-server/*

Cartfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github "raysarebest/das-quadrat" "no-categories-cache" # Change this back to Constantine-Fry once they accept my PR
2-
github "SwiftyJSON/SwiftyJSON"
31
github "raysarebest/MultiSelectSegmentedControl" "framework" # Change this back to yonat once they accept my PR
42
github "raysarebest/TagListView" "raysarebest-develop" # Change this back to ElaWorkshop once they accept my PRs
5-
github "realm/realm-cocoa"
3+
github "Alamofire/Alamofire"
4+
github "SwiftyJSON/SwiftyJSON"
5+
github "SwiftyJSON/Alamofire-SwiftyJSON" "master"

Cartfile.resolved

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github "SwiftyJSON/SwiftyJSON" "3.1.4"
1+
github "Alamofire/Alamofire" "4.7.2"
2+
github "SwiftyJSON/Alamofire-SwiftyJSON" "33f7652ee8ed3c9631d8edfa49ce31045fdc7eda"
3+
github "SwiftyJSON/SwiftyJSON" "4.1.0"
24
github "raysarebest/MultiSelectSegmentedControl" "449dfbf8661a44aacbe79a87a1fc21bd1e9829da"
35
github "raysarebest/TagListView" "12a8d9ca149aa38d71c9bc03f62b834cb53df8e1"
4-
github "raysarebest/das-quadrat" "7d29a47680243c96e1c291e9b0eb74c19f29db70"
5-
github "realm/realm-cocoa" "v2.10.2"
+3-22
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
language: objective-c
2-
osx_image: xcode8
2+
osx_image: xcode9.3
33
xcode_sdk: iphonesimulator10.0
4-
env:
5-
global:
6-
- FRAMEWORK_NAME=SwiftyJSON
7-
before_install:
8-
- rvm get head
9-
- brew update
10-
- brew outdated carthage || brew upgrade carthage
11-
before_deploy:
12-
- carthage build --no-skip-current
13-
- carthage archive $FRAMEWORK_NAME
144
script:
155
- set -o pipefail
166
- travis_retry xcodebuild -workspace SwiftyJSON.xcworkspace -scheme "SwiftyJSON iOS" -destination "platform=iOS Simulator,name=iPhone 6" build-for-testing test | xcpretty
17-
- travis_retry xcodebuild -workspace SwiftyJSON.xcworkspace -scheme "SwiftyJSON OSX" build-for-testing test | xcpretty
18-
- travis_retry xcodebuild -workspace SwiftyJSON.xcworkspace -scheme "SwiftyJSON tvOS" -destination "platform=tvOS Simulator,name=Apple TV 1080p" build-for-testing test | xcpretty
19-
deploy:
20-
provider: releases
21-
api_key:
22-
secure: MufQRIzcHPU5fn9gyXl7kDGaLihN6zGABx9UWqNtkwq0AxV0aYNWys11nrKDIgoZFR+MbQHMoodpZK03yDdCLG03ncnOr3aytLOpI0imuDFWx16sieiVoYmnP5bfNFTN0qqXdfBy0OOsx4wO+F5Pwg5y1TgGYnKpXtEfdIU3Om4=
23-
file: SwiftyJSON.framework.zip
24-
skip_cleanup: true
25-
on:
26-
repo: SwiftyJSON/SwiftyJSON
27-
tags: true
7+
- travis_retry xcodebuild -workspace SwiftyJSON.xcworkspace -scheme "SwiftyJSON macOS" build-for-testing test | xcpretty
8+
- travis_retry xcodebuild -workspace SwiftyJSON.xcworkspace -scheme "SwiftyJSON tvOS" -destination "platform=tvOS Simulator,name=Apple TV" build-for-testing test | xcpretty

Carthage/Checkouts/SwiftyJSON/Example/Example.xcodeproj/project.pbxproj

+17-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
isa = PBXProject;
125125
attributes = {
126126
LastSwiftUpdateCheck = 0700;
127-
LastUpgradeCheck = 0800;
127+
LastUpgradeCheck = 0930;
128128
ORGANIZATIONNAME = swiftyjson;
129129
TargetAttributes = {
130130
A82A1C1819D926B8009A653D = {
@@ -206,14 +206,22 @@
206206
CLANG_CXX_LIBRARY = "libc++";
207207
CLANG_ENABLE_MODULES = YES;
208208
CLANG_ENABLE_OBJC_ARC = YES;
209+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
209210
CLANG_WARN_BOOL_CONVERSION = YES;
211+
CLANG_WARN_COMMA = YES;
210212
CLANG_WARN_CONSTANT_CONVERSION = YES;
213+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
211214
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
212215
CLANG_WARN_EMPTY_BODY = YES;
213216
CLANG_WARN_ENUM_CONVERSION = YES;
214217
CLANG_WARN_INFINITE_RECURSION = YES;
215218
CLANG_WARN_INT_CONVERSION = YES;
219+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
220+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
221+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
216222
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
223+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
224+
CLANG_WARN_STRICT_PROTOTYPES = YES;
217225
CLANG_WARN_SUSPICIOUS_MOVE = YES;
218226
CLANG_WARN_UNREACHABLE_CODE = YES;
219227
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -254,14 +262,22 @@
254262
CLANG_CXX_LIBRARY = "libc++";
255263
CLANG_ENABLE_MODULES = YES;
256264
CLANG_ENABLE_OBJC_ARC = YES;
265+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
257266
CLANG_WARN_BOOL_CONVERSION = YES;
267+
CLANG_WARN_COMMA = YES;
258268
CLANG_WARN_CONSTANT_CONVERSION = YES;
269+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
259270
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
260271
CLANG_WARN_EMPTY_BODY = YES;
261272
CLANG_WARN_ENUM_CONVERSION = YES;
262273
CLANG_WARN_INFINITE_RECURSION = YES;
263274
CLANG_WARN_INT_CONVERSION = YES;
275+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
276+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
277+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
264278
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
279+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
280+
CLANG_WARN_STRICT_PROTOTYPES = YES;
265281
CLANG_WARN_SUSPICIOUS_MOVE = YES;
266282
CLANG_WARN_UNREACHABLE_CODE = YES;
267283
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;

Carthage/Checkouts/SwiftyJSON/Example/Example/AppDelegate.swift

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SwiftyJSON.h
1+
// AppDelegate.swift
22
//
33
// Copyright (c) 2014 - 2016 Pinglin Tang
44
//
@@ -29,23 +29,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2929
var window: UIWindow?
3030

3131
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
32-
32+
3333
let navigationController = self.window?.rootViewController as! UINavigationController
3434
let viewController = navigationController.topViewController as! ViewController
35-
35+
3636
if let file = Bundle.main.path(forResource: "SwiftyJSONTests", ofType: "json") {
3737
do {
3838
let data = try Data(contentsOf: URL(fileURLWithPath: file))
39-
let json = JSON(data: data)
39+
let json = try JSON(data: data)
4040
viewController.json = json
4141
} catch {
4242
viewController.json = JSON.null
4343
}
4444
} else {
4545
viewController.json = JSON.null
4646
}
47-
47+
4848
return true
4949
}
5050
}
51-

Carthage/Checkouts/SwiftyJSON/Example/Example/ViewController.swift

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SwiftyJSON.h
1+
// ViewController.swift
22
//
33
// Copyright (c) 2014 - 2016 Pinglin Tang
44
//
@@ -26,16 +26,16 @@ import SwiftyJSON
2626
class ViewController: UITableViewController {
2727

2828
var json: JSON = JSON.null
29-
29+
3030
// MARK: - Table view data source
3131

32-
override func numberOfSections(in tableView: UITableView) -> Int {
33-
return 1
34-
}
32+
override func viewDidLoad() {
33+
title = "SwiftyJSON(\(json.type))"
34+
}
3535

3636
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
3737
switch self.json.type {
38-
case Type.array, Type.dictionary:
38+
case .array, .dictionary:
3939
return self.json.count
4040
default:
4141
return 1
@@ -44,9 +44,9 @@ class ViewController: UITableViewController {
4444

4545
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
4646
let cell = tableView.dequeueReusableCell(withIdentifier: "JSONCell", for: indexPath) as UITableViewCell
47-
48-
let row = (indexPath as NSIndexPath).row
49-
47+
48+
let row = indexPath.row
49+
5050
switch self.json.type {
5151
case .array:
5252
cell.textLabel?.text = "\(row)"
@@ -60,7 +60,7 @@ class ViewController: UITableViewController {
6060
cell.textLabel?.text = ""
6161
cell.detailTextLabel?.text = self.json.description
6262
}
63-
63+
6464
return cell
6565
}
6666

@@ -70,9 +70,9 @@ class ViewController: UITableViewController {
7070

7171
var nextController: UIViewController?
7272
nextController = segue.destination
73-
73+
7474
if let indexPath = self.tableView.indexPathForSelectedRow {
75-
let row = (indexPath as NSIndexPath).row
75+
let row = indexPath.row
7676
var nextJson: JSON = JSON.null
7777
switch self.json.type {
7878
case .array:

0 commit comments

Comments
 (0)