Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit e32333b3
authored
2025-10-29 18:02:18 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加 build release 版本的混淆规则
1 parent
f8e3a816
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
android/app/build.gradle.kts
android/app/proguard-rules.pro
lib/bloc/login_main_cubit.dart
android/app/build.gradle.kts
View file @
e32333b
...
@@ -72,6 +72,11 @@ android {
...
@@ -72,6 +72,11 @@ android {
release {
release {
signingConfig = signingConfigs.getByName("release")
signingConfig = signingConfigs.getByName("release")
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
}
}
}
}
...
...
android/app/proguard-rules.pro
0 → 100644
View file @
e32333b
# 微信SDK混淆规则
-
keep
class
com
.
tencent
.
mm
.
opensdk
.
**
{
*
;
}
-
keep
class
com
.
tencent
.
wxop
.
**
{
*
;
}
-
keep
class
com
.
tencent
.
mm
.
sdk
.
**
{
*
;
}
# ffmpegkit
-
keep
class
com
.
antonkarpenko
.
**
{
*
;
}
# 可选:如果遇到兼容性问题,可以忽略警告
-
dontwarn
com
.
tencent
.
mm
.
**
\ No newline at end of file
\ No newline at end of file
lib/bloc/login_main_cubit.dart
View file @
e32333b
...
@@ -44,6 +44,7 @@ class LoginMainCubit extends Cubit<LoginMainState> {
...
@@ -44,6 +44,7 @@ class LoginMainCubit extends Cubit<LoginMainState> {
void
confirmAgreed
()
{
void
confirmAgreed
()
{
emit
(
state
.
copyWith
(
agreed:
true
,
showAgreed:
false
));
emit
(
state
.
copyWith
(
agreed:
true
,
showAgreed:
false
));
wechatAuth
();
}
}
void
cancelAgreed
()
{
void
cancelAgreed
()
{
...
@@ -71,6 +72,10 @@ class LoginMainCubit extends Cubit<LoginMainState> {
...
@@ -71,6 +72,10 @@ class LoginMainCubit extends Cubit<LoginMainState> {
void
_responseListener
(
WeChatResponse
response
)
async
{
void
_responseListener
(
WeChatResponse
response
)
async
{
if
(
response
is
WeChatAuthResponse
)
{
if
(
response
is
WeChatAuthResponse
)
{
if
(
response
.
code
==
null
||
response
.
code
==
''
)
{
return
;
}
dynamic
resultData
=
await
_wechatAuthRepository
.
codeToSk
(
response
.
code
!);
dynamic
resultData
=
await
_wechatAuthRepository
.
codeToSk
(
response
.
code
!);
var
data
=
resultData
[
'data'
];
var
data
=
resultData
[
'data'
];
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment