-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from pyconjp/release/v2.0.0
Release for v2.0.0
- Loading branch information
Showing
174 changed files
with
3,310 additions
and
2,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
disabled_rules: | ||
# FourceCastを許可 | ||
# ForceCastを許可 | ||
- force_cast | ||
# FourceTryを許可 | ||
- force_try | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# PyCon JP use Library | ||
github "Alamofire/Alamofire" ~> 4.0 | ||
github "Alamofire/AlamofireImage" ~> 3.0 | ||
github "ishkawa/APIKit" ~> 3.0 | ||
github "antitypical/Result" ~> 3.0 | ||
github "onevcat/Kingfisher" ~> 3.0 | ||
github "realm/realm-cocoa" ~> 2.0 | ||
github "kishikawakatsumi/SpreadsheetView" |
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,57 @@ | ||
// | ||
// AppDelegate.swift | ||
// PyConJP2016 | ||
// PyConJP | ||
// | ||
// Created by Yutaro Muta on 2016/02/16. | ||
// Copyright © 2016 PyCon JP. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import APIKit | ||
import RealmSwift | ||
|
||
@UIApplicationMain | ||
class AppDelegate: UIResponder, UIApplicationDelegate, TalksAPIProtocol, ErrorAlertProtocol { | ||
class AppDelegate: UIResponder, UIApplicationDelegate, ReceiveLocalNotificationProtocol, ErrorAlertProtocol { | ||
|
||
var window: UIWindow? | ||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | ||
// let settings = UIUserNotificationSettings(forTypes: [UIUserNotificationType.Alert, UIUserNotificationType.Badge, UIUserNotificationType.Sound], categories: nil) | ||
// UIApplication.sharedApplication().registerUserNotificationSettings(settings) | ||
// | ||
// if let _ = launchOptions![UIApplicationLaunchOptionsURLKey] as? [NSObject : AnyObject] { | ||
// if let osVersion = Float64(UIDevice.currentDevice().systemVersion) { | ||
// if osVersion >= 9.0 { | ||
// } | ||
// } | ||
// } | ||
// if let launchOptions = launchOptions { | ||
// if let localNotification = launchOptions[UIApplicationLaunchOptionsLocalNotificationKey] as? UILocalNotification { | ||
// self.application(application, didReceiveLocalNotification: localNotification) | ||
// } | ||
// } | ||
|
||
getTalks { result in | ||
switch result { | ||
case .success: | ||
NotificationCenter.default.post(name: Notification.Name(rawValue: PCJNotificationConfig.CompleteFetchDataNotification), object: nil) | ||
case .failure(let error): | ||
self.showErrorAlart(with: error) | ||
} | ||
} | ||
getTalksFromAPI() | ||
|
||
UINavigationBar.appearance().barTintColor = UIColor.PyConJP2016.red | ||
UINavigationBar.appearance().barTintColor = UIColor.PyConJP2017.navy | ||
UINavigationBar.appearance().tintColor = .white | ||
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: UIColor.white] | ||
|
||
UITabBar.appearance().tintColor = UIColor.PyConJP2016.blue | ||
UITabBarItem.appearance().setTitleTextAttributes([NSFontAttributeName: UIFont.boldSystemFont(ofSize: 10), NSForegroundColorAttributeName: UIColor.PyConJP2016.blue], for: .selected) | ||
UITabBar.appearance().tintColor = UIColor.PyConJP2017.yellow | ||
UITabBarItem.appearance().setTitleTextAttributes([NSFontAttributeName: UIFont.boldSystemFont(ofSize: 10), NSForegroundColorAttributeName: UIColor.PyConJP2017.yellow], for: .selected) | ||
|
||
let configuration = Realm.Configuration(schemaVersion: 1, deleteRealmIfMigrationNeeded: true) | ||
Realm.Configuration.defaultConfiguration = configuration | ||
|
||
return true | ||
} | ||
|
||
func applicationWillResignActive(_ application: UIApplication) { | ||
} | ||
|
||
func applicationDidEnterBackground(_ application: UIApplication) { | ||
} | ||
|
||
func applicationWillEnterForeground(_ application: UIApplication) { | ||
} | ||
|
||
func applicationDidBecomeActive(_ application: UIApplication) { | ||
UIApplication.shared.applicationIconBadgeNumber = 0 | ||
func application(_ application: UIApplication, didReceive notification: UILocalNotification) { | ||
handle(application, didReceiveLocalNotification: notification) | ||
UIApplication.shared.cancelLocalNotification(notification) | ||
} | ||
|
||
func applicationWillTerminate(_ application: UIApplication) { | ||
} | ||
} | ||
|
||
extension AppDelegate { | ||
|
||
func application(_ application: UIApplication, didReceive notification: UILocalNotification) { | ||
if let userInfo = notification.userInfo { | ||
let receiveLocalNotificationManager = ReceiveLocalNotificationManager() | ||
receiveLocalNotificationManager.application(application, didReceiveLocalNotification: userInfo) | ||
fileprivate func getTalksFromAPI() { | ||
let request = TalksAPIRequest() | ||
Session.send(request) { [weak self](result) in | ||
switch result { | ||
case .success(let talks): | ||
try? SaveTalksRequest().save(talks: talks) | ||
NotificationCenter.default.post(name: Notification.Name(rawValue: PCJNotificationConfig.completeFetchDataNotification), object: nil) | ||
case .failure(let error): | ||
self?.showErrorAlart(with: error) | ||
} | ||
} | ||
|
||
UIApplication.shared.cancelLocalNotification(notification) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// | ||
// PCJNotificationConfig.swift | ||
// PyConJP2016 | ||
// PyConJP | ||
// | ||
// Created by Yutaro Muta on 2016/07/21. | ||
// Copyright © 2016 PyCon JP. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import Foundation | ||
|
||
enum PCJNotificationConfig { | ||
|
||
static let CompleteFetchDataNotification = "CompleteFetchDateNotification" | ||
static let completeFetchDataNotification = "CompleteFetchDateNotification" | ||
|
||
} |
23 changes: 0 additions & 23 deletions
23
PyConJP/Assets.xcassets/App/Image/Launch.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+132 KB
...nJP/Assets.xcassets/App/Image/Map/Floor/FirstFloorMap.imageset/1st-floor@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+290 KB
...nJP/Assets.xcassets/App/Image/Map/Floor/FirstFloorMap.imageset/1st-floor@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+109 KB
...nJP/Assets.xcassets/App/Image/Map/Floor/FirstFloorMap.imageset/1st-floor@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-26.5 KB
PyConJP/Assets.xcassets/App/Image/Map/Floor/FirstFloorMap.imageset/floor_1.png
Binary file not shown.
Binary file removed
BIN
-69.7 KB
PyConJP/Assets.xcassets/App/Image/Map/Floor/FirstFloorMap.imageset/floor_1@2x.png
Binary file not shown.
Binary file removed
BIN
-132 KB
PyConJP/Assets.xcassets/App/Image/Map/Floor/FirstFloorMap.imageset/floor_1@3x.png
Binary file not shown.
Binary file added
BIN
+99.9 KB
...JP/Assets.xcassets/App/Image/Map/Floor/SecondFloorMap.imageset/2nd-floor@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+222 KB
...JP/Assets.xcassets/App/Image/Map/Floor/SecondFloorMap.imageset/2nd-floor@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+81.7 KB
...JP/Assets.xcassets/App/Image/Map/Floor/SecondFloorMap.imageset/2nd-floor@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-33.3 KB
PyConJP/Assets.xcassets/App/Image/Map/Floor/SecondFloorMap.imageset/floor_2.png
Binary file not shown.
Binary file removed
BIN
-83.7 KB
PyConJP/Assets.xcassets/App/Image/Map/Floor/SecondFloorMap.imageset/floor_2@2x.png
Binary file not shown.
Binary file removed
BIN
-152 KB
PyConJP/Assets.xcassets/App/Image/Map/Floor/SecondFloorMap.imageset/floor_2@3x.png
Binary file not shown.
Binary file added
BIN
+69.5 KB
...nJP/Assets.xcassets/App/Image/Map/Floor/ThirdFloorMap.imageset/3rd-floor@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+146 KB
...nJP/Assets.xcassets/App/Image/Map/Floor/ThirdFloorMap.imageset/3rd-floor@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.2 KB
...nJP/Assets.xcassets/App/Image/Map/Floor/ThirdFloorMap.imageset/3rd-floor@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-17.4 KB
PyConJP/Assets.xcassets/App/Image/Map/Floor/ThirdFloorMap.imageset/floor_3.png
Binary file not shown.
Binary file removed
BIN
-44.1 KB
PyConJP/Assets.xcassets/App/Image/Map/Floor/ThirdFloorMap.imageset/floor_3@2x.png
Binary file not shown.
Binary file removed
BIN
-85.1 KB
PyConJP/Assets.xcassets/App/Image/Map/Floor/ThirdFloorMap.imageset/floor_3@3x.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions
52
PyConJP/Assets.xcassets/LaunchImage.launchimage/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"extent" : "full-screen", | ||
"idiom" : "iphone", | ||
"subtype" : "736h", | ||
"filename" : "Portrait 5.5.png", | ||
"minimum-system-version" : "8.0", | ||
"orientation" : "portrait", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"extent" : "full-screen", | ||
"idiom" : "iphone", | ||
"subtype" : "736h", | ||
"filename" : "Landscape 5.png", | ||
"minimum-system-version" : "8.0", | ||
"orientation" : "landscape", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"extent" : "full-screen", | ||
"idiom" : "iphone", | ||
"subtype" : "667h", | ||
"filename" : "Portrait 4.7.png", | ||
"minimum-system-version" : "8.0", | ||
"orientation" : "portrait", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "iphone", | ||
"filename" : "Portrait 3.5.png", | ||
"extent" : "full-screen", | ||
"minimum-system-version" : "7.0", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"extent" : "full-screen", | ||
"idiom" : "iphone", | ||
"subtype" : "retina4", | ||
"filename" : "Portrait 4.png", | ||
"minimum-system-version" : "7.0", | ||
"orientation" : "portrait", | ||
"scale" : "2x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
PyConJP/DataSource/Timeline/Bookmark/BookmarkListDataSource.swift
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
PyConJP/DataSource/Timeline/Conference/ConferenceListDataSource.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.