diff --git a/ios/Podfile b/ios/Podfile index b7f13d7..06935f1 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -37,8 +37,9 @@ target 'Runner' do # use_frameworks! use_modular_headers! - pod 'PrivacyDashboardiOS','2024.1.3' - pod 'ama-ios-sdk' +# pod 'PrivacyDashboardiOS',:path => '/Users/mumthasirmohammed/bb-consent-ios-privacy-dashboard/PrivacyDashboardiOS' + pod 'PrivacyDashboardiOS',:git =>'git@github.com:decentralised-dataexchange/bb-consent-ios-privacy-dashboard.git', :tag => '2024.4.2' + pod 'ama-ios-sdk', :git => 'git@github.com:L3-iGrant/ama-ios-sdk.git',:tag => '2024.4.1' flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index 8857990..e8709da 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -18,12 +18,17 @@ import SwiftMessages let flutterChannel = FlutterMethodChannel(name: "io.igrant.data4diabetes.channel", binaryMessenger: flutterViewController.binaryMessenger) - AriesMobileAgent.shared.configureWallet(delegate: self) { success in - debugPrint("Wallet configured --- \(success ?? false)") - } flutterChannel.setMethodCallHandler({ (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in switch call.method{ + case "InitWallet": + AriesMobileAgent.shared.configureWallet(delegate: self) { success in + debugPrint("Wallet configured --- \(success ?? false)") + } + case "DeleteWallet": + AriesMobileAgent.shared.deleteWallet(completion: { success in + debugPrint("Wallet deleted --- \(success ?? false)") + }) case "Preferences": let arguments = call.arguments as? [String: Any] let apiKey = arguments?["ApiKey"] as? String