Compare commits

..

3 Commits

Author SHA1 Message Date
Imran
dfac3af3f5 Merge pull request #1698 from ImranR98/dev
Bugfix for files with vague 'content-disposition' header (#1697)
2024-06-29 03:03:36 -04:00
Imran Remtulla
5eceaeecde Increment version, run dart fix 2024-06-29 03:02:56 -04:00
Imran Remtulla
62c23004f7 Bugfix for files with vague 'content-disposition' header (#1697) 2024-06-29 03:01:48 -04:00
3 changed files with 6 additions and 4 deletions

View File

@@ -88,8 +88,8 @@ class FDroidRepo extends AppSource {
@override
void runOnAddAppInputChange(String userInput) {
this.additionalSourceAppSpecificSettingFormItems =
this.additionalSourceAppSpecificSettingFormItems.map((row) {
additionalSourceAppSpecificSettingFormItems =
additionalSourceAppSpecificSettingFormItems.map((row) {
row = row.map((item) {
if (item.key == 'appIdOrName') {
try {

View File

@@ -220,7 +220,9 @@ Future<File> downloadFile(String url, String fileName, bool fileNameHasExt,
if (ext.endsWith('"') || ext.endsWith("other")) {
ext = ext.substring(0, ext.length - 1);
}
if (url.toLowerCase().endsWith('.apk') && ext != 'apk') {
if (((Uri.tryParse(url)?.path ?? url).toLowerCase().endsWith('.apk') ||
ext == 'attachment') &&
ext != 'apk') {
ext = 'apk';
}
fileName = fileName.split('/').last; // Ensure the fileName is a file name

View File

@@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.1.12+2269
version: 1.1.13+2270
environment:
sdk: '>=3.0.0 <4.0.0'