Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
sergdeus committed Apr 18, 2024
1 parent f011fa5 commit 31fcaa0
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 55 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ flutter {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.20"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20"
implementation platform('com.google.firebase:firebase-bom:29.0.3')
implementation "androidx.multidex:multidex:2.0.1"
}
Expand Down
12 changes: 6 additions & 6 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
PODS:
- app_links (0.0.1):
- Flutter
- barcode_scan2 (0.0.1):
- Flutter
- MTBBarcodeScanner
Expand Down Expand Up @@ -129,12 +131,11 @@ PODS:
- store_checker (0.0.1):
- Flutter
- SwiftProtobuf (1.25.2)
- uni_links (0.0.1):
- Flutter
- url_launcher_ios (0.0.1):
- Flutter

DEPENDENCIES:
- app_links (from `.symlinks/plugins/app_links/ios`)
- barcode_scan2 (from `.symlinks/plugins/barcode_scan2/ios`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
Expand All @@ -159,7 +160,6 @@ DEPENDENCIES:
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite (from `.symlinks/plugins/sqflite/darwin`)
- store_checker (from `.symlinks/plugins/store_checker/ios`)
- uni_links (from `.symlinks/plugins/uni_links/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)

SPEC REPOS:
Expand All @@ -181,6 +181,8 @@ SPEC REPOS:
- SwiftProtobuf

EXTERNAL SOURCES:
app_links:
:path: ".symlinks/plugins/app_links/ios"
barcode_scan2:
:path: ".symlinks/plugins/barcode_scan2/ios"
connectivity_plus:
Expand Down Expand Up @@ -229,12 +231,11 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/sqflite/darwin"
store_checker:
:path: ".symlinks/plugins/store_checker/ios"
uni_links:
:path: ".symlinks/plugins/uni_links/ios"
url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
app_links: e70ca16b4b0f88253b3b3660200d4a10b4ea9795
barcode_scan2: 0af2bb63c81b4565aab6cd78278e4c0fa136dbb0
connectivity_plus: bf0076dd84a130856aa636df1c71ccaff908fa1d
device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6
Expand Down Expand Up @@ -274,7 +275,6 @@ SPEC CHECKSUMS:
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
store_checker: 359c5051d9ec30ff0a8fa39eb5ec9df021bb745d
SwiftProtobuf: 407a385e97fd206c4fbe880cc84123989167e0d1
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a
url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812

PODFILE CHECKSUM: 665b9460f3856aecb9da49710ba7bb5d1feb9d84
Expand Down
9 changes: 5 additions & 4 deletions lib/core/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import 'package:agoradesk/features/wallet/data/services/wallet_service.dart';
import 'package:agoradesk/generated/i18n.dart';
import 'package:agoradesk/main.dart';
import 'package:agoradesk/router.gr.dart';
import 'package:app_links/app_links.dart';
import 'package:auto_route/auto_route.dart';
import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:dio/dio.dart';
Expand All @@ -60,7 +61,6 @@ import 'package:plausible_analytics/plausible_analytics.dart';
import 'package:provider/single_child_widget.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:timeago/timeago.dart';
import 'package:uni_links/uni_links.dart';

const _kPinDelay = Duration(seconds: 300);

Expand Down Expand Up @@ -101,6 +101,7 @@ class AppState extends State<App>
late final String _countryCode;

late RemoteMessage? _initialMessage;
final _appLinks = AppLinks();

_setInitialeLocaleAndCountry() {
if (AppSharedPrefs().firstRun) {
Expand Down Expand Up @@ -677,10 +678,10 @@ class AppState extends State<App>

//todo - check how it works when app initially was closed
Future<void> _initUniLinks() async {
linkStream.listen((String? link) {
_appLinks.allUriLinkStream.listen((uri) {
if (GetIt.I<AppParameters>().debugPrintIsOn) debugPrint('++++uni_links - link');
if (link != null && link.isNotEmpty) {
_initialUri = Uri.parse(link);
if (uri.hasAbsolutePath && uri.pathSegments.isNotEmpty) {
_initialUri = Uri.parse(uri.toString());
// check if the link for email confirm or not
if (_initialUri!.pathSegments.length == 1 &&
_initialUri!.pathSegments[0] == 'emailConfirm' &&
Expand Down
8 changes: 0 additions & 8 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:intl/intl_standalone.dart' if (dart.library.html) 'package:intl/intl_browser.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:uni_links_desktop/uni_links_desktop.dart';

import 'firebase_options_agoradesk.dart' as agoradesk_options;
import 'firebase_options_localmonero.dart' as localmonero_options;
Expand Down Expand Up @@ -66,13 +65,6 @@ void main() async {

await setupLocalNotifications(isGoogleAvailable);

///
/// Desktop specific initializations
///
if (Platform.isWindows) {
registerProtocol('unilinks');
}

///
/// general initializations
///
Expand Down
4 changes: 2 additions & 2 deletions macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import FlutterMacOS
import Foundation

import app_links
import connectivity_plus
import device_info_plus
import file_selector_macos
Expand All @@ -21,10 +22,10 @@ import sentry_flutter
import share_plus
import shared_preferences_foundation
import sqflite
import uni_links_desktop
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
AppLinksMacosPlugin.register(with: registry.registrar(forPlugin: "AppLinksMacosPlugin"))
ConnectivityPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlugin"))
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
Expand All @@ -41,6 +42,5 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
UniLinksDesktopPlugin.register(with: registry.registrar(forPlugin: "UniLinksDesktopPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
}
48 changes: 16 additions & 32 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.11.2"
app_links:
dependency: "direct main"
description:
name: app_links
sha256: "42dc15aecf2618ace4ffb74a2e58a50e45cd1b9f2c17c8f0cafe4c297f08c815"
url: "https://pub.dev"
source: hosted
version: "4.0.1"
archive:
dependency: transitive
description:
Expand Down Expand Up @@ -950,6 +958,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.3.1"
gtk:
dependency: transitive
description:
name: gtk
sha256: e8ce9ca4b1df106e4d72dad201d345ea1a036cc12c360f1a7d5a758f78ffa42c
url: "https://pub.dev"
source: hosted
version: "2.1.0"
highlight:
dependency: transitive
description:
Expand Down Expand Up @@ -1971,38 +1987,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.2"
uni_links:
dependency: "direct main"
description:
name: uni_links
sha256: "051098acfc9e26a9fde03b487bef5d3d228ca8f67693480c6f33fd4fbb8e2b6e"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
uni_links_desktop:
dependency: "direct main"
description:
name: uni_links_desktop
sha256: "692de81efc32ef72df56d428902afb5216d5f9e43d71c7b315d360acd7a1e115"
url: "https://pub.dev"
source: hosted
version: "0.1.7"
uni_links_platform_interface:
dependency: transitive
description:
name: uni_links_platform_interface
sha256: "929cf1a71b59e3b7c2d8a2605a9cf7e0b125b13bc858e55083d88c62722d4507"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
uni_links_web:
dependency: transitive
description:
name: uni_links_web
sha256: "7539db908e25f67de2438e33cc1020b30ab94e66720b5677ba6763b25f6394df"
url: "https://pub.dev"
source: hosted
version: "0.1.0"
universal_io:
dependency: transitive
description:
Expand Down
5 changes: 3 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ description: Person-to-person platform to allow anyone to trade their local curr
environment:
sdk: '>=3.0.0 <4.0.0'
dependencies:
app_links: ^4.0.1
auto_route: ^5.0.1
auto_size_text: ^3.0.0
barcode_scan2: ^4.3.0
Expand Down Expand Up @@ -75,8 +76,8 @@ dependencies:
sticky_headers: ^0.3.0+2
store_checker: ^1.1.0
timeago: ^3.2.2
uni_links: ^0.5.1
uni_links_desktop: ^0.1.7
# uni_links: ^0.5.1
# uni_links_desktop: ^0.1.7
url_launcher: ^6.0.17
visibility_detector: ^0.4.0
vm: ^1.0.4
Expand Down

0 comments on commit 31fcaa0

Please sign in to comment.