mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 03:19:18 +01:00
target/compile to sdk 30
This commit is contained in:
parent
c84526274a
commit
e2d3164c51
@ -104,7 +104,7 @@ dependencies {
|
||||
implementation("androidx.browser:browser:1.3.0")
|
||||
implementation("androidx.biometric:biometric:1.1.0")
|
||||
implementation("androidx.palette:palette:1.0.0")
|
||||
implementation("androidx.core:core-ktx:1.5.0-rc01")
|
||||
implementation("androidx.core:core-ktx:1.5.0")
|
||||
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.0.4")
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
||||
|
||||
<!-- To view extension packages in API 30+ -->
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||
|
@ -111,7 +111,7 @@ class BackupCreateService : Service() {
|
||||
else -> LegacyBackupManager(this)
|
||||
}
|
||||
|
||||
val backupFileUri = backupManager.createBackup(uri, backupFlags, false)?.toUri()
|
||||
val backupFileUri = backupManager.createBackup(uri!!, backupFlags, false)?.toUri()
|
||||
val unifile = UniFile.fromUri(this, backupFileUri)
|
||||
notifier.showBackupComplete(unifile, backupType == BackupConst.BACKUP_TYPE_LEGACY)
|
||||
} catch (e: Exception) {
|
||||
|
@ -62,13 +62,13 @@ class NotificationReceiver : BroadcastReceiver() {
|
||||
// Launch share activity and dismiss notification
|
||||
ACTION_SHARE_IMAGE -> shareImage(
|
||||
context,
|
||||
intent.getStringExtra(EXTRA_FILE_LOCATION),
|
||||
intent.getStringExtra(EXTRA_FILE_LOCATION)!!,
|
||||
intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1)
|
||||
)
|
||||
// Delete image from path and dismiss notification
|
||||
ACTION_DELETE_IMAGE -> deleteImage(
|
||||
context,
|
||||
intent.getStringExtra(EXTRA_FILE_LOCATION),
|
||||
intent.getStringExtra(EXTRA_FILE_LOCATION)!!,
|
||||
intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1)
|
||||
)
|
||||
// Cancel library update and dismiss notification
|
||||
@ -79,7 +79,7 @@ class NotificationReceiver : BroadcastReceiver() {
|
||||
ACTION_SHARE_BACKUP ->
|
||||
shareBackup(
|
||||
context,
|
||||
intent.getParcelableExtra(EXTRA_URI),
|
||||
intent.getParcelableExtra(EXTRA_URI)!!,
|
||||
intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1)
|
||||
)
|
||||
// Open reader activity
|
||||
@ -106,7 +106,7 @@ class NotificationReceiver : BroadcastReceiver() {
|
||||
ACTION_SHARE_CRASH_LOG ->
|
||||
shareFile(
|
||||
context,
|
||||
intent.getParcelableExtra(EXTRA_URI),
|
||||
intent.getParcelableExtra(EXTRA_URI)!!,
|
||||
"text/plain",
|
||||
intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1)
|
||||
)
|
||||
|
@ -129,7 +129,9 @@ open class BaseWebViewActivity : BaseActivity<WebviewActivityBinding>() {
|
||||
insets
|
||||
}
|
||||
} else {
|
||||
binding.webview.restoreState(bundle)
|
||||
bundle?.let {
|
||||
binding.webview.restoreState(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -158,6 +158,6 @@ open class WebViewActivity : BaseWebViewActivity() {
|
||||
}
|
||||
|
||||
private fun openInBrowser() {
|
||||
openInBrowser(binding.webview.url)
|
||||
binding.webview.url?.let { openInBrowser(it) }
|
||||
}
|
||||
}
|
||||
|
@ -101,9 +101,9 @@ object LegacyPluginClassPath {
|
||||
}
|
||||
|
||||
object AndroidVersions {
|
||||
const val compileSdk = 29
|
||||
const val compileSdk = 30
|
||||
const val minSdk = 23
|
||||
const val targetSdk = 29
|
||||
const val targetSdk = 30
|
||||
const val versionCode = 74
|
||||
const val versionName = "1.0.17"
|
||||
const val ndk = "22.0.7026061"
|
||||
|
Loading…
Reference in New Issue
Block a user