Skip to content

Commit e68ebdf

Browse files
committed
update gradle
1 parent 48997f4 commit e68ebdf

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ debug/
88
release/
99
captures/
1010
.externalNativeBuild
11-
.cxx
11+
.cxx
12+
.kotlin/

app/build.gradle.kts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import org.gradle.kotlin.dsl.support.kotlinCompilerOptions
2+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3+
14
plugins {
25
id("com.android.application")
36
id("org.jetbrains.kotlin.android")
@@ -27,14 +30,17 @@ android {
2730
}
2831
}
2932
compileOptions {
30-
sourceCompatibility = JavaVersion.VERSION_17
31-
targetCompatibility = JavaVersion.VERSION_17
33+
sourceCompatibility = JavaVersion.VERSION_21
34+
targetCompatibility = JavaVersion.VERSION_21
3235
}
3336
kotlinOptions {
34-
jvmTarget = "17"
37+
jvmTarget = "21"
3538
}
3639
}
3740

3841
kotlin {
39-
jvmToolchain(17)
42+
compilerOptions {
43+
jvmTarget.set(JvmTarget.JVM_21)
44+
}
45+
jvmToolchain(21)
4046
}

app/src/main/java/me/dyskal/sharefix/ShareActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class ShareActivity : Activity() {
2727

2828
override fun onCreate(savedInstanceState: Bundle?) {
2929
super.onCreate(savedInstanceState)
30-
finish()
3130

3231
if (intent.action == Intent.ACTION_SEND && intent.type == "text/plain") {
3332
val uri = Uri.parse(intent.getStringExtra(Intent.EXTRA_TEXT))
@@ -40,5 +39,6 @@ class ShareActivity : Activity() {
4039
Toast.makeText(applicationContext, "ShareFix copied", Toast.LENGTH_SHORT).show()
4140
}
4241
}
42+
finish()
4343
}
4444
}

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
id("com.android.application") version "8.1.3" apply false
4-
id("org.jetbrains.kotlin.android") version "1.9.20" apply false
3+
id("com.android.application") version "8.6.1" apply false
4+
id("org.jetbrains.kotlin.android") version "2.0.20" apply false
55
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ kotlin.code.style=official
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
2323
android.nonTransitiveRClass=true
24-
org.gradle.configuration-cache=true
24+
#org.gradle.configuration-cache=true

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
#Thu Dec 07 16:54:39 CET 2023
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
45
networkTimeout=10000
56
validateDistributionUrl=true
67
zipStoreBase=GRADLE_USER_HOME

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("UnstableApiUsage")
2+
13
pluginManagement {
24
repositories {
35
google()

0 commit comments

Comments
 (0)