-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5300eb
commit c196f1e
Showing
33 changed files
with
9,500 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"key":114514, | ||
"Version":"24.4", | ||
"//":"支持28 24.4", | ||
"Obfus": | ||
{ | ||
"ControlFlow":1, | ||
"NumObfus":1, | ||
"LocalVariables2Field":1, | ||
"StrCrypter":1, | ||
"StrObfus":1, | ||
"//":"0=关闭 1=开启", | ||
"//":"ControlFlow:控制流程混淆", | ||
"//":"NumObfus:数字混淆", | ||
"//":"LocalVariables2Field:局部变量转换为字段", | ||
"//":"StrCrypter:字符串加密", | ||
"//":"StrObfus:方法加密混淆,可以在keyfunc中添加自定义需要排除的方法(如用到了反射等类型)" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{ | ||
"ignoreMethod": [ | ||
"Awake", | ||
"OnEnable", | ||
"Start", | ||
"FixedUpdate", | ||
"Update", | ||
"OnDisable", | ||
"LateUpdate", | ||
"Reset", | ||
"OnValidate", | ||
"FixedUpdate", | ||
"OnTriggerEnter", | ||
"OnTriggerEnter2D", | ||
"OnTriggerExit", | ||
"OnTriggerExit2D", | ||
"OnTriggerStay2D", | ||
"OnCollisionEnter", | ||
"OnCollisionEnter2D", | ||
"OnCollisionExit", | ||
"OnCollisionExit2D", | ||
"OnCollisionStay", | ||
"OnCollisionStay2D", | ||
"OnMouseDown", | ||
"OnMouseDrag", | ||
"OnMouseEnter", | ||
"OnMouseExit", | ||
"OnMouseOver", | ||
"OnMouseUp", | ||
"OnMouseUpAsButton", | ||
"OnPreCull", | ||
"OnBecameVisible", | ||
"OnBecameInvisible", | ||
"OnWillRenderObject", | ||
"OnPreRender", | ||
"OnRenderObject", | ||
"OnPostRender", | ||
"OnRenderImage", | ||
"OnGUI", | ||
"OnDrawGizmos", | ||
"OnDrawGizmosSelected", | ||
"OnApplicationFocus", | ||
"OnApplicationPause", | ||
"OnApplicationQuit", | ||
"OnDisable", | ||
"OnDestory", | ||
"OnLevelWasLoaded", | ||
"OnAnimatorIK", | ||
"OnAnimatorMove", | ||
"OnApplicationFocus", | ||
"OnApplicationPause", | ||
"OnApplicationQuit", | ||
"OnAudioFilterRead", | ||
"OnBecameInvisible", | ||
"OnBecameVisible", | ||
"OnConnectedToServer", | ||
"OnControllerColliderHit", | ||
"OnEnable", | ||
"OnFailedToConnect", | ||
"OnDisconnectedFromServer", | ||
"OnDrawGizmos", | ||
"OnDrawGizmosSelected", | ||
"OnEnable", | ||
"OnFailedToConnect", | ||
"OnFailedToConnectToMasterServer", | ||
"OnJointBreak", | ||
"OnJointBreak2D", | ||
"OnMasterServerEvent", | ||
"OnNetworkInstantiate", | ||
"OnParticleCollision", | ||
"OnParticleSystemStopped", | ||
"OnParticleTrigger", | ||
"OnParticleUpdateJobScheduled", | ||
"OnPlayerConnected", | ||
"OnPlayerDisconnected", | ||
"OnPostRender", | ||
"OnPreCull", | ||
"OnPreRender", | ||
"OnRenderImage", | ||
"OnRenderObject", | ||
"OnSerializeNetworkView", | ||
"OnServerInitialized", | ||
"OnTransformChildrenChanged", | ||
"OnTransformParentChanged", | ||
"OnValidate", | ||
"OnWillRenderObject", | ||
"Reset", | ||
"__", | ||
"incontrol", | ||
"stop", | ||
"option", | ||
"pausemanager", | ||
"fallingrock", | ||
"postfix", | ||
"prefix", | ||
"transpiler" | ||
], | ||
"ignoreField":[ | ||
"incontrol", | ||
"enum", | ||
"optional", | ||
"__" | ||
], | ||
"//":"以上为默认忽略列表,默认包含全部的Unity关键方法,建议不要修改,以下为自定义忽略列表,可以根据需要自行添加(如果需要用到反射或者动态调用的方法,建议添加到这里))", | ||
|
||
"//":"关于如何是使用自定义忽略列表,这里有几点建议", | ||
"//":"1.在Unity中,GameObject或者prefabs初始绑定了脚本,则该脚本的类名不可混淆,方法名和字段名可以混淆", | ||
"//":"2.在Unity中,GameObject或者prefabs初始没有绑定脚本,但是在代码中动态添加了脚本,则该脚本的类名、方法名和字段名都可以混淆", | ||
"//":"3.如果该脚本中涉及到了UI的事件响应(如Button.OnClick),则该脚本的类名和该方法名都不可混淆,字段名可以混淆", | ||
"//":"4.Unity的生命周期方法和回调方法不能混淆,上方的忽略列表包含了大多数常用的生命周期和回调方法,如果有遗漏,可以自行添加", | ||
"//":"5.Unity中的Invoke等特殊方法所调用的函数方法不可混淆,同理协程类的方法也不可混淆,请自行添加到自定义忽略列表", | ||
"//":"6.部分涉及反射类的代码不能混淆,如System.Reflection(GetField,GetMethod,Invoke等),请自行添加到自定义忽略列表", | ||
"//":"7.Native层里直接调用C#或通过Unity内置API发送事件到C#的类和方法不可混淆(大多数在移动平台中)", | ||
"//":"8.一些特殊插件对应的脚本不可混淆,例如xLua和与之绑定的C#脚本", | ||
|
||
|
||
"//":"对于方法名的混淆采用的是白名单模式,即默认混淆,如果不需要混淆,可以添加到这里", | ||
"customignoreMethod":[ | ||
], | ||
"//":"对于字段名的混淆采用的是白名单模式,即默认混淆,如果不需要混淆,可以添加到这里", | ||
"customignoreField":[ | ||
], | ||
"//":"对于类名的混淆采用的是黑名单模式,即默认不混淆,如果需要混淆,可以添加到这里", | ||
"customignoreClass":[ | ||
] | ||
} |
Oops, something went wrong.