Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
310b9de6
Commit
310b9de6
authored
Jun 17, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
混淆配置优化
parent
0aa183d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
proguard-rules.pro
app/proguard-rules.pro
+25
-0
No files found.
app/proguard-rules.pro
View file @
310b9de6
...
...
@@ -70,6 +70,9 @@
}
-
keep
class
**.
R
$
*
{
*
;}
-
keepclassmembers
class
*
extends
android
.
app
.
Activity
{
public
void
*
(
android
.
view
.
View
);
}
-
keepclassmembers
class
*
{
void
*
(
*
Event
);
}
...
...
@@ -93,6 +96,22 @@
java
.
lang
.
Object
readResolve
();
}
#避免webView混淆
-
keepclassmembers
class
fqcn
.
of
.
javascript
.
interface
.
for
.
webview
{
public
*
;
}
-
keepclassmembers
class
*
extends
android
.
webkit
.
webViewClient
{
public
void
*
(
android
.
webkit
.
WebView
,
java
.
lang
.
String
,
android
.
graphics
.
Bitmap
);
public
boolean
*
(
android
.
webkit
.
WebView
,
java
.
lang
.
String
);
}
-
keepclassmembers
class
*
extends
android
.
webkit
.
webViewClient
{
public
void
*
(
android
.
webkit
.
webView
,
jav
.
lang
.
String
);
}
-
keep
public
class
[
包名
.
类名
]
$
[
内部类
]{
public
*
;
}
-
keepattributes
JavascriptInterface
# OkHttp
-
keep
class
com
.
squareup
.
okhttp
.
**
{
*
;
}
-
keep
interface
com
.
squareup
.
okhttp
.
**
{
*
;
}
...
...
@@ -141,6 +160,12 @@
-
keep
class
java
.
beans
.
**
{
*
;
}
#文件里面有xml 需要增加配置
-
keep
class
org
.
xmlpull
.
**
{
*
;}
-
keep
public
class
*
extends
org
.
xmlpull
.
**
-
keep
interface
org
.
xmlpull
.
**
{
*
;}
-
keep
class
com
.
miya
.
**
{
*
;
}
-
keep
class
com
.
miya
.
fastcashier
.
dao
.
**
{
*
;
}
...
...
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