From 9e0f17d63994b7223c3b8873f527ca0b06930385 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 11 Jan 2019 17:26:21 +0800 Subject: [PATCH 1/3] updated target version to 28 --- build.gradle | 16 ++++++++++++---- gradle/wrapper/gradle-wrapper.properties | 2 +- library/src/main/AndroidManifest.xml | 4 ++-- sample/build.gradle | 2 +- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 794d5f6..bb13720 100644 --- a/build.gradle +++ b/build.gradle @@ -2,16 +2,24 @@ buildscript { repositories { mavenCentral() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.0.0' + classpath "com.android.tools.build:gradle:3.2.1" } } ext { - compileSdkVersion = 23 - buildToolsVersion = "23.0.3" + compileSdkVersion = 28 + buildToolsVersion = "28.0.3" minSdkVersion = 14 - targetSdkVersion = 23 + targetSdkVersion = 28 } + +allprojects { + repositories { + google() + jcenter() + } +} \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 043790d..9e75ede 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip diff --git a/library/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml index 16c8be7..5896b7b 100644 --- a/library/src/main/AndroidManifest.xml +++ b/library/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + android:versionCode="2" + android:versionName="1.2" > \ No newline at end of file diff --git a/sample/build.gradle b/sample/build.gradle index bdd12da..e04976d 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.application' dependencies { - compile project (':library') + implementation project (':library') } android { From 35b6093a214dc66fb7cd981ba40303a49a855fe6 Mon Sep 17 00:00:00 2001 From: raquezha Date: Fri, 11 Jan 2019 17:36:15 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 98947d0..ba1d510 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Maven Central](https://maven-badges.herokuapp.com/maven-central/me.grantland/autofittextview/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/me.grantland/autofittextview) +Fork from grantland/android-autofitexttextview A TextView that automatically resizes text to fit perfectly within its bounds. ![Example Image](/website/static/autofittextview.gif?raw=true) @@ -11,7 +12,7 @@ A TextView that automatically resizes text to fit perfectly within its bounds. ```cson dependencies { - compile 'me.grantland:autofittextview:0.2.+' + implementation 'com.github.raquezha:android-autofittextview:0.2.2' } ``` From abd7953973599876fe3b1b32bc216fa192329b6e Mon Sep 17 00:00:00 2001 From: raquezha Date: Sun, 13 Jan 2019 07:57:09 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/README.md b/README.md index ba1d510..e8e0f5c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # AutoFitTextView -[![Maven Central](https://maven-badges.herokuapp.com/maven-central/me.grantland/autofittextview/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/me.grantland/autofittextview) - Fork from grantland/android-autofitexttextview A TextView that automatically resizes text to fit perfectly within its bounds. @@ -16,45 +14,7 @@ dependencies { } ``` -Enable any View extending TextView in code: - -```java -AutofitHelper.create(textView); -``` - -Enable any View extending TextView in XML: - -```xml - -