From fec9f1f10c0a2aac6662d1d2b9d7d48b9d32773f Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:13:55 +0600 Subject: [PATCH] Address build warning in `:i18n` And small cleanup (cherry picked from commit 4811cf07cdbf052dc3ddd2916e56ed81b6dc652a) --- i18n-sy/build.gradle.kts | 5 ++++- i18n/build.gradle.kts | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/i18n-sy/build.gradle.kts b/i18n-sy/build.gradle.kts index a16ccb73d..1b22f3953 100644 --- a/i18n-sy/build.gradle.kts +++ b/i18n-sy/build.gradle.kts @@ -7,13 +7,16 @@ plugins { kotlin { androidTarget() + + applyDefaultHierarchyTemplate() + sourceSets { val commonMain by getting { dependencies { api(libs.moko.core) } } - val androidMain by getting { + androidMain { dependsOn(commonMain) // https://github.com/icerockdev/moko-resources/issues/562 } } diff --git a/i18n/build.gradle.kts b/i18n/build.gradle.kts index b7a112ce1..2fb72d9ec 100644 --- a/i18n/build.gradle.kts +++ b/i18n/build.gradle.kts @@ -7,14 +7,18 @@ plugins { kotlin { androidTarget() + + applyDefaultHierarchyTemplate() + sourceSets { val commonMain by getting { dependencies { api(libs.moko.core) } } - val androidMain by getting { - dependsOn(commonMain) // https://github.com/icerockdev/moko-resources/issues/562 + + androidMain { + dependsOn(commonMain) // https://github.com/icerockdev/moko-resources/issues/562 } } }