Skip to content

krmao/bspatch-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bspatch-android

https://github.com/krmao/bspatch

bspatch-ios

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

bspatch-ios is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'bspatch-ios'

Quick use

the details please see the exmples project

#import "BSPatch.h"

// bsdiff
int bsdiffResult = bsdiff([oldPath UTF8String], [newPath UTF8String], [patchPath UTF8String]);
NSLog(@"bsdiffResult = %d", bsdiffResult);

NSData *patchData = [NSData dataWithContentsOfFile:patchPath];
NSLog(@"patchData = %@", patchData);

// bspatch
int bspatchResult = bspatch([oldPath UTF8String], [new2Path UTF8String], [patchPath UTF8String]);
NSLog(@"bspatchResult = %d", bspatchResult);

Steps of push lib to CocosPods

Author

krmao, kr.mao@qq.com

License

bspatch-ios is available under the MIT license. See the LICENSE file for more info.

About

bspatch tools for ios

Resources

License

Stars

Watchers

Forks

Packages

No packages published