From c72892b1a6f1e69a19bdb161ddd8784f2ce4eaf2 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 6 Jan 2025 17:33:49 +0300 Subject: [PATCH] SMS Auto OTP Verify enabled & build sent to stores, VersionID 17.1 --- lib/widgets/otp/sms-popup.dart | 17 +++++++++-------- pubspec.yaml | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/widgets/otp/sms-popup.dart b/lib/widgets/otp/sms-popup.dart index b6a89573..0162ddbd 100644 --- a/lib/widgets/otp/sms-popup.dart +++ b/lib/widgets/otp/sms-popup.dart @@ -287,14 +287,15 @@ class SMSOTP { } checkSignature() async { - // SmsVerification.startListeningSms().then((message) { - // // setState(() { - // final intRegex = RegExp(r'\d+', multiLine: true); - // var otp = SmsVerification.getCode(message, intRegex); - // _pinPutController.text = otp; - // onSuccess(otp); - // // }); - // }); + SmsVerification.startListeningSms().then((message) { + // setState(() { + final intRegex = RegExp(r'\d+', multiLine: true); + var otp = SmsVerification.getCode(message, intRegex); + _pinPutController.text = otp; + onSuccess(otp); + SmsVerification.stopListening(); + // }); + }); } // startLister() { diff --git a/pubspec.yaml b/pubspec.yaml index 50e3551e..ed62d70b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: diplomaticquarterapp description: A new Flutter application. -version: 4.5.074+4050074 +version: 4.5.076+4050076 environment: sdk: ">=3.0.0 <3.13.0"