flutter_appcenter 1.0.11 copy "flutter_appcenter: ^1.0.11" to clipboard
flutter_appcenter: ^1.0.11 copied to clipboard

Support Android/iOS to Build, Test, and Distribute, Analytics and Diagnostics services.

flutter_appcenter #

Microsoft AppCenter

Support Android/iOS to Build, Test, and Distribute, Analytics and Diagnostics services. #


一、Import #

dependencies:
  flutter_appcenter: lastVersion

二、Usage #

import 'package:flutter_appcenter/flutter_appcenter.dart';

FlutterAppCenter.init(
  context: context,
  appSecretAndroid: '',//'Your Android App Secret',
  appSecretIOS: '',//'Your iOS App Secret'
  tokenAndroid: '',//'Your Android Token'
  tokenIOS: '',//'Your iOS Token',
  betaUrlIOS: '', //itms-beta
  usePrivateTrack: false,
).then((res) async {
  await FlutterAppCenter.isEnabledForDistribute();
  await FlutterAppCenter.checkForUpdate(
    context,
    downloadUrlAndroid: '',
    dialog: {
      'title': 'App Update Avaiable',
      'subTitle': 'Enjoy the lastest version',
      'content': 'There is a new version available with the most advanced features, please click confirm to upgrade!',
      'middleButtonText': 'TestFlight', // only support iOS
      'confirmButtonText': 'Store',
      'cancelButtonText': 'Postpone',
      'downloadingText': 'Downloading File...'
    }
  );
});

4
likes
35
pub points
0%
popularity

Publisher

unverified uploader

Support Android/iOS to Build, Test, and Distribute, Analytics and Diagnostics services.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

android_metadata, dio, flutter, install_plugin, open_appstore, package_info, path_provider, permission_handler, progress_dialog, url_launcher

More

Packages that depend on flutter_appcenter