๐Ÿ“ฆ amake / in_app_purchase_stub

Stub implementation of the in_app_purchase Flutter plugin

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ Do What The F*ck You Want To Public License
๐Ÿ“ฅ Clone https://github.com/amake/in_app_purchase_stub.git
HTTPS git clone https://github.com/amake/in_app_purchase_stub.git
SSH git clone git@github.com:amake/in_app_purchase_stub.git
CLI gh repo clone amake/in_app_purchase_stub
Aaron Madlon-Kay Aaron Madlon-Kay Initial implementation 0388d80 6 days ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ README.md

A stub implementation of the in_app_purchase library.

The intent is to allow overriding the default implementation for a given platform in order to prevent unwanted code or dependencies from being included in your app.

Currently only an Android implementation is provided.

Usage

Simply add the dependency to your pubspec.yaml:

dependencies:
  ...
  in_app_purchase_stub_android:
    git:
      url: https://github.com/amake/in_app_purchase_stub.git
      ref: main # Or pin to a commit
      path: in_app_purchase_stub_android

Why?

I have an app that uses IAP on iOS but not on Android. I publish this app to Google Play and also to F-Droid. in_app_purchase_android includes non-free software that F-Droid forcibly strips out at build time, causing the build to break.

Depending on the stub package allows the build to succeed by avoiding including or referring to any of the non-free dependencies.