पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

new_version कवर
पैकेज विवरणv0.3.1

new_version

जांचें कि क्या आपके उपयोगकर्ता के पास आपके Flutter ऐप का सबसे नवीनतम संस्करण है।

AndroidiOSmacOSWindowsLinux
30-दिन डाउनलोड
456
लाइक
618
Pub अंक
130

पैकेज इंस्टॉल करें

flutter pub add new_version

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

new_version पैकेज फ्लटर ऐप्स को एक दूरस्थ स्रोत, जैसे एक JSON फ़ाइल या API एंडपॉइंट के बनाम निर्दिष्ट संस्करण की जाँच करके यह तय करने में मदद करता है कि वर्तमान संस्करण अद्यतन है या नहीं। यह Android, iOS, macOS, Windows और Linux जैसे कई प्लेटफॉर्म का समर्थन करता है। पैकेज डेवलपर्स को नए संस्करण उपलब्ध होने पर उपयोगकर्ता को अपडेट करने के लिए प्रेरित करने की अनुमति देता है, जिससे उपयोगकर्ता अनुभव में सुधार होता है और नवीनतम विशेषताओं और सुरक्षा ठीक करने तक पहुंच सुनिश्चित होती है। यह हल्का है और न्यूनतम कॉन्फ़िगरेशन के साथ आसानी से एकीकृत किया जा सकता है।

उपयोग

  • ऐप अद्यतन करने के लिए उपयोगकर्ता को प्रॉम्प्ट करें
  • एप्लिकेशन लॉन्च पर अपडेट के लिए जांचें
  • संस्करण सुगमता की पुष्टि करें
  • नए रिलीज़ के बारे में उपयोगकर्ताओं को सूचित करें
  • CI/CD वर्कफ़्लो में एकीकरण करें

मुख्य विशेषताएँ

  • प्लेटफॉर्म के अनुकूल समर्थन
  • सरल एकीकरण
  • दूरस्थ संस्करण जाँच
  • कस्टमाइज़ किए गए अपडेट प्रॉम्प्ट्स
  • JSON और HTTP एंडपॉइंट्स का समर्थन करता है

इनके लिए उपयुक्त

  • संस्करण नियंत्रण की आवश्यकता वाले ऐप्स
  • एप अपडेट का प्रबंधन करने वाले विकासकर्ता
  • अक्सर रिलीज़ के साथ प्रोजेक्ट्स
  • उपयोगकर्ता-मुखी मोबाइल एप्लिकेशन
  • स्वचालित डेप्लॉयमेंट का उपयोग करने वाली टीमें

विचार योग्य बातें

  • इंटरनेट कनेक्शन की आवश्यकता है
  • बाहरी संस्करण स्रोत पर निर्भर करता है
  • कैशिंग रणनीति की आवश्यकता हो सकती है
  • ऑफलाइन-प्रथम ऐप्स के लिए उपयुक्त नहीं
  • संस्करण तुलना तार्किकता को परिभाषित करना आवश्यक है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Archive Notice

This plugin is relatively stable and feature-complete, but I won't be working on it or accepting pull requests going forward. If anyone is interested in taking over as maintainer, feel free to email me. I'm also happy to link to popular forks that have spun off. Thanks.

New Version Plugin 🎉

A Flutter plugin that makes it possible to:

  • Check if a user has the most recent version of your app installed.
  • Show the user an alert with a link to the appropriate app store page.

See more at the Dart Packages page.

Screenshots

Installation

Add new_version as a dependency in your pubspec.yaml file.

dependencies:
  new_version: ^0.3.0

Usage

In main.dart (or wherever your app is initialized), create an instance of NewVersion.

final newVersion = NewVersion();

The plugin will automatically use your Flutter package identifier to check the app store. If your app has a different identifier in the Google Play Store or Apple App Store, you can overwrite this by providing values for androidId and/or iOSId.

For iOS: If your app is only available outside the U.S. App Store, you will need to set iOSAppStoreCountry to the two-letter country code of the store you want to search. See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 for a list of ISO Country Codes.

You can then use the plugin in two ways.

Quickstart

Calling showAlertIfNecessary with your app's BuildContext will check if the app can be updated, and will automatically display a platform-specific alert that the user can use to go to the app store.

newVersion.showAlertIfNecessary(context: context);

Advanced 😎

If you want to create a custom alert or use the app version information differently, call getVersionStatus. This will return a Future<VersionStatus> with information about the local and app store versions of the app.

final status = await newVersion.getVersionStatus();
status.canUpdate // (true)
status.localVersion // (1.2.1)
status.storeVersion // (1.2.3)
status.appStoreLink // (https://itunes.apple.com/us/app/google/id284815942?mt=8)

If you want to present a customized dialog, you can pass your VersionStatus to showUpdateDialog().

newVersion.showUpdateDialog(
  context: context, 
  versionStatus: status,
  dialogTitle: 'Custom dialog title',
  dialogText: 'Custom dialog text',
  updateButtonText: 'Custom update button text',
  dismissButtonText: 'Custom dismiss button text',
  dismissAction: () => functionToRunAfterDialogDismissed(),
)

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 5 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।