From 7bf22a71b66c52e6434c72e6162377b10085567f Mon Sep 17 00:00:00 2001 From: Romain Boisselle Date: Mon, 1 Apr 2024 15:59:45 +0200 Subject: [PATCH] doc(#450): add proguard rule for JVM projects --- doc/modules/core/pages/install.adoc | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/doc/modules/core/pages/install.adoc b/doc/modules/core/pages/install.adoc index 4faa6340..7c2c80c6 100644 --- a/doc/modules/core/pages/install.adoc +++ b/doc/modules/core/pages/install.adoc @@ -28,15 +28,14 @@ dependencies { [TIP] ==== -If you are *NOT* using *Gradle 6+*, you should declare the use of the Gradle Metadata experimental feature +If you are working on a JVM project with Kodein, and are using Proguard to shrink down the size of your application, you must add the following rule to your configuration: -[subs="attributes"] -.settings.gradle.kts +[] +.proguard-rules.pro ---- -enableFeaturePreview("GRADLE_METADATA") +# Kodein : Keep the generic type information for the dependency container +-keepattributes Signature ---- - -Or, import the JVM binaries with `implementation("org.kodein.di:kodein-di-jvm:{version}")`. ==== Add the dependency: @@ -62,18 +61,6 @@ androidArm32, androidArm64, iosArm32, iosArm64, iosX64, linuxArm32Hfp, linuxMips _Kodein-DI_ uses the new gradle native dependency model. -[TIP] -==== -If you are *NOT* using *Gradle 6+*, you must declare the use of the Gradle Metadata experimental feature - -[subs="attributes"] -.settings.gradle.kts ----- -enableFeaturePreview("GRADLE_METADATA") ----- - -==== - Add the MavenCentral repository: [source,groovy,subs="attributes"]