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
f6f815e3
Commit
f6f815e3
authored
Oct 26, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2853f87b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
python/config.json
+0
-3
python/help.py
+2
-2
python/main.py
+1
-1
No files found.
python/config.json
View file @
f6f815e3
...
...
@@ -2,9 +2,6 @@
"//root"
:
"project根目录, 运行目录下的相对路径 或 绝对路径"
,
"root"
:
"../.."
,
"//properties"
:
"gradle.properties路径"
,
"properties"
:
"../../gradle.properties"
,
"//lib_main"
:
"所有加入混淆的library main目录. 'root' 下的相对路径"
,
"lib_main"
:[
"app/src/main"
,
...
...
python/help.py
View file @
f6f815e3
...
...
@@ -14,7 +14,7 @@ with open("config.json", "r", encoding="utf-8") as fin:
config_json
=
json
.
loads
(
fin
.
read
())
#加入properties配置
properties
=
Function
()
.
load_properties
(
config_json
[
'properties
'
])
properties
=
Function
()
.
load_properties
(
"
%
s/gradle.properties"
%
config_json
[
'root
'
])
config
=
config_json
.
copy
()
config
.
update
(
properties
)
...
...
@@ -39,7 +39,7 @@ if command == 0:
ManifestGarble
()
.
manifest_garble
(
config
)
StringGarble
()
.
str_grable
(
config
)
ImageGarble
()
.
img_garble
(
config
)
elif
command
==
1
:
#配置参数 config.json - activities
ActivityGarble
()
.
activity_garble
(
config
)
...
...
python/main.py
View file @
f6f815e3
...
...
@@ -16,7 +16,7 @@ config_json = {}
with
open
(
"config.json"
,
"r"
,
encoding
=
"utf-8"
)
as
fin
:
config_json
=
json
.
loads
(
fin
.
read
())
properties
=
Function
()
.
load_properties
(
config_json
[
'properties
'
])
properties
=
Function
()
.
load_properties
(
"
%
s/gradle.properties"
%
config_json
[
'root
'
])
config
=
config_json
.
copy
()
config
.
update
(
properties
)
...
...
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