CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Sep 2017 |
Maintained by LarryEmerson.
[AutoBuildIpaAndUploadToPgyer](https://github.com/LarryEmerson/AutoBuildIpaAndUploadToPgyer)是自动打包的shell脚本,
可以添加工程路径,添加蒲公英账号,打包后自动上传到指定的蒲公英账号。
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"
use_frameworks!
target 'xxx' do
pod 'LEUpdateFromPgyer'
end
APPDelegate中 添加蒲公英账号apiKey,uKey,password及更新弹窗的提示标题,详细说明,是否允许永久忽略
[[LEUpdateFromPgyer sharedInstance] leAddPgySettings:
@[
[[LEPgySettings alloc] initWithTitle:@"官方测试包" Detail:@"新功能模块完整开发完成,供官方人员测试的版本" CanIgnoreUpdate:NO ApiKey:@"api" UKey:@"u" Password:@"psw"],
[[LEPgySettings alloc] initWithTitle:@"开发测试包" Detail:@"不保证新功能模块已完整开发完成,供开发组内部测试的版本,提供永久忽略该更新的设置" CanIgnoreUpdate:YES ApiKey:@"api" UKey:@"u" Password:@"psw"],
].mutableCopy];
应用激活后
- (void)applicationDidBecomeActive:(UIApplication *)application {
NSDictionary *bundle = [[NSBundle mainBundle] infoDictionary];
NSString *pgy=[bundle objectForKey:@"PgyUpdate"];
if(pgy&&[pgy boolValue]){
NSLog(@"检测新版本(开发测试)...");
[[LEUpdateFromPgyer sharedInstance] leCheckForNewVersion];
}
}
LEUpdateFromPgyer is available under the MIT license. See the LICENSE file for more info.