Commit Graph

353 Commits

Author SHA1 Message Date
guoling b81f033558 add ashmem mmkv 2024-04-11 16:35:50 +08:00
guoling 5a70ee4e84 OHOS doesnt have renameat2() eventhough the macro SYS_renameat2 is defined 2024-04-10 21:42:56 +08:00
guoling 03ce05705c tidy include 2024-04-10 21:38:51 +08:00
guoling 0187c37e48 tested ohos backup & restore 2024-04-10 21:21:11 +08:00
guoling 48d45c5bc4 stash for ohos backup & restore, almost done 2024-04-10 21:06:57 +08:00
guoling 2b8fd0cc21 stash for ohos backup & restore 2024-04-09 17:53:16 +08:00
guoling cd3db0cfc5 assume all ohos armv8 devices have aes+crc32 instr 2024-04-03 10:46:05 +08:00
guoling eac5dc1b44 encodeBool() & decodeBool() works 2024-04-02 19:10:23 +08:00
guoling 56ba0738f0 initial commit for OpenHarmony support 2024-04-01 18:42:05 +08:00
tulip 5403cea874 feat: use the embedded libz when libz cannot be found. 2024-03-31 19:03:04 +08:00
guoling 94ec7061d9 bump iOS Deployment Target to iOS 12 2024-03-28 10:26:20 +08:00
guoling 1feba14d33 avoid using so-called privacy API #1220 2024-03-20 12:30:46 +08:00
guoling 87578391cd change to access() to detect file existence 2024-03-19 21:19:15 +08:00
guoling 51d692007f prepare for v1.3.4 2024-03-14 16:01:01 +08:00
MrWander 8aec6da927 bugfix: trim sigbus 2024-03-08 14:00:13 +08:00
Cyril Bonaccini 76107d762c chore: make MMKV visionos compatible 2024-02-16 09:22:11 +01:00
guoling d7310af125 include <unistd.h> for unlink() #1233 2024-02-05 19:58:21 +08:00
guoling 80a27ff49e log mmap() result address 2024-01-09 17:40:05 +08:00
guoling a6f16b5c5e avoid using so-called privacy API #1220 2024-01-05 14:34:05 +08:00
peiranguo 9372cc90c0 fix: (POSIX)use of undeclared identifier memcpy 2023-12-29 12:58:40 +08:00
guoling 3561cee217 rename macro with MMKV prefix to avoid conflict #1215 2023-12-29 11:13:47 +08:00
guoling 92d0a17d82 add back lazy-load on mmkv init 2023-12-25 16:46:58 +08:00
guoling 690620c8f9 dont ExclusiveLockType on loading unless there is need for truncate 2023-12-25 15:48:53 +08:00
guoling 962cf09f9c test removeStorage() on Win32 2023-12-06 16:06:00 +08:00
guoling 7643eeae4b test removeStorage() on Flutter for Android 2023-12-06 14:51:34 +08:00
guoling ee1e77be8e test removeStorage() on Android 2023-12-06 14:31:21 +08:00
guoling d3c9e6af28 add removeStorage() 2023-12-06 12:25:35 +08:00
guoling 33b4f108c6 make override much more robust & efficient #1151, #1160 2023-12-01 17:09:05 +08:00
guoling 7de66922e0 add protection in partialLoadFromFile() #1190 2023-11-27 19:24:57 +08:00
guoling 02e07a7c2b make expectCapacity more consistent 2023-11-21 19:43:32 +08:00
guoling 2fcabdea16 prepare for v1.3.2 2023-11-20 16:50:30 +08:00
guoling c1d5874f57 add CompareBeforeSet for golang 2023-11-16 15:48:26 +08:00
guoling d6fb4a971e Fix several potential crash due to the MMKV file not being valid 2023-11-16 12:44:55 +08:00
guoling 63bfbe9329 msync() on metafile is needed even when keepSpace #1183 2023-10-10 16:20:34 +08:00
Guo Ling 38259ee936 Merge pull request #1183 from kaitian521/fix_crash
add clearAll with keeping file disk space
2023-10-09 11:04:54 +08:00
lishaokai eb9d8c1497 add clearAll with keeping file disk space 2023-10-08 14:07:13 +08:00
Guo Ling 2147652ca2 Merge pull request #1181 from kaitian521/fix_crash
#1180 redo ftruncate file to its previous size when zeroFillFile fail(disk full)
2023-10-07 09:28:54 +08:00
lishaokai 347b25feaa redo ftruncate file to its previous size when zeroFillFile fails(disk full) #1180 2023-09-26 17:53:29 +08:00
guoling a49ca62e60 add comment about mlock() 2023-09-19 18:42:00 +08:00
guoling 1107f99170 turn-off mlock() protection in background on iOS 13+ 2023-09-19 18:34:08 +08:00
guoling 95c09496dd opt iOS auto clean 2023-09-19 18:11:25 +08:00
guoling 34411268da add catch(...) for each try-catch 2023-09-19 15:04:23 +08:00
guoling e2efc0d503 tidy 2023-09-15 14:53:38 +08:00
guoling 8f312220d0 remove unnecessary std::move 2023-09-15 14:48:20 +08:00
lishaokai 72b59356a9 compare value before set/encode for the same key 2023-09-12 20:36:10 +08:00
Guo Ling b726545a83 Merge pull request #1168 from kaitian521/dev2
in place modification for getString to speed up
2023-09-06 16:21:16 +08:00
Lishaokai 7649e45d70 in place modification for getString to speed up 2023-09-06 15:59:37 +08:00
Guo Ling 5691842d42 Merge branch 'dev' into avoid-move 2023-09-04 19:53:26 +08:00
Marc Rousavy 3ebb422dde fix: Prevent moving a temporary object (input.readData()) 2023-09-04 13:49:44 +02:00
lishaokai e0f5321a9a override from beginning of file when dict is empty 2023-08-28 17:42:12 +08:00