diff --git a/lib/app_sources/apkpure.dart b/lib/app_sources/apkpure.dart index 1c66fb0..4a57552 100644 --- a/lib/app_sources/apkpure.dart +++ b/lib/app_sources/apkpure.dart @@ -87,9 +87,18 @@ class APKPure extends AppSource { type = 'APK'; } + 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); + return MapEntry( '$appId-$versionCode-$architectureString.${type.toLowerCase()}', - 'https://d.cdnpure.com/b/$type/$appId?versionCode=$versionCode&nc=$architectureString'); + downloadUri.toString()); }) .nonNulls .toList()