Skip to content

Commit

Permalink
obfuscation for OHOS looks like working #1385
Browse files Browse the repository at this point in the history
  • Loading branch information
lingol committed Dec 2, 2024
1 parent ba4f343 commit 4249a64
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 23 deletions.
46 changes: 37 additions & 9 deletions OpenHarmony/MMKV/consumer-rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,44 @@
# -keep-property-name: specifies property names that you want to keep
# -keep-global-name: specifies names that you want to keep in the global scope

-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
-keep-global-name
MMKV
MMKVHandler
MMKVRecoverStrategic
MMKVLogLevel
NativeBuffer
Util
getObjKeys

-keep-property-name
*_MODE
initializeWithPath
defaultMMKV
initData
wantLogRedirect
mmkvLog
onMMKV*
wantContentChangeNotification
onContentChangedByOuterProcess
Level*
pointer
size
backedUpMMKVWithID
decodeFloat32Array
decodeFloat64Array
decodeInt16Array
decodeInt8Array
decodeUint16Array
decodeUint32Array
decodeUint64Array
decodeUint8Array
decodeUint8ClampedArray
defaultMMKV
encodeBytesPart
encodeTypedArray
importFromPreferences
mmkvWithAshmemID
rootDir

-keep-dts
/Users/lingol/Developer/mmkv/OpenHarmony/MMKV/src/main/cpp/types/libmmkv/

14 changes: 0 additions & 14 deletions OpenHarmony/MMKV/obfuscation-rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,3 @@
# Keep options:
# -keep-property-name: specifies property names that you want to keep
# -keep-global-name: specifies names that you want to keep in the global scope

-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

0 comments on commit 4249a64

Please sign in to comment.