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)
- 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
- Geocoding Service Error
- [huawei_map] Clicking on Marker Causes setZIndex:Failure win parameter HOT 1
- 有无支持基于鸿蒙的Flutter适配的计划
- Getting MissingPluginException when using with Huawei Location inside workmanager HOT 1
- [huawei_ads] Previous integration broken, error during build
- com.huawei.hms.flutter.iap.MethodCallHandlerImpl.onActivityResult(MethodCallHandlerImpl.java:14)
- 用什么插件集成CheckAppUpdate?没有特定的插件 HOT 1
- Padding Oracle
- [huawei_location] 6.12.0+302 and 6.12.0+303 didn't compile HOT 3
- The map gets displayed for a short extra time when navigating to another page, and when navigating back from the map page
- Remove references to deprecated v1 Android embedding
- Deprecated imperative apply of Flutter's Gradle plugins
- Gradle update - Namespace not specified in build.gradle HOT 3
- huawei location package throwing error while build web HOT 1
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.