Skip to content

Commit ffef6a1

Browse files
committed
pod update
1 parent ee70df0 commit ffef6a1

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

Tinylog/Application/TLIAppDelegate.swift

+17-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ import Mixpanel
1313
import Fabric
1414
import Crashlytics
1515

16+
/// TLIAppDelegate Application Logic.
1617
@UIApplicationMain
1718
class TLIAppDelegate: UIResponder, UIApplicationDelegate {
1819

20+
/**
21+
Identifier for 3d Touch.
22+
23+
- CreateNewList: Create a new list.
24+
*/
1925
enum ShortcutIdentifier: String {
20-
case CreateNewList
2126

27+
case CreateNewList
2228
init?(fullIdentifier: String) {
2329
guard let shortIdentifier = fullIdentifier.componentsSeparatedByString(".").last else {
2430
return nil
@@ -27,9 +33,17 @@ class TLIAppDelegate: UIResponder, UIApplicationDelegate {
2733
}
2834
}
2935

36+
/// The instance of the UIWindow.
3037
var window: UIWindow?
38+
39+
/// Access globally network status.
3140
var networkMode:String?
3241

42+
/**
43+
Singleton of TLIAppDelegate
44+
45+
- Returns: TLIAppDelegate instance.
46+
*/
3347
class func sharedAppDelegate()->TLIAppDelegate {
3448
return UIApplication.sharedApplication().delegate as! TLIAppDelegate
3549
}
@@ -38,22 +52,21 @@ class TLIAppDelegate: UIResponder, UIApplicationDelegate {
3852
func application(application: UIApplication, performActionForShortcutItem shortcutItem: UIApplicationShortcutItem,
3953
completionHandler: (Bool) -> Void) {
4054

41-
completionHandler(handleShortcut(shortcutItem))
55+
completionHandler(handleShortcut(shortcutItem))
4256
}
4357

4458
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
4559

4660
if #available(iOS 9.0, *) {
4761
if let shortcutItem = launchOptions?[UIApplicationLaunchOptionsShortcutItemKey] as? UIApplicationShortcutItem {
48-
print(shortcutItem)
4962
handleShortcut(shortcutItem)
5063
return false
5164
}
5265
} else {
5366
//print("quick actions not supported")
5467
}
5568

56-
//Register defaults
69+
// Register defaults
5770

5871
if #available(iOS 9, *) {
5972
let standardDefaults = NSUserDefaults.standardUserDefaults()
@@ -74,9 +87,7 @@ class TLIAppDelegate: UIResponder, UIApplicationDelegate {
7487
}
7588

7689
do {
77-
7890
try NSFileManager.defaultManager().createDirectoryAtURL(TLICDController.sharedInstance.storeDirectoryURL!, withIntermediateDirectories: true, attributes: nil)
79-
8091
} catch {
8192
fatalError("Cannot create directory \(error)")
8293
}

Tinylog/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>17</string>
22+
<string>18</string>
2323
<key>Fabric</key>
2424
<dict>
2525
<key>APIKey</key>

0 commit comments

Comments
 (0)