mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 05:15:51 -06:00
chore: Remove main_dev.dart, update install dependencies script
This commit is contained in:
2
flutter
2
flutter
Submodule flutter updated: 9944297138...4d9e56e694
@@ -4,6 +4,7 @@ import 'dart:io';
|
||||
import 'package:connectivity_plus/connectivity_plus.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
import 'package:dynamic_color/dynamic_color.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_displaymode/flutter_displaymode.dart';
|
||||
@@ -47,6 +48,7 @@ import 'package:paperless_mobile/theme.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:receive_sharing_intent/receive_sharing_intent.dart';
|
||||
import 'package:mock_server/mock_server.dart';
|
||||
|
||||
String get defaultPreferredLocaleSubtag {
|
||||
String preferredLocale = Platform.localeName.split("_").first;
|
||||
@@ -72,6 +74,9 @@ Future<void> _initHive() async {
|
||||
}
|
||||
|
||||
void main() async {
|
||||
if (kDebugMode) {
|
||||
await LocalMockApiServer().start();
|
||||
}
|
||||
await _initHive();
|
||||
final widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
|
||||
final globalSettingsBox = Hive.box<GlobalSettings>(HiveBoxes.globalSettings);
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
|
||||
import 'package:mock_server/mock_server.dart';
|
||||
import 'package:paperless_mobile/main.dart' as ParentMain;
|
||||
|
||||
void main() async {
|
||||
await LocalMockApiServer().start();
|
||||
ParentMain.main();
|
||||
}
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
#!/bin/bash
|
||||
pushd ../
|
||||
pushd packages/paperless_api
|
||||
flutter pub get
|
||||
flutter packages pub get
|
||||
dart run build_runner build --delete-conflicting-outputs
|
||||
popd
|
||||
pushd packages/mock_server
|
||||
flutter packages pub get
|
||||
popd
|
||||
flutter packages pub get
|
||||
flutter gen-l10n
|
||||
dart run build_runner build --delete-conflicting-outputs
|
||||
|
||||
Reference in New Issue
Block a user