Comments (1)
Hi @joeccleung , thank you for reporting the issue.
minifyEnabled true flag
enables code shrinking, obfuscation, and optimization for your project's release build type. While obfuscating the project, HMS Core, and HMS Map is also obfuscated and it should be prevented in order to work without issues.
Before building the APK, configure the obfuscation configuration file to prevent the HMS SDKs from being obfuscated. Please add following attributes to your proguard-rules.pro file and then you may use minifyEnabled true
flag.
-ignorewarnings
-keepattributes *Annotation*
-keepattributes Exceptions
-keepattributes InnerClasses
-keepattributes Signature
-keep class com.hianalytics.android.**{*;}
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.hms.**{*;}
After adding proguard-rules.pro file, change your app level build.gradle file described below.
buildTypes {
release {
// enables code shrinking, obfuscation, and optimization.
minifyEnabled true
// enables resource shrinking.
shrinkResources true
// the file you added
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
For detailed information you may refer to Configuring Obfuscation Scripts
from hms-flutter-plugin.
Related Issues (20)
- PlatformException(907122045, 6003: certificate fingerprint error, null, null) HOT 1
- Crash when registering background push message handler HOT 1
- [huawei_iap] after latest update v6.10.0+300 backup is required in android manifest HOT 1
- [Location] Package named 6.11.0+301 but use sdk 6.4.0.300 HOT 1
- Error 11203(3002): Service Unavailable when Starting Speech Recognition
- [huawei_push] Can't get the token: 907135003: client api invalid HOT 1
- NullPointerException in FlutterBackgroundRunner
- huawei_modeling3d 1.8.0+300 只支持Android平台, 近期有计划增加支持iOS等其他平台吗
- Location Kit throws AGC_CHECK_FAIL - 10808 (AppGallery Connect identity verification failed) HOT 2
- flutter ios AGConnectCrashPlugin init failed HOT 1
- AGP8 upgrade
- CRITICAL : the future initFusedLocationService() never end HOT 9
- huawei_push GetToken returned null HOT 5
- [Huawei_push][Bug] cancelNotificationsWithId is not await or return any result
- Flutter Huawei FIDO: unable to decode FIDO registration response
- 集成huawei_location 提示FusedLocationService is not initialized HOT 2
- Huawei analytics does not work on Flutter HOT 1
- Unexpected CFBundleExecutable Key
- Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
- UserHandle data is missing in Flutter FIDO Authentication result HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hms-flutter-plugin.