From a282a3072e036c49d0fe1544711b971c4d6cdfa2 Mon Sep 17 00:00:00 2001 From: Tobias Preuss Date: Sun, 22 Nov 2020 12:11:13 +0100 Subject: [PATCH] Enable syntax highlighting. Avoid updating version string. - Enable syntax highlighting for Groovy snippets. - Users can look up the latest version via the JitPack badge. This way it does not get out of date and maintenance is lowered for you. --- README.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a64c3d2..58a4b69 100644 --- a/README.md +++ b/README.md @@ -15,20 +15,19 @@ A Simple Android library to get the number of words and give you the time it wil # How to set up And add a dependency code to your module's build.gradle file. -``` +``` groovy dependencies { - implementation 'com.github.wise4rmgod:ReadTime:0.1.0' - } - + implementation "com.github.wise4rmgod:ReadTime:$version" +} ``` Add below codes to your root build.gradle file (not your module build.gradle file). -``` - allprojects { - repositories { - ... - maven { url 'https://jitpack.io' } - } - } +``` groovy +allprojects { + repositories { + // ... + maven { url 'https://jitpack.io' } + } +} ``` ## Example