这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@xianshijing-lk
Copy link
Contributor

Move the access_token to header in the format of 'Authorization': 'Bearer $token'

@xianshijing-lk
Copy link
Contributor Author

Thanks @hiroshihorie, do we have any setups for the flutter format ? like using a script or some setups on Android Studio ?

@xianshijing-lk
Copy link
Contributor Author

flutter analyze gives me the same errors on main, I put in some lines of code in analysis_options.yaml to suppress the warnings instead.

@xianshijing-lk
Copy link
Contributor Author

Hi @hiroshihorie @cloudwebrtc , could you please help review this PR?

@hiroshihorie
Copy link
Member

@xianshijing-lk You just need to run dart format .

use_super_parameters: ignore
avoid_print: ignore
use_build_context_synchronously: ignore
discarded_futures: ignore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discarded_futures are something we should fix soon for safer code, but it's fine to suppress it temporary if we don't forget about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are quite a few instance of discarded_futures warnings, let me take a follow-up to address it and re-enable the warnings.

Added a TODO here.

@xianshijing-lk xianshijing-lk force-pushed the sxian/CLT-1993/move_accessToken_to_header branch from 9e7c2f4 to ec35029 Compare October 20, 2025 05:17
@xianshijing-lk
Copy link
Contributor Author

I rebased then got 4 more analyze warnings, I just fixed them as I think some of them worth fixing now
info • Missing an 'await' for the 'Future' computed by this expression • lib/src/core/room.dart:469:9 • unawaited_futures
info • Unnecessary 'this.' qualifier • lib/src/options.dart:168:33 • unnecessary_this
info • An uninitialized variable should have an explicit type annotation • web/e2ee.frame_cryptor.dart:179:9 • prefer_typing_uninitialized_variables
info • Use a function declaration rather than a variable assignment to bind a function to a name • web/e2ee.worker.dart:118:9 • prefer_function_declarations_over_variables

I think the next step might be address all those issues and re-enable the analyze warnings.

@hiroshihorie
Copy link
Member

@xianshijing-lk LGTM, yes I'll fix other analyze errors in another branch. The test not passing is due to recent changes.

@hiroshihorie hiroshihorie merged commit 438d60b into main Oct 20, 2025
15 of 16 checks passed
@hiroshihorie hiroshihorie deleted the sxian/CLT-1993/move_accessToken_to_header branch October 20, 2025 11:25
rokk4 added a commit to rokk4/client-sdk-flutter that referenced this pull request Nov 10, 2025
Changes made to v2.5.3:
- Removed DataPacketCryptor from E2EEManager (no longer instantiated)
- Removed dcEncryptionEnabled parameter from E2EEManager constructor
- Removed isDataChannelEncryptionEnabled, encryptData(), handleEncryptedData() methods
- Removed data packet encryption logic from Engine.sendDataPacket()
- Removed asEncryptablePacket() and asDataPacket() helper methods from Engine
- Simplified encrypted packet handling to log warning instead of decrypt
- Downgraded WebRTC-SDK from 137.7151.04 to 137.7151.03 in iOS podspec

All other v2.5.3 features preserved:
✓ ParticipantCreationResult and event ordering fixes (PR livekit#902)
✓ H265 E2EE support (PR livekit#864)
✓ Async participant info updates (PR livekit#897)
✓ Access token in header (PR livekit#891)
✓ Connection timeout fixes (PR livekit#893)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants