-
Notifications
You must be signed in to change notification settings - Fork 1
chore: fix all warnings and code cleanup #594
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
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # .gitignore # README.md # app/src/main/java/to/bitkit/services/LightningService.kt
| val network = Network.valueOf(BuildConfig.NETWORK) | ||
| val locales = BuildConfig.LOCALES.split(",") | ||
| val walletSyncIntervalSecs = 10_uL // TODO review | ||
| val walletSyncIntervalSecs = 10_uL |
Check warning
Code scanning / detekt
Usage of `vals` that can be `const val` detected. Warning
| Network.TESTNET -> ElectrumServers.TESTNET | ||
| Network.BITCOIN -> ElectrumServers.BITCOIN | ||
| else -> TODO("${network.name} network not implemented") | ||
| else -> throw Error("${network.name} network not implemented") |
Check warning
Code scanning / detekt
The thrown exception is too generic. Prefer throwing project specific exceptions to handle error cases. Warning
| import androidx.compose.foundation.rememberScrollState | ||
| import androidx.compose.foundation.verticalScroll | ||
| import androidx.compose.runtime.Composable | ||
| import androidx.compose.runtime.Stable |
Check warning
Code scanning / detekt
Detects unused imports Warning
| import androidx.compose.ui.geometry.Offset | ||
| import androidx.compose.ui.graphics.Color | ||
| import androidx.compose.ui.graphics.PathEffect | ||
| import androidx.compose.ui.res.stringResource |
Check warning
Code scanning / detekt
Detects unused imports Warning
| import androidx.compose.ui.res.stringResource | ||
| import androidx.compose.ui.tooling.preview.Preview | ||
| import androidx.compose.ui.unit.dp | ||
| import to.bitkit.R |
Check warning
Code scanning / detekt
Detects unused imports Warning
This PR:
Description
The PR addresses multiple code quality improvements and new features:
Localization
Features
Refactoring
Cleanup
Preview
N/A - Primarily code quality and localization changes
QA Notes
1. Localization
2. Boost Fee Estimates
3. Weather Widget
4. Regression Testing