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 *; public *;
} }
-keep class com.google.android.gms.** { *; }
-dontwarn com.github.b3er.** -dontwarn com.github.b3er.**
-dontwarn com.memoizrlabs.** -dontwarn com.memoizrlabs.**
-dontwarn java.lang.FunctionalInterface -dontwarn java.lang.FunctionalInterface
@ -132,3 +134,7 @@
-dontwarn retrofit.appengine.UrlFetchClient -dontwarn retrofit.appengine.UrlFetchClient
-dontwarn icepick.** -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; @io.requery.Nullable long gistId;
public static void pinUpin(@NonNull Gist gist) { public static void pinUpin(@NonNull Gist gist) {
PinnedGists pinnedIssues = get(gist.getId()); PinnedGists pinnedIssues = get(gist.getGistId().hashCode());
if (pinnedIssues == null) { if (pinnedIssues == null) {
PinnedGists pinned = new PinnedGists(); PinnedGists pinned = new PinnedGists();
pinned.setLogin(Login.getUser().getLogin()); pinned.setLogin(Login.getUser().getLogin());
@ -42,7 +42,7 @@ import static com.fastaccess.data.dao.model.PinnedGists.LOGIN;
App.getInstance().getDataStore().toBlocking().insert(pinned); App.getInstance().getDataStore().toBlocking().insert(pinned);
} catch (Exception ignored) {} } catch (Exception ignored) {}
} else { } 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) { public static boolean isPinned(long gistId) {
return get(gistId) != null; return get(gistId) != null;
} }
} }

View File

@ -23,7 +23,7 @@ buildscript {
maven { url 'https://maven.fabric.io/public' } maven { url 'https://maven.fabric.io/public' }
} }
dependencies { 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.google.gms:google-services:3.0.0'
classpath 'com.novoda:gradle-build-properties-plugin:0.3' classpath 'com.novoda:gradle-build-properties-plugin:0.3'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2' classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2'