diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index bbd3be35..8f101ccc 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -44,7 +44,7 @@ jobs:
files: lcov.info
- name: Boot the simulator
- run: xcrun simctl boot 'iPhone 13'
+ run: xcrun simctl boot 'iPhone 15'
- name: Run the driver test
run: cd example; flutter drive --target=test/driver_test/driver.dart --driver=test/driver_test/driver_test.dart
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7e0d88ec..1ed229a3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,12 @@
+## Next
+
+- [413] Fixed Haitian Creole messages to use correct grammar. (thanks to @wjeanvilma)
+- [415] Added Kurdish Sorani ('ku') language translation. (thanks to @drpshtiwan)
+
+## 10.3.0
+
+Allowed for package_info_plus 8.0.0.
+
## 10.2.0
Allowed for package_info_plus 7.0.0.
diff --git a/README.md b/README.md
index 81d531cf..7d89677b 100644
--- a/README.md
+++ b/README.md
@@ -371,7 +371,7 @@ UpgradeAlert(Upgrader(messages: MyUpgraderMessages()));
## Language localization
-The strings displayed in `upgrader` are already localized in 34 languages. New languages will be
+The strings displayed in `upgrader` are already localized in 35 languages. New languages will be
supported in the future with minor updates. It also supports right to left languages.
Languages supported:
@@ -395,6 +395,7 @@ Languages supported:
* Kazakh ('kk')
* Khmer ('km')
* Korean ('ko')
+* Kurdish Sorani ('ku')
* Lithuanian ('lt')
* Mongolian ('mn')
* Norwegian ('nb')
@@ -410,6 +411,7 @@ Languages supported:
* Ukrainian ('uk')
* Vietnamese ('vi')
+
The `upgrader` package can be supplied with additional languages in your code by extending the `UpgraderMessages` class
to provide custom values.
@@ -481,6 +483,25 @@ help you customize the `upgrader` experience for your app. Check these out.
| main_min_app_version.dart | main_multiple.dart | main_stateful.dart |
| main_subclass.dart | | |
+## Tapping UPDATE NOW button issue on Android
+
+Seeing an error similar to this on Android after tapping the UPDATE NOW button?
+```
+I/UrlLauncher(11833): component name for https://www.google.com/ is null
+```
+
+Adding this to the AndroidManifest.xml file will solve this issue. Add this at the bottom of the file just above the closing `` tag.
+```
+
+
+
+
+
+
+
+```
+
+This was taken from this Android documentation: https://developer.android.com/training/package-visibility/use-cases#check-browser-available
## iTunes Search API
diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml
index ba74ee78..2a0b3ca3 100644
--- a/example/android/app/src/main/AndroidManifest.xml
+++ b/example/android/app/src/main/AndroidManifest.xml
@@ -39,4 +39,11 @@
android:name="flutterEmbedding"
android:value="2" />
+
+
+
+
+
+
+
diff --git a/example/lib/main_messages.dart b/example/lib/main_messages.dart
index 60d31e9c..00710fa7 100644
--- a/example/lib/main_messages.dart
+++ b/example/lib/main_messages.dart
@@ -52,6 +52,7 @@ class MyApp extends StatelessWidget {
Locale('kk', ''), // Kazakh, no country code
Locale('km', ''), // Khmer, no country code
Locale('ko', ''), // Korean, no country code
+ Locale('ku', ''), // Kurdish Sorani, no country code
Locale('lt', ''), // Lithuanian, no country code
Locale('mn', ''), // Mongolian, no country code
Locale('nb', ''), // Norwegian, no country code
@@ -149,6 +150,7 @@ class DemoLocalizationsDelegate
'kk',
'km',
'ko',
+ 'ku',
'lt',
'mn',
'nb',
diff --git a/lib/src/itunes_search_api.dart b/lib/src/itunes_search_api.dart
index 8eba4916..961c4846 100644
--- a/lib/src/itunes_search_api.dart
+++ b/lib/src/itunes_search_api.dart
@@ -39,7 +39,7 @@ class ITunesSearchAPI {
}
final url = lookupURLByBundleId(bundleId,
- country: country ??= '', useCacheBuster: useCacheBuster)!;
+ country: country ?? '', useCacheBuster: useCacheBuster)!;
if (debugLogging) {
print('upgrader: download: $url');
}
diff --git a/lib/src/upgrade_messages.dart b/lib/src/upgrade_messages.dart
index 7f505e70..8703bf86 100644
--- a/lib/src/upgrade_messages.dart
+++ b/lib/src/upgrade_messages.dart
@@ -155,7 +155,7 @@ class UpgraderMessages {
break;
case 'ht':
message =
- 'Yon nouvo vèsyon {{appName}} disponib! Vèsyon {{currentAppStoreVersion}} disponib, epi ou gen vèsyon {{currentInstalledVersion}}.';
+ 'Yon nouvo vèsyon {{appName}} disponib! Vèsyon {{currentAppStoreVersion}} disponib, ou gen vèsyon {{currentInstalledVersion}}.';
break;
case 'hu':
message =
@@ -185,6 +185,10 @@ class UpgraderMessages {
message =
'{{appName}}이 새 버전으로 업데이트되었습니다! 최신 버전 {{currentAppStoreVersion}}으로 업그레이드 가능합니다 - 현재 버전 {{currentInstalledVersion}}.';
break;
+ case 'ku':
+ message =
+ 'وەشانی نوێی {{appName}} بەردەستە! وەشانی {{currentAppStoreVersion}} بەردەستە- تۆ وەشانی {{currentInstalledVersion}} دابەزاندوە.';
+ break;
case 'lt':
message =
'Išleista nauja programos {{appName}} versija! Versija {{currentAppStoreVersion}} yra prieinama, jūs turite {{currentInstalledVersion}}.';
@@ -290,7 +294,7 @@ class UpgraderMessages {
message = 'नज़रअंदाज़ करना';
break;
case 'ht':
- message = 'IGNORE';
+ message = 'INYORE';
break;
case 'hu':
message = 'KIHAGYOM';
@@ -313,6 +317,9 @@ class UpgraderMessages {
case 'ko':
message = '무시';
break;
+ case 'ku':
+ message = 'پشتگوێخستن';
+ break;
case 'lt':
message = 'IGNORUOTI';
break;
@@ -429,6 +436,9 @@ class UpgraderMessages {
case 'ko':
message = '나중에';
break;
+ case 'ku':
+ message = 'دواتر';
+ break;
case 'lt':
message = 'ATNAUJINTI VĖLIAU';
break;
@@ -470,7 +480,6 @@ class UpgraderMessages {
break;
case 'zh':
message = '以后';
- break;
case 'en':
default:
message = 'LATER';
@@ -542,6 +551,9 @@ class UpgraderMessages {
case 'ko':
message = '지금 업데이트';
break;
+ case 'ku':
+ message = 'نوێکردنەوە';
+ break;
case 'lt':
message = 'ATNAUJINTI DABAR';
break;
@@ -632,7 +644,7 @@ class UpgraderMessages {
message = 'क्या आप इसे अभी अद्यतन करना चाहेंगे?';
break;
case 'ht':
- message = 'Èske ou vle mete ajou aplikasyon an kounye a?';
+ message = 'Èske ou vle mete aplikasyon an ajou kounye a?';
break;
case 'hu':
message = 'Akarja most frissíteni?';
@@ -655,6 +667,9 @@ class UpgraderMessages {
case 'ko':
message = '지금 업데이트를 시작하시겠습니까?';
break;
+ case 'ku':
+ message = 'دەتەوێت ئێستا نوێی بکەیەوە؟';
+ break;
case 'lt':
message = 'Ar norite atnaujinti dabar?';
break;
@@ -741,6 +756,9 @@ class UpgraderMessages {
case 'ja':
message = 'リリースノート';
break;
+ case 'ku':
+ message = 'تیبینەکانی وەشان';
+ break;
case 'pt':
message = 'Novidades';
break;
@@ -821,7 +839,7 @@ class UpgraderMessages {
message = 'अद्यतन ऐप?';
break;
case 'ht':
- message = 'Mete ajou app a?';
+ message = 'Mete app la ajou?';
break;
case 'hu':
message = 'FrissÍtés?';
@@ -844,6 +862,9 @@ class UpgraderMessages {
case 'ko':
message = '앱을 업데이트하시겠습니까?';
break;
+ case 'ku':
+ message = 'نوێکردنەوەی ئەپ؟';
+ break;
case 'lt':
message = 'Atnaujinti programą?';
break;
diff --git a/pubspec.yaml b/pubspec.yaml
index 31e98603..69be2d3b 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
name: upgrader
description: Flutter package for prompting users to upgrade when there is a newer version of the app in the store.
-version: 10.2.0
+version: 10.3.0
homepage: https://github.com/larryaasen/upgrader
environment:
@@ -24,7 +24,7 @@ dependencies:
os_detect: ^2.0.1
# From Flutter Community: Provides an API for querying information about an application package.
- package_info_plus: '>=4.0.1 <8.0.0'
+ package_info_plus: '>=4.0.1 <9.0.0'
# From Flutter Team: Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android).
shared_preferences: '>=2.1.1 <3.0.0'
diff --git a/test/upgrader_test.dart b/test/upgrader_test.dart
index 826c3b15..f620b927 100644
--- a/test/upgrader_test.dart
+++ b/test/upgrader_test.dart
@@ -1151,6 +1151,7 @@ void main() {
verifyMessages(UpgraderMessages(code: 'kk'), 'kk');
verifyMessages(UpgraderMessages(code: 'km'), 'km');
verifyMessages(UpgraderMessages(code: 'ko'), 'ko');
+ verifyMessages(UpgraderMessages(code: 'ku'), 'ku');
verifyMessages(UpgraderMessages(code: 'lt'), 'lt');
verifyMessages(UpgraderMessages(code: 'mn'), 'mn');
verifyMessages(UpgraderMessages(code: 'nb'), 'nb');