Исправлено много варнингов
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-feature
|
||||
android:name="android.hardware.camera"
|
||||
android:required="false" />
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
@@ -33,12 +36,36 @@
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="wallenc" android:host="main" />
|
||||
<data android:scheme="wallenc" android:host="tasks" />
|
||||
<data android:scheme="wallenc" android:host="settings" />
|
||||
<data android:scheme="wallenc" />
|
||||
<data android:host="main" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="wallenc" />
|
||||
<data android:host="tasks" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="wallenc" />
|
||||
<data android:host="settings" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
android:name="androidx.startup.InitializationProvider"
|
||||
android:authorities="${applicationId}.androidx-startup"
|
||||
android:exported="false"
|
||||
tools:node="merge">
|
||||
<meta-data
|
||||
android:name="androidx.work.WorkManagerInitializer"
|
||||
android:value="androidx.startup"
|
||||
tools:node="remove" />
|
||||
</provider>
|
||||
|
||||
<service
|
||||
android:name=".tasks.TaskPipelineForegroundService"
|
||||
android:exported="false"
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.github.nullptroma.wallenc.app.navigation
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import androidx.core.net.toUri
|
||||
import com.github.nullptroma.wallenc.app.MainActivity
|
||||
import com.github.nullptroma.wallenc.ui.navigation.WallencDeepLinks
|
||||
|
||||
@@ -39,5 +40,5 @@ object WallencExternalLaunch {
|
||||
}
|
||||
|
||||
fun mainActivityViewIntentForTasks(context: Context): Intent =
|
||||
mainActivityViewIntent(context, Uri.parse(WallencDeepLinks.TASKS_URI_PATTERN))
|
||||
mainActivityViewIntent(context, WallencDeepLinks.TASKS_URI_PATTERN.toUri())
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.FlowPreview
|
||||
import kotlinx.coroutines.SupervisorJob
|
||||
import kotlinx.coroutines.flow.collect
|
||||
import kotlinx.coroutines.flow.collectLatest
|
||||
import kotlinx.coroutines.flow.debounce
|
||||
import kotlinx.coroutines.flow.map
|
||||
@@ -36,8 +35,8 @@ class StorageSyncBootstrap @Inject constructor(
|
||||
}
|
||||
val triggers = storages.flatMap { storage ->
|
||||
listOf(
|
||||
storage.accessor.filesUpdates.map { Unit },
|
||||
storage.accessor.dirsUpdates.map { Unit },
|
||||
storage.accessor.filesUpdates.map {},
|
||||
storage.accessor.dirsUpdates.map {},
|
||||
)
|
||||
}
|
||||
merge(*triggers.toTypedArray())
|
||||
|
||||
Reference in New Issue
Block a user