File tree Expand file tree Collapse file tree
plugins/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ This is a Kotlin MultiPlatform library that provides access to the resources on
5151 - 0.12.0
5252- kotlin 1.4.0
5353 - 0.13.0
54+ - 0.13.1
5455
5556## Installation
5657root build.gradle
@@ -61,7 +62,7 @@ buildscript {
6162 }
6263
6364 dependencies {
64- classpath "dev.icerock.moko:resources-generator:0.13.0 "
65+ classpath "dev.icerock.moko:resources-generator:0.13.1 "
6566 }
6667}
6768
@@ -78,7 +79,7 @@ project build.gradle
7879apply plugin: "dev.icerock.mobile.multiplatform-resources"
7980
8081dependencies {
81- commonMainApi("dev.icerock.moko:resources:0.13.0 ")
82+ commonMainApi("dev.icerock.moko:resources:0.13.1 ")
8283}
8384
8485multiplatformResources {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ object Deps {
1919
2020 private const val mokoGraphicsVersion = " 0.4.0"
2121 private const val mokoParcelizeVersion = " 0.4.0"
22- const val mokoResourcesVersion = " 0.13.0 "
22+ const val mokoResourcesVersion = " 0.13.1 "
2323
2424 object Android {
2525 const val compileSdk = 28
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true
88kotlin.mpp.enableCompatibilityMetadataVariant =true
99
1010android.useAndroidX =true
11- android.enableJetifier =true
1211
1312# Workaround for Bintray treating .sha512 files as artifacts
1413# https://github.com/gradle/gradle/issues/11412
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import com.squareup.kotlinpoet.KModifier
88import dev.icerock.gradle.generator.MRGenerator
99import org.gradle.api.Project
1010import org.gradle.api.Task
11+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompileCommon
1112import java.io.File
1213
1314class CommonMRGenerator (
@@ -23,6 +24,9 @@ class CommonMRGenerator(
2324) {
2425 override fun getMRClassModifiers (): Array <KModifier > = arrayOf(KModifier .EXPECT )
2526
26- @Suppress(" EmptyFunctionBlock" )
27- override fun apply (generationTask : Task , project : Project ) {}
27+ override fun apply (generationTask : Task , project : Project ) {
28+ project.tasks
29+ .matching { it is KotlinCompileCommon }
30+ .configureEach { it.dependsOn(generationTask) }
31+ }
2832}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ android {
1818
1919dependencies {
2020 commonMainApi(Deps .Libs .MultiPlatform .mokoResources)
21- mppLibrary (Deps .Libs .MultiPlatform .mokoGraphics)
21+ commonMainApi (Deps .Libs .MultiPlatform .mokoGraphics.common )
2222
2323// disabled while not fixed https://youtrack.jetbrains.com/issue/KT-41384
2424// commonMainImplementation(project("$path:nested-module"))
You can’t perform that action at this time.
0 commit comments