From 298e750cb547eb76147eec4af160e87696ab657b Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 26 Jul 2022 08:05:00 +0200 Subject: [PATCH] Fixed Play store build --- .../java/eu/faircode/email/VirusTotal.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/app/src/dummy/java/eu/faircode/email/VirusTotal.java b/app/src/dummy/java/eu/faircode/email/VirusTotal.java index b375912a80..c750ef2792 100644 --- a/app/src/dummy/java/eu/faircode/email/VirusTotal.java +++ b/app/src/dummy/java/eu/faircode/email/VirusTotal.java @@ -21,6 +21,10 @@ package eu.faircode.email; import android.content.Context; import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; + +import androidx.annotation.NonNull; import java.io.File; @@ -38,4 +42,42 @@ public class VirusTotal { static Bundle upload(Context context, File file, String apiKey, Runnable analyzing) { return null; } + + public static class ScanResult implements Parcelable { + public String name; + public String category; + + ScanResult(String name, String category) { + this.name = name; + this.category = category; + } + + protected ScanResult(Parcel in) { + name = in.readString(); + category = in.readString(); + } + + @Override + public void writeToParcel(@NonNull Parcel parcel, int i) { + parcel.writeString(name); + parcel.writeString(category); + } + + @Override + public int describeContents() { + return 0; + } + + public static final Creator CREATOR = new Creator() { + @Override + public ScanResult createFromParcel(Parcel in) { + return new ScanResult(in); + } + + @Override + public ScanResult[] newArray(int size) { + return new ScanResult[size]; + } + }; + } }