build.gradle fix + remove platform_device_id package

This commit is contained in:
fosse 2023-09-26 09:24:55 -04:00
parent a317b32fbe
commit d189330e7e
3 changed files with 10 additions and 12 deletions

View file

@ -75,7 +75,6 @@ android {
shrinkResources false shrinkResources false
minifyEnabled false minifyEnabled false
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
} }

View file

@ -6,7 +6,6 @@ import 'package:cake_wallet/.secrets.g.dart' as secrets;
import 'package:cake_wallet/ionia/ionia_api.dart'; import 'package:cake_wallet/ionia/ionia_api.dart';
import 'package:cake_wallet/ionia/ionia_gift_card.dart'; import 'package:cake_wallet/ionia/ionia_gift_card.dart';
import 'package:cake_wallet/ionia/ionia_category.dart'; import 'package:cake_wallet/ionia/ionia_category.dart';
import 'package:platform_device_id/platform_device_id.dart';
class IoniaService { class IoniaService {
IoniaService(this.secureStorage, this.ioniaApi); IoniaService(this.secureStorage, this.ioniaApi);
@ -112,15 +111,16 @@ class IoniaService {
required String currency}) async { required String currency}) async {
final username = (await secureStorage.read(key: ioniaUsernameStorageKey))!; final username = (await secureStorage.read(key: ioniaUsernameStorageKey))!;
final password = (await secureStorage.read(key: ioniaPasswordStorageKey))!; final password = (await secureStorage.read(key: ioniaPasswordStorageKey))!;
final deviceId = await PlatformDeviceId.getDeviceId; // final deviceId = await PlatformDeviceId.getDeviceId;
return ioniaApi.purchaseGiftCard( // return ioniaApi.purchaseGiftCard(
requestedUUID: deviceId!, // requestedUUID: deviceId!,
merchId: merchId, // merchId: merchId,
amount: amount, // amount: amount,
currency: currency, // currency: currency,
username: username, // username: username,
password: password, // password: password,
clientId: clientId); // clientId: clientId);
throw UnimplementedError();// platform_device_id package removed
} }
// Get Current User Gift Card Summaries // Get Current User Gift Card Summaries

View file

@ -68,7 +68,6 @@ dependencies:
# device_display_brightness: ^0.0.6 # device_display_brightness: ^0.0.6
screen_brightness: ^0.2.2 screen_brightness: ^0.2.2
workmanager: ^0.5.1 workmanager: ^0.5.1
platform_device_id: ^1.0.1
wakelock: ^0.6.2 wakelock: ^0.6.2
flutter_mailer: ^2.0.2 flutter_mailer: ^2.0.2
device_info_plus: 8.1.0 device_info_plus: 8.1.0