fix: conflito entre getdevUUID e applinks
This commit is contained in:
parent
0b582c86bc
commit
71aa651f4e
|
@ -24,7 +24,7 @@ class StorageHelper {
|
||||||
|
|
||||||
String? isFirstRun = await SharedPreferencesStorage.instance.get(SharedPreferencesKey.isFirstRun.value);
|
String? isFirstRun = await SharedPreferencesStorage.instance.get(SharedPreferencesKey.isFirstRun.value);
|
||||||
|
|
||||||
if (isFirstRun == 'true') {
|
if (isFirstRun != 'false') {
|
||||||
await SharedPreferencesStorage.instance.set(SharedPreferencesKey.isFirstRun.value, 'false');
|
await SharedPreferencesStorage.instance.set(SharedPreferencesKey.isFirstRun.value, 'false');
|
||||||
await SecureStorage.instance.set(SecureStorageKey.isLogged.value, 'false');
|
await SecureStorage.instance.set(SecureStorageKey.isLogged.value, 'false');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'dart:developer';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:device_info_plus/device_info_plus.dart';
|
import 'package:device_info_plus/device_info_plus.dart';
|
||||||
|
@ -10,10 +11,11 @@ class DeviceUtil {
|
||||||
static Future<String?> getAndroidId() async {
|
static Future<String?> getAndroidId() async {
|
||||||
try {
|
try {
|
||||||
final String? androidId = await _channel.invokeMethod('getAndroidId');
|
final String? androidId = await _channel.invokeMethod('getAndroidId');
|
||||||
|
log("secureAndroidId: $androidId");
|
||||||
|
|
||||||
return androidId;
|
return androidId;
|
||||||
} on PlatformException catch (e) {
|
} on PlatformException catch (e) {
|
||||||
print("Failed to get Android ID: '${e.message}'.");
|
log("secureAndroidId Failed to get Android ID: '${e.message}'.");
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,16 +112,13 @@ dev_dependencies:
|
||||||
flutter_lints: ^5.0.0
|
flutter_lints: ^5.0.0
|
||||||
image: 4.2.0
|
image: 4.2.0
|
||||||
lints: ^5.0.0
|
lints: ^5.0.0
|
||||||
# build_runner: ^2.4.13
|
# build_runner: ^2.4.13
|
||||||
# mockito: ^5.4.4
|
# mockito: ^5.4.4
|
||||||
integration_test:
|
integration_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
flutter_launcher_icons:
|
flutter_launcher_icons:
|
||||||
android: "launcher_icon"
|
android: "launcher_icon"
|
||||||
ios: true
|
ios: true
|
||||||
|
@ -131,8 +128,6 @@ flutter_launcher_icons:
|
||||||
adaptive_icon_background: "assets/images/adaptive_background_icon.svg"
|
adaptive_icon_background: "assets/images/adaptive_background_icon.svg"
|
||||||
adaptive_icon_foreground: "assets/images/adaptive_foreground_icon.svg"
|
adaptive_icon_foreground: "assets/images/adaptive_foreground_icon.svg"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue