Guo Ling

Results 164 comments of Guo Ling

Now how do you solve this problem, in the end you still need obfuscation right?

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...

A beta version that fix this problem has been released in the ohpm, v2.0.0-SNAPSHOT.

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...

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](https://github.com/Tencent/MMKV/blob/master/OpenHarmony/MMKV/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...

It's fully supported in [v2.0.2](https://github.com/Tencent/MMKV/releases/tag/v2.0.2).

Either that is running before EntryAbility `onCreate()`, or it's in a separate process. You should be able to verify which one is the case by setting break points.

You should be able to investigate this by yourself.

> Either that is running before EntryAbility `onCreate()`, or it's in a separate process. > You should be able to verify which one is the case by setting break points....