123 lines
3.8 KiB
Dart
123 lines
3.8 KiB
Dart
//
|
|
// Generated file. Do not edit.
|
|
// This file is generated from template in file `flutter_tools/lib/src/flutter_plugins.dart`.
|
|
//
|
|
|
|
// @dart = 2.17
|
|
|
|
import 'dart:io'; // flutter_ignore: dart_io_import.
|
|
import 'package:shared_preferences_android/shared_preferences_android.dart';
|
|
import 'package:sqflite_android/sqflite_android.dart';
|
|
import 'package:shared_preferences_foundation/shared_preferences_foundation.dart';
|
|
import 'package:sqflite_darwin/sqflite_darwin.dart';
|
|
import 'package:path_provider_linux/path_provider_linux.dart';
|
|
import 'package:shared_preferences_linux/shared_preferences_linux.dart';
|
|
import 'package:shared_preferences_foundation/shared_preferences_foundation.dart';
|
|
import 'package:sqflite_darwin/sqflite_darwin.dart';
|
|
import 'package:path_provider_windows/path_provider_windows.dart';
|
|
import 'package:shared_preferences_windows/shared_preferences_windows.dart';
|
|
|
|
@pragma('vm:entry-point')
|
|
class _PluginRegistrant {
|
|
|
|
@pragma('vm:entry-point')
|
|
static void register() {
|
|
if (Platform.isAndroid) {
|
|
try {
|
|
SharedPreferencesAndroid.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`shared_preferences_android` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
try {
|
|
SqfliteAndroid.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`sqflite_android` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
} else if (Platform.isIOS) {
|
|
try {
|
|
SharedPreferencesFoundation.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`shared_preferences_foundation` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
try {
|
|
SqfliteDarwin.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`sqflite_darwin` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
} else if (Platform.isLinux) {
|
|
try {
|
|
PathProviderLinux.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`path_provider_linux` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
try {
|
|
SharedPreferencesLinux.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`shared_preferences_linux` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
} else if (Platform.isMacOS) {
|
|
try {
|
|
SharedPreferencesFoundation.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`shared_preferences_foundation` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
try {
|
|
SqfliteDarwin.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`sqflite_darwin` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
} else if (Platform.isWindows) {
|
|
try {
|
|
PathProviderWindows.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`path_provider_windows` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
try {
|
|
SharedPreferencesWindows.registerWith();
|
|
} catch (err) {
|
|
print(
|
|
'`shared_preferences_windows` threw an error: $err. '
|
|
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
|
);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|