From 62c5a829b932a15f527706d0cb692c663938d707 Mon Sep 17 00:00:00 2001 From: Fox2Code Date: Wed, 1 Jun 2022 14:27:35 +0200 Subject: [PATCH] Release 1.0.0 --- README.md | 36 +++++++++++++++++-- .../fox2code/androidansi/AnsiTextView.java | 20 +++++++++++ 2 files changed, 53 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 49e0c48..42f0efe 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,37 @@ Example: `38;2;164;198;57` set foreground color to rgb(164, 198, 57) # Setup -## Legacy + +## Gradle + +Add jitpack, example to add to `settings.gradle`: +```groovy +// Only add if `dependencyResolutionManagement` already exists +dependencyResolutionManagement { + repositories { + maven { + url 'https://jitpack.io' + } + } +} +``` + + +```groovy +// Only add "repositories" if "dependencyResolutionManagement" didn't exists in "settings.gradle" +repositories { + maven { + url 'https://jitpack.io' + } +} + + +dependencies { + implementation 'com.github.Fox2Code:AndroidANSI:1.0.0' +} +``` + +## TextView ```java TextView textView = findViewById(R.id.ansiView); AnsiParser.setAnsiText(textView, // It's "AndroidANSI!" but with color & style @@ -50,7 +80,7 @@ AnsiParser.setAnsiText(textView, // It's "AndroidANSI!" but with color & style AnsiParser.FLAG_PARSE_DISABLE_SUBSCRIPT); // Also disable superscript ``` -## TextView +## AnsiTextView **Layout** ```xml