Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchimboldiMao committed Apr 12, 2017
1 parent bbda1b5 commit a4f00e0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion MJWUpdate.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "MJWUpdate"
spec.version = "1.0.1"
spec.version = "1.1.0"
spec.summary = "It's a framework for check your app's latest version in App Store, and alert user to update."
spec.homepage = "https://github.com/ArchimboldiMao/MJWUpdate"
spec.license = { type: 'MIT', file: 'LICENSE' }
Expand Down
10 changes: 2 additions & 8 deletions MJWUpdate.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/usr/lib",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "-Objc";
PRODUCT_BUNDLE_IDENTIFIER = me.archimboldi.MJWUpdate;
Expand All @@ -489,10 +486,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/usr/lib",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-Objc";
PRODUCT_BUNDLE_IDENTIFIER = me.archimboldi.MJWUpdate;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
2 changes: 1 addition & 1 deletion MJWUpdate/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.1</string>
<string>1.1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
3 changes: 0 additions & 3 deletions MJWUpdate/MJWUpdate.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,12 @@ - (void)showUpdateAlerView:(UIViewController *)rootViewController appStoreURL:(N
// 强制更新,跳出 App 时需要退出当前 App, 防止用户连按 Home 键/左上角返回,回到 App 时会跳过提醒框继续使用旧版本
exit(0);
}
} else {
[alertController dismissViewControllerAnimated:YES completion:nil];
}
}];
if (!haveToUpdateToNewVersion) {
NSLog(@"choose to update or ignore");
UIAlertAction *cancle = [UIAlertAction actionWithTitle:_ignoreButtonTitle style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
block();
[alertController dismissViewControllerAnimated:YES completion:nil];
}];
[alertController addAction:cancle];
}
Expand Down

0 comments on commit a4f00e0

Please sign in to comment.