hyperledger-archives / aries-framework-dotnet

Aries Framework .NET for building multiplatform SSI services
https://wiki.hyperledger.org/display/aries
Apache License 2.0
84 stars 74 forks source link

Store Pool Folder in App's folder in Internal Storage #186

Closed x0axz closed 2 years ago

x0axz commented 3 years ago

In Aries Xamarin App, the Wallet & Tails folder are created inside .indy_client folder, which stores in App's folder in internal storage and when user uninstall the app, all the folder created by app get deleted.

Code to Store Wallet in App.xml.cs

Path = Path.Combine(
    path1: FileSystem.AppDataDirectory,
    path2: ".indy_client",
    path3: "wallets")

But for Pool, it doesn't stored in App's folder in internal storage, but outside App's folder in internal storage, so when user uninstall the app, pool folder remains in the mobile app.

Code to Store Pool in PoolConfigurator.cs

var filename = Path.Combine(FileSystem.CacheDirectory, config.Value);

I tried few things, to store the pool folder in App's folder in internal storage like wallet, but it didn't worked. How can I achieve this (to store pool folder in App's folder in internal storage, so when user uninstall the App, pool folder get delete as wallet, as well) ?

x0axz commented 2 years ago

Issues: https://github.com/hyperledger/aries-mobile-agent-xamarin/issues/52 & https://github.com/hyperledger/aries-mobile-agent-xamarin/issues/53 Pull Request: https://github.com/hyperledger/aries-mobile-agent-xamarin/pull/54