FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DynamicPatchManager/DynamicPatchManager.h at master · debugcheck/DynamicPatchManager · GitHub
debugcheck
/
DynamicPatchManager
Public
Notifications
You must be signed in to change notification settings
Fork
7
Star
11
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
DynamicPatchManager
/
DynamicPatchManager.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
67 lines (48 loc) · 1.45 KB
Breadcrumbs
DynamicPatchManager
/
DynamicPatchManager.h
Copy path
File metadata and controls
67 lines (48 loc) · 1.45 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
//
DynamicPatchManager.h
//
//
//
Created by KYao on 16/1/28.
//
Copyright © 2016年 XXXX. All rights reserved.
//
typedef
void
(^DynamicPatchReturnBlock)(
NSError
*error,
NSDictionary
*dynamicPatchConfiguration);
typedef
NS_ENUM
(
NSUInteger
, DynamicPatchErrorCode) {
DynamicPatch_ScriptCrash =
10000
,
DynamicPatch_ScriptNonExistent,
DynamicPatch_ScriptVerifyError,
DynamicPatch_ScriptRepeatRequest,
};
@interface
DynamicPatchManager
:
NSObject
+ (
instancetype
)
sharedManager
;
/*
*
* 返回当前脚本
*
* @return <#return value description#>
*/
- (
NSString
*)
decryptPatchScript
;
/*
*
* 执行本地MainBundle中的脚本
*
* @param name <#name description#>
* @param type <#type description#>
*/
- (
void
)
evaluateScriptInMainBundleForName
:
(
NSString
*)
name
type
:
(
NSString
*)
type
;
/*
*
* 执行已经请求的最新脚本,Block返回脚本信息
*
* @param completeBlock <#completeBlock description#>
*/
- (
void
)
excutePatchScript
:
(DynamicPatchReturnBlock)
completeBlock
;
/*
*
* 请求最新脚本,Block返回脚本信息
*
* @param completeBlock <#completeBlock description#>
*/
- (
void
)
requestPatchScriptWithCompleteBlock
:
(DynamicPatchReturnBlock)
completeBlock
;
/*
*
* 请求最新脚本并执行, Block返回脚本信息 (这个只是合并上面2个接口)
*
* @param completeBlock <#completeBlock description#>
*/
- (
void
)
requestPatchScriptAndRunWithCompleteBlock
:
(DynamicPatchReturnBlock)
completeBlock
;
@end
Back
|
FazBrowse Home
|
New Git URL