Open xiaoyaoyouzi163com opened 2 months ago
工程release模式下开启了混淆所致
Now how do you solve this problem, in the end you still need obfuscation right?
你怎么处理的混淆?
+1。请问如何处理混淆导致的问题
同问
-keep-global-name MMKV native
-keep-property-name getDefaultMMKV
-keep
./**/MMKV.ets
我这么写没有这个错误了,没有测试是哪个配置有用(entry 和使用的模块都配置了)
我昨天也遇到了同样的问题, 排查到大半夜,还好来着看了眼
The official support of obfuscation has just been added to the dev branch. You guys can copy from it. https://github.com/Tencent/MMKV/commit/934b7fc9f8fcb6c7ebe9784f7629f6e8b0a7351b In the next version (v2.0.0) you won't need to copy it manually, it will be handled by IDE automatically.
A beta version that fix this problem has been released in the ohpm, v2.0.0-SNAPSHOT.
A beta version that fix this problem has been released in the ohpm, v2.0.0-SNAPSHOT. why it still crached in v2.0.0-SNAPSHOT? what should I do anything else?
Looks like obfuscation.txt is not correctly packed into the MMKV.har. I will investigate it later.
I have tried both turning on & off the obfuscation switch of the MMKV module, but both are not working for Apps that download MMKV from the OHPM.
I guess you guys will have to manually copy and paste the obfuscation configuration from MMKV.
等待官方回复吧,我把混淆都去掉了。
从ohpm下载 v2.0.0-beta1 版本,尝试后依然闪退。 目前解决办法是在主项目的混淆文件中增加配置项:
-keep-property-name getDefaultMMKV
我这试了axios网络请求也会受到混淆的影响,有啥解决办法不?
v2.0.0 just released with support obfuscation. For the time being, you will have to manually copy the content of MMKV's consumer-rules.txt into your App's obfuscation-rules.txt.
-keep
./src/main/ets/utils/MMKV.ets
./src/main/ets/utils/MMKVHandler.ets
./src/main/ets/utils/MMKVLogLevel.ets
./src/main/ets/utils/NativeBuffer.ets
./src/main/ets/utils/Util.ts
-keep-file-name
MMKV
MMKVHandler
MMKVLogLevel
NativeBuffer
Util
从ohpm下载 v2.0.0-beta1 版本,尝试后依然闪退。 目前解决办法是在主项目的混淆文件中增加配置项:
-keep-property-name getDefaultMMKV
我这试了axios网络请求也会受到混淆的影响,有啥解决办法不?
axios不是有bug啊 为啥不用系统的rcp呢?
Harmonry Next API12 Beta3版本 debug模式下使用正常,release模式下APP启动闪退。FaultLog日志如上所示,请帮忙查看一下,非常感谢