HMS-Core / hms-ml-demo

HMS ML Demo provides an example of integrating Huawei ML Kit service into applications. This example demonstrates how to integrate services provided by ML Kit, such as face detection, text recognition, image segmentation, asr, and tts.
https://developer.huawei.com/consumer/en/hms/huawei-mlkit?ha_source=hms1
Apache License 2.0
357 stars 120 forks source link

Proguard rules for MLTextAnalyzer #22

Closed minkiapps closed 4 years ago

minkiapps commented 4 years ago

If I turn on obfuscation, which is critically required since all my apps are obfuscated, the text analyser stops recognising any text...

Could you provide Proguard rules?

Mike-mei commented 4 years ago

@minkiapps About proguard rules, you can refer to this documentation

minkiapps commented 4 years ago

Thanks, working now... Do you think the rules can be more fine grained? Since the purpose of Proguard is actually to obfuscate and optimise as much code as possible. Also I think it would be good if the Proguard rules can be packaged directly in library, so developer don't need to bother with that themselves.

Mike-mei commented 4 years ago

Thank you for your advice.