Another one fix for authentication bar disapearing. Changed build version to 20 for android, 4.0.8 (3) for iOS.

M committed Nov 17, 2020 at 14:31 UTC 1afe4255a7266c985f2111480ad42a696b4a4c39
4 files changed +15 -10
ios/Runner.xcodeproj/project.pbxproj
+3 -3
@@ -354,7 +354,7 @@
354 buildSettings = {
355 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
356 CLANG_ENABLE_MODULES = YES;
357 - CURRENT_PROJECT_VERSION = 2;
357 + CURRENT_PROJECT_VERSION = 3;
358 DEVELOPMENT_TEAM = 32J6BB6VUS;
359 ENABLE_BITCODE = NO;
360 FRAMEWORK_SEARCH_PATHS = (
@@ -494,7 +494,7 @@
494 buildSettings = {
495 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
496 CLANG_ENABLE_MODULES = YES;
497 - CURRENT_PROJECT_VERSION = 2;
497 + CURRENT_PROJECT_VERSION = 3;
498 DEVELOPMENT_TEAM = 32J6BB6VUS;
499 ENABLE_BITCODE = NO;
500 FRAMEWORK_SEARCH_PATHS = (
@@ -528,7 +528,7 @@
528 buildSettings = {
529 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
530 CLANG_ENABLE_MODULES = YES;
531 - CURRENT_PROJECT_VERSION = 2;
531 + CURRENT_PROJECT_VERSION = 3;
532 DEVELOPMENT_TEAM = 32J6BB6VUS;
533 ENABLE_BITCODE = NO;
534 FRAMEWORK_SEARCH_PATHS = (
lib/src/screens/auth/auth_page.dart
+9 -6
@@ -39,12 +39,15 @@ class AuthPageState extends State<AuthPage> {
39 _reaction ??=
40 reaction((_) => widget.authViewModel.state, (ExecutionState state) {
41 if (state is ExecutedSuccessfullyState) {
42 - _authBar?.dismiss();
43 - if (widget.onAuthenticationFinished != null) {
44 - widget.onAuthenticationFinished(true, this);
45 - } else {
46 - showBar<void>(context, S.of(context).authenticated);
47 - }
42 + WidgetsBinding.instance.addPostFrameCallback((_) {
43 + _authBar?.dismiss();
44 + if (widget.onAuthenticationFinished != null) {
45 + widget.onAuthenticationFinished(true, this);
46 + } else {
47 + showBar<void>(context, S.of(context).authenticated);
48 + }
49 + });
50 + setState(() {});
51 }
52
53 if (state is IsExecutingState) {
lib/view_model/auth_view_model.dart
+2
@@ -110,6 +110,8 @@ abstract class AuthViewModelBase with Store {
110
111 if (isAuthenticated) {
112 state = ExecutedSuccessfullyState();
113 + } else {
114 + state = FailureState('Failure biometric authentication');
115 }
116 }
117 } catch(e) {
pubspec.yaml
+1 -1
@@ -11,7 +11,7 @@ description: Cake Wallet.
11 # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 # Read more about iOS versioning at
13 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 -version: 4.0.8+19
14 +version: 4.0.8+20
15
16 environment:
17 sdk: ">=2.7.0 <3.0.0"