Skip to content

Commit 92c4988

Browse files
authored
Merge pull request #46 from childofthehorn/coth-update-apr23
Updating Android App dependencies to latest for AS Electric Eel
2 parents 6a2815b + 06b4805 commit 92c4988

File tree

15 files changed

+222
-144
lines changed

15 files changed

+222
-144
lines changed

NewProjectCI/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
4-
kotlin("jvm") version "1.7.10"
4+
kotlin("jvm") version "1.8.20"
55
application
66
}
77

@@ -17,7 +17,7 @@ repositories {
1717
}
1818

1919
dependencies {
20-
implementation("com.github.ajalt.clikt:clikt:3.5.0")
20+
implementation("com.github.ajalt.clikt:clikt:3.5.2")
2121
implementation("me.tongfei:progressbar:0.9.5")
2222
implementation("org.lucee:commons-io:2.6.0")
2323
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
@@ -30,7 +30,7 @@ tasks.test {
3030
}
3131

3232
tasks.withType<KotlinCompile> {
33-
kotlinOptions.jvmTarget = "1.8"
33+
kotlinOptions.jvmTarget = "11"
3434
}
3535

3636

1.99 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
5-
zipStorePath=wrapper/dists
6+
zipStorePath=wrapper/dists

NewProjectCI/gradlew

100644100755
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac
@@ -205,6 +209,12 @@ set -- \
205209
org.gradle.wrapper.GradleWrapperMain \
206210
"$@"
207211

212+
# Stop when "xargs" is not available.
213+
if ! command -v xargs >/dev/null 2>&1
214+
then
215+
die "xargs is not available"
216+
fi
217+
208218
# Use "xargs" to parse quoted args.
209219
#
210220
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

template/androidApp/build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ android {
3333
}
3434

3535
compileOptions {
36-
sourceCompatibility = JavaVersion.VERSION_1_8
37-
targetCompatibility = JavaVersion.VERSION_1_8
36+
sourceCompatibility = JavaVersion.VERSION_11
37+
targetCompatibility = JavaVersion.VERSION_11
3838
}
3939

4040
hilt { enableAggregatingTask = true }
@@ -47,6 +47,10 @@ android {
4747
)
4848
}
4949

50+
kotlin {
51+
jvmToolchain(11)
52+
}
53+
5054
composeOptions {
5155
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get().toString()
5256
}

template/build-logic/convention/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ plugins {
55
group = "io.bloco.template.buildlogic"
66

77
java {
8-
sourceCompatibility = JavaVersion.VERSION_1_8
9-
targetCompatibility = JavaVersion.VERSION_1_8
8+
sourceCompatibility = JavaVersion.VERSION_11
9+
targetCompatibility = JavaVersion.VERSION_11
1010
}
1111

1212
dependencies {

template/build-logic/convention/src/main/kotlin/CoroutinesConventionPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CoroutinesConventionPlugin: Plugin<Project> {
2424
"-opt-in=kotlin.Experimental",
2525
)
2626

27-
jvmTarget = JavaVersion.VERSION_1_8.toString()
27+
jvmTarget = JavaVersion.VERSION_11.toString()
2828
}
2929

3030
dependencies {

template/build-logic/convention/src/main/kotlin/KotlinFeatureConventionPlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class KotlinFeatureConventionPlugin : Plugin<Project> {
1919
}
2020

2121
extensions.configure<JavaPluginExtension> {
22-
sourceCompatibility = JavaVersion.VERSION_1_8
23-
targetCompatibility = JavaVersion.VERSION_1_8
22+
sourceCompatibility = JavaVersion.VERSION_11
23+
targetCompatibility = JavaVersion.VERSION_11
2424
}
2525

2626
dependencies {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

template/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
dependencies {
1515
@Suppress("GradleDynamicVersion")
1616
classpath("com.github.ben-manes:gradle-versions-plugin:+")
17-
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.0.0")
17+
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.3.1")
1818
}
1919
}
2020

@@ -53,6 +53,10 @@ allprojects {
5353
dependencies {
5454
add("detektPlugins", "io.gitlab.arturbosch.detekt:detekt-formatting:$detektVersion")
5555
}
56+
57+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
58+
kotlinOptions.jvmTarget = "11"
59+
}
5660
}
5761

5862
fun String.isNonStable(): Boolean {

0 commit comments

Comments
 (0)