fix: fix failing apk release build
This commit is contained in:
parent
d680030b16
commit
952e82eb08
3 changed files with 24 additions and 20 deletions
|
|
@ -12,13 +12,11 @@ import 'src/shared/data/local/collections/workout_collection.dart';
|
|||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
// Lock orientation to portrait
|
||||
await SystemChrome.setPreferredOrientations([
|
||||
DeviceOrientation.portraitUp,
|
||||
DeviceOrientation.portraitDown,
|
||||
]);
|
||||
|
||||
// Initialize Isar database
|
||||
final dir = await getApplicationDocumentsDirectory();
|
||||
final isar = await Isar.open(
|
||||
[UserCollectionSchema, CycleCollectionSchema, WorkoutCollectionSchema],
|
||||
|
|
@ -34,5 +32,4 @@ void main() async {
|
|||
);
|
||||
}
|
||||
|
||||
// Global Isar provider
|
||||
final isarProvider = Provider<Isar>((ref) => throw UnimplementedError());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue