Sign in

There are lot of blogs available on how to publish the java/android library to maven-central but all of them are suggesting you to write pom files, include nexus-gradle plugin etc, and lot of complex stuff. But Gradle provides a way to publish your repository to maven-central out of the box. In this article, we are going to publish a library to maven central using Gradle’s provided plugins.

Artifact managers available today — Jitpack.io, Nexus Sonatype, Bintray (which is closed now but they have custom solutions available). We are going to use OSSRH Nexus Sonatype Repository Manager. This also makes the…


Write your Network Requests and IO calls painlessly with Asynkio in Android/Kotlin

So far we all have been using many libraries to handle asynchrony efficiently in JVM world. With the rise of Kotlin Coroutines it has become more easy and even more efficient.

Still on android, we use lot of code to make a network request or any IO call asynchronously. Specifically talking about the network requests, Java and so as Kotlin are very bad at creating an http connection. Though some libraries have achieved to make network calls elegantly, e.g., Retrofit, Volley, Okhttp etc.

However while using these libraries in your codebase, I personally think that you need to write a…


What ?!! Okay, let me clarify. Let’s build a complete backend /web-app with Kotlin and your favourite text-editor only. No, no need to install IntellJ IDEA, No need to handle Gradle file stuff .. seriously, No! All you need is a simple text-editor and Kotlin.
So… how to do that ?

For this recipe, we need two ingredients (apart from text-editor and Kotlin).
I assume that you’ve installed Kotlin and you are set with Atom or Sublime or Vim.

Installing Kscript and KTor


I’d an awesome experience when I was in Smart India Hackathon Finals and we’d worked on one problem of public announcement system. So, I’ve decided to write a blog on how to make a simple audio/music streaming server in NodeJS and a simple android app which will stream the real-time audio. By using following code you can make your own local simple music streaming server and that music can be listened on an android client or a browser in real-time. So, let’s open the oven to cook this recipe.

Creating a simple Music Streaming Server

You can make your own streaming server by using anything but…


Socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed. Socket.IO is built on top of the WebSockets API (Client side) and NodeJs.

Socket.IO is not a WebSocket library with fallback options to other realtime protocols. It is a custom realtime transport protocol implementation on top of other realtime protocols. Its protocol negotiation parts cause a client supporting standard WebSocket to not be able to contact a Socket.IO server.
And a Socket.IO implementing client cannot talk to a non-Socket.IO based WebSocket or Long Polling Comet server. Therefore, Socket.IO requires using the…

Nikhil Chaudhari

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store