Skip to content

Commit

Permalink
Fix #299, #302: iOS delete Data Wallet implementation and privacy das…
Browse files Browse the repository at this point in the history
…hboard version update
  • Loading branch information
mumthasir-muhammed authored and josmilan committed Apr 22, 2024
1 parent 1284e7b commit fb2d014
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>'[email protected]:decentralised-dataexchange/bb-consent-ios-privacy-dashboard.git', :tag => '2024.4.2'
pod 'ama-ios-sdk', :git => '[email protected]:L3-iGrant/ama-ios-sdk.git',:tag => '2024.4.1'

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
Expand Down
11 changes: 8 additions & 3 deletions ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb2d014

Please sign in to comment.