Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
327 changes: 115 additions & 212 deletions LocalNotificationHelper.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "466ECD871D0F904C00C828A0"
BuildableName = "LocalNotificationHelper.framework"
BlueprintName = "LocalNotificationHelper"
ReferencedContainer = "container:LocalNotificationHelper.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "466ECD871D0F904C00C828A0"
BuildableName = "LocalNotificationHelper.framework"
BlueprintName = "LocalNotificationHelper"
ReferencedContainer = "container:LocalNotificationHelper.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "466ECD871D0F904C00C828A0"
BuildableName = "LocalNotificationHelper.framework"
BlueprintName = "LocalNotificationHelper"
ReferencedContainer = "container:LocalNotificationHelper.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
6 changes: 3 additions & 3 deletions LocalNotificationHelper/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// Override point for customization after application launch.


let actionOne = LocalNotificationHelper.sharedInstance().createUserNotificationActionButton(identifier: ACTION_ONE_IDENTIFIER, title: "Like")
let actionTwo = LocalNotificationHelper.sharedInstance().createUserNotificationActionButton(identifier: ACTION_TWO_IDENTIFIER, title: "Dislike")
let actionOne = LocalNotificationHelper.createUserNotificationActionButton(identifier: ACTION_ONE_IDENTIFIER, title: "Like")
let actionTwo = LocalNotificationHelper.createUserNotificationActionButton(identifier: ACTION_TWO_IDENTIFIER, title: "Dislike")

let actions = [actionOne,actionTwo]

LocalNotificationHelper.sharedInstance().registerUserNotificationWithActionButtons(actions: actions)
LocalNotificationHelper.registerUserNotificationWithActionButtons(actions: actions)

return true
}
Expand Down
29 changes: 4 additions & 25 deletions LocalNotificationHelper/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,14 @@
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
19 changes: 19 additions & 0 deletions LocalNotificationHelper/LocalNotificationHelper.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// LocalNotificationHelper.h
// LocalNotificationHelper
//
// Created by Andrew Breckenridge on 6/13/16.
// Copyright © 2016 Ahmet Keskin. All rights reserved.
//

#import <UIKit/UIKit.h>

//! Project version number for LocalNotificationHelper.
FOUNDATION_EXPORT double LocalNotificationHelperVersionNumber;

//! Project version string for LocalNotificationHelper.
FOUNDATION_EXPORT const unsigned char LocalNotificationHelperVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <LocalNotificationHelper/PublicHeader.h>


4 changes: 2 additions & 2 deletions LocalNotificationHelper/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class ViewController: UIViewController {
}

@IBAction func sendNotificationTapped(sender: AnyObject) {

let userInfo = ["url" : "www.mobiwise.co"]
LocalNotificationHelper.sharedInstance().scheduleNotificationWithKey(key: "mobiwise", title: "mobiwise", message: "Lets take a break", seconds: 5, userInfo: userInfo as [NSObject : AnyObject]?)
LocalNotificationHelper.scheduleNotificationWithKey(key: "mobiwise", title: "mobiwise", message: "Lets take a break", seconds: 5, userInfo: userInfo as [NSObject : AnyObject]?)

}

Expand Down
24 changes: 0 additions & 24 deletions LocalNotificationHelperTests/Info.plist

This file was deleted.

36 changes: 0 additions & 36 deletions LocalNotificationHelperTests/LocalNotificationHelperTests.swift

This file was deleted.

24 changes: 0 additions & 24 deletions LocalNotificationHelperUITests/Info.plist

This file was deleted.

This file was deleted.

Loading