Skip to content

Commit

Permalink
Merge pull request #46 from childofthehorn/coth-update-apr23
Browse files Browse the repository at this point in the history
Updating Android App dependencies to latest for AS Electric Eel
  • Loading branch information
sdsantos authored May 8, 2023
2 parents 6a2815b + 06b4805 commit 92c4988
Show file tree
Hide file tree
Showing 15 changed files with 222 additions and 144 deletions.
6 changes: 3 additions & 3 deletions NewProjectCI/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.7.10"
kotlin("jvm") version "1.8.20"
application
}

Expand All @@ -17,7 +17,7 @@ repositories {
}

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

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.jvmTarget = "11"
}


Expand Down
Binary file modified NewProjectCI/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions NewProjectCI/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
18 changes: 14 additions & 4 deletions NewProjectCI/gradlew
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,10 +80,10 @@ do
esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

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

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
Expand Down Expand Up @@ -143,12 +143,16 @@ fi
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -205,6 +209,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
8 changes: 6 additions & 2 deletions template/androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ android {
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

hilt { enableAggregatingTask = true }
Expand All @@ -47,6 +47,10 @@ android {
)
}

kotlin {
jvmToolchain(11)
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get().toString()
}
Expand Down
4 changes: 2 additions & 2 deletions template/build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ plugins {
group = "io.bloco.template.buildlogic"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CoroutinesConventionPlugin: Plugin<Project> {
"-opt-in=kotlin.Experimental",
)

jvmTarget = JavaVersion.VERSION_1_8.toString()
jvmTarget = JavaVersion.VERSION_11.toString()
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class KotlinFeatureConventionPlugin : Plugin<Project> {
}

extensions.configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 5 additions & 1 deletion template/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {
dependencies {
@Suppress("GradleDynamicVersion")
classpath("com.github.ben-manes:gradle-versions-plugin:+")
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.0.0")
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.3.1")
}
}

Expand Down Expand Up @@ -53,6 +53,10 @@ allprojects {
dependencies {
add("detektPlugins", "io.gitlab.arturbosch.detekt:detekt-formatting:$detektVersion")
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "11"
}
}

fun String.isNonStable(): Boolean {
Expand Down
32 changes: 16 additions & 16 deletions template/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@ sdk-compile = "33"
sdk-target = "33"
sdk-min = "23"

gradle-android = "7.3.1"
gradle-android = "7.4.2"
gradle-versions = "0.43.0"

compose = "1.3.2"
compose = "1.4.2"
compose-material = "1.0.1"
compose-compiler = "1.3.2"
compose-compiler = "1.4.6"
compose-navigation = "2.5.3"
compose-navigation-hilt = "1.0.0"
accompanist = "0.28.0"
accompanist = "0.30.1"
datastore = "1.0.0"

lint = "30.3.1"
lint = "25.3.0"
detekt = "1.22.0"

javax = "1"
hilt = "2.44.2"
mockk = "1.13.3"
hilt-testing = "2.44"
hilt = "2.45"
mockk = "1.13.5"
hilt-testing = "2.45"
dagger = "2.43.2"
kotlin = "1.7.20"
ktor = "2.2.1"
kotlin = "1.8.20"
ktor = "2.3.0"
jvm = "5.4.1"
coroutines = "1.6.4"

[libraries]
## Android
androidx-core = { group = "androidx.core", name = "core-ktx", version = "1.9.0" }
androidx-lifecycle = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version = "2.5.1" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version = "1.6.1" }
androidx-lifecycle = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version = "2.6.1" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version = "1.7.1" }

hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "hilt" }
hilt-navigation-compose = { group = "androidx.hilt", name = "hilt-navigation-compose", version.ref = "compose-navigation-hilt" }
Expand Down Expand Up @@ -62,8 +62,8 @@ compose-tools-manifest = { group = "androidx.compose.ui", name = "ui-test-manife

# Testing
test-core = { group = "androidx.test", name = "core", version = "1.5.0" }
test-junit = { group = "androidx.test.ext", name = "junit", version = "1.1.4" }
test-espresso = { group = "androidx.test.espresso", name = "espresso-core", version = "3.5.0" }
test-junit = { group = "androidx.test.ext", name = "junit", version = "1.1.5" }
test-espresso = { group = "androidx.test.espresso", name = "espresso-core", version = "3.5.1" }
test-compose = { group = "androidx.compose.ui", name = "ui-test-junit4", version.ref = "compose" }
test-navigation = { group = "androidx.navigation", name = "navigation-testing", version.ref = "compose-navigation" }

Expand All @@ -86,7 +86,7 @@ junit = { group = "junit", name = "junit", version = "4.13.2" }
mockk = { group = "io.mockk", name = "mockk", version.ref = "mockk" }
mockk-android = { group = "io.mockk", name = "mockk-android", version.ref = "mockk" }
mockk-agent = { group = "io.mockk", name = "mockk-agent-jvm", version.ref = "mockk" }
turbine = { group = "app.cash.turbine", name = "turbine", version = "0.12.1" }
turbine = { group = "app.cash.turbine", name = "turbine", version = "0.12.3" }

hilt-test = { group = "com.google.dagger", name = "hilt-android-testing", version.ref = "hilt-testing"}
hilt-test-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "hilt-testing"}
Expand Down Expand Up @@ -157,5 +157,5 @@ jvm = { id = "java-library", version.ref = "jvm" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version = "11.0.0" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version = "11.3.1" }
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
Binary file modified template/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions template/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Oct 19 18:38:53 WEST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 92c4988

Please sign in to comment.