Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
5599bc9b
Commit
5599bc9b
authored
Oct 23, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
8f6a625a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
python/tools/garbel/package_garble.py
+4
-20
No files found.
python/tools/garbel/package_garble.py
View file @
5599bc9b
...
...
@@ -132,24 +132,7 @@ class PackageGarble:
print
(
"done"
)
if
__name__
==
"__main__"
:
garble
=
PackageGarble
()
#project根目录相对路径
config
=
{
"root"
:
"../../../"
}
print
(
"find pkgs..."
)
#生成混淆字典
garble
.
__find_pkgs
(
"
%
s/app/src/main/java"
%
config
[
'root'
])
#重命名路径
garble
.
__rename_pkg
(
"
%
s/app/src/main/java"
%
config
[
'root'
])
#忽略3级以下路径(例如com com.common),避免干扰到三方SDK
for
(
key
,
value
)
in
garble
.
pkg_mapping
.
items
():
if
len
(
key
.
split
(
"."
))
<
3
:
garble
.
pkg_mapping
[
key
]
=
key
#全局替换
garble
.
__process_files
(
"
%
s/app/src/main"
%
config
[
'root'
])
#project 根目录
config
=
{
"root"
:
"../../../../"
}
PackageGarble
()
.
pkg_garble
(
config
)
print
(
"done"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment