io api settings api
This commit is contained in:
@@ -7,4 +7,9 @@ class DeviceInfoData {
|
||||
var dataV = await deviceInfoPlugin.androidInfo;
|
||||
return dataV.id.toString();
|
||||
}
|
||||
|
||||
// Future<String> getIOSDeviceId() async {
|
||||
// var dataV = await deviceInfoPlugin.iosInfo;
|
||||
// return dataV..toString();
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'package:bloc/bloc.dart';
|
||||
import 'package:tanami_app/core/utils/secure/secure_storage_service.dart';
|
||||
|
||||
import '../../../../Api_Helper/base_manager.dart';
|
||||
import '../../../../core/utils/device_info/device_info_data.dart';
|
||||
import '../../../../features/MainScreens/Settings/domain/repository/settings_api.dart';
|
||||
import '../../../../features/register/Repository/RegisterApi.dart';
|
||||
import 'toggle_event.dart';
|
||||
@@ -28,8 +27,7 @@ class ToggleBloc extends Bloc<ToggleEvent, ToggleState> {
|
||||
|
||||
Map<String, dynamic> biometricdata = {
|
||||
"code": await secureStorageService.read("temp_token"),
|
||||
"is_2FA_on": false,
|
||||
"deviceId": await DeviceInfoData().getDeviceId(),
|
||||
"deviceId": "test-id",
|
||||
"biometric_type": Platform.isIOS ? "face" : "fingerprint"
|
||||
};
|
||||
|
||||
@@ -64,7 +62,7 @@ class ToggleBloc extends Bloc<ToggleEvent, ToggleState> {
|
||||
Map<String, dynamic> biometricdata = {
|
||||
"code": await secureStorageService.read("temp_token"),
|
||||
"is_2FA_on": true,
|
||||
"deviceId": await DeviceInfoData().getDeviceId(),
|
||||
"deviceId": "test-id",
|
||||
"biometric_type": Platform.isIOS ? "face" : "fingerprint"
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:tanami_app/Api_Helper/base_manager.dart';
|
||||
import 'package:tanami_app/core/styles/app_color.dart';
|
||||
import 'package:tanami_app/core/utils/device_info/device_info_data.dart';
|
||||
import 'package:tanami_app/shared/components/loader.dart';
|
||||
|
||||
import '../../core/routes/route_name.dart';
|
||||
@@ -93,7 +92,7 @@ permissionDialog(
|
||||
Map<String, dynamic> biometricdata = {
|
||||
"code": await secureStorageService.read("temp_token"),
|
||||
"is_2FA_on": false,
|
||||
"deviceId": await DeviceInfoData().getDeviceId(),
|
||||
"deviceId": "test-id",
|
||||
"biometric_type":
|
||||
Platform.isIOS ? "face" : "fingerprint"
|
||||
};
|
||||
@@ -135,7 +134,7 @@ permissionDialog(
|
||||
Map<String, dynamic> biometricdata = {
|
||||
"code": await secureStorageService.read("temp_token"),
|
||||
"is_2FA_on": true,
|
||||
"deviceId": await DeviceInfoData().getDeviceId(),
|
||||
"deviceId": "test-id",
|
||||
"biometric_type":
|
||||
Platform.isIOS ? "face" : "fingerprint"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user