From 1985dcec3aecedbbde15b215f576e641931daea1 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Fri, 16 Dec 2022 19:48:48 -0500 Subject: [PATCH] Fixed bug for FDroid repos with uppercase in AppID --- lib/main.dart | 2 +- lib/providers/source_provider.dart | 6 +++--- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 22f3444..54bdd4b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -21,7 +21,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; // ignore: implementation_imports import 'package:easy_localization/src/localization.dart'; -const String currentVersion = '0.8.14'; +const String currentVersion = '0.8.15'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/lib/providers/source_provider.dart b/lib/providers/source_provider.dart index cea22a5..a623477 100644 --- a/lib/providers/source_provider.dart +++ b/lib/providers/source_provider.dart @@ -109,11 +109,11 @@ class App { // Ensure the input is starts with HTTPS and has no WWW preStandardizeUrl(String url) { - url = url.toLowerCase(); - if (url.indexOf('http://') != 0 && url.indexOf('https://') != 0) { + if (url.toLowerCase().indexOf('http://') != 0 && + url.toLowerCase().indexOf('https://') != 0) { url = 'https://$url'; } - if (url.indexOf('https://www.') == 0) { + if (url.toLowerCase().indexOf('https://www.') == 0) { url = 'https://${url.substring(12)}'; } url = url diff --git a/pubspec.yaml b/pubspec.yaml index 6c4f334..5f62eda 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: 0.8.14+78 # When changing this, update the tag in main() accordingly +version: 0.8.15+79 # When changing this, update the tag in main() accordingly environment: sdk: '>=2.18.2 <3.0.0'