build: upgrade to gradle 8.0

This commit is contained in:
rhunk 2023-05-18 19:18:36 +02:00
parent 2718831a3b
commit c395c3374c
6 changed files with 14 additions and 11 deletions

View File

@ -7,12 +7,13 @@ def appVersionName = "0.0.1"
def appVersionCode = 1
android {
compileSdk 32
compileSdk 33
buildToolsVersion = "33.0.2"
defaultConfig {
applicationId "me.rhunk.snapenhance"
minSdk 29
targetSdk 32
targetSdk 33
versionCode appVersionCode
versionName appVersionName
multiDexEnabled true
@ -41,6 +42,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'me.rhunk.snapenhance'
}
afterEvaluate {

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="me.rhunk.snapenhance">
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.INTERNET" />

View File

@ -119,8 +119,8 @@ class MenuViewInjector : Feature("MenuViewInjector", loadParams = FeatureLoadPar
settingMenu.inject(viewGroup, originalAddView)
viewGroup.addOnAttachStateChangeListener(object: View.OnAttachStateChangeListener {
override fun onViewAttachedToWindow(v: View?) {}
override fun onViewDetachedFromWindow(v: View?) {
override fun onViewAttachedToWindow(v: View) {}
override fun onViewDetachedFromWindow(v: View) {
context.config.writeConfig()
}
})

View File

@ -1,10 +1,10 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.2.2' apply false
id 'com.android.library' version '7.2.2' apply false
id 'com.android.application' version '8.0.1' apply false
id 'com.android.library' version '8.0.1' apply false
id 'org.jetbrains.kotlin.android' version '1.8.21' apply false
}
task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}

View File

@ -21,3 +21,5 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false

View File

@ -1,6 +1,6 @@
#Fri May 12 21:23:16 CEST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME