diff --git a/plug-ins/index.html b/plug-ins/index.html index 0c7fab0..cca7db7 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -150,23 +150,23 @@ compileFreeDebug ===== packaging ===== assembleFreeRelease assembleFreeDebug -

- For example, if you define two flavors, "pro" and "free", and two build types, "debug" and "release", four tasks will be added that combine these: "proDebug", "proRelease", "freeDebug" and "freeRelease". If you assemble any of these, an artifact named after that combination will be created, e.g. "kobalt-0.273-free-debug.jar". -

+

+ For example, if you define two flavors, "pro" and "free", and two build types, "debug" and "release", four tasks will be added that combine these: "proDebug", "proRelease", "freeDebug" and "freeRelease". If you assemble any of these, an artifact named after that combination will be created, e.g. "kobalt-0.273-free-debug.jar". +

-

BuildConfig

-

- If you defined at least one variant defined, a special file called BuildConfig.java (or - BuildConfig.kt) will be automatically generated. -

-
-

Note

- You need to define packageName in your project in order for this file to be generated or - Kobalt will fail. -
-

- This class contains at least two fields defining the current variant: -

+

BuildConfig

+

+ If you defined at least one variant defined, a special file called BuildConfig.java (or + BuildConfig.kt) will be automatically generated. +

+
+

Note

+ You need to define packageName in your project in order for this file to be generated or + Kobalt will fail. +
+

+ This class contains at least two fields defining the current variant: +

 class BuildConfig {
     companion object {
@@ -174,11 +174,11 @@ class BuildConfig {
         val BUILD_TYPE : String = "debug"
     }
 }
-

- You can add your own custom fields to this file by calling the buildConfig directive - inside your - flavor: -

+

+ You can add your own custom fields to this file by calling the buildConfig directive + inside your + flavor: +

 productFlavor("free") {
     buildConfig {
@@ -186,9 +186,9 @@ productFlavor("free") {
         field("anIntField", "Int", "42")
     }
 }
-

- The generated file will then contain: -

+

+ The generated file will then contain: +

 class BuildConfig {
     companion object {