From 8ff2c3d038fc18f2aa6b021b659d3cc10093596b Mon Sep 17 00:00:00 2001 From: poka Date: Sun, 18 Apr 2021 02:31:47 +0200 Subject: [PATCH] Retrograde audioplayers for android < v5; Lower starting sound; Go to Sentry 5.0 --- lib/main.dart | 4 ++-- native/dubp_rs/Cargo.toml | 2 +- pubspec.lock | 48 ++++++++++++++++++++++++++++++++++++--- pubspec.yaml | 8 +++---- 4 files changed, 52 insertions(+), 10 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index bb6931e..05d9d3a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -54,9 +54,9 @@ Future main() async { endPointGVA = await _homeProvider.getValidEndpoint(); if (endPointGVA == 'HS') { - _homeProvider.playSound('faché', 0.7); + _homeProvider.playSound('faché', 0.8); } else { - _homeProvider.playSound('start', 0.5); + _homeProvider.playSound('start', 0.2); } if (kReleaseMode && enableSentry) { diff --git a/native/dubp_rs/Cargo.toml b/native/dubp_rs/Cargo.toml index 0208e51..4cab015 100644 --- a/native/dubp_rs/Cargo.toml +++ b/native/dubp_rs/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [lib] name = "dubp_rs" -crate-type = ["rlib"] +crate-type = ["cdylib"] [dependencies] allo-isolate = "0.1.6" diff --git a/pubspec.lock b/pubspec.lock index ccf7556..caf3578 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -28,7 +28,7 @@ packages: name: audioplayers url: "https://pub.dartlang.org" source: hosted - version: "0.18.3" + version: "0.18.0" barcode: dependency: transitive description: @@ -387,6 +387,48 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.4.3+2" + package_info_plus: + dependency: transitive + description: + name: package_info_plus + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + package_info_plus_linux: + dependency: transitive + description: + name: package_info_plus_linux + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + package_info_plus_macos: + dependency: transitive + description: + name: package_info_plus_macos + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + package_info_plus_platform_interface: + dependency: transitive + description: + name: package_info_plus_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + package_info_plus_web: + dependency: transitive + description: + name: package_info_plus_web + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + package_info_plus_windows: + dependency: transitive + description: + name: package_info_plus_windows + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" path: dependency: transitive description: @@ -561,14 +603,14 @@ packages: name: sentry url: "https://pub.dartlang.org" source: hosted - version: "4.1.0-nullsafety.0" + version: "5.0.0" sentry_flutter: dependency: "direct main" description: name: sentry_flutter url: "https://pub.dartlang.org" source: hosted - version: "4.0.4" + version: "5.0.0" shared_preferences: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 268bca8..9a82c42 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: Pay with G1. # pub.dev using `pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 0.0.2+4 +version: 0.0.2+5 environment: sdk: ">=2.7.0 <3.0.0" @@ -39,14 +39,14 @@ dependencies: fast_base58: logger: ^1.0.0 flutter_logs: ^2.1.3 - sentry: ^4.0.4 - sentry_flutter: ^4.0.4 + sentry: ^5.0.0 + sentry_flutter: ^5.0.0 bubble: ^1.1.9+1 flutter_svg: ^0.20.0-nullsafety responsive_framework: ^0.0.14 responsive_builder: ^0.3.0 jdenticon_dart: ^2.0.0 - audioplayers: ^0.18.3 + audioplayers: 0.18.0 flutter_icons: android: "ic_launcher"