Skip to content

Commit 9a99e30

Browse files
authored
Merge pull request #291 from synonymdev/chore/reformat
chore: reformat all code
2 parents 40e8dd4 + dc279a1 commit 9a99e30

File tree

124 files changed

+337
-275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+337
-275
lines changed

app/src/main/java/to/bitkit/App.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ import javax.inject.Inject
1313

1414
@HiltAndroidApp
1515
internal open class App : Application(), Configuration.Provider {
16-
@Inject
16+
@Inject
1717
lateinit var workerFactory: HiltWorkerFactory
1818

1919
override val workManagerConfiguration
2020
get() = Configuration.Builder()
2121
.setWorkerFactory(workerFactory)
2222
.build()
2323

24-
override fun onCreate() {
24+
override fun onCreate() {
2525
super.onCreate()
2626
currentActivity = CurrentActivity().also { registerActivityLifecycleCallbacks(it) }
2727
Env.initAppStoragePath(filesDir.absolutePath)

app/src/main/java/to/bitkit/androidServices/LightningNodeService.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,21 @@ class LightningNodeService : Service() {
6464
flags = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP
6565
}
6666
val pendingIntent = PendingIntent.getActivity(
67-
this, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE
67+
this,
68+
0,
69+
notificationIntent,
70+
PendingIntent.FLAG_IMMUTABLE
6871
)
6972

7073
// Create stop action that will close both service and app
7174
val stopIntent = Intent(this, LightningNodeService::class.java).apply {
7275
action = ACTION_STOP_SERVICE_AND_APP
7376
}
7477
val stopPendingIntent = PendingIntent.getService(
75-
this, 0, stopIntent, PendingIntent.FLAG_IMMUTABLE
78+
this,
79+
0,
80+
stopIntent,
81+
PendingIntent.FLAG_IMMUTABLE
7682
)
7783

7884
return NotificationCompat.Builder(this, CHANNEL_ID_NODE)

app/src/main/java/to/bitkit/data/AppDb.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import to.bitkit.data.typeConverters.StringListConverter
3131
],
3232
version = 2,
3333
)
34-
3534
@TypeConverters(StringListConverter::class)
3635
abstract class AppDb : RoomDatabase() {
3736
abstract fun configDao(): ConfigDao

app/src/main/java/to/bitkit/data/ChatwootHttpClient.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import io.ktor.client.request.post
77
import io.ktor.client.request.setBody
88
import io.ktor.client.statement.HttpResponse
99
import io.ktor.http.isSuccess
10-
import to.bitkit.BuildConfig
1110
import to.bitkit.env.Env
1211
import to.bitkit.models.ChatwootMessage
1312
import to.bitkit.utils.AppError

app/src/main/java/to/bitkit/data/backup/VssStoreIdProvider.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class VssStoreIdProvider @Inject constructor(
1717
fun getVssStoreId(): String {
1818
// TODO Temp fix as we don't have VSS auth yet
1919
if (Env.network == Network.BITCOIN) {
20-
error("Do not run this on mainnet until VSS auth is implemented. Below hack is a temporary fix and not safe for mainnet.")
20+
error(
21+
"Do not run this on mainnet until VSS auth is implemented. Below hack is a temporary fix and not safe for mainnet."
22+
)
2123
}
2224

2325
val mnemonic = keychain.loadString(Keychain.Key.BIP39_MNEMONIC.name) ?: throw ServiceError.MnemonicNotFound

app/src/main/java/to/bitkit/data/dao/InvoiceTagDao.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface InvoiceTagDao {
1414
suspend fun saveInvoice(invoiceTag: InvoiceTagEntity)
1515

1616
@Query("SELECT * FROM invoice_tag WHERE paymentHash = :paymentHash LIMIT 1")
17-
suspend fun searchInvoice(paymentHash: String) : InvoiceTagEntity?
17+
suspend fun searchInvoice(paymentHash: String): InvoiceTagEntity?
1818

1919
@Delete
2020
suspend fun deleteInvoice(invoiceTag: InvoiceTagEntity)

app/src/main/java/to/bitkit/data/dto/price/Change.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package to.bitkit.data.dto.price
33
import kotlinx.serialization.Serializable
44

55
@Serializable
6-
76
data class Change(
87
val isPositive: Boolean,
98
val formatted: String

app/src/main/java/to/bitkit/data/serializers/WidgetsSerializer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package to.bitkit.data.serializers
22

33
import androidx.datastore.core.Serializer
44
import kotlinx.serialization.SerializationException
5-
import to.bitkit.data.SettingsData
65
import to.bitkit.data.WidgetsData
76
import to.bitkit.di.json
87
import to.bitkit.utils.Logger

app/src/main/java/to/bitkit/data/widgets/BlocksService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class BlocksService @Inject constructor(
9797
}
9898
}
9999

100-
101100
/**
102101
* Block-specific error types
103102
*/

app/src/main/java/to/bitkit/data/widgets/NewsService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class NewsService @Inject constructor(
1919
private val client: HttpClient,
2020
) : WidgetService<List<ArticleDTO>> {
2121

22-
2322
override val widgetType = WidgetType.NEWS
2423
override val refreshInterval = 10.minutes
2524

0 commit comments

Comments
 (0)