Skip to content

Commit

Permalink
Adding cocoapod compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rico237 committed Sep 13, 2017
1 parent 36a53aa commit 27f0c58
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 10 deletions.
40 changes: 40 additions & 0 deletions CRNotifications.podspec
@@ -0,0 +1,40 @@
#
# Be sure to run `pod lib lint CRNotifications.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name = 'CRNotifications'
s.version = '1.0.4'
s.summary = 'Custom in-app notifications.'

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!

s.description = <<-DESC
Custom in-app notifications.
DESC

s.homepage = 'https://github.com/dkcas11/CRNotifications'
s.screenshots = 'https://camo.githubusercontent.com/8bb3b0d4e643c0adb2a048814c5319bf8a6aa413/687474703a2f2f693833312e70686f746f6275636b65742e636f6d2f616c62756d732f7a7a3233372f646b63617331312f737563636573732e6a7067', 'https://camo.githubusercontent.com/4b560687cb85b5a0dbc7945c4f15bf79b19db730/687474703a2f2f693833312e70686f746f6275636b65742e636f6d2f616c62756d732f7a7a3233372f646b63617331312f6572726f722e6a7067', 'https://camo.githubusercontent.com/5d60f3db58199f8fc5909e341c0233b38343e2aa/687474703a2f2f693833312e70686f746f6275636b65742e636f6d2f616c62756d732f7a7a3233372f646b63617331312f696e666f2e6a7067'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Casper Riboe & Herrick Wolber as contributor' => 'wolbereric@yahoo.fr' }
s.source = { :git => 'https://github.com/dkcas11/CRNotifications.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/dkcas11'

s.ios.deployment_target = '9.0'

s.source_files = 'CRNotifications/Classes/**/*'

s.resource_bundles = {
'CRNotifications' => ['CRNotifications/Assets/*.xcassets']
}

s.frameworks = 'UIKit'
end
Binary file added CRNotifications/.DS_Store
Binary file not shown.
Binary file added CRNotifications/Assets/.DS_Store
Binary file not shown.
Binary file not shown.
10 changes: 6 additions & 4 deletions CRNotificationsExample.xcodeproj/project.pbxproj
Expand Up @@ -7,8 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
AF4AA2CA1E831B6500BE9043 /* CRNotificationsMedia.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AF4AA2C91E831B6500BE9043 /* CRNotificationsMedia.xcassets */; };
AF3C46C71F0EB36300CA7DE8 /* PushViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF3C46C61F0EB36300CA7DE8 /* PushViewController.swift */; };
AF4AA2CA1E831B6500BE9043 /* CRNotificationsMedia.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AF4AA2C91E831B6500BE9043 /* CRNotificationsMedia.xcassets */; };
AF9017931E817E2600F4D8F8 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF9017921E817E2600F4D8F8 /* AppDelegate.swift */; };
AF9017951E817E2600F4D8F8 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AF9017941E817E2600F4D8F8 /* ViewController.swift */; };
AF9017981E817E2600F4D8F8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AF9017961E817E2600F4D8F8 /* Main.storyboard */; };
Expand Down Expand Up @@ -135,7 +135,7 @@
TargetAttributes = {
AF90178E1E817E2600F4D8F8 = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = SG4MLU2P43;
DevelopmentTeam = X776XA45RM;
ProvisioningStyle = Automatic;
};
};
Expand Down Expand Up @@ -303,8 +303,9 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = SG4MLU2P43;
DEVELOPMENT_TEAM = X776XA45RM;
INFOPLIST_FILE = CRNotificationsExample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.casperriboe.CRNotificationsExample;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -316,8 +317,9 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = SG4MLU2P43;
DEVELOPMENT_TEAM = X776XA45RM;
INFOPLIST_FILE = CRNotificationsExample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.casperriboe.CRNotificationsExample;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Binary file added CRNotificationsExample/.DS_Store
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion CRNotificationsExample/Info.plist
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.0.4</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
2 changes: 1 addition & 1 deletion CRNotificationsExample/PushViewController.swift
Expand Up @@ -7,7 +7,7 @@
//

import UIKit
import CRNotifications
//import CRNotifications

class PushViewController: UIViewController {

Expand Down
9 changes: 9 additions & 0 deletions LICENSE
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) <2017> <Casper Riboe casper2602@hotmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41 changes: 37 additions & 4 deletions README.md
Expand Up @@ -2,17 +2,50 @@
CRNotifications are custom in-app notifications with 3 types of layouts. The notifications will animate in and out. They will hide when they are clicked on or with an automatic dismissal.

### Screenshots
![alt text](http://i831.photobucket.com/albums/zz237/dkcas11/success.jpg "Success")
![alt text](http://i831.photobucket.com/albums/zz237/dkcas11/error.jpg "Error")
![alt text](http://i831.photobucket.com/albums/zz237/dkcas11/info.jpg "Info")
-------


##### Notifications types

| Success | Error |Info |
| --- | --- | --- |
| ![alt text](http://i831.photobucket.com/albums/zz237/dkcas11/success.jpg "Success") | ![alt text](http://i831.photobucket.com/albums/zz237/dkcas11/error.jpg "Error") | ![alt text](http://i831.photobucket.com/albums/zz237/dkcas11/info.jpg "Info")|



### How to use
Call ``CRNotifications.showNotification`` with a title, message, notification type and a time for how long the notification should appear. Should the notification not disappear automatically use a time of ```0```.
-------

Call ``CRNotifications.showNotification`` with a title, message, notification type and a time for how long the notification should appear. Should the notification not disappear automatically use a time of ``0``.

Notification types are
```.success```
```.error```
```.info```

### Installation
-------

#### [Cocoapods install](https://cocoapods.org/?q=CRNotifications "Visit website")

```
pod 'CRNotifications'
```
#### Manual install
Drag the *CRNotifications* folder into your project and you are good to go.

### Author & Contributors
-------

**Casper Riboe**
> Facebook : [Casper Riboe](http://facebook.com/dkcas11)
> Twitter : [dkcas11](http://twitter.com/dkcas11)
> Mail : [casper2602@hotmail.com](mailto:casper260@hotmail.com)
**Herrick Wolber**
> Twitter : [estar2005](http://twitter.com/estar2005)
> Github : [Rico237](https://github.com/rico237)
> Mail : [wolbereric@yahoo.fr](mailto:wolbereric@yahoo.fr)


0 comments on commit 27f0c58

Please sign in to comment.