Upgrade target sdk

master
Koitharu 10 months ago
parent ec048c70f1
commit d6350afe3a
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -11,14 +11,14 @@ plugins {
} }
android { android {
compileSdk = 35 compileSdk = 36
buildToolsVersion = '35.0.0' buildToolsVersion = '35.0.0'
namespace = 'org.koitharu.kotatsu' namespace = 'org.koitharu.kotatsu'
defaultConfig { defaultConfig {
applicationId 'org.koitharu.kotatsu' applicationId 'org.koitharu.kotatsu'
minSdk = 21 minSdk = 21
targetSdk = 35 targetSdk = 36
versionCode = 1023 versionCode = 1023
versionName = '9.0.1' versionName = '9.0.1'
generatedDensities = [] generatedDensities = []

@ -56,7 +56,9 @@ class KotatsuApp : BaseApp() {
detectLeakedSqlLiteObjects() detectLeakedSqlLiteObjects()
detectLeakedClosableObjects() detectLeakedClosableObjects()
detectLeakedRegistrationObjects() detectLeakedRegistrationObjects()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) detectContentUriWithoutPermission() if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
detectContentUriWithoutPermission()
}
detectFileUriExposure() detectFileUriExposure()
penaltyLog() penaltyLog()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && notifier != null) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && notifier != null) {

@ -10,7 +10,7 @@ class RememberCheckListener(
var isChecked: Boolean = initialValue var isChecked: Boolean = initialValue
private set private set
override fun onCheckedChanged(buttonView: CompoundButton?, isChecked: Boolean) { override fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean) {
this.isChecked = isChecked this.isChecked = isChecked
} }
} }

@ -105,7 +105,7 @@ class ScrollTimerControlView @JvmOverloads constructor(
updateDescription() updateDescription()
} }
override fun onCheckedChanged(buttonView: CompoundButton?, isChecked: Boolean) { override fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean) {
scrollTimer?.setActive(isChecked) scrollTimer?.setActive(isChecked)
} }

@ -81,7 +81,7 @@ class ProtectSetupActivity :
} }
} }
override fun onCheckedChanged(buttonView: CompoundButton?, isChecked: Boolean) { override fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean) {
viewModel.setBiometricEnabled(isChecked) viewModel.setBiometricEnabled(isChecked)
} }

@ -129,8 +129,8 @@ class StatsActivity : BaseActivity<ActivityStatsBinding>(),
} }
} }
override fun onCheckedChanged(buttonView: CompoundButton?, isChecked: Boolean) { override fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean) {
val category = buttonView?.tag as? FavouriteCategory ?: return val category = buttonView.tag as? FavouriteCategory ?: return
viewModel.setCategoryChecked(category, isChecked) viewModel.setCategoryChecked(category, isChecked)
} }

@ -18,7 +18,7 @@ desugar = "2.1.5"
diskLruCache = "1.5" diskLruCache = "1.5"
documentfile = "1.1.0" documentfile = "1.1.0"
fragment = "1.8.8" fragment = "1.8.8"
gradle = "8.10.1" gradle = "8.11.1"
guava = "33.4.8-android" guava = "33.4.8-android"
hilt = "1.2.0" hilt = "1.2.0"
json = "20250517" json = "20250517"

@ -2,6 +2,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionSha256Sum=7a00d51fb93147819aab76024feece20b6b84e420694101f276be952e08bef03 distributionSha256Sum=7a00d51fb93147819aab76024feece20b6b84e420694101f276be952e08bef03
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

Loading…
Cancel
Save