updated project
This commit is contained in:
parent
ddeeaeaeac
commit
4d3a33dd9b
@ -25,7 +25,7 @@ if (flutterVersionName == null) {
|
|||||||
android {
|
android {
|
||||||
namespace "eu.mhsl.marianum.mobile.client"
|
namespace "eu.mhsl.marianum.mobile.client"
|
||||||
compileSdk flutter.compileSdkVersion
|
compileSdk flutter.compileSdkVersion
|
||||||
ndkVersion flutter.ndkVersion
|
ndkVersion "27.0.12077973"
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
@ -41,11 +41,8 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
||||||
applicationId "eu.mhsl.marianum.mobile.client"
|
applicationId "eu.mhsl.marianum.mobile.client"
|
||||||
// You can update the following values to match your application needs.
|
minSdkVersion 26
|
||||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
|
||||||
minSdkVersion 21
|
|
||||||
targetSdkVersion flutter.targetSdkVersion
|
targetSdkVersion flutter.targetSdkVersion
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
@ -66,5 +63,6 @@ flutter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.android.support:multidex:1.0.3'
|
implementation 'com.android.support:multidex:2.0.1'
|
||||||
|
implementation 'com.android.tools:desugar_jdk_libs:2.0.3'
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
org.gradle.jvmargs=-Xmx4G
|
org.gradle.jvmargs=-Xmx4G
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
|
android.defaults.buildfeatures.buildconfig=true
|
||||||
|
android.nonTransitiveRClass=false
|
||||||
|
android.nonFinalResIds=false
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@ -19,7 +19,7 @@ pluginManagement {
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||||
id "com.android.application" version "7.3.0" apply false
|
id "com.android.application" version '8.1.4' apply false
|
||||||
id "org.jetbrains.kotlin.android" version "1.8.10" apply false
|
id "org.jetbrains.kotlin.android" version "1.8.10" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import 'dart:developer';
|
|||||||
|
|
||||||
import 'package:device_info_plus/device_info_plus.dart';
|
import 'package:device_info_plus/device_info_plus.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:package_info/package_info.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
|
|
||||||
import '../../../../../model/accountData.dart';
|
import '../../../../../model/accountData.dart';
|
||||||
import '../../../mhslApi.dart';
|
import '../../../mhslApi.dart';
|
||||||
|
@ -7,13 +7,13 @@ import 'package:firebase_messaging/firebase_messaging.dart';
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||||
import 'package:hydrated_bloc/hydrated_bloc.dart';
|
import 'package:hydrated_bloc/hydrated_bloc.dart';
|
||||||
import 'package:jiffy/jiffy.dart';
|
import 'package:jiffy/jiffy.dart';
|
||||||
import 'package:loader_overlay/loader_overlay.dart';
|
import 'package:loader_overlay/loader_overlay.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
||||||
|
|
||||||
import 'api/mhsl/breaker/getBreakers/getBreakersResponse.dart';
|
import 'api/mhsl/breaker/getBreakers/getBreakersResponse.dart';
|
||||||
import 'app.dart';
|
import 'app.dart';
|
||||||
@ -48,7 +48,9 @@ Future<void> main() async {
|
|||||||
PlatformAssetBundle().load('assets/ca/lets-encrypt-r10.pem').then(addCertificateAsTrusted),
|
PlatformAssetBundle().load('assets/ca/lets-encrypt-r10.pem').then(addCertificateAsTrusted),
|
||||||
|
|
||||||
Future(() async {
|
Future(() async {
|
||||||
await HydratedStorage.build(storageDirectory: await getTemporaryDirectory()).then((storage) => HydratedBloc.storage = storage);
|
await HydratedStorage.build(
|
||||||
|
storageDirectory: HydratedStorageDirectory((await getTemporaryDirectory()).path)
|
||||||
|
).then((storage) => HydratedBloc.storage = storage);
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import 'package:package_info/package_info.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
|
|
||||||
import '../../api/apiResponse.dart';
|
import '../../api/apiResponse.dart';
|
||||||
import '../../api/mhsl/breaker/getBreakers/getBreakersCache.dart';
|
import '../../api/mhsl/breaker/getBreakers/getBreakersCache.dart';
|
||||||
@ -10,7 +10,7 @@ class BreakerProps extends DataHolder {
|
|||||||
GetBreakersResponse get getBreakersResponse => _getBreakersResponse!;
|
GetBreakersResponse get getBreakersResponse => _getBreakersResponse!;
|
||||||
|
|
||||||
PackageInfo? packageInfo;
|
PackageInfo? packageInfo;
|
||||||
|
|
||||||
String? isBlocked(BreakerArea? type) {
|
String? isBlocked(BreakerArea? type) {
|
||||||
if(packageInfo == null) {
|
if(packageInfo == null) {
|
||||||
PackageInfo.fromPlatform().then((value) => packageInfo = value);
|
PackageInfo.fromPlatform().then((value) => packageInfo = value);
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import 'package:flutter_app_badger/flutter_app_badger.dart';
|
import 'package:flutter_app_badger/flutter_app_badger.dart';
|
||||||
|
|
||||||
import '../../api/apiResponse.dart';
|
import '../../api/apiResponse.dart';
|
||||||
|
@ -15,9 +15,6 @@ class NotificationService {
|
|||||||
);
|
);
|
||||||
|
|
||||||
final iosSettings = DarwinInitializationSettings(
|
final iosSettings = DarwinInitializationSettings(
|
||||||
onDidReceiveLocalNotification: (id, title, body, payload) {
|
|
||||||
// TODO Navigate to Talk section (This runs when an Notification is tapped)
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import 'dart:typed_data';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:image_picker/image_picker.dart';
|
import 'package:image_picker/image_picker.dart';
|
||||||
import 'package:loader_overlay/loader_overlay.dart';
|
import 'package:loader_overlay/loader_overlay.dart';
|
||||||
import 'package:package_info/package_info.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:badges/badges.dart' as badges;
|
import 'package:badges/badges.dart' as badges;
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
|
|||||||
emojis.EmojiPicker(
|
emojis.EmojiPicker(
|
||||||
config: emojis.Config(
|
config: emojis.Config(
|
||||||
height: 256,
|
height: 256,
|
||||||
swapCategoryAndBottomBar: true,
|
// swapCategoryAndBottomBar: true, // TODO this property is no longer supported, need to find an replacement
|
||||||
emojiViewConfig: emojis.EmojiViewConfig(
|
emojiViewConfig: emojis.EmojiViewConfig(
|
||||||
backgroundColor: Theme.of(context).canvasColor,
|
backgroundColor: Theme.of(context).canvasColor,
|
||||||
recentsLimit: 67,
|
recentsLimit: 67,
|
||||||
@ -148,7 +148,7 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
|
|||||||
),
|
),
|
||||||
searchViewConfig: emojis.SearchViewConfig(
|
searchViewConfig: emojis.SearchViewConfig(
|
||||||
backgroundColor: Theme.of(context).dividerColor,
|
backgroundColor: Theme.of(context).dividerColor,
|
||||||
buttonColor: Theme.of(context).dividerColor,
|
// buttonColor: Theme.of(context).dividerColor, // TODO property no longer supported
|
||||||
hintText: 'Suchen',
|
hintText: 'Suchen',
|
||||||
buttonIconColor: Colors.white,
|
buttonIconColor: Colors.white,
|
||||||
),
|
),
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:jiffy/jiffy.dart';
|
import 'package:jiffy/jiffy.dart';
|
||||||
import 'package:package_info/package_info.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
|
|
||||||
|
121
pubspec.yaml
121
pubspec.yaml
@ -30,7 +30,7 @@ environment:
|
|||||||
# versions available, run `flutter pub outdated`.
|
# versions available, run `flutter pub outdated`.
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
#xml: ^6.2.2
|
intl: any
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
@ -39,85 +39,82 @@ dependencies:
|
|||||||
flutter_localizations:
|
flutter_localizations:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
# The following adds the Cupertino Icons font to your application.
|
cupertino_icons: any
|
||||||
# Use with the CupertinoIcons class for iOS style icons.
|
flutter_native_splash: any
|
||||||
cupertino_icons: ^1.0.2
|
flutter_login: any
|
||||||
flutter_native_splash: ^2.2.14
|
bubble: any
|
||||||
flutter_login: ^5.0.0
|
http: any
|
||||||
bubble: ^1.2.1
|
shared_preferences: any
|
||||||
http: ^1.1.0
|
provider: any
|
||||||
shared_preferences: ^2.0.15
|
jiffy: any
|
||||||
provider: ^6.0.4
|
json_annotation: any
|
||||||
jiffy: ^6.1.0
|
localstore: any
|
||||||
json_annotation: ^4.8.1
|
|
||||||
localstore: ^1.2.3
|
|
||||||
intl: ^0.18.0
|
|
||||||
nextcloud:
|
nextcloud:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/provokateurin/nextcloud-neon
|
url: https://github.com/provokateurin/nextcloud-neon
|
||||||
path: packages/nextcloud
|
path: packages/nextcloud
|
||||||
ref: 3683491a94670393e46cbc83ad85b994f7df7481
|
ref: 3683491a94670393e46cbc83ad85b994f7df7481
|
||||||
flutter_launcher_icons: ^0.13.1
|
flutter_launcher_icons: any
|
||||||
pretty_json: ^2.0.0
|
pretty_json: any
|
||||||
cached_network_image: ^3.2.3
|
cached_network_image: any
|
||||||
url_launcher: ^6.1.10
|
url_launcher: any
|
||||||
flutter_linkify: ^6.0.0
|
flutter_linkify: any
|
||||||
filesize: ^2.0.1
|
filesize: any
|
||||||
path_provider: ^2.0.13
|
path_provider: any
|
||||||
better_open_file: ^3.6.4
|
better_open_file: any
|
||||||
flowder:
|
flowder:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Harsh223/flowder.git
|
url: https://github.com/Harsh223/flowder.git
|
||||||
persistent_bottom_nav_bar_v2: ^5.0.0
|
persistent_bottom_nav_bar_v2: any
|
||||||
badges: ^3.0.2
|
badges: any
|
||||||
image_picker: ^1.0.0
|
image_picker: any
|
||||||
file_picker: ^8.0.0+1
|
file_picker: any
|
||||||
loader_overlay: ^4.0.0
|
loader_overlay: any
|
||||||
crypto: ^3.0.3
|
crypto: any
|
||||||
package_info: ^2.0.2
|
package_info_plus: any
|
||||||
syncfusion_flutter_calendar: ^24.1.44
|
syncfusion_flutter_calendar: any
|
||||||
async: ^2.11.0
|
async: any
|
||||||
animated_digit: ^3.2.1
|
animated_digit: any
|
||||||
syncfusion_flutter_pdfviewer: ^24.1.44
|
syncfusion_flutter_pdfviewer: any
|
||||||
photo_view: ^0.14.0
|
photo_view: any
|
||||||
uuid: ^4.2.2
|
uuid: any
|
||||||
firebase_messaging: ^14.6.5
|
firebase_messaging: any
|
||||||
firebase_core: ^2.15.0
|
firebase_core: any
|
||||||
firebase_in_app_messaging: ^0.7.3+4
|
firebase_in_app_messaging: any
|
||||||
flutter_local_notifications: ^17.0.0
|
flutter_local_notifications: any
|
||||||
fast_rsa: ^3.6.1
|
fast_rsa: any
|
||||||
share_plus: ^8.0.2
|
share_plus: ^10.1.4
|
||||||
flutter_split_view: ^0.1.2
|
flutter_split_view: any
|
||||||
bottom_sheet: ^4.0.0
|
bottom_sheet: any
|
||||||
device_info_plus: ^9.0.3
|
device_info_plus: any
|
||||||
flutter_app_badger: ^1.5.0
|
flutter_app_badger: any
|
||||||
qr_flutter: ^4.1.0
|
qr_flutter: any
|
||||||
easy_debounce: ^2.0.3
|
easy_debounce: any
|
||||||
rrule_generator: ^0.7.0+1
|
rrule_generator: any
|
||||||
rrule: ^0.2.16
|
rrule: any
|
||||||
time_range_picker: ^2.2.0
|
time_range_picker: any
|
||||||
in_app_review: ^2.0.8
|
in_app_review: any
|
||||||
emoji_picker_flutter: ^2.1.1
|
emoji_picker_flutter: any
|
||||||
bloc: ^8.1.4
|
bloc: any
|
||||||
flutter_bloc: ^8.1.5
|
flutter_bloc: any
|
||||||
freezed_annotation: ^2.4.1
|
freezed_annotation: any
|
||||||
connectivity_plus: ^6.0.3
|
connectivity_plus: any
|
||||||
hydrated_bloc: ^9.1.5
|
hydrated_bloc: any
|
||||||
dio: ^4.0.6
|
dio: any
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
json_serializable: ^6.7.1
|
json_serializable: any
|
||||||
build_runner: ^2.4.9
|
build_runner: any
|
||||||
|
|
||||||
# The "flutter_lints" package below contains a set of recommended lints to
|
# The "flutter_lints" package below contains a set of recommended lints to
|
||||||
# encourage good coding practices. The lint set provided by the package is
|
# encourage good coding practices. The lint set provided by the package is
|
||||||
# activated in the `analysis_options.yaml` file located at the root of your
|
# activated in the `analysis_options.yaml` file located at the root of your
|
||||||
# package. See that file for information about deactivating specific lint
|
# package. See that file for information about deactivating specific lint
|
||||||
# rules and activating additional ones.
|
# rules and activating additional ones.
|
||||||
flutter_lints: ^3.0.1
|
flutter_lints: any
|
||||||
freezed: ^2.5.2
|
freezed: any
|
||||||
|
|
||||||
# For information on the generic Dart part of this file, see the
|
# For information on the generic Dart part of this file, see the
|
||||||
# following page: https://dart.dev/tools/pub/pubspec
|
# following page: https://dart.dev/tools/pub/pubspec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user