mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 06:36:44 +02:00
apkpure: use provided asset download links
This commit is contained in:
@ -85,19 +85,11 @@ class APKPure extends AppSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String type = e['asset']['type'];
|
String type = e['asset']['type'];
|
||||||
|
String downloadUri = e['asset']['url'];
|
||||||
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(
|
return MapEntry(
|
||||||
'$appId-$versionCode-$architectureString.${type.toLowerCase()}',
|
'$appId-$versionCode-$architectureString.${type.toLowerCase()}',
|
||||||
downloadUri.toString());
|
downloadUri);
|
||||||
})
|
})
|
||||||
.nonNulls
|
.nonNulls
|
||||||
.toList()
|
.toList()
|
||||||
|
Reference in New Issue
Block a user