diff --git a/.gitignore b/.gitignore index 5403ef31..ec4e4d19 100644 --- a/.gitignore +++ b/.gitignore @@ -258,3 +258,27 @@ Thumbs.db /src/java/PluginInputStick/bin /src/java/PluginInputStick/icons + +/src/PluginSdkBinding/bin/Release + +/src/MasterPassword/bin/Debug + +/src/MasterPassword/obj/Debug + +/src/MasterPassword/obj/Release + +/src/MPTest/bin/Debug +/src/MPTest/obj/Debug + +/src/MasterKeePlugin/obj/Release +/src/MasterKeePlugin/bin/Debug + +/src/MasterKeePlugin/bin/Release + +/src/MasterKeePlugin/obj/Debug +/src/PluginSdkBinding/obj/Release + +/src/MasterPassword/bin/Release +/src/java/MasterKee + +/src/PluginSdkBinding/obj/ReleaseNoNet diff --git a/src/ArtTestApp/Activity1.cs b/src/ArtTestApp/Activity1.cs index 4202a2c5..10968c43 100644 --- a/src/ArtTestApp/Activity1.cs +++ b/src/ArtTestApp/Activity1.cs @@ -1,18 +1,28 @@ using System; - +using System.Collections.Generic; using Android.App; using Android.Content; +using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; +using KeeChallenge; +using KeePassLib.Serialization; +using keepass2android; +using keepass2android.Io; namespace ArtTestApp { [Activity(Label = "ArtTestApp", MainLauncher = true, Icon = "@drawable/icon")] public class Activity1 : Activity { - + private ChallengeInfo _chalInfo; + private byte[] _challengeSecret; + private IOConnectionInfo _ioConnectionInfo; + private IOConnectionInfo _ioConnectionInfoOut; + private const int RequestCodeChallengeYubikey = 98; + protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); @@ -20,30 +30,87 @@ namespace ArtTestApp // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); + _ioConnectionInfo = new IOConnectionInfo() { Path = "/mnt/sdcard/keepass/keechallenge.xml" }; + _ioConnectionInfoOut = new IOConnectionInfo() { Path = "/mnt/sdcard/keepass/keechallengeOut.xml" }; + + // Get our button from the layout resource, // and attach an event to it FindViewById