releasing v4.0.2

This commit is contained in:
kosh 2017-07-18 12:17:49 +08:00
parent c04f074e81
commit f0b95c3659
10 changed files with 41 additions and 41 deletions

View File

@ -150,7 +150,8 @@ dependencies {
implementation "com.google.firebase:firebase-database:${gms}"
implementation('com.github.b3er.rxfirebase:firebase-database-kotlin:11.2.0') { transitive = false }
implementation('com.github.b3er.rxfirebase:firebase-database:11.2.0') { transitive = false }
implementation 'com.github.k0shk0sh:firebase-jobdispatcher-android:v0.7.0'
implementation 'com.github.k0shk0sh.firebase-jobdispatcher-android:firebase-jobdispatcher:v0.7.0'
implementation 'com.github.k0shk0sh.firebase-jobdispatcher-android:firebase-jobdispatcher-with-gcm-dep:v0.7.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') { transitive = true }
implementation "com.github.miguelbcr:RxBillingService:0.0.3"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"

View File

@ -20,11 +20,7 @@
-keep class butterknife.*
-keepclasseswithmembernames class * { @butterknife.* <methods>; }
-keepclasseswithmembernames class * { @butterknife.* <fields>; }
-dontwarn retrofit.**
-keep class retrofit.** { *; }
-dontwarn sun.misc.Unsafe
-dontwarn com.octo.android.robospice.retrofit.RetrofitJackson**
-dontwarn retrofit.appengine.UrlFetchClient
-keepattributes Signature
-keepattributes Exceptions
-keepclasseswithmembers class * {
@ -37,19 +33,6 @@
-keep class retrofit.** { *; }
-keep class com.squareup.okhttp.** { *; }
-keep interface com.squareup.okhttp.** { *; }
-dontwarn java.beans.**
-dontwarn javax.**
-dontwarn lombok.**
-dontwarn java.lang.invoke.*
-dontwarn rx.**
-dontwarn com.squareup.okhttp.**
-dontwarn okio.**
-dontwarn org.apache.**
-dontwarn android.net.http.AndroidHttpClient
-dontwarn retrofit.**
-dontwarn retrofit2.adapter.rxjava.CompletableHelper$**
-dontwarn retrofit2.Platform$Java8
-dontwarn sun.misc.**
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
long producerIndex;
long consumerIndex;
@ -66,7 +49,6 @@
public static **[] values();
public static ** valueOf(java.lang.String);
}
-dontwarn icepick.**
-keep class **$$Icepick { *; }
-keepclasseswithmembernames class * {
@icepick.* <fields>;
@ -76,6 +58,22 @@
-keepclassmembers class com.prettifier.pretty.callback.MarkDownInterceptorInterface {
public *;
}
-keepclassmembers enum io.requery.** {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class .R
-keep class **.R$* {
<fields>;
}
-keep class net.nightwhistler.** { *; }
-keep class org.htmlcleaner.** { *; }
-keeppackagenames org.jsoup.nodes
-keep class com.github.b3er.** { *; }
-keep class com.memoizrlabs.** { *; }
-dontwarn com.github.b3er.**
-dontwarn com.memoizrlabs.**
-dontwarn java.lang.FunctionalInterface
-dontwarn java.util.**
-dontwarn java.time.**
@ -93,17 +91,6 @@
-dontwarn io.requery.query.**
-dontwarn io.requery.android.sqlcipher.**
-dontwarn io.requery.android.sqlitex.**
-keepclassmembers enum io.requery.** {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class .R
-keep class **.R$* {
<fields>;
}
-keep class net.nightwhistler.** { *; }
-keep class org.htmlcleaner.** { *; }
-dontwarn org.jaxen.**
-dontwarn org.jdom.**
-dontwarn com.google.android.gms.**
@ -121,8 +108,21 @@
-dontwarn kotlin.reflect.jvm.internal.impl.types.DescriptorSubstitutor
-dontwarn kotlin.reflect.jvm.internal.impl.types.DescriptorSubstitutor
-dontwarn kotlin.reflect.jvm.internal.impl.types.TypeConstructor
-keeppackagenames org.jsoup.nodes
-keep class com.github.b3er.** { *; }
-keep class com.memoizrlabs.** { *; }
-dontwarn com.github.b3er.**
-dontwarn com.memoizrlabs.**
-dontwarn java.beans.**
-dontwarn javax.**
-dontwarn lombok.**
-dontwarn java.lang.invoke.*
-dontwarn rx.**
-dontwarn com.squareup.okhttp.**
-dontwarn okio.**
-dontwarn org.apache.**
-dontwarn android.net.http.AndroidHttpClient
-dontwarn retrofit.**
-dontwarn retrofit2.adapter.rxjava.CompletableHelper$**
-dontwarn retrofit2.Platform$Java8
-dontwarn sun.misc.**
-dontwarn sun.misc.Unsafe
-dontwarn com.octo.android.robospice.retrofit.RetrofitJackson**
-dontwarn retrofit.appengine.UrlFetchClient
-dontwarn icepick.**
-dontwarn retrofit.**

View File

@ -77,8 +77,6 @@ public class NotificationSchedulerJobTask extends JobService {
finishJob(job);
}
}, throwable -> jobFinished(job, true));
} else {
finishJob(job);
}
return true;
}
@ -189,7 +187,7 @@ public class NotificationSchedulerJobTask extends JobService {
}
private void finishJob(JobParameters job) {
jobFinished(job, false);
// jobFinished(job, false);
}
private void showNotificationWithoutComment(Context context, int accentColor, Notification thread, String iconUrl) {

View File

@ -5,6 +5,7 @@ import android.content.Intent
import android.widget.Toast
import com.fastaccess.BuildConfig
import com.fastaccess.R
import com.fastaccess.data.dao.model.Release
import com.fastaccess.helper.RxHelper
import com.fastaccess.provider.rest.RestProvider
@ -16,8 +17,8 @@ class CheckVersionService : IntentService("CheckVersionService") {
override fun onHandleIntent(p0: Intent?) {
RxHelper.getObservable(RestProvider.getRepoService(false)
.getLatestRelease("k0shk0sh", "FastHub"))
.subscribe({
if (it != null) {
.subscribe({ t: Release? ->
t?.let {
Toast.makeText(this, if (BuildConfig.VERSION_NAME.contains(it.tagName))
R.string.up_to_date else R.string.new_version, Toast.LENGTH_LONG).show()
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -15,7 +15,7 @@ buildscript {
assertjVersion = '2.5.0'
espresseVersion = '2.2.2'
requery = '1.3.2'
kotlin_version = '1.1.2-5'
kotlin_version = '1.1.3-2'
}
repositories {