From b2d6752b809d0d10e4521eabf30360b0c47267a1 Mon Sep 17 00:00:00 2001 From: bernikr Date: Mon, 19 May 2025 21:10:18 +0200 Subject: [PATCH] apkpure: use provided asset download links --- lib/app_sources/apkpure.dart | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/app_sources/apkpure.dart b/lib/app_sources/apkpure.dart index 836c8c2..e2c5a9c 100644 --- a/lib/app_sources/apkpure.dart +++ b/lib/app_sources/apkpure.dart @@ -85,19 +85,11 @@ class APKPure extends AppSource { } String type = e['asset']['type']; - - var downloadUri = Uri.parse("https://d.cdnpure.com/b/$type/$appId"); - var queryParameters = { - "versionCode": versionCode, - }; - if (architectureString.isNotEmpty) { - queryParameters["nc"] = architectureString; - } - downloadUri = downloadUri.replace(queryParameters: queryParameters); + String downloadUri = e['asset']['url']; return MapEntry( '$appId-$versionCode-$architectureString.${type.toLowerCase()}', - downloadUri.toString()); + downloadUri); }) .nonNulls .toList()