From 1594d8cf1711d7adb587e23d2255c02b674aa881 Mon Sep 17 00:00:00 2001 From: Evgeny Shishkin Date: Fri, 22 Jan 2016 16:58:08 +0300 Subject: [PATCH] Prepare release 2.5.0. --- .gitignore | 6 ++++-- CHANGELOG.md | 9 +++++++++ README.md | 26 +++++++++++++++++--------- gradle.properties | 4 ++-- 4 files changed, 32 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index a9ea8b9..936749b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ -#IntelliJ IDEA +# IntelliJ IDEA .idea *.iml -#Gradle +# Gradle .gradle/ build/ + +# Local configuration file (sdk path, etc) local.properties \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index db7f0ae..688dcce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ Change Log ========== +## Version 2.5.0 + +_2016-01-22_ + + * Support brand new `Roboto Mono` typefaces. + * Rename method for set up typeface for TextView/Paint (`setup(...)` -> `setUp(...)`). + * Updated build tools and dependencies (Gradle Plugin 2.0.0-alpha6, AppCompat v23.1.1). + + ## Version 2.4.3 _2015-09-11_ diff --git a/README.md b/README.md index 6a3753b..75a0007 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,14 @@ Android-RobotoTextView [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android--RobotoTextView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/471) -Implementation of a [TextView](http://developer.android.com/reference/android/widget/TextView.html) and all its direct/indirect subclasses with native support for the [Roboto](http://www.google.com/design/spec/style/typography.html) fonts, includes the brand new [Roboto Slab](http://www.google.com/fonts/specimen/Roboto+Slab) fonts. +Implementation of a [TextView][6] and all its direct/indirect subclasses with native support for the [Roboto][5] fonts, includes the brand new [Roboto Slab][3] and [Roboto Mono][4] fonts. Supported fonts: -* [Roboto](http://www.google.com/fonts/specimen/Roboto) -* [Roboto Condensed](http://www.google.com/fonts/specimen/Roboto+Condensed) -* [Roboto Slab](http://www.google.com/fonts/specimen/Roboto+Slab) +* [Roboto][1] +* [Roboto Condensed][2] +* [Roboto Slab][3] +* [Roboto Mono][4] ![image](https://raw.githubusercontent.com/johnkil/Android-RobotoTextView/master/art/RobotoTextView.jpg) @@ -31,7 +32,7 @@ Download Gradle: ```groovy -compile 'com.github.johnkil.android-robototextview:robototextview:2.4.3' +compile 'com.github.johnkil.android-robototextview:robototextview:2.5.0' ``` Maven: @@ -40,7 +41,7 @@ Maven: com.github.johnkil.android-robototextview robototextview - 2.4.3 + 2.5.0 aar ``` @@ -84,7 +85,7 @@ RobotoTextView textView = new RobotoTextView(context); Typeface typeface = RobotoTypefaceManager.obtainTypeface( context, RobotoTypefaceManager.Typeface.ROBOTO_LIGHT_ITALIC); -RobotoTextViewUtils.setTypeface(textView, typeface); +RobotoTextViewUtils.setUp(textView, typeface); ``` Using parameters `fontFamily`, `textWeight` and `textStyle`: @@ -95,7 +96,7 @@ Typeface typeface = RobotoTypefaceManager.obtainTypeface( RobotoTypefaceManager.FontFamily.ROBOTO, RobotoTypefaceManager.TextWeight.LIGHT, RobotoTypefaceManager.TextStyle.ITALIC); -RobotoTextViewUtils.setTypeface(textView, typeface); +RobotoTextViewUtils.setUp(textView, typeface); ``` #### With Span @@ -128,7 +129,7 @@ If you intend to use is not all fonts, the extra fonts can be removed. ``` xml android.applicationVariants.all{ variant -> variant.mergeAssets.doFirst { - File fonts = file("${projectDir}/build/intermediates/exploded-aar/com.github.johnkil.android-robototextview/robototextview/2.4.3/assets/fonts") + File fonts = file("${projectDir}/build/intermediates/exploded-aar/com.github.johnkil.android-robototextview/robototextview/2.5.0/assets/fonts") if (fonts.exists()) { for (File file : fonts.listFiles()) { if (file.getName().contains("RobotoSlab")) { @@ -160,4 +161,11 @@ License limitations under the License. +[1]: https://www.google.com/fonts/specimen/Roboto +[2]: https://www.google.com/fonts/specimen/Roboto+Condensed +[3]: https://www.google.com/fonts/specimen/Roboto+Slab +[4]: https://www.google.com/fonts/specimen/Roboto+Mono +[5]: http://www.google.com/design/spec/style/typography.html +[6]: http://developer.android.com/reference/android/widget/TextView.html + [0]: https://github.com/google/roboto \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 546862b..7838f3e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,8 +1,8 @@ # suppress inspection "UnusedProperty" for whole file GROUP=com.github.johnkil.android-robototextview -VERSION_NAME=2.4.4-SNAPSHOT +VERSION_NAME=2.5.0 -POM_DESCRIPTION=Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial dataImplementation of a TextView and all its direct/indirect subclasses with native support for the Roboto fonts, includes the brand new Roboto Slab fonts. +POM_DESCRIPTION=Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial dataImplementation of a TextView and all its direct/indirect subclasses with native support for the Roboto fonts, includes the brand new Roboto Slab and Roboto Mono fonts. POM_URL=https://github.com/johnkil/Android-RobotoTextView POM_SCM_URL=https://github.com/johnkil/Android-RobotoTextView