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
583bbde2
Commit
583bbde2
authored
Oct 25, 2019
by
sikang
Browse files
Options
Browse Files
Download
Plain Diff
update
parents
3d6bf548
d5ec3b56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
python/tools/garble/activity_garble.py
+1
-2
python/tools/garble/package_garble.py
+3
-1
src/main/java/tech/starwin/network/ServiceGenerator.java
+2
-2
No files found.
python/tools/garble/activity_garble.py
View file @
583bbde2
...
...
@@ -27,8 +27,7 @@ class ActivityGarble:
"RecordFilesResponse.java"
,
"TotalAmount.java"
,
"UserBankInfo.java"
,
"YWUser.java"
,
"TDChannel.java"
"YWUser.java"
]
used_names
=
[]
...
...
python/tools/garble/package_garble.py
View file @
583bbde2
...
...
@@ -64,8 +64,10 @@ class PackageGarble:
while
size
>
0
:
if
mp_path
not
in
self
.
pkg_mapping
.
keys
():
self
.
pkg_mapping
[
mp_path
]
=
random_str
#添加一个结尾标识,避免有路径中间有重复的包名被替换
mp_path
+=
"**"
mp_path
=
mp_path
.
replace
(
".
%
s"
%
mp_path
.
split
(
"."
)[
size
-
1
],
""
)
".
%
s
**
"
%
mp_path
.
split
(
"."
)[
size
-
1
],
""
)
random_str
=
random_str
.
replace
(
".
%
s"
%
random_str
.
split
(
"."
)[
size
-
1
],
""
)
size
-=
1
...
...
src/main/java/tech/starwin/network/ServiceGenerator.java
View file @
583bbde2
...
...
@@ -32,8 +32,8 @@ public class ServiceGenerator {
.
readTimeout
(
TIME_OUT
,
TimeUnit
.
SECONDS
)
.
addInterceptor
(
new
DefaultHeaderAddInterceptor
())
.
addInterceptor
(
new
FirebaseHeaderInterceptor
())
.
sslSocketFactory
(
SSLSocketClient
.
getSSLSocketFactory
(),
SSLSocketClient
.
getTrustManager
())
.
hostnameVerifier
(
SSLSocketClient
.
getHostnameVerifier
())
//
.sslSocketFactory(SSLSocketClient.getSSLSocketFactory(), SSLSocketClient.getTrustManager())
//
.hostnameVerifier(SSLSocketClient.getHostnameVerifier())
.
build
();
}
...
...
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