Skip to content

Bump up dependencies #139

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {

android {

namespace = "com.jayasuryat.minesweeperjc"

compileSdk = BuildConfig.compileSdk

defaultConfig {
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.jayasuryat.minesweeperjc">
xmlns:tools="http://schemas.android.com/tools">

<application
android:name=".MinesweeperApp"
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ buildscript {
}

dependencies {
classpath("com.android.tools.build:gradle:7.4.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10")
classpath("com.android.tools.build:gradle:8.2.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
classpath("com.github.ben-manes:gradle-versions-plugin:0.46.0")
classpath("com.squareup.sqldelight:gradle-plugin:1.5.5")
classpath(kotlin("serialization", version = "1.6.10"))
classpath(kotlin("serialization", version = "1.9.23"))
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/BuildConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import org.gradle.api.JavaVersion

object BuildConfig {

const val compileSdk: Int = 33
const val compileSdk: Int = 34
const val minSdk: Int = 22
const val targetSdk: Int = 33
const val targetSdk: Int = 34

val javaVersion = JavaVersion.VERSION_1_8
const val jvmTarget = "1.8"
Expand Down
24 changes: 12 additions & 12 deletions buildSrc/src/main/java/Dependency.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ object Dependency {

object Compose {

const val composeCompilerVersion = "1.4.4"
private const val composeVersion = "1.4.1"
const val composeCompilerVersion = "1.5.13"
private const val composeVersion = "1.6.7"

const val ui = "androidx.compose.ui:ui:$composeVersion"
const val uiUtil = "androidx.compose.ui:ui-util:$composeVersion"
const val material = "androidx.compose.material:material:$composeVersion"
const val toolingPreview = "androidx.compose.ui:ui-tooling-preview:$composeVersion"
const val tooling = "androidx.compose.ui:ui-tooling:$composeVersion"
const val activity = "androidx.activity:activity-compose:1.7.0"
const val navigation = "androidx.navigation:navigation-compose:2.5.3"
const val activity = "androidx.activity:activity-compose:1.9.0"
const val navigation = "androidx.navigation:navigation-compose:2.7.7"

private const val accompanaistVersion = "0.30.1"
private const val accompanaistVersion = "0.34.0"
const val accompanistInsets =
"com.google.accompanist:accompanist-insets:$accompanaistVersion"
"com.google.accompanist:accompanist-insets:0.30.1"
const val accompanistPager =
"com.google.accompanist:accompanist-pager:$accompanaistVersion"
const val accompanistNavAnimation =
Expand All @@ -51,20 +51,20 @@ object Dependency {
}
}

const val coreKtx = "androidx.core:core-ktx:1.9.0"
const val coreKtx = "androidx.core:core-ktx:1.13.1"
const val material = "com.google.android.material:material:1.8.0"

const val lifecycleRuntime = "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"
const val lifecycleRuntime = "androidx.lifecycle:lifecycle-runtime-ktx:2.7.0"

private const val taktVersion = "2.1.1"
const val takt = "jp.wasabeef:takt:$taktVersion"
const val taktNoOp = "jp.wasabeef:takt-no-op:$taktVersion"

const val settings = "com.russhwolf:multiplatform-settings-no-arg:1.0.0"
const val kotlinxSerialization = "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0"
const val settings = "com.russhwolf:multiplatform-settings-no-arg:1.1.1"
const val kotlinxSerialization = "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3"

private const val koinVersion = "3.4.0"
private const val koinComposeVersion = "3.4.3"
private const val koinVersion = "3.5.6"
private const val koinComposeVersion = koinVersion
const val koinCore = "io.insert-koin:koin-core:$koinVersion"
const val koinAndroid = "io.insert-koin:koin-android:$koinVersion"
const val koinCompose = "io.insert-koin:koin-androidx-compose:$koinComposeVersion"
Expand Down
16 changes: 14 additions & 2 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ version = "1.0"

kotlin {

android()
android{
compilations.all {
kotlinOptions.jvmTarget = BuildConfig.jvmTarget
}
}

val sdkName = System.getenv("SDK_NAME")
if (sdkName != null && sdkName.startsWith("iphoneos")) {
Expand Down Expand Up @@ -51,7 +55,7 @@ kotlin {
implementation(Dependency.sqldelightAndroidDriver)
}
}
val androidTest by getting {
val androidUnitTest by getting {
dependencies {
implementation(kotlin("test-junit"))
implementation("junit:junit:4.13.2")
Expand All @@ -74,12 +78,20 @@ kotlin {
}

android {

namespace = "com.jayasuryat.data"

compileSdk = BuildConfig.compileSdk
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = BuildConfig.minSdk
targetSdk = BuildConfig.targetSdk
}

compileOptions {
sourceCompatibility = BuildConfig.javaVersion
targetCompatibility = BuildConfig.javaVersion
}
}

sqldelight {
Expand Down
11 changes: 11 additions & 0 deletions data/data.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ Pod::Spec.new do |spec|
spec.ios.deployment_target = '14.1'


if !Dir.exist?('build/cocoapods/framework/data.framework') || Dir.empty?('build/cocoapods/framework/data.framework')
raise "

Kotlin framework 'data' doesn't exist yet, so a proper Xcode project can't be generated.
'pod install' should be executed after running ':generateDummyFramework' Gradle task:

./gradlew :data:generateDummyFramework

Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':data',
'PRODUCT_MODULE_NAME' => 'data',
Expand Down
2 changes: 1 addition & 1 deletion data/src/androidMain/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.jayasuryat.data" />
<manifest />
6 changes: 4 additions & 2 deletions 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=-Xmx4g -XX:MaxPermSize=2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.caching=true
android.nonTransitiveRClass=true
Expand All @@ -19,4 +19,6 @@ android.nonTransitiveRClass=true
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
kotlin.code.style=official
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Nov 09 08:42:27 IST 2021
#Sun May 05 21:35:37 IST 2024
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 2 additions & 0 deletions minesweeper-engine-debug/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {

android {

namespace = "com.jayasuryat.minesweeperenginedebug"

compileSdk = BuildConfig.compileSdk

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion minesweeper-engine-debug/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.jayasuryat.minesweeperenginedebug" />
<manifest />
2 changes: 2 additions & 0 deletions minesweeper-engine/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {

android {

namespace = "com.jayasuryat.minesweeperengine"

compileSdk = BuildConfig.compileSdk

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion minesweeper-engine/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.jayasuryat.minesweeperengine" />
<manifest />
2 changes: 2 additions & 0 deletions minesweeper-ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ plugins {

android {

namespace = "com.jayasuryat.minesweeperui"

compileSdk = BuildConfig.compileSdk

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion minesweeper-ui/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.jayasuryat.minesweeperui" />
<manifest />
2 changes: 2 additions & 0 deletions ui-difficulty-selection/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {

android {

namespace = "com.jayasuryat.difficultyselection"

compileSdk = BuildConfig.compileSdk

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion ui-difficulty-selection/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.jayasuryat.difficultyselection" />
<manifest />
2 changes: 2 additions & 0 deletions ui-game/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {

android {

namespace = "com.jayasuryat.uigame"

compileSdk = BuildConfig.compileSdk

defaultConfig {
Expand Down
3 changes: 1 addition & 2 deletions ui-game/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jayasuryat.uigame">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.VIBRATE" />

Expand Down
2 changes: 2 additions & 0 deletions ui-settings/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {

android {

namespace = "com.jayasuryat.uisettings"

compileSdk = BuildConfig.compileSdk

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion ui-settings/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.jayasuryat.uisettings" />
<manifest />
2 changes: 2 additions & 0 deletions util/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ plugins {

android {

namespace = "com.jayasuryat.util"

compileSdk = BuildConfig.compileSdk

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion util/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.jayasuryat.util" />
<manifest />