v1.7.4+39 uploaded on stores. nfc support devices bug fix on android 11 & below devices.

main_production_upgrade_ios 1.7.4
Sikander Saleem 4 days ago
parent dc4794a08d
commit 32038102fc

31
.gitignore vendored

@ -33,7 +33,7 @@ migrate_working_dir/
.pub-cache/
.pub/
/build/
build/
# Web related
lib/generated_plugin_registrant.dart
@ -44,16 +44,27 @@ app.*.symbols
# Obfuscation related
app.*.map.json
# Ignore gradle.properties file
# Android related
# Gradle files
android/gradle.properties
android/.gradle/
android/gradle/
android/captures/
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
/android/gradle/wrapper/gradle-wrapper.properties
# Build files - should not be committed
# Build directories
android/app/debug/
android/app/profile/
android/app/release/
android/app/build/
android/build/
build/
**/android/**/build/
# Generated files
android/app/generated/
android/app/build/generated/
android/app/build/intermediates/
android/app/build/outputs/
# macOS
macos/Flutter/ephemeral/
macos/Pods/
macos/build/

15
android/.gitignore vendored

@ -6,6 +6,21 @@ gradle-wrapper.jar
/local.properties
GeneratedPluginRegistrant.java
# Build directories
build/
app/build/
**/build/
# Generated files
app/generated/
**/generated/
**/intermediates/
**/outputs/
# Cache
.gradle/
.cxx/
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties

@ -2,3 +2,15 @@ org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m
android.useAndroidX=true
android.enableJetifier=true
dev.steenbakker.mobile_scanner.useUnbundled=true
# Gradle optimization and caching
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configureondemand=true
# Kotlin compiler daemon
kotlin.compiler.execution.strategy=in-process
kotlin.incremental=true
# File system watching
org.gradle.vfs.watch=true

7
ios/.gitignore vendored

@ -27,6 +27,13 @@ Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
# Podfile.lock should be committed for apps, but ignored for libraries
Podfile.lock
# Build directories
build/
**/build/
# Exceptions to above rules.
!default.mode1v3
!default.mode2v3

@ -1,7 +1,7 @@
class URLs {
URLs._();
static const String appReleaseBuildNumber = "37";
static const String appReleaseBuildNumber = "39";
static const host1 = "https://atomsm.hmg.com"; // production url
// static const host1 = "https://atomsmdev.hmg.com"; // local DEV url

@ -141,7 +141,12 @@ class _DashboardViewState extends State<DashboardView> {
bottom: 20.toScreenHeight,
child: GestureDetector(
onTap: () async {
bool isNfcSupported = await NfcManager.instance.isAvailable();
bool isNfcSupported = false;
try {
isNfcSupported = await NfcManager.instance.isAvailable();
} catch (e) {
isNfcSupported = false;
}
SwipeGeneralUtils.instance.showSwipeTypeBottomSheetSheet(isNfcSupported: isNfcSupported);
},
child: CircularAnimatedContainer(

@ -24,7 +24,11 @@ class _NonHmgEmployeeSwipeViewState extends State<NonHmgEmployeeSwipeView> {
}
void checkForNfcAndLocationPermission() async {
try {
isNfcEnabled = await NfcManager.instance.isAvailable();
} catch (e) {
isNfcEnabled = false;
}
}
@override

@ -24,7 +24,11 @@ class _NonHmgEmployeeSwipeViewState extends State<NonHmgEmployeeSwipeView> {
}
void checkForNfcAndLocationPermission() async {
try {
isNfcEnabled = await NfcManager.instance.isAvailable();
} catch (e) {
isNfcEnabled = false;
}
}
@override

@ -124,7 +124,12 @@ class _SwipeViewState extends State<SwipeView> {
bottom: 60.toScreenHeight,
child: GestureDetector(
onTap: () async {
bool isNfcSupported = await NfcManager.instance.isAvailable();
bool isNfcSupported = false;
try {
isNfcSupported = await NfcManager.instance.isAvailable();
} catch (e) {
isNfcSupported = false;
}
SwipeGeneralUtils.instance.showSwipeTypeBottomSheetSheet(isNfcSupported: isNfcSupported);
},
child: CircularAnimatedContainer(

@ -371,9 +371,9 @@ class SwipeGeneralUtils {
Future<void> performQrCodeAttendance({double? latitude, double? longitude, required BuildContext context}) async {
UserProvider userProvider = Provider.of<UserProvider>(context, listen: false);
String qrCodeValue = await Navigator.of(context).push(
String? qrCodeValue = await Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const ScanQr()),
) as String;
) as String?;
if (qrCodeValue != null) {
showLoading(context);

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.7.3+38
version: 1.7.4+39
environment:
sdk: ">=3.5.0 <4.0.0"

Loading…
Cancel
Save