From 5de2df19ac62965c0cde548dca29db224bd8e6b1 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Fri, 6 Sep 2019 16:01:46 +0200 Subject: [PATCH] Installer: Add Aurora store. --- oeffi/src/de/schildbach/oeffi/util/Installer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oeffi/src/de/schildbach/oeffi/util/Installer.java b/oeffi/src/de/schildbach/oeffi/util/Installer.java index e0c8e79..6f15e66 100644 --- a/oeffi/src/de/schildbach/oeffi/util/Installer.java +++ b/oeffi/src/de/schildbach/oeffi/util/Installer.java @@ -23,7 +23,7 @@ import android.content.pm.PackageManager; import okhttp3.HttpUrl; public enum Installer { - F_DROID("F-Droid"), GOOGLE_PLAY("Google Play"), AMAZON_APPSTORE("Amazon Appstore"); + F_DROID("F-Droid"), GOOGLE_PLAY("Google Play"), AMAZON_APPSTORE("Amazon Appstore"), AURORA_STORE("Aurora Store"); public final String displayName; @@ -44,6 +44,8 @@ public enum Installer { return GOOGLE_PLAY; if ("com.amazon.venezia".equals(installerPackageName)) return AMAZON_APPSTORE; + if ("com.aurora.store".equals(installerPackageName)) + return AURORA_STORE; return null; } @@ -56,7 +58,7 @@ public enum Installer { if (this == F_DROID) { url = HttpUrl.parse("https://f-droid.org/de/packages/").newBuilder(); url.addPathSegment(application.getPackageName()); - } else if (this == GOOGLE_PLAY) { + } else if (this == GOOGLE_PLAY || this == AURORA_STORE) { url = HttpUrl.parse("https://play.google.com/store/apps/details").newBuilder(); url.addQueryParameter("id", application.getPackageName()); } else if (this == AMAZON_APPSTORE) {