in_app_purchase_offers 0.4.0 copy "in_app_purchase_offers: ^0.4.0" to clipboard
in_app_purchase_offers: ^0.4.0 copied to clipboard

Extension for in_app_purchase plugin for working with offers (discounts) in iOS and Android.

2
likes
110/ 160
pub points
18
downloads

We analyzed this package 2 days ago, and awarded it 110 pub points (of a possible 160):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

60 out of 130 API elements (46.2 %) have documentation comments.

Some symbols that are missing documentation: in_app_purchase_offers, in_app_purchase_offers.AppStoreOffer, in_app_purchase_offers.AppStoreOffer.AppStoreOffer, in_app_purchase_offers.AppStoreOffer.discount, in_app_purchase_offers.AppStoreProductDetailsWithOffers.

10/10 points: Package has an example

failed
Platform support
0 / 20trigger folding of the section

0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:in_app_purchase_offers/in_app_purchase_offers.dart that imports:
  • package:in_app_purchase_offers/src/storekit/app_store_product_details_with_offers.dart that imports:
  • package:in_app_purchase_storekit/store_kit_wrappers.dart that declares support for platforms: iOS, macOS.
Package does not support platform `iOS`.

Because:

  • package:in_app_purchase_offers/in_app_purchase_offers.dart that imports:
  • package:in_app_purchase_offers/src/android/google_play_product_details_with_offers.dart that imports:
  • package:in_app_purchase_android/in_app_purchase_android.dart that declares support for platforms: Android.
Package does not support platform `Windows`.

Because:

  • package:in_app_purchase_offers/in_app_purchase_offers.dart that imports:
  • package:in_app_purchase_offers/src/storekit/app_store_product_details_with_offers.dart that imports:
  • package:in_app_purchase_storekit/store_kit_wrappers.dart that declares support for platforms: iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:in_app_purchase_offers/in_app_purchase_offers.dart that imports:
  • package:in_app_purchase_offers/src/storekit/app_store_product_details_with_offers.dart that imports:
  • package:in_app_purchase_storekit/store_kit_wrappers.dart that declares support for platforms: iOS, macOS.
Package does not support platform `macOS`.

Because:

  • package:in_app_purchase_offers/in_app_purchase_offers.dart that imports:
  • package:in_app_purchase_offers/src/android/google_play_product_details_with_offers.dart that imports:
  • package:in_app_purchase_android/in_app_purchase_android.dart that declares support for platforms: Android.
Package does not support platform `Web`.

Because:

  • package:in_app_purchase_offers/in_app_purchase_offers.dart that imports:
  • package:in_app_purchase_offers/src/storekit/app_store_product_details_with_offers.dart that imports:
  • package:in_app_purchase_storekit/store_kit_wrappers.dart that declares support for platforms: iOS, macOS.

0/0 points: WASM compatibility

This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 15 issues. Showing the first 2:

INFO: The file name 'offer+display.dart' isn't a lower_case_with_underscores identifier.

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/offer+display.dart

/tmp/pana_IDGPFC/lib/in_app_purchase_offers.dart doesn't match the Dart formatter.

To format your files run: dart format .

failed
Support up-to-date dependencies
20 / 40trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
in_app_purchase any 3.2.0 3.2.0
in_app_purchase_android any 0.3.6+12 0.3.6+12
in_app_purchase_storekit any 0.3.20+2 0.3.20+2
intl any 0.20.1 0.20.1
Transitive dependencies
Package Constraint Compatible Latest
async - 2.12.0 2.12.0
characters - 1.3.0 1.4.0
clock - 1.1.2 1.1.2
collection - 1.19.0 1.19.1
http - 1.2.2 1.2.2
http_parser - 4.1.2 4.1.2
in_app_purchase_platform_interface - 1.4.0 1.4.0
json_annotation - 4.9.0 4.9.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
path - 1.9.1 1.9.1
plugin_platform_interface - 2.1.8 2.1.8
sky_engine - 0.0.0 0.0.0
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
web - 1.1.0 1.1.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 31 errors:

  • UNDEFINED_CLASS - lib/src/android/google_play_offer.dart:9:9 - Undefined class 'SubscriptionOfferDetailsWrapper'.
  • UNDEFINED_IDENTIFIER - lib/src/android/google_play_offer.dart:18:49 - Undefined name 'RecurrenceMode'.
  • NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER - lib/src/android/google_play_product_details_with_offers.dart:5:7 - Missing concrete implementations of 'getter GooglePlayProductDetails.skuDetails', 'getter ProductDetails.skProduct', and 'getter ProductDetails.skuDetail'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.

2
likes
110
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

Extension for in_app_purchase plugin for working with offers (discounts) in iOS and Android.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, in_app_purchase, in_app_purchase_android, in_app_purchase_storekit, intl

More

Packages that depend on in_app_purchase_offers