From 7f2ddaa99f815790c810560037f3a55b29c0f720 Mon Sep 17 00:00:00 2001 From: Nikhil Rajput Date: Fri, 8 Dec 2023 15:01:27 +0530 Subject: [PATCH] bumped to version 1.3.1 --- CHANGELOG.md | 4 ++++ analysis_options.yaml | 2 ++ example/android/gradle/wrapper/gradle-wrapper.properties | 2 +- example/pubspec.yaml | 2 +- lib/src/messages/messages.dart | 4 +++- lib/src/utils/utility.dart | 5 ++++- pubspec.yaml | 2 +- 7 files changed, 16 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30fc577..cd129c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.3.1 + +- **Fix**: Lint errors and warnings fixed. + ## 1.3.0 - **Change**: Dependencies updated. diff --git a/analysis_options.yaml b/analysis_options.yaml index d713a41..bbe3c20 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,3 +1,5 @@ +include: package:lints/core.yaml + analyzer: language: strict-raw-types: true diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 571984a..3be2f61 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 55ba975..5d3beed 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter - cupertino_icons: ^1.0.5 + cupertino_icons: ^1.0.6 get_time_ago: path: ../ diff --git a/lib/src/messages/messages.dart b/lib/src/messages/messages.dart index 4511874..f9c8c8c 100644 --- a/lib/src/messages/messages.dart +++ b/lib/src/messages/messages.dart @@ -1,4 +1,6 @@ -/// [Messages] Template +/// Define [Messages] Template + +library get_time_ago; abstract class Messages { /// Example: `prefixAgo()` 1 min `suffixAgo()` diff --git a/lib/src/utils/utility.dart b/lib/src/utils/utility.dart index eb0e150..3f158e7 100644 --- a/lib/src/utils/utility.dart +++ b/lib/src/utils/utility.dart @@ -1,4 +1,7 @@ -/// Utility function to convert the English number into Urdu numerals +/// Utility function [convertToUrduNumbers] to convert the English number +/// into Urdu numerals + +library get_time_ago; String convertToUrduNumbers(int input) { const english = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']; diff --git a/pubspec.yaml b/pubspec.yaml index 7b83947..2671c47 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: get_time_ago description: A Dart package to convert and format `DateTime` object into `get_time_ago` format to get String like `10 seconds ago`, `a minute ago`, `7 hours ago`, etc. -version: 1.3.0 +version: 1.3.1 homepage: https://pub.dev/packages/get_time_ago repository: https://github.com/nixrajput/get-time-ago