Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick O'Malley
committed
Feb 8, 2017
1 parent
9b3695e
commit 0250b40
Showing
9 changed files
with
433 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ld/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
project.xcworkspace | ||
!default.xcworkspace | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
*.xcscmblueprint | ||
|
||
# CocoaPods | ||
# | ||
# We recommend against adding the Pods directory to your .gitignore. However | ||
# you should judge for yourself, the pros and cons are mentioned at: | ||
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control | ||
# | ||
Pods/ | ||
Podfile.lock |
Submodule Example
added at
4c5335
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,19 @@ | ||
Copyright (c) 2016 altyus <alctyus@gmail.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. |
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,31 @@ | ||
# | ||
# Be sure to run `pod lib lint MSOfflineRequestManager.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 = 'MSOfflineRequestManager' | ||
s.version = '1.0.0' | ||
s.summary = 'A framework for managing network requests to ensure that they are sent even if the device is online or the app closes' | ||
|
||
# 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 = 'A framework for managing network requests to ensure that they are sent even if the device is online or the app closes' | ||
|
||
s.homepage = 'https://github.com/makingspace/MSOfflineRequestManager' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.author = { 'pomalley' => 'pomalley@makespace.com' } | ||
s.source = { :git => 'https://github.com/makingspace/MSOfflineRequestManager.git', :tag => s.version.to_s } | ||
|
||
s.ios.deployment_target = '9.0' | ||
|
||
s.source_files = 'MSOfflineRequestManager/Classes/**/*' | ||
s.dependency 'Alamofire' | ||
end |
Binary file not shown.
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,22 @@ | ||
// | ||
// OfflineRequest.h | ||
// MSOfflineRequestManager-Example | ||
// | ||
// Created by Patrick O'Malley on 2/6/17. | ||
// Copyright © 2017 MakeSpace. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@protocol OfflineRequestDelegate; | ||
|
||
@interface OfflineRequest : NSObject | ||
|
||
@property (nonatomic, assign, nullable) id<OfflineRequestDelegate> delegate; | ||
|
||
- (nonnull instancetype)initWithDictionary:(NSDictionary<NSString *, id> * _Nonnull)dictionary; | ||
- (NSDictionary<NSString *, id> * _Nullable)dictionaryRepresentation; | ||
- (void)performRequestWithCompletion:(void (^ _Nonnull)(NSError * _Nullable))completion; | ||
- (BOOL)shouldAttemptResubmissionForError:(NSError * _Nonnull)error; | ||
|
||
@end |
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,30 @@ | ||
// | ||
// OfflineRequest.m | ||
// MSOfflineRequestManager-Example | ||
// | ||
// Created by Patrick O'Malley on 2/6/17. | ||
// Copyright © 2017 MakeSpace. All rights reserved. | ||
// | ||
|
||
#import "OfflineRequest.h" | ||
|
||
@implementation OfflineRequest | ||
|
||
- (nonnull instancetype)initWithDictionary:(NSDictionary<NSString *, id> * _Nonnull)dictionary { | ||
self = [super init]; | ||
return self; | ||
} | ||
|
||
- (NSDictionary<NSString *, id> * _Nullable)dictionaryRepresentation { | ||
return nil; | ||
} | ||
|
||
- (void)performRequestWithCompletion:(void (^ _Nonnull)(NSError * _Nullable))completion { | ||
completion(nil); | ||
} | ||
|
||
- (BOOL)shouldAttemptResubmissionForError:(NSError * _Nonnull)error { | ||
return false; | ||
} | ||
|
||
@end |
Oops, something went wrong.