Commit 628e5f7
feat_: allow user to change default app log level during pre-login (#22425)
* feat_: support pre-login log setting(WIP)
* nix: add gradle deps
* chore: update status-go version
status-im/status-go@614000a...50a1c9f
* feat: implement MMKV storage functionality for ClojureScript
- Added MMKV instance for persistent storage
- Implemented basic operations: set/get string, boolean, number, and object
- Included methods for key management: contains-key?, delete-key, clear-all, and get-all-keys
- Integrated Transit for serialization/deserialization of ClojureScript data structures
* feat_: enhance logging functionality with pre-login log level settings
- Introduced a new view for managing pre-login log levels.
- Updated logging configuration to utilize MMKV for persistent storage of log levels.
- Refactored existing logging functions to integrate new log level management.
- Improved user experience by allowing log level changes before login.
- Added constants for pre-login log level key and report email.
* chore_: rebase
* ios: pin libwebp at 1.0.0
* chore_: mock mmkv
* chore_: address review feedback from Parvesh
* chore_: update status-go version and commit details
* fix_: remove redundant closing brackets in logging view component
* refactor_: simplify get functions in MMKV by using if-let for value retrieval
- Updated get-string, get-number, and get-object functions to use if-let for cleaner code.
- Removed redundant nil checks, improving readability and maintainability.
* refactor_: replace direct JS calls with oops.core for MMKV operations
- Updated all MMKV operations to use oops.core for method calls, enhancing error handling and improving code consistency.
- Refactored store, get, contains-key?, delete-key, clear-all, and get-all-keys functions to utilize oops/ocall.
* refactor_: rename store function to set-value for clarity
- Updated the MMKV store function to set-value, improving code readability.
- Adjusted the logging core to use the new set-value function for setting pre-login log levels.
* feat_: add getMMKVStoragePath method for native storage path retrieval
- Implemented getMMKVStoragePath in both Android and iOS native modules to provide a consistent path for MMKV storage.
- Updated ClojureScript to utilize the new method for initializing the MMKV instance with the correct storage path.
* chore(mmkv)_: rename set-value to set
* refactor(mmkv): update set function to use local set implementation
- Replaced the oops/ocall for the set function with a direct call to the local set implementation for improved clarity and consistency in the MMKV module.
* feat(test_utils): add getMMKVStoragePath function to test utilities
- Introduced getMMKVStoragePath to return the storage path for MMKV, enhancing test utility functions for better integration with native storage paths.
* refactor(js_dependencies): rename mmkv-storage to react-native-mmkv for clarity
* fix(mmkv): add fallback for MMKV storage path in case of errors
- Implemented a try-catch block to provide a fallback storage path ("/tmp/test-mmkv") for the MMKV instance, ensuring stability during tests when the native storage path retrieval fails.
* refactor(logging): update send-logs function to include hide-bottom-sheet parameter
* fix_: bottom sheet not hidden after sharing logs
* chore_: solve circular dependency
* fix_: android logs drawer constantly opens
* fix_: pre-login log level init with incorrect value after logout
* chore_: update status-go-version to v10.22.0
---------
Co-authored-by: Siddarth Kumar <siddarthkay@gmail.com>1 parent 4721ce5 commit 628e5f7
File tree
34 files changed
+1510
-294
lines changed- ios
- modules/react-native-status
- android/src/main/java/im/status/ethereum/module
- ios/RCTStatus
- nix/deps/gradle
- src
- legacy/status_im
- log_level
- ui/screens
- advanced_settings
- log_level_settings
- utils/logging
- mocks
- native_module
- react_native
- status_im
- contexts/profile
- login
- logout
- subs
- tests
- translations
34 files changed
+1510
-294
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
38 | 53 | | |
39 | 54 | | |
40 | 55 | | |
| |||
936 | 951 | | |
937 | 952 | | |
938 | 953 | | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
939 | 959 | | |
940 | 960 | | |
941 | 961 | | |
| |||
1205 | 1225 | | |
1206 | 1226 | | |
1207 | 1227 | | |
| 1228 | + | |
1208 | 1229 | | |
1209 | 1230 | | |
1210 | 1231 | | |
| |||
1239 | 1260 | | |
1240 | 1261 | | |
1241 | 1262 | | |
| 1263 | + | |
1242 | 1264 | | |
1243 | 1265 | | |
1244 | 1266 | | |
| |||
1296 | 1318 | | |
1297 | 1319 | | |
1298 | 1320 | | |
| 1321 | + | |
| 1322 | + | |
1299 | 1323 | | |
1300 | 1324 | | |
1301 | 1325 | | |
| |||
1386 | 1410 | | |
1387 | 1411 | | |
1388 | 1412 | | |
| 1413 | + | |
| 1414 | + | |
1389 | 1415 | | |
1390 | 1416 | | |
1391 | 1417 | | |
| |||
1509 | 1535 | | |
1510 | 1536 | | |
1511 | 1537 | | |
1512 | | - | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1513 | 1541 | | |
1514 | 1542 | | |
1515 | 1543 | | |
| |||
1542 | 1570 | | |
1543 | 1571 | | |
1544 | 1572 | | |
| 1573 | + | |
1545 | 1574 | | |
1546 | 1575 | | |
1547 | 1576 | | |
| |||
1596 | 1625 | | |
1597 | 1626 | | |
1598 | 1627 | | |
1599 | | - | |
| 1628 | + | |
1600 | 1629 | | |
1601 | 1630 | | |
Lines changed: 31 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
| 212 | + | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
219 | 241 | | |
220 | 242 | | |
221 | 243 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
105 | 121 | | |
106 | 122 | | |
107 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
143 | 149 | | |
144 | 150 | | |
145 | 151 | | |
| |||
0 commit comments