Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all dependencies #122

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/linter.yml

This file was deleted.

11 changes: 4 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
buildscript {
val compose_version by extra("1.6.4")
val wear_compose_version by extra("1.3.0")
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.3.1" apply false
id("com.android.library") version "8.3.1" apply false
id("org.jetbrains.kotlin.android") version "1.9.23" apply false
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.composePlugin) apply false
alias(libs.plugins.kotlinAndroid) apply false
}
50 changes: 20 additions & 30 deletions composesensors/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("com.vanniktech.maven.publish") version "0.28.0"
alias(libs.plugins.androidLibrary)
alias(libs.plugins.composePlugin)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.mavenPublish)
}

android {
namespace = "com.mutualmobile.composesensors"
compileSdk = 34

compileSdk = libs.versions.targetSdk.get().toInt()
defaultConfig {
minSdk = 21

minSdk = libs.versions.minSdk.get().toInt()
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
release {
isMinifyEnabled = false
Expand All @@ -25,35 +23,27 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "11"
jvmTarget = libs.versions.jvmTarget.get()
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.11"
}
}

dependencies {
val coreKtxVersion = "1.12.0"
val appCompatVersion = "1.6.1"
val materialVersion = "1.11.0"
val jUnitVersion = "4.13.2"
val androidJUnitVersion = "1.1.5"
val espressoVersion = "3.5.1"
val composeVersion = "1.6.4"

implementation("androidx.compose.runtime:runtime:$composeVersion")
implementation("androidx.compose.ui:ui:$composeVersion")
implementation("androidx.core:core-ktx:$coreKtxVersion")
implementation("androidx.appcompat:appcompat:$appCompatVersion")
implementation("com.google.android.material:material:$materialVersion")
testImplementation("junit:junit:$jUnitVersion")
androidTestImplementation("androidx.test.ext:junit:$androidJUnitVersion")
androidTestImplementation("androidx.test.espresso:espresso-core:$espressoVersion")
androidTestImplementation(libs.espresso)
androidTestImplementation(libs.junit.android)
androidTestImplementation(platform(libs.compose.bom))
implementation(libs.androidCore)
implementation(libs.appCompat)
implementation(libs.compose.runtime)
implementation(libs.compose.ui)
implementation(libs.material)
implementation(platform(libs.compose.bom))
testImplementation(libs.junit)
testImplementation(platform(libs.compose.bom))
}

This file was deleted.

This file was deleted.

55 changes: 55 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[versions]
agp = "8.7.1"
android-lifecycle-runtime = "2.8.6"
androidCore = "1.13.1"
appCompat = "1.7.0"
compose-wear = "1.4.0"
composeActivity = "1.9.3"
composeBom = "2024.10.00"
espresso = "3.6.1"
junit = "4.13.2"
junit-android = "1.2.1"
jvmTarget = "17"
kotlin = "2.0.21"
legacySupport = "1.0.0"
material = "1.12.0"
mavenPublish = "0.30.0"
minSdk = "21"
minSdkWear = "26"
percentLayout = "1.0.0"
playServicesWearable = "18.2.0"
splashScreen = "1.0.1"
targetSdk = "35"

[libraries]
android-lifecycle-runtime = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "android-lifecycle-runtime" }
android-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "android-lifecycle-runtime" }
androidCore = { module = "androidx.core:core-ktx", version.ref = "androidCore" }
appCompat = { module = "androidx.appcompat:appcompat", version.ref = "appCompat" }
compose-activity = { module = "androidx.activity:activity-compose", version.ref = "composeActivity" }
compose-bom = { module = "androidx.compose:compose-bom", version.ref = "composeBom" }
compose-material3 = { module = "androidx.compose.material3:material3" }
compose-runtime = { module = "androidx.compose.runtime:runtime" }
compose-ui = { module = "androidx.compose.ui:ui" }
compose-ui-graphics = { module = "androidx.compose.ui:ui-graphics" }
compose-ui-testManifest = { module = "androidx.compose.ui:ui-test-manifest" }
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
compose-wear-foundation = { module = "androidx.wear.compose:compose-foundation", version.ref = "compose-wear" }
compose-wear-material = { module = "androidx.wear.compose:compose-material", version.ref = "compose-wear" }
espresso = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso" }
junit = { module = "junit:junit", version.ref = "junit" }
junit-android = { module = "androidx.test.ext:junit", version.ref = "junit-android" }
junit-compose = { module = "androidx.compose.ui:ui-test-junit4" }
legacySupport = { module = "androidx.legacy:legacy-support-v4", version.ref = "legacySupport" }
material = { module = "com.google.android.material:material", version.ref = "material" }
percentLayout = { module = "androidx.percentlayout:percentlayout", version.ref = "percentLayout" }
playServicesWearable = { module = "com.google.android.gms:play-services-wearable", version.ref = "playServicesWearable" }
splashScreen = { module = "androidx.core:core-splashscreen", version.ref = "splashScreen" }

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
androidLibrary = { id = "com.android.library", version.ref = "agp" }
composePlugin = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
mavenPublish = { id = "com.vanniktech.maven.publish", version.ref = "mavenPublish" }
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
7 changes: 5 additions & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -55,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/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 Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down
74 changes: 32 additions & 42 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
import java.util.Properties

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
alias(libs.plugins.androidApplication)
alias(libs.plugins.composePlugin)
alias(libs.plugins.kotlinAndroid)
}

