-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#228] Add TokenAuthenticator setup #577
base: develop
Are you sure you want to change the base?
[#228] Add TokenAuthenticator setup #577
Conversation
with(edit()) { | ||
operation(this) | ||
apply() | ||
if (executeWithCommit) commit() else apply() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using apply() instead; commit writes its data to persistent storage immediately, whereas apply will handle it in the background |
Kover report for template-compose:🧛 Template - Compose Unit Tests Code Coverage:
|
File | Coverage |
---|---|
ApiServiceProvider.kt |
0.00% |
AuthInterceptor.kt |
0.00% |
AuthPreferenceRepositoryImpl.kt |
100.00% |
AuthStatus.kt |
91.84% |
BaseEncryptedSharedPreferences.kt |
0.00% |
BaseSharedPreferences.kt |
7.03% |
DispatchersProviderImpl.kt |
0.00% |
EncryptedSharedPreferences.kt |
0.00% |
GetAuthStatusUseCase.kt |
100.00% |
HomeViewModel.kt |
100.00% |
NetworkEncryptedSharedPreferences.kt |
0.00% |
OAuthTokenModel.kt |
100.00% |
OAuthTokenResponse.kt |
100.00% |
RefreshTokenRequest.kt |
76.47% |
RefreshTokenUseCase.kt |
100.00% |
RequestAuthenticator.kt |
87.16% |
RequestInterceptingDelegate.kt |
100.00% |
SharedPreferencesExt.kt |
0.00% |
TokenRepositoryImpl.kt |
100.00% |
UpdateLoginTokensUseCase.kt |
100.00% |
Modified Files Not Found In Coverage Report:
.gitignore
ApiService.kt
AppModule.kt
AuthPreferenceRepository.kt
AuthPreferenceRepositoryTest.kt
AuthQualifiers.kt
AuthorizedApiService.kt
CoroutineTestRule.kt
CoroutineTestRule.kt
DispatchersProvider.kt
GetAuthStatusUseCaseTest.kt
HomeViewModelTest.kt
MockUtil.kt
MockUtil.kt
OkHttpClientModule.kt
PreferencesModule.kt
README.md
RefreshTokenUseCaseTest.kt
RequestAuthenticatorTest.kt
RetrofitModule.kt
TokenRepository.kt
TokenRepositoryTest.kt
UpdateLoginTokensUseCaseTest.kt
Versions.kt
api-config.properties.sample
build.gradle.kts
Codebase cunningly covered by count Shroud 🧛
Generated by 🚫 Danger
fa8f851
to
fe479f7
Compare
fe479f7
to
701c368
Compare
#228
What happened 👀
Apply token authentication setup from GT to template
Insight 📝
N/A
Proof Of Work 📹
Screen.Recording.2024-05-30.at.1.50.37.PM.mov