Latest 0.0.4
Homepage https://github.com/larryemerson/LEUpdateFromPgyer
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

示例

LEUpdateFromPgyer
LEUpdateFromPgyer

如何使用

1.AutoBuildIpaAndUploadToPgyer使用环境部署:

[AutoBuildIpaAndUploadToPgyer](https://github.com/LarryEmerson/AutoBuildIpaAndUploadToPgyer)是自动打包的shell脚本,
可以添加工程路径,添加蒲公英账号,打包后自动上传到指定的蒲公英账号。
  • fastlane 安装: sudo gem install fastlane (也可以删除fastlane 直接运行gym)
  • 项目中确保Info.plist中的“Bundle versions string, short”为“1.0.0”的标准版本号,“Bundle version”为“1”整形
  • BuildPhases中添加新的Shell

    buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
    buildNumber=$(($buildNumber + 1))
    /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"
  • 上传后的第一个版本建议进入蒲公英网页设置”Build 版本号设置“为”使用App本身的Build版本号“

    2. LEUpdateFromPgyer引入方式:

  • pod 引入 #import <LEUpdateFromPgyer/LEUpdateFromPgyer.h>

    use_frameworks!
    target 'xxx' do
    pod 'LEUpdateFromPgyer'
    end
  • 直接拖动LEUpdateFromPgyer文件夹到工程 #import "LEUpdateFromPgyer.h"

    3.接口接入

  • 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];
    }
    }

Author

[email protected]

License

LEUpdateFromPgyer is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LEUpdateFromPgyer",
    "version": "0.0.4",
    "summary": "u5e94u7528u81eau52a8u68c0u6d4bu65b0u7248u672cu5e76u63d0u793au7528u6237u5141u8bb8u5e94u7528u5185u66f4u65b0",
    "description": "u914du5408AutoBuildIpaAndUploadToPgyeru4f7fu7528uff0cu65b9u4fbfu5f00u53d1u9636u6bb5u5febu901fu63d0u4ea4u6d4bu8bd5u5305u5230u6307u5b9au84b2u516cu82f1u8d26u53f7uff0cu7528u6237u6253u5f00u5e94u7528u5373u53efu770bu5230u65b0u7684u7248u672cu63d0u793auff0cu5728u5e94u7528u5185u70b9u51fbu66f4u65b0u7248u672cuff0cu65e0u9700u624bu52a8u6253u5f00u6d4fu89c8u5668u952eu5165u7f51u5740uff0cu5bc6u7801u7b49u7e41u7410u64cdu4f5cu3002",
    "homepage": "https://github.com/larryemerson/LEUpdateFromPgyer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "larryemerson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/larryemerson/LEUpdateFromPgyer.git",
        "tag": "0.0.4"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LEUpdateFromPgyer/Classes/**/*"
}

Pin It on Pinterest

Share This