All Projects → yanshuimu → MangoFixUtil

yanshuimu / MangoFixUtil

Licence: other
依赖MangoFix,封装补丁拉取、执行、设备激活、补丁激活完整流程,另外提供本地加密或未加密补丁执行、生成加密补丁等方法。

Programming Languages

objective c
16641 projects - #2 most used programming language
c
50402 projects - #5 most used programming language
Modula-3
6 projects
ruby
36898 projects - #4 most used programming language

MangoFixUtil

依赖MangoFix,封装补丁拉取、执行、设备激活、补丁激活完整流程,具体使用方法请下载Demo参考。

MangoFixUtil在公司项目中实战已经近1年多,很稳定,也会不断继续完善。

欢迎使用作者维护的补丁管理后台,第一个补丁诞生于2020-03-09,最初是用PostMan操作,后来有了界面,也是比较简陋,一直都是自己和朋友在使用,目前已经有30+个已上架AppStore的应用在使用,现开放出来给有需要的小伙伴使用。

公私钥在线生成,密钥长度:1024 bit,密钥格式:PKCS#8

Example

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    [self setupMangoFixUtil];
    
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    self.window.rootViewController = [[ViewController alloc] init];
    [self.window makeKeyAndVisible];
            
    return YES;
}

- (void)setupMangoFixUtil {
    
    MangoFixUtil *mangoFixUtil = [MangoFixUtil sharedUtil];
    [mangoFixUtil startWithAppId:APPID privateKey:RSAPrivateKey];
    [mangoFixUtil evalRemoteMangoScript];
}

@end

Installation

CocoaPods

# Your Podfile
pod 'MangoFix'
pod 'MangoFixUtil'

Manually

Copy MangoFixUtil.m MangoFixUtil.h in MangoFixUtil/ to your project.

Usage

Objective-C

  1. #import "MangoFixUtil.h"
MangoFixUtil *mangoFixUtil = [MangoFixUtil sharedUtil];
[mangoFixUtil startWithAppId:MANGOFIXUTIL_APPID privateKey:RSAPrivateKey];

// exec mangofix file from network
[mangoFixUtil evalRemoteMangoScript];

// exec local mangofix file
[mangoFixUtil evalLocalMangoScript];

// exec local unEncrypted mangofix file
[mangoFixUtil evalLocalUnEncryptedMangoScriptWithPublicKey:RSAPublicKey];

// encrypt plain mangofix file to documentDirectory
[mangoFixUtil encryptPlainScirptToDocumentWithPublicKey:RSAPublicKey];

Update

V1.0.6

  1. 增加开发预览、全量下发模式

V2.0.0

  1. 增加激活设备、激活补丁统计

V2.0.1

  1. 优化

V2.0.2

  1. 支持线上加密补丁

V2.0.3

  1. 优化流程

V2.0.4

  1. 支持统计日活量

Thanks for

Mango

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].