├── LocalNotification
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── TableViewController.swift
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── Notifications.swift
└── AppDelegate.swift
└── LocalNotification.xcodeproj
├── project.xcworkspace
├── contents.xcworkspacedata
└── xcshareddata
│ └── IDEWorkspaceChecks.plist
├── xcuserdata
└── debash.xcuserdatad
│ └── xcschemes
│ └── xcschememanagement.plist
└── project.pbxproj
/LocalNotification/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/LocalNotification.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LocalNotification.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/LocalNotification.xcodeproj/xcuserdata/debash.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | LocalNotification.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/LocalNotification/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 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/LocalNotification/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/LocalNotification/TableViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // TableViewController.swift
3 | // LocalNotification
4 | //
5 | // Created by Debash on 05.06.2018.
6 | // Copyright © 2018 swiftbook.ru. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class TableViewController: UITableViewController {
12 |
13 | let notifications = ["Local Notification",
14 | "Local Notification with Action",
15 | "Local Notification with Content",
16 | "Push Notification with APNs",
17 | "Push Notification with Firebase",
18 | "Push Notification with Content"]
19 |
20 | var appDelegate = UIApplication.shared.delegate as? AppDelegate
21 |
22 | override func viewDidLoad() {
23 | super.viewDidLoad()
24 |
25 | }
26 |
27 | // MARK: - Table view data source
28 |
29 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
30 | return notifications.count
31 | }
32 |
33 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
34 | let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath)
35 |
36 | cell.textLabel?.text = notifications[indexPath.row]
37 |
38 | return cell
39 | }
40 |
41 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
42 |
43 | let notificationType = notifications[indexPath.row]
44 |
45 | let alert = UIAlertController(title: "",
46 | message: "After 5 seconds " + notificationType + " will appear",
47 | preferredStyle: .alert)
48 |
49 | let okAction = UIAlertAction(title: "OK", style: .default) { (action) in
50 |
51 | self.appDelegate?.scheduleNotification(notificationType: notificationType)
52 | }
53 |
54 | alert.addAction(okAction)
55 | present(alert, animated: true, completion: nil)
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/LocalNotification/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/LocalNotification/Notifications.swift:
--------------------------------------------------------------------------------
1 | //
2 | // NotificationDelegate.swift
3 | // LocalNotification
4 | //
5 | // Created by Debash on 08.06.2018.
6 | // Copyright © 2018 swiftbook.ru. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UserNotifications
11 |
12 | class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate {
13 |
14 | let notificationCenter = UNUserNotificationCenter.current()
15 |
16 | func userRequest() {
17 |
18 | let options: UNAuthorizationOptions = [.alert, .sound, .badge]
19 |
20 | notificationCenter.requestAuthorization(options: options) {
21 | (didAllow, error) in
22 | if !didAllow {
23 | print("User has declined notifications")
24 | }
25 | }
26 | }
27 |
28 | func scheduleNotification(notificationType: String) {
29 |
30 | let content = UNMutableNotificationContent() // Содержимое уведомления
31 | let userActions = "User Actions"
32 |
33 | content.title = notificationType
34 | content.body = "This is example how to create " + notificationType
35 | content.sound = UNNotificationSound.default
36 | content.badge = 1
37 | content.categoryIdentifier = userActions
38 |
39 | let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 5, repeats: false)
40 | let identifier = "Local Notification"
41 | let request = UNNotificationRequest(identifier: identifier, content: content, trigger: trigger)
42 |
43 | notificationCenter.add(request) { (error) in
44 | if let error = error {
45 | print("Error \(error.localizedDescription)")
46 | }
47 | }
48 |
49 | let snoozeAction = UNNotificationAction(identifier: "Snooze", title: "Snooze", options: [])
50 | let deleteAction = UNNotificationAction(identifier: "Delete", title: "Delete", options: [.destructive])
51 | let category = UNNotificationCategory(identifier: userActions,
52 | actions: [snoozeAction, deleteAction],
53 | intentIdentifiers: [],
54 | options: [])
55 |
56 | notificationCenter.setNotificationCategories([category])
57 | }
58 |
59 | func userNotificationCenter(_ center: UNUserNotificationCenter,
60 | willPresent notification: UNNotification,
61 | withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
62 |
63 | completionHandler([.alert,.sound])
64 | }
65 |
66 | func userNotificationCenter(_ center: UNUserNotificationCenter,
67 | didReceive response: UNNotificationResponse,
68 | withCompletionHandler completionHandler: @escaping () -> Void) {
69 |
70 | if response.notification.request.identifier == "Local Notification" {
71 | print("Handling notifications with the Local Notification Identifier")
72 | }
73 |
74 | switch response.actionIdentifier {
75 | case UNNotificationDismissActionIdentifier:
76 | print("Dismiss Action")
77 | case UNNotificationDefaultActionIdentifier:
78 | print("Default")
79 | case "Snooze":
80 | print("Snooze")
81 | scheduleNotification(notificationType: "sdfd")
82 | case "Delete":
83 | print("Delete")
84 | default:
85 | print("Unknown action")
86 | }
87 | completionHandler()
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/LocalNotification/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/LocalNotification/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // LocalNotification
4 | //
5 | // Created by Debash on 05.06.2018.
6 | // Copyright © 2018 swiftbook.ru. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import UserNotifications
11 |
12 | @UIApplicationMain
13 | class AppDelegate: UIResponder, UIApplicationDelegate {
14 |
15 | var window: UIWindow?
16 | let notificationCenter = UNUserNotificationCenter.current()
17 |
18 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
19 |
20 | notificationCenter.delegate = self
21 |
22 | let options: UNAuthorizationOptions = [.alert, .sound, .badge]
23 |
24 | notificationCenter.requestAuthorization(options: options) {
25 | (didAllow, error) in
26 | if !didAllow {
27 | print("User has declined notifications")
28 | }
29 | }
30 |
31 | return true
32 | }
33 |
34 | func applicationWillResignActive(_ application: UIApplication) {
35 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
36 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
37 | }
38 |
39 | func applicationDidEnterBackground(_ application: UIApplication) {
40 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
41 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
42 | }
43 |
44 | func applicationWillEnterForeground(_ application: UIApplication) {
45 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
46 | }
47 |
48 | func applicationDidBecomeActive(_ application: UIApplication) {
49 |
50 | UIApplication.shared.applicationIconBadgeNumber = 0
51 | }
52 |
53 | func applicationWillTerminate(_ application: UIApplication) {
54 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
55 | }
56 |
57 |
58 | }
59 |
60 | extension AppDelegate: UNUserNotificationCenterDelegate {
61 |
62 | func userNotificationCenter(_ center: UNUserNotificationCenter,
63 | willPresent notification: UNNotification,
64 | withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
65 |
66 | completionHandler([.alert, .sound])
67 | }
68 |
69 | func userNotificationCenter(_ center: UNUserNotificationCenter,
70 | didReceive response: UNNotificationResponse,
71 | withCompletionHandler completionHandler: @escaping () -> Void) {
72 |
73 | if response.notification.request.identifier == "Local Notification" {
74 | print("Handling notifications with the Local Notification Identifier")
75 | }
76 |
77 | completionHandler()
78 | }
79 |
80 | func scheduleNotification(notificationType: String) {
81 |
82 | let content = UNMutableNotificationContent() // Содержимое уведомления
83 | let categoryIdentifire = "Delete Notification Type"
84 |
85 | content.title = notificationType
86 | content.body = "This is example how to create " + notificationType
87 | content.sound = UNNotificationSound.default
88 | content.badge = 1
89 | content.categoryIdentifier = categoryIdentifire
90 |
91 | let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 5, repeats: false)
92 | let identifier = "Local Notification"
93 | let request = UNNotificationRequest(identifier: identifier, content: content, trigger: trigger)
94 |
95 | notificationCenter.add(request) { (error) in
96 | if let error = error {
97 | print("Error \(error.localizedDescription)")
98 | }
99 | }
100 |
101 | let snoozeAction = UNNotificationAction(identifier: "Snooze", title: "Snooze", options: [])
102 | let deleteAction = UNNotificationAction(identifier: "DeleteAction", title: "Delete", options: [.destructive])
103 | let category = UNNotificationCategory(identifier: categoryIdentifire,
104 | actions: [snoozeAction, deleteAction],
105 | intentIdentifiers: [],
106 | options: [])
107 |
108 | notificationCenter.setNotificationCategories([category])
109 | }
110 | }
111 |
--------------------------------------------------------------------------------
/LocalNotification.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | A807F80020C6A20A008A9297 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A807F7FF20C6A20A008A9297 /* AppDelegate.swift */; };
11 | A807F80520C6A20A008A9297 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A807F80320C6A20A008A9297 /* Main.storyboard */; };
12 | A807F80720C6A217008A9297 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A807F80620C6A217008A9297 /* Assets.xcassets */; };
13 | A807F80A20C6A217008A9297 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A807F80820C6A217008A9297 /* LaunchScreen.storyboard */; };
14 | A807F81220C6A36A008A9297 /* TableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A807F81120C6A36A008A9297 /* TableViewController.swift */; };
15 | /* End PBXBuildFile section */
16 |
17 | /* Begin PBXFileReference section */
18 | A807F7FC20C6A20A008A9297 /* LocalNotification.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LocalNotification.app; sourceTree = BUILT_PRODUCTS_DIR; };
19 | A807F7FF20C6A20A008A9297 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
20 | A807F80420C6A20A008A9297 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
21 | A807F80620C6A217008A9297 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
22 | A807F80920C6A217008A9297 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
23 | A807F80B20C6A217008A9297 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
24 | A807F81120C6A36A008A9297 /* TableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TableViewController.swift; sourceTree = ""; };
25 | /* End PBXFileReference section */
26 |
27 | /* Begin PBXFrameworksBuildPhase section */
28 | A807F7F920C6A20A008A9297 /* Frameworks */ = {
29 | isa = PBXFrameworksBuildPhase;
30 | buildActionMask = 2147483647;
31 | files = (
32 | );
33 | runOnlyForDeploymentPostprocessing = 0;
34 | };
35 | /* End PBXFrameworksBuildPhase section */
36 |
37 | /* Begin PBXGroup section */
38 | A807F7F320C6A20A008A9297 = {
39 | isa = PBXGroup;
40 | children = (
41 | A807F7FE20C6A20A008A9297 /* LocalNotification */,
42 | A807F7FD20C6A20A008A9297 /* Products */,
43 | );
44 | sourceTree = "";
45 | };
46 | A807F7FD20C6A20A008A9297 /* Products */ = {
47 | isa = PBXGroup;
48 | children = (
49 | A807F7FC20C6A20A008A9297 /* LocalNotification.app */,
50 | );
51 | name = Products;
52 | sourceTree = "";
53 | };
54 | A807F7FE20C6A20A008A9297 /* LocalNotification */ = {
55 | isa = PBXGroup;
56 | children = (
57 | A807F7FF20C6A20A008A9297 /* AppDelegate.swift */,
58 | A807F81120C6A36A008A9297 /* TableViewController.swift */,
59 | A807F80320C6A20A008A9297 /* Main.storyboard */,
60 | A807F80620C6A217008A9297 /* Assets.xcassets */,
61 | A807F80820C6A217008A9297 /* LaunchScreen.storyboard */,
62 | A807F80B20C6A217008A9297 /* Info.plist */,
63 | );
64 | path = LocalNotification;
65 | sourceTree = "";
66 | };
67 | /* End PBXGroup section */
68 |
69 | /* Begin PBXNativeTarget section */
70 | A807F7FB20C6A20A008A9297 /* LocalNotification */ = {
71 | isa = PBXNativeTarget;
72 | buildConfigurationList = A807F80E20C6A217008A9297 /* Build configuration list for PBXNativeTarget "LocalNotification" */;
73 | buildPhases = (
74 | A807F7F820C6A20A008A9297 /* Sources */,
75 | A807F7F920C6A20A008A9297 /* Frameworks */,
76 | A807F7FA20C6A20A008A9297 /* Resources */,
77 | );
78 | buildRules = (
79 | );
80 | dependencies = (
81 | );
82 | name = LocalNotification;
83 | productName = LocalNotification;
84 | productReference = A807F7FC20C6A20A008A9297 /* LocalNotification.app */;
85 | productType = "com.apple.product-type.application";
86 | };
87 | /* End PBXNativeTarget section */
88 |
89 | /* Begin PBXProject section */
90 | A807F7F420C6A20A008A9297 /* Project object */ = {
91 | isa = PBXProject;
92 | attributes = {
93 | LastSwiftUpdateCheck = 1000;
94 | LastUpgradeCheck = 1000;
95 | ORGANIZATIONNAME = swiftbook.ru;
96 | TargetAttributes = {
97 | A807F7FB20C6A20A008A9297 = {
98 | CreatedOnToolsVersion = 10.0;
99 | };
100 | };
101 | };
102 | buildConfigurationList = A807F7F720C6A20A008A9297 /* Build configuration list for PBXProject "LocalNotification" */;
103 | compatibilityVersion = "Xcode 9.3";
104 | developmentRegion = en;
105 | hasScannedForEncodings = 0;
106 | knownRegions = (
107 | en,
108 | Base,
109 | );
110 | mainGroup = A807F7F320C6A20A008A9297;
111 | productRefGroup = A807F7FD20C6A20A008A9297 /* Products */;
112 | projectDirPath = "";
113 | projectRoot = "";
114 | targets = (
115 | A807F7FB20C6A20A008A9297 /* LocalNotification */,
116 | );
117 | };
118 | /* End PBXProject section */
119 |
120 | /* Begin PBXResourcesBuildPhase section */
121 | A807F7FA20C6A20A008A9297 /* Resources */ = {
122 | isa = PBXResourcesBuildPhase;
123 | buildActionMask = 2147483647;
124 | files = (
125 | A807F80A20C6A217008A9297 /* LaunchScreen.storyboard in Resources */,
126 | A807F80720C6A217008A9297 /* Assets.xcassets in Resources */,
127 | A807F80520C6A20A008A9297 /* Main.storyboard in Resources */,
128 | );
129 | runOnlyForDeploymentPostprocessing = 0;
130 | };
131 | /* End PBXResourcesBuildPhase section */
132 |
133 | /* Begin PBXSourcesBuildPhase section */
134 | A807F7F820C6A20A008A9297 /* Sources */ = {
135 | isa = PBXSourcesBuildPhase;
136 | buildActionMask = 2147483647;
137 | files = (
138 | A807F81220C6A36A008A9297 /* TableViewController.swift in Sources */,
139 | A807F80020C6A20A008A9297 /* AppDelegate.swift in Sources */,
140 | );
141 | runOnlyForDeploymentPostprocessing = 0;
142 | };
143 | /* End PBXSourcesBuildPhase section */
144 |
145 | /* Begin PBXVariantGroup section */
146 | A807F80320C6A20A008A9297 /* Main.storyboard */ = {
147 | isa = PBXVariantGroup;
148 | children = (
149 | A807F80420C6A20A008A9297 /* Base */,
150 | );
151 | name = Main.storyboard;
152 | sourceTree = "";
153 | };
154 | A807F80820C6A217008A9297 /* LaunchScreen.storyboard */ = {
155 | isa = PBXVariantGroup;
156 | children = (
157 | A807F80920C6A217008A9297 /* Base */,
158 | );
159 | name = LaunchScreen.storyboard;
160 | sourceTree = "";
161 | };
162 | /* End PBXVariantGroup section */
163 |
164 | /* Begin XCBuildConfiguration section */
165 | A807F80C20C6A217008A9297 /* Debug */ = {
166 | isa = XCBuildConfiguration;
167 | buildSettings = {
168 | ALWAYS_SEARCH_USER_PATHS = NO;
169 | CLANG_ANALYZER_NONNULL = YES;
170 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
171 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
172 | CLANG_CXX_LIBRARY = "libc++";
173 | CLANG_ENABLE_MODULES = YES;
174 | CLANG_ENABLE_OBJC_ARC = YES;
175 | CLANG_ENABLE_OBJC_WEAK = YES;
176 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
177 | CLANG_WARN_BOOL_CONVERSION = YES;
178 | CLANG_WARN_COMMA = YES;
179 | CLANG_WARN_CONSTANT_CONVERSION = YES;
180 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
181 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
182 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
183 | CLANG_WARN_EMPTY_BODY = YES;
184 | CLANG_WARN_ENUM_CONVERSION = YES;
185 | CLANG_WARN_INFINITE_RECURSION = YES;
186 | CLANG_WARN_INT_CONVERSION = YES;
187 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
188 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
189 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
190 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
191 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
192 | CLANG_WARN_STRICT_PROTOTYPES = YES;
193 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
194 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
195 | CLANG_WARN_UNREACHABLE_CODE = YES;
196 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
197 | CODE_SIGN_IDENTITY = "iPhone Developer";
198 | COPY_PHASE_STRIP = NO;
199 | DEBUG_INFORMATION_FORMAT = dwarf;
200 | ENABLE_STRICT_OBJC_MSGSEND = YES;
201 | ENABLE_TESTABILITY = YES;
202 | GCC_C_LANGUAGE_STANDARD = gnu11;
203 | GCC_DYNAMIC_NO_PIC = NO;
204 | GCC_NO_COMMON_BLOCKS = YES;
205 | GCC_OPTIMIZATION_LEVEL = 0;
206 | GCC_PREPROCESSOR_DEFINITIONS = (
207 | "DEBUG=1",
208 | "$(inherited)",
209 | );
210 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
211 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
212 | GCC_WARN_UNDECLARED_SELECTOR = YES;
213 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
214 | GCC_WARN_UNUSED_FUNCTION = YES;
215 | GCC_WARN_UNUSED_VARIABLE = YES;
216 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
217 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
218 | ONLY_ACTIVE_ARCH = YES;
219 | SDKROOT = iphoneos;
220 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
221 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
222 | };
223 | name = Debug;
224 | };
225 | A807F80D20C6A217008A9297 /* Release */ = {
226 | isa = XCBuildConfiguration;
227 | buildSettings = {
228 | ALWAYS_SEARCH_USER_PATHS = NO;
229 | CLANG_ANALYZER_NONNULL = YES;
230 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
231 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
232 | CLANG_CXX_LIBRARY = "libc++";
233 | CLANG_ENABLE_MODULES = YES;
234 | CLANG_ENABLE_OBJC_ARC = YES;
235 | CLANG_ENABLE_OBJC_WEAK = YES;
236 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
237 | CLANG_WARN_BOOL_CONVERSION = YES;
238 | CLANG_WARN_COMMA = YES;
239 | CLANG_WARN_CONSTANT_CONVERSION = YES;
240 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
241 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
242 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
243 | CLANG_WARN_EMPTY_BODY = YES;
244 | CLANG_WARN_ENUM_CONVERSION = YES;
245 | CLANG_WARN_INFINITE_RECURSION = YES;
246 | CLANG_WARN_INT_CONVERSION = YES;
247 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
248 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
249 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
250 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
251 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
252 | CLANG_WARN_STRICT_PROTOTYPES = YES;
253 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
254 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
255 | CLANG_WARN_UNREACHABLE_CODE = YES;
256 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
257 | CODE_SIGN_IDENTITY = "iPhone Developer";
258 | COPY_PHASE_STRIP = NO;
259 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
260 | ENABLE_NS_ASSERTIONS = NO;
261 | ENABLE_STRICT_OBJC_MSGSEND = YES;
262 | GCC_C_LANGUAGE_STANDARD = gnu11;
263 | GCC_NO_COMMON_BLOCKS = YES;
264 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
265 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
266 | GCC_WARN_UNDECLARED_SELECTOR = YES;
267 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
268 | GCC_WARN_UNUSED_FUNCTION = YES;
269 | GCC_WARN_UNUSED_VARIABLE = YES;
270 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
271 | MTL_ENABLE_DEBUG_INFO = NO;
272 | SDKROOT = iphoneos;
273 | SWIFT_COMPILATION_MODE = wholemodule;
274 | SWIFT_OPTIMIZATION_LEVEL = "-O";
275 | VALIDATE_PRODUCT = YES;
276 | };
277 | name = Release;
278 | };
279 | A807F80F20C6A217008A9297 /* Debug */ = {
280 | isa = XCBuildConfiguration;
281 | buildSettings = {
282 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
283 | CODE_SIGN_STYLE = Automatic;
284 | DEVELOPMENT_TEAM = GBTTU32HS2;
285 | INFOPLIST_FILE = LocalNotification/Info.plist;
286 | LD_RUNPATH_SEARCH_PATHS = (
287 | "$(inherited)",
288 | "@executable_path/Frameworks",
289 | );
290 | PRODUCT_BUNDLE_IDENTIFIER = ru.swiftbook.LocalNotification;
291 | PRODUCT_NAME = "$(TARGET_NAME)";
292 | SWIFT_VERSION = 4.2;
293 | TARGETED_DEVICE_FAMILY = "1,2";
294 | };
295 | name = Debug;
296 | };
297 | A807F81020C6A217008A9297 /* Release */ = {
298 | isa = XCBuildConfiguration;
299 | buildSettings = {
300 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
301 | CODE_SIGN_STYLE = Automatic;
302 | DEVELOPMENT_TEAM = GBTTU32HS2;
303 | INFOPLIST_FILE = LocalNotification/Info.plist;
304 | LD_RUNPATH_SEARCH_PATHS = (
305 | "$(inherited)",
306 | "@executable_path/Frameworks",
307 | );
308 | PRODUCT_BUNDLE_IDENTIFIER = ru.swiftbook.LocalNotification;
309 | PRODUCT_NAME = "$(TARGET_NAME)";
310 | SWIFT_VERSION = 4.2;
311 | TARGETED_DEVICE_FAMILY = "1,2";
312 | };
313 | name = Release;
314 | };
315 | /* End XCBuildConfiguration section */
316 |
317 | /* Begin XCConfigurationList section */
318 | A807F7F720C6A20A008A9297 /* Build configuration list for PBXProject "LocalNotification" */ = {
319 | isa = XCConfigurationList;
320 | buildConfigurations = (
321 | A807F80C20C6A217008A9297 /* Debug */,
322 | A807F80D20C6A217008A9297 /* Release */,
323 | );
324 | defaultConfigurationIsVisible = 0;
325 | defaultConfigurationName = Release;
326 | };
327 | A807F80E20C6A217008A9297 /* Build configuration list for PBXNativeTarget "LocalNotification" */ = {
328 | isa = XCConfigurationList;
329 | buildConfigurations = (
330 | A807F80F20C6A217008A9297 /* Debug */,
331 | A807F81020C6A217008A9297 /* Release */,
332 | );
333 | defaultConfigurationIsVisible = 0;
334 | defaultConfigurationName = Release;
335 | };
336 | /* End XCConfigurationList section */
337 | };
338 | rootObject = A807F7F420C6A20A008A9297 /* Project object */;
339 | }
340 |
--------------------------------------------------------------------------------