Skip to content

Commit

Permalink
Update dependencies, kotlin and setup 3.0.0 development
Browse files Browse the repository at this point in the history
Signed-off-by: IacobIonut01 <[email protected]>
  • Loading branch information
IacobIonut01 committed Jun 23, 2024
1 parent 0779a5e commit 9917971
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 36 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
.externalNativeBuild
.cxx
local.properties
api.properties
api.properties
/.kotlin
/.vscode
20 changes: 12 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
import java.io.FileInputStream
import java.util.Properties

Expand All @@ -9,6 +8,7 @@ plugins {
alias(libs.plugins.roomPlugin)
alias(libs.plugins.hiltAndroid)
alias(libs.plugins.baselineProfilePlugin)
alias(libs.plugins.kotlin.compose.compiler)
id("kotlin-parcelize")
}

Expand All @@ -20,16 +20,16 @@ android {
applicationId = "com.dot.gallery"
minSdk = 30
targetSdk = 34
versionCode = 21204
versionName = "2.1.2"
versionCode = 30000
versionName = "3.0.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true
}
archivesName.set("Gallery-${versionName}-$versionCode")
base.archivesName.set("Gallery-${versionName}-$versionCode")
if (getApiKey() == "\"DEBUG\"") {
archivesName.set("${archivesName.get()}-nomaps")
base.archivesName.set("${base.archivesName.get()}-nomaps")
}
}

Expand Down Expand Up @@ -95,15 +95,15 @@ android {
}
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs += listOf("-P", "plugin:androidx.compose.compiler.plugins.kotlin:experimentalStrongSkipping=true")
freeCompilerArgs += "-Xcontext-receivers"
}
buildFeatures {
compose = true
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
composeCompiler {
enableStrongSkippingMode = true
includeSourceInformation = true
}
packaging {
resources {
Expand Down Expand Up @@ -204,6 +204,10 @@ dependencies {
// Splashscreen
implementation(libs.androidx.core.splashscreen)

// Jetpack Security
implementation(libs.androidx.security.crypto)
implementation(libs.androidx.biometric)

// Tests
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
Expand Down
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.hiltAndroid) apply false
alias(libs.plugins.kspAndroid) apply false
alias(libs.plugins.roomPlugin) apply false
alias(libs.plugins.androidTest) apply false
alias(libs.plugins.baselineProfilePlugin) apply false
alias(libs.plugins.kotlin.compose.compiler) apply false
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx4G -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand Down
32 changes: 18 additions & 14 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
[versions]
agp = "8.3.2"
benchmarkMacroJunit4 = "1.2.4"
composeCompiler = "1.5.11"
appcompat = "1.6.1"
biometric = "1.2.0-alpha05"
appcompat = "1.7.0"
coilVersion = "3.0.0-alpha06"
coreSplashscreen = "1.0.1"
fuzzywuzzy = "1.4.0"
exifinterface = "1.3.7"
gpuimage = "2.1.0"
jxlCoder = "2.1.10"
kotlin = "1.9.23"
kotlinCoroutinesVersion = "1.8.0"
ksp = "1.9.23-1.0.19"
core-ktx = "1.13.0"
kotlin = "2.0.0"
kotlinCoroutinesVersion = "1.8.1"
ksp = "2.0.0-1.0.21"
core-ktx = "1.13.1"
junit = "4.13.2"
androidx-test-ext-junit = "1.1.5"
espresso-core = "3.5.1"
lifecycle-runtime = "2.7.0"
lifecycle-runtime = "2.8.2"
activity-compose = "1.9.0"
compose-bom = "2024.04.01"
compose-bom = "2024.06.00"
hilt = "2.51"
material = "1.11.0"
material = "1.12.0"
material3 = "1.2.1"
media3Ui = "1.3.1"
media3Exoplayer = "1.3.1"
Expand All @@ -29,14 +29,17 @@ pinchzoomgrid = "0.0.5"
profileinstaller = "1.3.1"
room = "2.6.1"
accompanist = "0.34.0"
datastore = "1.1.0"
datastore = "1.1.1"
securityCrypto = "1.1.0-alpha06"
uiautomator = "2.3.0"
zoomable = "1.6.1"
zoomableImageCoil = "0.9.0"
zoomableImageCoil = "0.11.2"
composealpha = "1.7.0-beta03"

[libraries]
# AndroidX
androidx-benchmark-macro-junit4 = { module = "androidx.benchmark:benchmark-macro-junit4", version.ref = "benchmarkMacroJunit4" }
androidx-biometric = { module = "androidx.biometric:biometric", version.ref = "biometric" }
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "core-ktx" }
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
androidx-core-splashscreen = { module = "androidx.core:core-splashscreen", version.ref = "coreSplashscreen" }
Expand All @@ -48,6 +51,7 @@ androidx-navigation-compose = { module = "androidx.navigation:navigation-compose
androidx-profileinstaller = { module = "androidx.profileinstaller:profileinstaller", version.ref = "profileinstaller" }

# Coil
androidx-security-crypto = { module = "androidx.security:security-crypto", version.ref = "securityCrypto" }
androidx-uiautomator = { module = "androidx.test.uiautomator:uiautomator", version.ref = "uiautomator" }
coil-video = { module = "io.coil-kt.coil3:coil-video", version.ref = "coilVersion" }
coil-gif = { module = "io.coil-kt.coil3:coil-gif", version.ref = "coilVersion" }
Expand All @@ -61,20 +65,19 @@ compose-activity = { group = "androidx.activity", name = "activity-compose", ver
compose-runtime = { group = "androidx.compose.runtime", name = "runtime" }
compose-foundation = { group = "androidx.compose.foundation", name = "foundation" }
compose-lifecycle-runtime = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "lifecycle-runtime" }
compose-material-icons-extended = { module = "androidx.compose.material:material-icons-extended" }
compose-material-icons-extended = { module = "androidx.compose.material:material-icons-extended", version = "composealpha" }
compose-material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "material3" }
compose-material3-window-size = { group = "androidx.compose.material3", name = "material3-window-size-class", version.ref = "material3" }
compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
compose-ui-tooling-preview = { group = "androidx.compose.ui", name= "ui-tooling-preview" }
compose-ui = { group = "androidx.compose.ui", name = "ui" }
compose-ui = { group = "androidx.compose.ui", name = "ui", version.ref = "composealpha" }
compose-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }

# Compose-shimmer
compose-shimmer = { group = "com.valentinilk.shimmer", name = "compose-shimmer", version = "1.3.0"}

# Compose Tests
compose-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
compose-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }

