Merge pull request #5941 from k9mail/update_build_tools
Update build tools
This commit is contained in:
commit
721273ddbf
8 changed files with 9 additions and 15 deletions
|
@ -17,7 +17,6 @@ internal data class NotificationData(
|
|||
val isSingleMessageNotification: Boolean
|
||||
get() = activeNotifications.size == 1
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
val messageReferences: List<MessageReference>
|
||||
get() {
|
||||
return buildList(capacity = newMessagesCount) {
|
||||
|
|
|
@ -41,7 +41,6 @@ internal class SingleMessageNotificationDataCreator {
|
|||
)
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private fun createSingleNotificationActions(): List<NotificationAction> {
|
||||
return buildList {
|
||||
add(NotificationAction.Reply)
|
||||
|
@ -53,7 +52,6 @@ internal class SingleMessageNotificationDataCreator {
|
|||
}
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private fun createSingleNotificationWearActions(account: Account): List<WearNotificationAction> {
|
||||
return buildList {
|
||||
add(WearNotificationAction.Reply)
|
||||
|
|
|
@ -43,7 +43,6 @@ internal class SummaryNotificationDataCreator(
|
|||
)
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private fun createSummaryNotificationActions(): List<SummaryNotificationAction> {
|
||||
return buildList {
|
||||
add(SummaryNotificationAction.MarkAsRead)
|
||||
|
@ -54,7 +53,6 @@ internal class SummaryNotificationDataCreator(
|
|||
}
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private fun createSummaryWearNotificationActions(account: Account): List<SummaryWearNotificationAction> {
|
||||
return buildList {
|
||||
add(SummaryWearNotificationAction.MarkAsRead)
|
||||
|
|
|
@ -266,7 +266,6 @@ class SummaryNotificationDataCreatorTest {
|
|||
return NotificationData(account, activeNotifications, inactiveNotifications = emptyList())
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private fun createNotificationDataWithMultipleMessages(times: Int = 2): NotificationData {
|
||||
val contentList = buildList {
|
||||
repeat(times) {
|
||||
|
|
|
@ -5,13 +5,13 @@ import androidx.lifecycle.LifecycleOwner
|
|||
import androidx.lifecycle.lifecycleScope
|
||||
import androidx.lifecycle.repeatOnLifecycle
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.collect
|
||||
import kotlinx.coroutines.flow.FlowCollector
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
fun <T> Flow<T>.observe(lifecycleOwner: LifecycleOwner, action: suspend (T) -> Unit) {
|
||||
fun <T> Flow<T>.observe(lifecycleOwner: LifecycleOwner, collector: FlowCollector<T>) {
|
||||
lifecycleOwner.lifecycleScope.launch {
|
||||
lifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) {
|
||||
collect(action)
|
||||
collect(collector)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
10
build.gradle
10
build.gradle
|
@ -6,13 +6,13 @@ buildscript {
|
|||
'compileSdk': 31,
|
||||
'targetSdk': 31,
|
||||
'minSdk': 21,
|
||||
'buildTools': '30.0.3',
|
||||
'buildTools': '32.0.0',
|
||||
'robolectricSdk': 31
|
||||
]
|
||||
|
||||
versions = [
|
||||
'kotlin': '1.5.31',
|
||||
'kotlinCoroutines': '1.5.2',
|
||||
'kotlin': '1.6.10',
|
||||
'kotlinCoroutines': '1.6.0',
|
||||
'androidxAppCompat': '1.3.1',
|
||||
'androidxActivity': '1.4.0',
|
||||
'androidxRecyclerView': '1.2.1',
|
||||
|
@ -32,7 +32,7 @@ buildscript {
|
|||
'fastAdapter': '5.5.1',
|
||||
'preferencesFix': '1.1.0',
|
||||
'okio': '2.10.0',
|
||||
'moshi': '1.12.0',
|
||||
'moshi': '1.13.0',
|
||||
'timber': '5.0.1',
|
||||
'koin': '3.1.3',
|
||||
'commonsIo': '2.6',
|
||||
|
@ -65,7 +65,7 @@ buildscript {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.0.3'
|
||||
classpath 'com.android.tools.build:gradle:7.1.2'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
|
||||
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
|
||||
}
|
||||
|
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
Loading…
Reference in a new issue