This commit is contained in:
k0shk0sh 2018-03-17 12:04:01 +01:00
parent df7c5caf04
commit d688d562f7
3 changed files with 10 additions and 5 deletions

View File

@ -78,6 +78,8 @@
public *;
}
-keep class com.google.android.gms.** { *; }
-dontwarn com.github.b3er.**
-dontwarn com.memoizrlabs.**
-dontwarn java.lang.FunctionalInterface
@ -131,4 +133,8 @@
-dontwarn com.octo.android.robospice.retrofit.RetrofitJackson**
-dontwarn retrofit.appengine.UrlFetchClient
-dontwarn icepick.**
-dontwarn com.fastaccess.ui.modules.repos.**
-dontwarn com.fastaccess.ui.modules.repos.**
-dontwarn org.apache.xerces.parsers.**
-dontwarn oracle.xml.**
-dontwarn org.jdom.**
-dontwarn okhttp3.internal.**

View File

@ -32,7 +32,7 @@ import static com.fastaccess.data.dao.model.PinnedGists.LOGIN;
@io.requery.Nullable long gistId;
public static void pinUpin(@NonNull Gist gist) {
PinnedGists pinnedIssues = get(gist.getId());
PinnedGists pinnedIssues = get(gist.getGistId().hashCode());
if (pinnedIssues == null) {
PinnedGists pinned = new PinnedGists();
pinned.setLogin(Login.getUser().getLogin());
@ -42,7 +42,7 @@ import static com.fastaccess.data.dao.model.PinnedGists.LOGIN;
App.getInstance().getDataStore().toBlocking().insert(pinned);
} catch (Exception ignored) {}
} else {
delete(gist.getId());
delete(gist.getGistId().hashCode());
}
}
@ -73,5 +73,4 @@ import static com.fastaccess.data.dao.model.PinnedGists.LOGIN;
public static boolean isPinned(long gistId) {
return get(gistId) != null;
}
}

View File

@ -23,7 +23,7 @@ buildscript {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-alpha04'
classpath 'com.android.tools.build:gradle:3.2.0-alpha06'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.novoda:gradle-build-properties-plugin:0.3'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2'