add app_review
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import '../app_review.dart';
|
||||
|
||||
/// Get app bundle name
|
||||
Future<String?> getAppId() => AppReview.getBundleName();
|
||||
|
||||
/// Require app review for Android
|
||||
Future<String?> openAndroidReview() => AppReview.openAndroidReview();
|
||||
|
||||
/// Open in GooglePlay
|
||||
Future<String> openGooglePlay({String? fallbackUrl}) =>
|
||||
AppReview.openGooglePlay(fallbackUrl: fallbackUrl);
|
||||
@@ -0,0 +1,17 @@
|
||||
import '../app_review.dart';
|
||||
|
||||
/// Returns Apple ID for iOS application.
|
||||
///
|
||||
/// If there is no such application in App Store - returns empty string.
|
||||
Future<String?> getIosAppId(String appId, {String? countryCode}) async =>
|
||||
AppReview.getIosAppId(bundleId: appId, countryCode: countryCode);
|
||||
|
||||
/// Open store page with action write review.
|
||||
///
|
||||
/// Supported only for iOS, on Android [storeListing] will be executed.
|
||||
Future<String?> writeIosReview(String appId, {bool compose = false}) async =>
|
||||
AppReview.openIosReview(appId: appId, compose: compose);
|
||||
|
||||
/// Open in AppStore
|
||||
Future<String> openAppStore({String? fallbackUrl}) =>
|
||||
AppReview.openAppStore(fallbackUrl: fallbackUrl);
|
||||
@@ -0,0 +1,9 @@
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
import '../app_review.dart';
|
||||
|
||||
/// Lazyload package info instance
|
||||
Future<PackageInfo?> getPackageInfo() async => AppReview.getPackageInfo();
|
||||
|
||||
/// Get package bundle name
|
||||
Future<String?> getPackageName() async => AppReview.getBundleName();
|
||||
Reference in New Issue
Block a user