Skip to content

Commit

Permalink
doc(#450): add proguard rule for JVM projects
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed Apr 1, 2024
1 parent c9d169d commit 7bf22a7
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions doc/modules/core/pages/install.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"]
Expand Down

0 comments on commit 7bf22a7

Please sign in to comment.