Repository navigation
release: 1.26.0 - #225
release: 1.26.0#225
Conversation
- Use commit() instead of apply() in passphrase expiry path to ensure
durable writes and prevent expiry loss on crash
- Wrap file input streams in use{} blocks to prevent resource leaks
- Unify PIN_MAX_RETRIES constant to prevent coupling issues
- Update CHANGELOG to reflect R8 9.5.28 (merged from main)
Maintainability ReviewInitial expected implementation: differed Applied FindingsPriority: high Priority: medium Priority: medium Priority: medium Recommended, but deferred
|
|
@forkline fix CI |
Replace SharedPreferences.edit().clear().commit() with the KTX extension
edit(commit = true) { clear() } to satisfy the UseKtx lint rule while
maintaining durable synchronous writes.
|
Fixed lint failure by using KTX |
There was a problem hiding this comment.
Summary
Fixed the CI lint failure in PR #225. The issue was a UseKtx lint violation in AppPasskeyProviderActivity.kt where the code was using SharedPreferences.edit().clear().commit() instead of the KTX extension function.
Fix applied:
- Changed
persistentPassphrases.edit().clear().commit()topersistentPassphrases.edit(commit = true) { clear() } - Changed
unlockPins.edit().clear().commit()tounlockPins.edit(commit = true) { clear() } - Removed the now-unused
@SuppressLint("ApplySharedPref")annotation and its import
The KTX extension with commit = true satisfies the lint rule while maintaining the durable synchronous writes needed for security-critical passphrase expiry enforcement.
CI Status: All 5 checks now pass successfully:
- ✅ check-codestyle
- ✅ lint
- ✅ unit-tests
- ✅ passkey-tests
- ✅ build-apks
|
✅ Fix pushed: The CI failure has already been fixed. The lint error was: Commit The fix is already pushed to Summary: The lint |
Release 1.26.0
Changed
Fixed
Fork infrastructure
*This PR was generated by Forkline — AI-powered code contributions.
The agent analyzed the issue and implemented this fix autonomously.