Kotlin 1.4 release update by Dokka Alpha | Concetto Labs

Kotlin 1.4 Release Update By Dokka Alpha

Author image By Manish Patel  |  Tuesday, October 13, 2020 11:15 AM  |  3 min read  |   20

Kotlin 1.4 release update by Dokka Alpha

Recently, the Kotlin Development team has released an alpha version of the Dokka documentation engine. The Kotlin 1.4 is the latest stable version release of the Kotlin compiler. The new Kotlin slack release would focus on reducing the amount of configuration required to use Dokka in several cases. It adds Kotlin multiplatform projects which help in spending less time writing Dokka and devote time to write Kotlin documentation.

After Kotlin app developers release the Dokka on Kotlin 1.4.0 version, the parts were redesigned into several parts from scratch. It comes with several features like HTML format, pluggability, and multimodule projects. With this, the feedback value increases from bug fixes to better source set in multiplatform projects. Let’s understand how Kotlin 1.4 incorporated its release.

Kotlin 1.4 Released Features

Kotlin 1.4 Released Features

1. Simplified Gradle Plugin

Using the Dokka version, one can make the Gradle plugin easily and use it by supporting advanced configuration which powers users. With this plugin, one can generate documentation that does not require manual configuration for most projects. One can add the Gradle plugin as it’s enough to cover all cases of build.gradle.kts:

Plugins {
Id(“HELLO”) version “1.4.0.”
}

2. Multiplatform

It’s a default configuration that we have introduced in the previous section which works on multiplatform projects. One has to apply the Dokka Gradle plugin and all platform-specific sets to synchronized automatically using the model. Also, there’s no need to register additional source sets in Dokka as it comes with redundant data which can remove configuration files easily. The Kotlin app developers are looking for a way to merge multiple sources.

3. Merging Source Sets

Dokka serves as an easy and quick way to filter documentation using APIs available for a specific target. But if you’re working on a project with a lot of sets then using Kotlin multiplatform works great. In the previous version, there was a complicated configuration that comes in a single bubble and turns unnecessary complexity in the project build files.

Kotlin projects demonstrate a significant need for grouping functionality which has been introduced vastly in the simplified mechanism. As the sets represent the same platform as common, JVM, native, and JS, it comes with displayName that’s merged with the same bubble. After regenerating the documentation, we’ll get a concise source setlist under Bubbles:

Kotlinx-coroutines-core

4. Compatibility and Stability Notes

Make it clear that Dokka is an Alpha release for Kotlin 1.4.0. Here, Gradle Plugin APIs are subject to change in Dokka releases. It is integrated more tightly with the Gradle plugin. Now facilitate a new integration mechanism while switching towards Gradle’s new property APIs and Gradle’s new provider. With this, we can assign value to properties using .set() instead of =.

Example:
jdkVersion.set(7)

If you’re looking for detailed overview changes, then check in the configuration DSL awaited by replacement string-based APIs using java.io.File based APIs.

Also Read: Is Kotlin Better Option for Android App Development?

How to Get Started

We have to use the newest version of Dokka in your project and add the corresponding plugin directive to top with using build.gradle(.kts) file:
Check the below example:

Plugins {
Id(“Hello”) version “1.4.0.”
}

Concluding

Hope the above pointer helped in understanding the concept. If you’re still facing the issues, then join the official conversion at Kotlin Slack in the Dokka channel. Hire Kotlin app developers to get better results. Kotlin supports multiplatform and reduces the time spent writing and maintaining the same code for different platforms. Get benefits and flexibility by using native programming languages.

 

 

Kotlin 1.4 Release Update By Dokka Alpha

Contact Us

 

 


Author image

Manish Patel

Manish Patel is a Co-Founder of Concetto Labs, a leading mobile app development company specialized in android and iOS app development. We provide a one-stop solution for all IT related services.

Why Our Client Love Us?

Our integrity and process focuses largely on providing every customer the best recommendations for their respective business. Our clients become recurring customers because we always go beyond their expectations to deliver the best solutions.

about-us-strategies

We brainstorm a lot!

Because brainstorming leads to new thoughts & ideas. We believe in discussing & bridging the gap leading to nicer suggestions & application.

about-us-strategies

Believe in Innovation!

Innovation is like Jugaad. It only comes when you give it a try. We believe that extraordinary things come with innovation which help you stand & lead in the crowd.

about-us-strategies

Creative Developers!

Our developers are always keen to develop creative ideas. There is “NEVER a NO.” They have an eye on the market facts, thus develop in the latest on going environment.

about-us-strategies

Value for Money!

We understand the value of money & thus with a modular approach serve you the best quote for your application & web services. The features we promise, we deliver. #notohiddencosts

Trusted By