diff --git a/.travis.yml b/.travis.yml
index b2329902..e953821d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,7 +7,7 @@ android:
- platform-tools
- tools
- extra-android-m2repository
- - build-tools-24.0.3
- - android-24
+ - build-tools-25.0.2
+ - android-25
script: cd Clover && ./gradlew build --console plain -x lint
diff --git a/CHANGES.txt b/CHANGES.txt
index eaeef830..40a7e911 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,17 @@
+New in 2.3.1 (2017-07-15)
+- Better link detection.
+- More themes.
+- Fix image loading taking a long time if the cache is full.
+- Fix crashing bug related to the status view.
+- Bug fixes.
+
+
+New in 2.3.0 (2017-03-19)
+- Added update checker to notify of new releases.
+- Force new captcha for thread making.
+- Bug fixes.
+
+
New in 2.2.0 (2016-10-03)
- Add sliding of threads back.
- Rewrote thread watching, it's more stable and works correctly with doze now.
diff --git a/Clover/app/build.gradle b/Clover/app/build.gradle
index cd0bb4b7..2946d886 100644
--- a/Clover/app/build.gradle
+++ b/Clover/app/build.gradle
@@ -1,17 +1,30 @@
apply plugin: 'com.android.application'
+/**
+ * Gets the version name from the latest Git tag
+ */
+def getCommitHash = { ->
+ def stdout = new ByteArrayOutputStream()
+ exec {
+ commandLine 'git', 'rev-parse', '--short', 'HEAD'
+ standardOutput = stdout
+ }
+ return "-" + stdout.toString().trim()
+}
+
android {
- compileSdkVersion 24
+ compileSdkVersion 25
// update the travis config when changing this
- buildToolsVersion '24.0.3'
+ buildToolsVersion '25.0.2'
defaultConfig {
- applicationId "org.floens.chan"
minSdkVersion 15
- targetSdkVersion 24
+ targetSdkVersion 25
- versionName "v2.2.0"
- versionCode 56
+ versionName "v2.3.1"
+ // of the format XXYYZZ, where XX is major, YY is minor, ZZ is patch
+ // (watch out for octal notation, never start with a 0)
+ versionCode 20301
}
compileOptions {
@@ -54,6 +67,32 @@ android {
is.close()
}
+ defaultPublishConfig "default"
+ productFlavors {
+ // The app name refers to the name as displayed on the launcher.
+ // the flavor name is appended to the name in the settings.
+ "default" {
+ applicationId "org.floens.chan"
+ resValue "string", "app_name", "Clover"
+ resValue "string", "app_flavor_name", ""
+ buildConfigField "String", "UPDATE_API_ENDPOINT", "\"https://floens.github.io/Clover/api/update\""
+ }
+
+ dev {
+ applicationId "org.floens.chan.dev"
+ resValue "string", "app_name", "Clover dev"
+ resValue "string", "app_flavor_name", ""
+ buildConfigField "String", "UPDATE_API_ENDPOINT", "\"\""
+ }
+
+ fdroid {
+ applicationId "org.floens.chan"
+ resValue "string", "app_name", "Clover"
+ resValue "string", "app_flavor_name", "F-Droid"
+ buildConfigField "String", "UPDATE_API_ENDPOINT", "\"https://floens.github.io/Clover/api/update\""
+ }
+ }
+
buildTypes {
release {
if (doSign) {
@@ -64,33 +103,25 @@ android {
}
debug {
- versionNameSuffix " Debug"
+ versionNameSuffix getCommitHash()
// minifyEnabled true
// proguardFiles 'proguard.cfg'
}
}
- productFlavors {
- normal {
- applicationId = "org.floens.chan"
- resValue "string", "app_name", "Clover"
- resValue "string", "app_flavor_name", ""
- }
- }
-
sourceSets {
beta.java.srcDirs = ['src/release/java']
}
}
dependencies {
- compile 'com.android.support:support-v13:24.2.1'
- compile 'com.android.support:appcompat-v7:24.2.1'
- compile 'com.android.support:recyclerview-v7:24.2.1'
- compile 'com.android.support:cardview-v7:24.2.1'
- compile 'com.android.support:support-annotations:24.2.1'
- compile 'com.android.support:design:24.2.1'
- compile 'com.android.support:customtabs:24.2.1'
+ compile 'com.android.support:support-v13:25.3.1'
+ compile 'com.android.support:appcompat-v7:25.3.1'
+ compile 'com.android.support:recyclerview-v7:25.3.1'
+ compile 'com.android.support:cardview-v7:25.3.1'
+ compile 'com.android.support:support-annotations:25.3.1'
+ compile 'com.android.support:design:25.3.1'
+ compile 'com.android.support:customtabs:25.3.1'
compile 'org.jsoup:jsoup:1.9.2'
compile 'com.j256.ormlite:ormlite-core:4.48'
@@ -99,6 +130,9 @@ dependencies {
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'de.greenrobot:eventbus:2.4.0'
+
compile 'com.google.dagger:dagger:2.2'
annotationProcessor 'com.google.dagger:dagger-compiler:2.2'
+
+ compile 'org.nibor.autolink:autolink:0.6.0'
}
diff --git a/Clover/app/src/main/AndroidManifest.xml b/Clover/app/src/main/AndroidManifest.xml
index 52e330fb..b311a3cc 100644
--- a/Clover/app/src/main/AndroidManifest.xml
+++ b/Clover/app/src/main/AndroidManifest.xml
@@ -76,8 +76,6 @@ along with this program. If not, see
+
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Robin Stocker
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+
+