From 52bc41027bdd88cc8796030e0d814e2ec78e532c Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Wed, 9 Mar 2016 00:38:49 +0800 Subject: [PATCH] fixed build error --- .../remove_closed_source_dependencies.patch | 17 ++++++----------- .../twidere/util/TwidereStringUtils.java | 4 ++++ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/twidere/patches/remove_closed_source_dependencies.patch b/twidere/patches/remove_closed_source_dependencies.patch index 1830c5a35..40343a974 100644 --- a/twidere/patches/remove_closed_source_dependencies.patch +++ b/twidere/patches/remove_closed_source_dependencies.patch @@ -3,9 +3,9 @@ IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== ---- twidere/build.gradle (date 1456662374000) +--- twidere/build.gradle (revision e38aef1080b30bdd8c4cb306d8a66d2ced601268) +++ twidere/build.gradle (revision ) -@@ -1,17 +1,17 @@ +@@ -1,13 +1,13 @@ import fr.avianey.androidsvgdrawable.gradle.SvgDrawableTask apply plugin: 'com.android.application' @@ -21,30 +21,25 @@ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP } dependencies { -- classpath 'io.fabric.tools:gradle:1.21.2' -+// classpath 'io.fabric.tools:gradle:1.21.2' +@@ -41,7 +41,7 @@ } - } -@@ -34,7 +34,7 @@ - targetCompatibility JavaVersion.VERSION_1_7 - } productFlavors { - google {} +// google {} fdroid {} } buildTypes { -@@ -61,7 +61,7 @@ +@@ -68,7 +68,7 @@ repositories { maven { url 'https://s3.amazonaws.com/repo.commonsware.com' } - maven { url 'https://maven.fabric.io/public' } +// maven { url 'https://maven.fabric.io/public' } - maven { url 'https://github.com/suckgamony/RapidDecoder/raw/master/repository' } flatDir { dirs "$projectDir/lib" } } -@@ -120,10 +120,10 @@ + +@@ -122,10 +122,10 @@ compile project(':twidere.component.common') compile project(':twidere.component.nyan') diff --git a/twidere/src/main/java/org/mariotaku/twidere/util/TwidereStringUtils.java b/twidere/src/main/java/org/mariotaku/twidere/util/TwidereStringUtils.java index b806c2b94..2de9103a9 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/util/TwidereStringUtils.java +++ b/twidere/src/main/java/org/mariotaku/twidere/util/TwidereStringUtils.java @@ -47,6 +47,10 @@ public class TwidereStringUtils { return regionMatchesIgnoreCase(string, start, prefix, 0, prefix.length()); } + /** + * Fix to https://github.com/TwidereProject/Twidere-Android/issues/449 + * @param string + */ public static void fixSHY(Spannable string) { for (int i = 0, j = string.length(); i < j; i++) { if (string.charAt(i) == '\u00ad') {