target/compile to sdk 30

This commit is contained in:
Jays2Kings 2021-05-26 16:35:43 -04:00
parent c84526274a
commit e2d3164c51
7 changed files with 13 additions and 10 deletions

View File

@ -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")

View File

@ -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" />

View File

@ -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) {

View File

@ -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)
)

View File

@ -129,7 +129,9 @@ open class BaseWebViewActivity : BaseActivity<WebviewActivityBinding>() {
insets
}
} else {
binding.webview.restoreState(bundle)
bundle?.let {
binding.webview.restoreState(it)
}
}
}

View File

@ -158,6 +158,6 @@ open class WebViewActivity : BaseWebViewActivity() {
}
private fun openInBrowser() {
openInBrowser(binding.webview.url)
binding.webview.url?.let { openInBrowser(it) }
}
}

View File

@ -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"