Skip to content

Commit

Permalink
fix(Version): change local notification for version update strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
tripleCC committed Jan 26, 2016
1 parent 4828fda commit 6e510a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions GanHuo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -688,15 +688,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_ENTITLEMENTS = GanHuo/GanHuo.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
ENABLE_BITCODE = YES;
INFOPLIST_FILE = "$(SRCROOT)/GanHuo/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.triplecc.WKCC;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE = "7a9dd7f1-5016-4638-9184-702ce833afbf";
SWIFT_OBJC_BRIDGING_HEADER = "GanHuo/Other/WKCCSwift-Bridging-Header.h";
};
name = Debug;
Expand All @@ -708,15 +708,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_ENTITLEMENTS = GanHuo/GanHuo.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Ruiwang Song (7DG5WQWWY9)";
ENABLE_BITCODE = YES;
INFOPLIST_FILE = "$(SRCROOT)/GanHuo/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.triplecc.WKCC;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE = "7a9dd7f1-5016-4638-9184-702ce833afbf";
SWIFT_OBJC_BRIDGING_HEADER = "GanHuo/Other/WKCCSwift-Bridging-Header.h";
};
name = Release;
Expand Down
4 changes: 2 additions & 2 deletions GanHuo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>1.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down Expand Up @@ -53,7 +53,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>4</string>
<string>5</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>pocket-oauth-v1</string>
Expand Down
3 changes: 1 addition & 2 deletions GanHuo/Util/TPCVersionUtil.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class TPCVersionUtil {
shouldUpdate = versionInfo?.version != curVesion
let nextVersion = TPCStorageUtil.objectForKey(TPCNextVersionKey) as? String
debugPrint(curVesion, nextVersion, versionInfo?.version)
//
if versionInfo?.version != curVesion && versionInfo?.version != nil {
if versionInfo?.version >= curVesion && versionInfo?.version != nil {
shouldUpdate = true
// 每个版本更新,都通知一次
if nextVersion != versionInfo?.version {
Expand Down

0 comments on commit 6e510a9

Please sign in to comment.