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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ profile
Pods/*
Podfile.lock
.DS_Store
.bash_profile
.bash_profile
10 changes: 5 additions & 5 deletions Projects/iOS < 6/PSUpdateApp.podspec → PSUpdateApp.podspec
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Pod::Spec.new do |s|
s.name = 'PSUpdateApp'
s.version = '1.0.9'
s.version = '3.1'
s.license = 'MIT'
s.summary = 'PSUpdateApp is a simple method to notify users that a new version of your iOS app is available.'
s.homepage = 'https://github.com/danielebogo/PSUpdateApp'
s.author = { 'Daniele Bogo' => '[email protected]' }
s.source = { :git => 'https://github.com/danielebogo/PSUpdateApp.git', :tag => '1.0.9' }
s.platform = :ios, '5.0'
s.source = { :git => 'https://github.com/danielebogo/PSUpdateApp.git', :tag => '3.0' }
s.platform = :ios, '8.0'
s.requires_arc = true

s.source_files = 'PSUpdateApp/*.{h,m}'
s.resource = 'PSUpdateApp/Localizations/**'

s.dependency 'AFNetworking','~>1.3.2'
end
s.dependency 'AFNetworking', '~> 3.0'
end

Large diffs are not rendered by default.

90 changes: 0 additions & 90 deletions PSUpdateApp/CWLSynthesizeSingleton.h

This file was deleted.

53 changes: 53 additions & 0 deletions PSUpdateApp/Images.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.5</string>
<string>3.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.0.5</string>
<string>300</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
Expand Down
20 changes: 10 additions & 10 deletions PSUpdateApp/PSUpdateApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
//

#import <Foundation/Foundation.h>
#import "CWLSynthesizeSingleton.h"

typedef void(^PSUpdateAppCompletionBlock)(NSError *error, BOOL success, id JSON);
typedef BOOL(^PSUpdateAppCompletionBlock)(NSError *error, BOOL updateAvailable, BOOL skip, id JSON);

typedef enum {
DefaultStrategy = 0,
Expand All @@ -19,16 +18,17 @@ typedef enum {

@interface PSUpdateApp : NSObject

CWL_DECLARE_SINGLETON_FOR_CLASS(PSUpdateApp)
@property (nonatomic, strong) NSString *appID, *appStoreLocation, *appName, *route, *updatePageUrl;
@property (nonatomic, strong) NSString *alertTitle, *alertDefaultMessage, *alertForceMessage, *alertRemindMessage;
@property (nonatomic, assign) UpdateStrategy strategy;
@property (nonatomic, assign) NSUInteger daysUntilPrompt;
@property (nonatomic, strong) NSDate *remindDate;

@property (nonatomic) NSString *appID, *appStoreLocation, *appName, *route, *updatePageUrl;
@property (nonatomic) UpdateStrategy strategy;
@property (nonatomic) int daysUntilPrompt;
@property (nonatomic) NSDate *remindDate;
+ (PSUpdateApp *) manager;

+ (id) startWithRoute:(NSString *)route;
+ (id) startWithAppID:(NSString *)appId;
+ (id) startWithAppID:(NSString *)appId store:(NSString *)store;
- (void) startWithRoute:(NSString *)route;
- (void) startWithAppID:(NSString *)appId;
- (void) startWithAppID:(NSString *)appId store:(NSString *)store;

- (void) detectAppVersion:(PSUpdateAppCompletionBlock)completionBlock;
- (void) setURLAdHoc:(NSString *)url;
Expand Down
Loading