Skip to content

Commit

Permalink
fix(masamune_agora): Bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Sep 27, 2022
1 parent 6b8d6c2 commit 22b7867
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 33 deletions.
4 changes: 2 additions & 2 deletions packages/masamune_agora/lib/src/agora_rtc_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class AgoraRTCCore {
}) async {
if (enableVideo) {
var status = await permission_handler.Permission.camera.status;
if (status == permission_handler.PermissionStatus.denied) {
if (status != permission_handler.PermissionStatus.granted) {
await permission_handler.Permission.camera.request();
status = await permission_handler.Permission.camera.status;
if (status != permission_handler.PermissionStatus.granted) {
Expand All @@ -102,7 +102,7 @@ class AgoraRTCCore {
}
if (enableAudio) {
var status = await permission_handler.Permission.microphone.status;
if (status == permission_handler.PermissionStatus.denied) {
if (status != permission_handler.PermissionStatus.granted) {
await permission_handler.Permission.microphone.request();
status = await permission_handler.Permission.microphone.status;
if (status != permission_handler.PermissionStatus.granted) {
Expand Down
69 changes: 38 additions & 31 deletions packages/masamune_agora/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -77,42 +77,42 @@ packages:
name: cloud_firestore
url: "https://pub.dartlang.org"
source: hosted
version: "3.4.8"
version: "3.4.9"
cloud_firestore_platform_interface:
dependency: transitive
description:
name: cloud_firestore_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "5.7.4"
version: "5.7.5"
cloud_firestore_web:
dependency: transitive
description:
name: cloud_firestore_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.7"
version: "2.8.8"
cloud_functions:
dependency: transitive
description:
name: cloud_functions
url: "https://pub.dartlang.org"
source: hosted
version: "3.3.7"
version: "3.3.8"
cloud_functions_platform_interface:
dependency: transitive
description:
name: cloud_functions_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "5.1.16"
version: "5.1.17"
cloud_functions_web:
dependency: transitive
description:
name: cloud_functions_web
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.5"
version: "4.3.6"
collection:
dependency: transitive
description:
Expand Down Expand Up @@ -266,49 +266,49 @@ packages:
name: firebase_analytics
url: "https://pub.dartlang.org"
source: hosted
version: "9.3.5"
version: "9.3.6"
firebase_analytics_platform_interface:
dependency: transitive
description:
name: firebase_analytics_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.3.4"
version: "3.3.5"
firebase_analytics_web:
dependency: transitive
description:
name: firebase_analytics_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.2+4"
version: "0.4.2+5"
firebase_auth:
dependency: transitive
description:
name: firebase_auth
url: "https://pub.dartlang.org"
source: hosted
version: "3.9.0"
version: "3.10.0"
firebase_auth_platform_interface:
dependency: transitive
description:
name: firebase_auth_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "6.8.0"
version: "6.9.0"
firebase_auth_web:
dependency: transitive
description:
name: firebase_auth_web
url: "https://pub.dartlang.org"
source: hosted
version: "4.4.1"
version: "4.5.0"
firebase_core:
dependency: transitive
description:
name: firebase_core
url: "https://pub.dartlang.org"
source: hosted
version: "1.22.0"
version: "1.23.0"
firebase_core_platform_interface:
dependency: transitive
description:
Expand All @@ -329,47 +329,54 @@ packages:
name: firebase_dynamic_links
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.7"
version: "4.3.8"
firebase_dynamic_links_platform_interface:
dependency: transitive
description:
name: firebase_dynamic_links_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.3+12"
version: "0.2.3+13"
firebase_model_notifier:
dependency: transitive
description:
name: firebase_model_notifier
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.1+5"
version: "0.15.1+6"
firebase_storage:
dependency: transitive
description:
name: firebase_storage
url: "https://pub.dartlang.org"
source: hosted
version: "10.3.8"
version: "10.3.9"
firebase_storage_platform_interface:
dependency: transitive
description:
name: firebase_storage_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.16"
version: "4.1.17"
firebase_storage_web:
dependency: transitive
description:
name: firebase_storage_web
url: "https://pub.dartlang.org"
source: hosted
version: "3.3.6"
version: "3.3.7"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_animate:
dependency: transitive
description:
name: flutter_animate
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
flutter_blurhash:
dependency: transitive
description:
Expand Down Expand Up @@ -468,63 +475,63 @@ packages:
name: katana
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+1"
version: "0.15.2+1"
katana_annotation:
dependency: transitive
description:
name: katana_annotation
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+1"
version: "0.15.0+3"
katana_firebase:
dependency: transitive
description:
name: katana_firebase
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+1"
version: "0.15.0+2"
katana_flutter:
dependency: transitive
description:
name: katana_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+1"
version: "0.15.0+4"
katana_module:
dependency: transitive
description:
name: katana_module
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+10"
version: "0.15.0+12"
katana_routing:
dependency: transitive
description:
name: katana_routing
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+3"
loading_animations:
version: "0.15.0+5"
loading_indicator:
dependency: transitive
description:
name: loading_animations
name: loading_indicator
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
version: "3.1.0"
masamune:
dependency: "direct main"
description:
name: masamune
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+10"
version: "0.15.1"
masamune_firebase:
dependency: "direct main"
description:
name: masamune_firebase
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+10"
version: "0.15.0+12"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -559,7 +566,7 @@ packages:
name: model_notifier
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.1"
version: "0.15.1+1"
nm:
dependency: transitive
description:
Expand Down

0 comments on commit 22b7867

Please sign in to comment.