# Dagger
dagger-hilt = { group = "com.google.dagger", name = "hilt-android", version.ref = "hilt" }
Expand Down Expand Up @@ -125,5 +128,6 @@ kspAndroid = { id = "com.google.devtools.ksp", version.ref = "ksp" }
roomPlugin = { id = "androidx.room", version.ref = "room" }
hiltAndroid = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
baselineProfilePlugin = { id = "androidx.baselineprofile", version.ref = "benchmarkMacroJunit4" }
kotlin-compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
[bundles]

4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=9631d53cf3e74bfa726893aee1f8994fee4e060c401335946dba2156f440f24c
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionSha256Sum=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
12 changes: 6 additions & 6 deletions libs/cropper/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
@file:Suppress("UnstableApiUsage")

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.kotlin.compose.compiler)
}

android {
Expand Down Expand Up @@ -30,8 +29,9 @@ android {
jvmTarget = "17"
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
composeCompiler {
enableStrongSkippingMode = true
includeSourceInformation = true
}

buildFeatures {
Expand Down
10 changes: 6 additions & 4 deletions libs/gesture/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.kotlin.compose.compiler)
}

android {
Expand Down Expand Up @@ -28,8 +29,9 @@ android {
jvmTarget = "17"
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
composeCompiler {
enableStrongSkippingMode = true
includeSourceInformation = true
}

buildFeatures {
Expand Down

0 comments on commit 9917971

Please sign in to comment.