From b74cbd162582c08aaa32505d29ce9994bfd42a36 Mon Sep 17 00:00:00 2001 From: -Daniel Ioannou Date: Wed, 28 Feb 2024 22:56:15 +0200 Subject: [PATCH 1/9] #95: Add Lebanese Pound currency --- example/android/app/build.gradle | 2 +- example/pubspec.lock | 28 ++++++++++++++-------------- lib/src/currencies.dart | 13 +++++++++++++ pubspec.lock | 26 +++++++++++++------------- pubspec.yaml | 2 +- 5 files changed, 42 insertions(+), 29 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 2b09493..a2271f2 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -39,7 +39,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.currencyPicker.example" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 32 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/example/pubspec.lock b/example/pubspec.lock index 3b7493b..8b415a6 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -37,17 +37,17 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" currency_picker: dependency: "direct main" description: path: ".." relative: true source: path - version: "2.0.20" + version: "2.0.21" fake_async: dependency: transitive description: @@ -86,10 +86,10 @@ packages: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" path: dependency: transitive description: @@ -115,18 +115,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -147,10 +147,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" vector_math: dependency: transitive description: @@ -163,9 +163,9 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.3.0" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" + dart: ">=3.2.0-194.0.dev <4.0.0" diff --git a/lib/src/currencies.dart b/lib/src/currencies.dart index 361ec0e..555f178 100644 --- a/lib/src/currencies.dart +++ b/lib/src/currencies.dart @@ -1014,6 +1014,19 @@ List> currencies = [ "space_between_amount_and_symbol": false, "symbol_on_left": false, }, + { + "code": "LBP", + "name": "Lebanese Pound", + "symbol": "ل.ل", + "flag": "LB", + "decimal_digits": 2, + "number": 422, + "name_plural": "Lebanese pounds", + "thousands_separator": ",", + "decimal_separator": ".", + "space_between_amount_and_symbol": true, + "symbol_on_left": true + }, { "code": "LRD", "name": "Liberia Dollar", diff --git a/pubspec.lock b/pubspec.lock index 0160c44..2374ba9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: "direct main" description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" fake_async: dependency: transitive description: @@ -87,10 +87,10 @@ packages: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" path: dependency: transitive description: @@ -116,18 +116,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -148,10 +148,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" vector_math: dependency: transitive description: @@ -164,9 +164,9 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.3.0" sdks: - dart: ">=3.1.0 <4.0.0" + dart: ">=3.2.0-194.0.dev <4.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 14827df..7a0e84f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ description: A flutter package to select a currency from a list of currencies. homepage: https://github.com/Daniel-Ioannou repository: https://github.com/Daniel-Ioannou/flutter_currency_picker -version: 2.0.20 +version: 2.0.21 environment: sdk: '>=2.12.0 <4.0.0' From cc6faf9c61b5c46fca0f667b2f3dde5777d199b3 Mon Sep 17 00:00:00 2001 From: -Daniel Ioannou Date: Wed, 28 Feb 2024 22:58:30 +0200 Subject: [PATCH 2/9] #95: Add Malagasy Ariary currency --- lib/src/currencies.dart | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/lib/src/currencies.dart b/lib/src/currencies.dart index 555f178..9aaa8c3 100644 --- a/lib/src/currencies.dart +++ b/lib/src/currencies.dart @@ -1054,17 +1054,17 @@ List> currencies = [ "symbol_on_left": false, }, { - "code": "MVR", - "name": "Maldivian Rufiyaa", - "symbol": "/-", - "flag": "MV", - "decimal_digits": 2, - "number": 462, - "name_plural": "Maldivian Rufiyaa", - "thousands_separator": ",", + "code": "MGA", + "name": "Malagasy Ariary", + "symbol": "Ar", + "flag": "MG", + "decimal_digits": 0, + "number": 969, + "name_plural": "Malagasy ariaries", + "thousands_separator": " ", "decimal_separator": ".", "space_between_amount_and_symbol": false, - "symbol_on_left": false, + "symbol_on_left": true }, { "code": "MWK", @@ -1079,6 +1079,19 @@ List> currencies = [ "space_between_amount_and_symbol": false, "symbol_on_left": true, }, + { + "code": "MVR", + "name": "Maldivian Rufiyaa", + "symbol": "/-", + "flag": "MV", + "decimal_digits": 2, + "number": 462, + "name_plural": "Maldivian Rufiyaa", + "thousands_separator": ",", + "decimal_separator": ".", + "space_between_amount_and_symbol": false, + "symbol_on_left": false, + }, { "code": "MUR", "name": "Mauritius Rupee", From 79d537b8e11b64a416b346c4dbdfc5ec0174f7fe Mon Sep 17 00:00:00 2001 From: -Daniel Ioannou Date: Wed, 28 Feb 2024 22:59:29 +0200 Subject: [PATCH 3/9] #95: Add Tongan Pa'anga currency --- lib/src/currencies.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/src/currencies.dart b/lib/src/currencies.dart index 9aaa8c3..fc2705d 100644 --- a/lib/src/currencies.dart +++ b/lib/src/currencies.dart @@ -1404,6 +1404,19 @@ List> currencies = [ "space_between_amount_and_symbol": false, "symbol_on_left": true, }, + { + "code": "TOP", + "name": "Tongan Pa'anga", + "symbol": "T\$", + "flag": "TO", + "decimal_digits": 2, + "number": 776, + "name_plural": "Tongan pa'angas", + "thousands_separator": ",", + "decimal_separator": ".", + "space_between_amount_and_symbol": true, + "symbol_on_left": true + }, { "code": "TTD", "name": "Trinidad and Tobago Dollar", From 71346b63c4283f46b3b7279ab04d1e95bf87b818 Mon Sep 17 00:00:00 2001 From: -Daniel Ioannou Date: Wed, 28 Feb 2024 23:01:59 +0200 Subject: [PATCH 4/9] #95: Add Cuban Peso currency --- lib/src/currencies.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/src/currencies.dart b/lib/src/currencies.dart index fc2705d..895a8b1 100644 --- a/lib/src/currencies.dart +++ b/lib/src/currencies.dart @@ -780,6 +780,19 @@ List> currencies = [ "space_between_amount_and_symbol": false, "symbol_on_left": true, }, + { + "code": "CUP", + "name": "Cuban Peso", + "symbol": "\$MN", + "flag": "CU", + "decimal_digits": 2, + "number": 192, + "name_plural": "Cuban pesos", + "thousands_separator": ",", + "decimal_separator": ".", + "space_between_amount_and_symbol": true, + "symbol_on_left": true + }, { "code": "DOP", "name": "Dominican Republic Peso", From c0311545e383e7f898397e05a9f2c23ea6797cb4 Mon Sep 17 00:00:00 2001 From: -Daniel Ioannou Date: Wed, 28 Feb 2024 23:04:39 +0200 Subject: [PATCH 5/9] #95: Add Angolan Kwanza currency --- lib/src/currencies.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/src/currencies.dart b/lib/src/currencies.dart index 895a8b1..c0ab9b7 100644 --- a/lib/src/currencies.dart +++ b/lib/src/currencies.dart @@ -494,6 +494,19 @@ List> currencies = [ "space_between_amount_and_symbol": false, "symbol_on_left": false, }, + { + "code": "AOA", + "name": "Angolan Kwanza", + "symbol": "Kz", + "flag": "AO", + "decimal_digits": 2, + "number": 973, + "name_plural": "Angolan kwanzas", + "thousands_separator": ",", + "decimal_separator": ".", + "space_between_amount_and_symbol": true, + "symbol_on_left": true + }, { "code": "ARS", "name": "Argentine Peso", From dc87158a9a72ca9430098f17e0f6628c3c7ea9ad Mon Sep 17 00:00:00 2001 From: Daniel Ioannou Date: Thu, 29 Feb 2024 19:44:51 +0200 Subject: [PATCH 6/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 97b47d2..46ff5de 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ A flutter package to select a currency from a list of currencies. Add the package to your pubspec.yaml: ```yaml - currency_picker: ^2.0.20 + currency_picker: ^2.0.21 ``` In your dart file, import the library: From 9a2ae7e468c27c1f113808b94ddfe16171c95748 Mon Sep 17 00:00:00 2001 From: Daniel Ioannou Date: Thu, 29 Feb 2024 19:46:31 +0200 Subject: [PATCH 7/9] Update CHANGELOG.md --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cd41c5..2aaafe7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 2.0.21 +* Add more currencies: + - Angolan Kwanza + - Cuban Peso + - Tongan Pa'anga + - Malagasy Ariary + - Lebanese Pound + - ## 2.0.20 * Trim search query From 3c0c12ce2925eab6fc29b9aa6e9fea162df79ef3 Mon Sep 17 00:00:00 2001 From: Daniel Ioannou Date: Thu, 29 Feb 2024 19:46:42 +0200 Subject: [PATCH 8/9] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aaafe7..e55ce72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ - Tongan Pa'anga - Malagasy Ariary - Lebanese Pound - - + ## 2.0.20 * Trim search query From abfe5dae8382582dc1c7f4be1a334231c3179e51 Mon Sep 17 00:00:00 2001 From: Daniel Ioannou Date: Thu, 29 Feb 2024 19:47:09 +0200 Subject: [PATCH 9/9] Update example README.md --- example/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/README.md b/example/README.md index 97b47d2..46ff5de 100644 --- a/example/README.md +++ b/example/README.md @@ -11,7 +11,7 @@ A flutter package to select a currency from a list of currencies. Add the package to your pubspec.yaml: ```yaml - currency_picker: ^2.0.20 + currency_picker: ^2.0.21 ``` In your dart file, import the library: