Skip to content

Commit

Permalink
chore: remove store_checker dependency
Browse files Browse the repository at this point in the history
Breaking the ability to build release apks.

Checking with the in_app_purchase plugin instead.
  • Loading branch information
Merrit committed Aug 9, 2024
1 parent 693725b commit eba2fc1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
7 changes: 1 addition & 6 deletions lib/purchases/cubit/purchases_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:equatable/equatable.dart';
import 'package:flutter/foundation.dart';
import 'package:in_app_purchase/in_app_purchase.dart';
import 'package:in_app_purchase_android/in_app_purchase_android.dart';
import 'package:store_checker/store_checker.dart';

import '../../logs/logs.dart';
import '../../platform/platform.dart';
Expand Down Expand Up @@ -83,11 +82,7 @@ class PurchasesCubit extends Cubit<PurchasesState> {
static Future<bool> _installedFromPlayStore() async {
if (kDebugMode) return true;

final Source installationSource = await StoreChecker.getSource;

return (installationSource == Source.IS_INSTALLED_FROM_PLAY_STORE)
? true
: false;
return await InAppPurchase.instance.isAvailable();
}

Future<void> _initStoreInfo() async {
Expand Down
8 changes: 0 additions & 8 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1057,14 +1057,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.0"
store_checker:
dependency: "direct main"
description:
name: store_checker
sha256: "9e5841e4f922cc7f0283323ff3c78fd31ace14c22e988525d33355c35d7c815a"
url: "https://pub.dev"
source: hosted
version: "1.6.0"
stream_channel:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ dependencies:
package_info_plus: ^8.0.0
path_provider: ^2.0.10
pub_semver: ^2.0.0
store_checker: ^1.0.0
super_context_menu: ^0.8.17
url_launcher: ^6.0.20
uuid: ^4.4.2
Expand Down

0 comments on commit eba2fc1

Please sign in to comment.