diff --git a/android/.kotlin/sessions/kotlin-compiler-10039299475187077818.salive b/android/.kotlin/sessions/kotlin-compiler-10039299475187077818.salive
deleted file mode 100644
index e69de29b..00000000
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
index b6363034..fc70b0b0 100644
--- a/ios/Runner/AppDelegate.swift
+++ b/ios/Runner/AppDelegate.swift
@@ -1,5 +1,6 @@
-import UIKit
import Flutter
+import UIKit
+import YandexLoginSDK
@main
@objc class AppDelegate: FlutterAppDelegate {
@@ -10,4 +11,20 @@ import Flutter
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
+
+ @available(iOS 8.0, *)
+ func application(
+ _ application: UIApplication, continue userActivity: NSUserActivity,
+ restorationHandler: @escaping ([Any]?) -> Void
+ ) -> Bool {
+ YXLSdk.shared.processUserActivity(userActivity)
+ return true
+ }
+
+ override public func application(
+ _ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]
+ ) -> Bool {
+ return YXLSdk.shared.handleOpen(
+ url, sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String)
+ }
}
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 7e82c5b2..3275dbdb 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -67,5 +67,24 @@
UIViewControllerBasedStatusBarAppearance
+ LSApplicationQueriesSchemes
+
+ yandexauth
+ yandexauth2
+ yandexauth4
+
+ YAClientId
+ 5399b03636104c6d920b87c1ad329254
+ CFBundleURLTypes
+
+
+ CFBundleURLName
+ YandexLoginSDK
+ CFBundleURLSchemes
+
+ yx5399b03636104c6d920b87c1ad329254
+
+
+
diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlements
index 7b8ca2a8..4ed4ad00 100644
--- a/ios/Runner/Runner.entitlements
+++ b/ios/Runner/Runner.entitlements
@@ -8,6 +8,7 @@
applinks:eatvio.ru
applinks:www.eatvio.ru
+ applinks:5399b03636104c6d920b87c1ad329254.oauth.yandex.ru
diff --git a/lib/core/const.dart b/lib/core/const.dart
index 98f7bc4a..a5f06149 100644
--- a/lib/core/const.dart
+++ b/lib/core/const.dart
@@ -1,6 +1,6 @@
import 'package:eatvio_app/core/env_config.dart';
-String baseUrl = EnvConfig.baseUrl;
+String baseUrl = EnvConfig.devBaseUrl;
bool hidePlans = const bool.fromEnvironment('HIDE_PLANS', defaultValue: false);
const buildDate = String.fromEnvironment('BUILD_DATE', defaultValue: '');
diff --git a/lib/core/internet_connection_cubit/internet_connection_cubit.dart b/lib/core/internet_connection_cubit/internet_connection_cubit.dart
index fa9a3527..67427c6c 100644
--- a/lib/core/internet_connection_cubit/internet_connection_cubit.dart
+++ b/lib/core/internet_connection_cubit/internet_connection_cubit.dart
@@ -43,7 +43,7 @@ class InternetConnectionCubit extends Cubit {
Future _updateAccessStatus(List result) async {
final hasInternet = await _checkInternetAccess(result);
- showInternetConnectionToast();
+ if (!hasInternet) showInternetConnectionToast();
emit(state.copyWith(isInternetAvailable: hasInternet));
}
diff --git a/lib/main.dart b/lib/main.dart
index c9e9a3d6..0343afd2 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -63,7 +63,7 @@ class MyApp extends StatelessWidget {
BlocProvider(create: (context) => sl()..loadFeedBlogPostList()),
BlocProvider(create: (context) => sl()..getMyProfile()),
BlocProvider(create: (context) => sl()..getChatRoomsWithLoading()),
- BlocProvider(create: (context) => sl()),
+ BlocProvider(create: (context) => sl(), lazy: false),
],
child: Portal(
child: KeyboardDismisser(