android {
namespace = "com.mutualmobile.sample"
compileSdk = 34

compileSdk = libs.versions.targetSdk.get().toInt()
defaultConfig {
applicationId = "com.mutualmobile.sample"
minSdk = 21
targetSdk = 34
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.targetSdk.get().toInt()
versionCode = 1
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true
}
}

signingConfigs {
val propertiesFile = File("keystore.properties")
if (propertiesFile.exists()) {
Expand All @@ -37,31 +35,30 @@ android {
}
}
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
runCatching { signingConfigs.getByName("release") }
.onSuccess { safeConfig -> signingConfig = safeConfig }
runCatching {
signingConfigs.getByName("release")
}.onSuccess { config ->
signingConfig = config
}
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "11"
jvmTarget = libs.versions.jvmTarget.get()
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.11"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
Expand All @@ -70,29 +67,22 @@ android {
}

dependencies {
val composeVersion = "1.6.4"
val material3Version = "1.2.1"
val lifecycleRuntimeKtxVersion = "2.7.0"
val coreKtxVersion = "1.12.0"
val activityComposeVersion = "1.8.2"
val jUnitVersion = "4.13.2"
val androidJUnitVersion = "1.1.5"
val espressoVersion = "3.5.1"
val splashScreenVersion = "1.0.1"

implementation(project(mapOf("path" to ":composesensors")))
implementation("androidx.core:core-ktx:$coreKtxVersion")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleRuntimeKtxVersion")
implementation("androidx.activity:activity-compose:$activityComposeVersion")
implementation("androidx.compose.ui:ui:$composeVersion")
implementation("androidx.compose.ui:ui-graphics:$composeVersion")
implementation("androidx.compose.ui:ui-tooling-preview:$composeVersion")
implementation("androidx.compose.material3:material3:$material3Version")
testImplementation("junit:junit:$jUnitVersion")
androidTestImplementation("androidx.test.ext:junit:$androidJUnitVersion")
androidTestImplementation("androidx.test.espresso:espresso-core:$espressoVersion")
androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeVersion")
debugImplementation("androidx.compose.ui:ui-tooling:$composeVersion")
debugImplementation("androidx.compose.ui:ui-test-manifest:$composeVersion")
implementation("androidx.core:core-splashscreen:$splashScreenVersion")
androidTestImplementation(libs.espresso)
androidTestImplementation(libs.junit.android)
androidTestImplementation(libs.junit.compose)
androidTestImplementation(platform(libs.compose.bom))
debugImplementation(libs.compose.ui.testManifest)
debugImplementation(libs.compose.ui.tooling)
implementation(libs.android.lifecycle.runtime)
implementation(libs.androidCore)
implementation(libs.compose.activity)
implementation(libs.compose.material3)
implementation(libs.compose.ui)
implementation(libs.compose.ui.graphics)
implementation(libs.compose.ui.tooling.preview)
implementation(libs.splashScreen)
implementation(platform(libs.compose.bom))
implementation(project(":composesensors"))
testImplementation(libs.junit)
testImplementation(platform(libs.compose.bom))
}
Loading