Skip to content

Commit

Permalink
Kotlin 1.8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed Mar 26, 2023
1 parent 1abed4f commit d1e69e2
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ kodein {
api(projects.kodeinDi)
}

add(kodeinTargets.jvm.jvm) {
target.setCompileClasspath()
}
add(kodeinTargets.jvm.jvm)

add(kodeinTargets.jvm.android) {
main.dependencies {
Expand All @@ -26,6 +24,10 @@ kodein {
// iosX32 not supported by jetbrains compose
add(kodeinTargets.native.iosX64)
add(kodeinTargets.native.iosArm64)
add(kodeinTargets.native.iosSimulatorArm64)

add(kodeinTargets.native.macosX64)
add(kodeinTargets.native.macosArm64)
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Disable compatibility with non-hierarchical projects
# https://kotlinlang.org/docs/multiplatform-hierarchy.html#for-library-authors
# This is not compatible with Compose JB
kotlin.mpp.enableCompatibilityMetadataVariant=false
kotlin.mpp.enableCompatibilityMetadataVariant=false
kotlin.native.ignoreIncorrectDependencies=true
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.kodein.di.compose

import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import org.kodein.di.DI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelLazy
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner
import org.kodein.di.*
import org.kodein.di.direct
import org.kodein.di.instance

/**
* Gets an instance of a [VM] as an android [ViewModel] for the given [tag].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ package org.kodein.di.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisallowComposableCalls
import androidx.compose.runtime.remember
import org.kodein.di.*
import org.kodein.di.DI
import org.kodein.di.LazyDelegate
import org.kodein.di.factory
import org.kodein.di.instance
import org.kodein.di.named
import org.kodein.di.provider
import kotlin.reflect.KProperty
import kotlin.reflect.typeOf

/**
* A property delegate provider for DI retrieval in a Composable tree.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ package org.kodein.di.compose

import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import org.kodein.di.*
import org.kodein.di.DI
import org.kodein.di.DIContext
import org.kodein.di.On
import org.kodein.di.diContext

/**
* Attaches a [DI] container to the underlying [Composable] tree
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ kotlin.mpp.stability.nowarn=true
# To enable compatibility with non-hierarchical projects
# https://kotlinlang.org/docs/multiplatform-hierarchy.html#for-library-authors
kotlin.mpp.enableCompatibilityMetadataVariant=true
kotlin.mpp.androidSourceSetLayoutVersion1.nowarn=true

# Android
android.useAndroidX = true
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[versions]
# Core
kaverit-version = "2.3.0"
kaverit-version = "2.4.0"
# Android
android-appcompat-version = "28.0.0"
androidx-appcompat-version = "1.5.1"
androidx-fragment-version = "1.5.4"
androidx-lifecycle-version = "2.5.1"
# Compose
compose-version = "1.3.0-rc02"
compose-version = "1.3.1"
# KSP
kotlinpoet-version = "1.12.0"
ksp-version = "1.8.0-1.0.8"
ksp-version = "1.8.10-1.0.9"
# Ktor
ktor-version = "2.2.3"
# JxInject
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
2 changes: 1 addition & 1 deletion kodein-di/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ kodein {
}
add(kodeinTargets.js.js)

add(kodeinTargets.native.allDarwin)
add(kodeinTargets.native.all)

}
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
maven(url = "https://raw.githubusercontent.com/kosi-libs/kodein-internal-gradle-plugin/mvn-repo")
}
dependencies {
classpath("org.kodein.internal.gradle:kodein-internal-gradle-settings:7.0.2")
classpath("org.kodein.internal.gradle:kodein-internal-gradle-settings:7.0.5")
}
}

Expand Down

0 comments on commit d1e69e2

Please sign in to comment.