Willy-JL
02f7207d28
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-07-15 22:18:35 +01:00
hedger
ffa3996a5e
[FL-3867] Code formatting update ( #3765 )
...
* clang-format: AllowShortEnumsOnASingleLine: false
* clang-format: InsertNewlineAtEOF: true
* clang-format: Standard: c++20
* clang-format: AlignConsecutiveBitFields
* clang-format: AlignConsecutiveMacros
* clang-format: RemoveParentheses: ReturnStatement
* clang-format: RemoveSemicolon: true
* Restored RemoveParentheses: Leave, retained general changes for it
* formatting: fixed logging TAGs
* Formatting update for dev
Co-authored-by: あく <alleteam@gmail.com >
2024-07-15 13:38:49 +09:00
Willy-JL
0b91b2e31f
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-07-10 22:38:00 +01:00
Sergei Gavrilov
fcf60e35a3
tar archive: fix double free ( #3781 )
...
Co-authored-by: hedger <hedger@nanode.su >
2024-07-10 22:45:52 +03:00
Willy-JL
4830ef94c6
Merge remote-tracking branch 'ofw/dev' into mntm-dev
2024-07-05 20:01:29 +02:00
hedger
7879876ba1
[FL-3863] toolchain: v37 ( #3746 )
...
* toolchain: v36
* toolchain: fixed cert path; lib: nanopb: updated to 0.4.8
* fbtenv: rolled back cert path for 3.11
* clang-format: updated config for v18
* linter fixes
* clang-format: properly regenerated config (`clang-format -style=file:.clang-format -dump-config > .clang-format-new; mv .clang-format-new .clang-format`)
* clang-format: AllowShortLoopsOnASingleLine: false
* toolchain: v37
* fbt: compilation_db.py: fixes for Windows
2024-07-05 18:27:21 +01:00
Willy-JL
c5fa8a5e2e
Update comment
2024-07-05 18:09:11 +02:00
Willy-JL
d2561b788e
Compress: Binary-compatible config with OFW
2024-07-05 18:08:55 +02:00
Willy-JL
7ef699d9f6
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-07-04 00:08:00 +02:00
Silent
7e0849b44e
Coalesce some allocations ( #3747 )
...
* View: Coalesce view model allocations
* SceneManager: Coalesce AppScene allocations
* BufferStream: Coalesce Buffer allocations
* ProtocolDict: Coalesce dict allocations
* DigitalSignal: Coalesce buffer allocations
Co-authored-by: あく <alleteam@gmail.com >
2024-07-03 12:56:13 +01:00
Willy-JL
a1adf727d0
Updater: 15% faster resource extract (-30s)
2024-07-03 03:38:44 +02:00
WillyJL
b18ac01485
Updater: Gzip resources dejavu, refactor for CompressStreamDecoder API ( #152 )
...
* Add back uzlib
* FBT: Support different resources compress methods
* Tar: Detect gzip compress type
* Tar: Generic compressed stream refactor
* Compress: Shared config params
* Fix comment
* Compress: Scaffolding for gzip implementation
* Compress: Handle errors from allocation
* Compress: Gzip support implementation
* Tar/Compress: Don't rewind if already at stream cursor
* Update changelog
2024-07-03 02:26:59 +02:00
Willy-JL
1014e45c22
Updater: Progressbar even with huge files --nobuild
2024-07-02 00:39:48 +02:00
Willy-JL
2d2b0f8201
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev --nobuild
2024-07-01 23:01:37 +02:00
Willy-JL
9b41168e85
Revert gzip resources (OFW made heatshrink equivalent)
...
- a83845aec4
- 9b748ea792
2024-07-01 22:33:32 +02:00
hedger
fcbcb6b5a8
Updater: resource compression ( #3716 )
...
* toolbox: compress: moved decompressor implementation to separate func
* toolbox: compress: callback-based api; cli: storage unpack command
* toolbox: compress: separate r/w contexts for stream api
* targets: f18: sync API
* compress: naming fixes & cleanup
* toolbox: compress: using hs buffer size for stream buffers
* toolbox: tar: heatshrink stream mode
* toolbox: compress: docs & small cleanup
* toolbox: tar: header support for .hs; updater: now uses .hs for resources; .hs.tar: now rewindable
* toolbox: compress: fixed hs stream tail handling
* updater: reworked progress for resources cleanup; rebalanced stage weights
* updater: single-pass decompression; scripts: print resources compression ratio
* updater: fixed warnings
* toolbox: tar: doxygen
* docs: update
* docs: info or tarhs format; scripts: added standalone compression/decompression tool for heatshrink-formatted streams
* scripts: tarhs: fixed parameter handling
* cli: storage extract command; toolbox: tar: guess type based on extension
* unit_tests: added test for streamed raw hs decompressor `compress_decode_streamed`
* unit_tests: compress: added extraction test for .tar.hs
* rpc: autodetect compressed archives
* scripts: minor cleanup of common parts
* scripts: update: now using in-memory intermediate tar stream
* scripts: added hs.py wrapper for heatshrink-related ops (single object and directory-as-tar compression)
* scripts: naming fixes
* Toolbox: export compress_config_heatshrink_default as const symbol
* Toolbox: fix various types naming
* Toolbox: more of types naming fixes
* Toolbox: use size_t in compress io callbacks and structures
* UnitTests: update to match new compress API
* Toolbox: proper path_extract_extension usage
Co-authored-by: あく <alleteam@gmail.com >
2024-06-30 11:38:48 +01:00
Willy-JL
468f870729
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-06-08 19:09:37 +02:00
WillyJL
2f9ca172e3
RPC: Add TarExtract command, some small fixes ( #3685 )
...
* RPC: Add TarExtract command
* Tar: Fix unpack when not at FS root
* RPC: Add missing storage state resets
* Fix dupe state reset
* Bump pb submodule
* Switch to latest protobuf release
* RPC: cleanup excessive furi_record calls in rpc_storage
Co-authored-by: Georgii Surkov <37121527+gsurkov@users.noreply.github.com >
Co-authored-by: あく <alleteam@gmail.com >
2024-06-08 14:15:12 +01:00
Willy-JL
23da827361
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-06-04 03:03:23 +01:00
hedger
03196fa110
cleanup of various warnings from clangd ( #3682 )
...
* cleanup of various warnings from clangs
* lfrfid_debug: cast fixes
* subghz: binraw: round->roundf
* furi: thread: updated internal stack size variable to size_t
* github: fail faster on unsuccessful build
* unit_tests: double trouble
2024-06-03 14:43:23 +01:00
HaxSam
2319475dd0
VGM/RPC: Rework custom colors, smoother config, better rainbow support ( #53 )
...
* first poc works
* rainbow mode now works over rpc
still not done refrash rate from flipper change and is slow so the rainbow mode doesnt look good
* transmit VgmMode
* use all the 32bit
* some config stuff
* sync apps
* Change protobuf repo
* Some lib naming changes and cleanup
* Format protobuf
* Update from RGB backlight if enabled
* Remove old expansion toggling
* Update settings UI
* Fix searching previous value
* VGM Tool: Add new RGB firmware
* Update changelog
* These are unused
---------
Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com >
2024-06-02 08:41:47 +01:00
Willy-JL
d9f55d110d
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-05-21 04:56:03 +01:00
hedger
9e42e00ead
Icons: compression fixes & larger dimension support ( #3564 )
...
* toolbox, gui: fixes for compressed icon handling
* ufbt: fixes for generated vscode project
* scripts: increased max dimensions for image converter
* icon type changes
* linter fixes; api sync
* gui: docs fix
* toolbox: fixed potential decoder buffer overflow
* minor cleanup
* fbt: sdk: suppressed deprecation warnings in API table
* toolbox: compress: added unit tests
vscode: now installs resources for unit_tests
unit_tests: now loads subghz region data
* toolbox: compress: review fixes, pt 1
* compress: now passes decoder buffer size as constructor argument; auto-resize decoder buffer; crash on failed icon decompression
* PVS fixes
* pvs fixes, pt2
* doxygen fixes
* investigating unit test failures
* investigating unit test failures
* investigating unit test failures
* investigating unit test failures
* investigating unit test failures
* UnitTests: move all tests into plugins, brakes testing
* UnitTests: add plugin API and update plugin entrypoints
* UniTests: Test runner that works with plugins
* fbt: extra filtering for extapps to include in build
* UnitTests: filter tests by name
* loader: restored API table for unit_test build config
* Add various missing symbols to API table
* UnitTest: fail on plugin load error
* UnitTests: cleanup plugin api and reporting
* unit_tests: composite resolver
* UnitTests: remove unused declaration
* unit_tests, nfc: moved mock nfc implementation to libnfc
* unit_tests: api: removed redundant #define
* toolbox: compress: removed size_hint for icons; triggering furi_check on oversized icons
* gui: icon, icon_animation: removed size hit APIs
* Format Sources. Cleanup code.
* loader: refuse to start .fal as app
* toolbox: compress: fixed memory corruption in operations with small destination buffer; added unit tests for that case
* unit_tests: proper test skipping; better selective test interface
* unit_tests: moved 'loading' logging to proper location
Co-authored-by: あく <alleteam@gmail.com >
2024-05-20 18:23:47 +01:00
Willy-JL
4457fa058f
Tar: Add gzip unpack support and read progress callback
...
Heavily based on code from DrZlo13 in OFW PR 3158
2024-05-02 06:49:36 +01:00
Willy-JL
9d2b4d1dfa
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into mntm-dev
2024-05-01 23:35:55 +01:00
MX
75ece9b697
add temp fix since no proper fix exist at the moment
2024-05-01 19:07:57 +03:00
MX
1736a8a7c2
Merge remote-tracking branch 'OFW/dev' into dev
2024-04-30 22:31:39 +03:00
Willy-JL
b2b88ce365
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev --nobuild
2024-04-29 21:26:11 +01:00
Astra
7414e6d4df
[FL-3817] iButton: fix crash when deleting some keys ( #3617 )
...
* iButton: fix crash when deleting some keys
* Fix cyfral crashes
* Better data formatting
* Remove void returns
2024-04-29 19:56:15 +09:00
MX
e7ef923729
Merge remote-tracking branch 'OFW/astra/3817-ibutton-crash' into dev
2024-04-27 15:09:25 +03:00
Astra
42c69b076a
iButton: fix crash when deleting some keys
2024-04-26 19:07:51 +09:00
Willy-JL
ed57426106
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into mntm-dev
2024-04-24 01:21:29 +01:00
MX
c3b59a9dba
add todo
2024-04-23 14:54:56 +03:00
MX
4422a03ae9
Merge remote-tracking branch 'OFW/dev' into dev
2024-04-18 17:22:36 +03:00
Willy-JL
cd5c76cb0d
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-04-18 03:05:41 +01:00
Astra
4883383b20
[FL-3679] iButton new UI ( #3471 )
...
* iButton new UI
* UI final touches
* Satisfy PVS
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2024-04-18 08:05:37 +09:00
Willy-JL
16654d3c90
Allow empty prefix in name generator
2024-04-17 00:25:55 +01:00
Willy-JL
1e0bc2799f
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into mntm-dev
2024-04-17 00:19:23 +01:00
MX
f4ffd29bbc
Allow no prefix usage of name_generator_make_detailed_datetime
...
Remove extra check for NULL since check is present in code already
2024-04-12 20:16:42 +03:00
Willy-JL
9fd3f70636
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-03-29 03:55:30 +00:00
MX
ae84992f25
Merge remote-tracking branch 'OFW/dev' into dev
2024-03-25 23:20:46 +03:00
Silent
8ec1c74baf
SavedStruct: Introduce saved_struct_get_metadata ( #3392 )
...
* SavedStruct: Replace saved_struct_get_payload_size with saved_struct_get_metadata
This new function can obtain the magic value, version and payload size
all at once. This makes the function useful e.g.
for backwards compatibility.
* SavedStruct: const-qualify saved_struct_save
* Toolbox: add saved struct documentation
Co-authored-by: あく <alleteam@gmail.com >
2024-03-26 03:48:18 +09:00
MX
7c0939ad52
Merge remote-tracking branch 'OFW/dev' into dev
2024-03-25 14:23:44 +03:00
MX
585b7f963d
Api Symbols: replace asserts with checks
...
merge ofw commit
2024-03-25 13:53:32 +03:00
Willy-JL
902588c882
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into mntm-dev
2024-03-21 02:33:12 +00:00
Willy-JL
d610e20060
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-03-21 02:07:27 +00:00
MX
3b83d8b825
the biggest update ever
2024-03-20 21:47:01 +03:00
hedger
ee36c66572
fbt: doxygen target ( #3510 )
...
* fbt: doxygen target
* github: adjustments for doxygen
* github: always generate docs, only upload for dev
* doxygen: fixed exclusion path for awesome-css
* github: stricter check for push ref
* github: bumped action version to fix node.js deprecation
* github: added PVS report url to workflow summary
* github: pvs: reworked report URL handling
* github: added size report to summary
* docs: added `doxygen` target
* fbt: common naming scheme for COMSTR
* Documentation: fix warnings and errors
* Doxygen: stricter warning checks
* fbt: "doxy" target, opens generated doxygen documentation in browser
* github: doxygen: now using edge (1.10) version
Co-authored-by: あく <alleteam@gmail.com >
2024-03-21 01:32:53 +09:00
Willy-JL
06aea09169
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into mntm-dev
2024-03-20 04:18:26 +00:00
あく
acc39a4bc0
Api Symbols: replace asserts with checks ( #3507 )
...
* Api Symbols: replace asserts with checks
* Api Symbols: replace asserts with checks part 2
* Update no args function signatures with void, to help compiler to track incorrect usage
* More unavoidable void
* Update PVS config and code to make it happy
* Format sources
* nfc: fix checks
* dead code cleanup & include fixes
Co-authored-by: gornekich <n.gorbadey@gmail.com >
Co-authored-by: hedger <hedger@users.noreply.github.com >
Co-authored-by: hedger <hedger@nanode.su >
2024-03-19 23:43:52 +09:00