Add UWP support (#139)
* Add UWP project, and generate services boilerplate * SqliteService implementation and sqlite-net-pcl update (#bug https://stackoverflow.com/questions/45418669/xamarin-forms-pcl-assemly-issue) * Important services implementation * Create a shared project to host images for UWP (to keep code project clean) * Add extensions to image names referenced by the pcl project * Add DismissModalToolBarItem to modal pages * moving UWP folders inside src folder * Add DeviceInfoService implementation * Remove dependency on BouncyCastle, and calculate key derivation using native support * changes requested by project maintener * Fix HasCamera property * DeviceActionService implementation
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 15
|
# Visual Studio 15
|
||||||
VisualStudioVersion = 15.0.26430.13
|
VisualStudioVersion = 15.0.26730.16
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Android", "src\Android\Android.csproj", "{04B18ED2-B76D-4947-8474-191F8FD2B5E0}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Android", "src\Android\Android.csproj", "{04B18ED2-B76D-4947-8474-191F8FD2B5E0}"
|
||||||
EndProject
|
EndProject
|
||||||
@@ -29,7 +29,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "google", "google", "{2E3996
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Publisher", "store\google\Publisher\Publisher.csproj", "{428CACAB-CC26-4F41-9062-1E4A9BC82640}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Publisher", "store\google\Publisher\Publisher.csproj", "{428CACAB-CC26-4F41-9062-1E4A9BC82640}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UWP", "src\UWP\UWP.csproj", "{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}"
|
||||||
|
EndProject
|
||||||
|
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "UWP.Images", "src\UWP.Images\UWP.Images.shproj", "{0BE54BBB-7772-4289-BD51-1FDBB0CC2446}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
|
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
||||||
|
src\UWP.Images\UWP.Images.projitems*{0be54bbb-7772-4289-bd51-1fdbb0cc2446}*SharedItemsImports = 13
|
||||||
|
src\UWP.Images\UWP.Images.projitems*{3a2d5669-ed71-4f2b-ba85-2d36baa05141}*SharedItemsImports = 4
|
||||||
|
EndGlobalSection
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
|
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
|
||||||
Ad-Hoc|ARM = Ad-Hoc|ARM
|
Ad-Hoc|ARM = Ad-Hoc|ARM
|
||||||
@@ -94,8 +102,6 @@ Global
|
|||||||
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
||||||
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
||||||
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x64.Deploy.0 = Debug|Any CPU
|
|
||||||
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x86.Build.0 = Debug|Any CPU
|
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x86.Deploy.0 = Debug|Any CPU
|
{04B18ED2-B76D-4947-8474-191F8FD2B5E0}.Debug|x86.Deploy.0 = Debug|Any CPU
|
||||||
@@ -136,7 +142,6 @@ Global
|
|||||||
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
||||||
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
||||||
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|x64.ActiveCfg = Debug|iPhone
|
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|x64.ActiveCfg = Debug|iPhone
|
||||||
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|x64.Build.0 = Debug|iPhone
|
|
||||||
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|x86.ActiveCfg = Debug|iPhone
|
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|x86.ActiveCfg = Debug|iPhone
|
||||||
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|x86.Build.0 = Debug|iPhone
|
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Debug|x86.Build.0 = Debug|iPhone
|
||||||
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Release|Any CPU.ActiveCfg = Release|iPhone
|
{1F78403F-9A28-405B-9289-B9DBEB55F074}.Release|Any CPU.ActiveCfg = Release|iPhone
|
||||||
@@ -222,7 +227,6 @@ Global
|
|||||||
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
||||||
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
||||||
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|x86.Build.0 = Debug|Any CPU
|
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{A300DCE1-8D10-4267-B96A-CB01AEB7C220}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
@@ -258,7 +262,6 @@ Global
|
|||||||
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
||||||
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
||||||
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|x64.ActiveCfg = Debug|iPhone
|
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|x64.ActiveCfg = Debug|iPhone
|
||||||
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|x64.Build.0 = Debug|iPhone
|
|
||||||
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|x86.ActiveCfg = Debug|iPhone
|
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|x86.ActiveCfg = Debug|iPhone
|
||||||
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|x86.Build.0 = Debug|iPhone
|
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Debug|x86.Build.0 = Debug|iPhone
|
||||||
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Release|Any CPU.ActiveCfg = Release|iPhone
|
{32F5A2D6-F54D-4DA1-AE26-0A980D48F422}.Release|Any CPU.ActiveCfg = Release|iPhone
|
||||||
@@ -300,7 +303,6 @@ Global
|
|||||||
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
||||||
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
||||||
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|x86.Build.0 = Debug|Any CPU
|
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{B2538ADA-B605-4D6F-ACD2-62A409680F84}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
@@ -394,8 +396,6 @@ Global
|
|||||||
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
||||||
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
|
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
|
||||||
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x64.Deploy.0 = Debug|Any CPU
|
|
||||||
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x86.Build.0 = Debug|Any CPU
|
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x86.Deploy.0 = Debug|Any CPU
|
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE}.Debug|x86.Deploy.0 = Debug|Any CPU
|
||||||
@@ -450,7 +450,6 @@ Global
|
|||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|x86.Build.0 = Debug|Any CPU
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
@@ -465,6 +464,66 @@ Global
|
|||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Release|x64.Build.0 = Release|Any CPU
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Release|x64.Build.0 = Release|Any CPU
|
||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Release|x86.ActiveCfg = Release|Any CPU
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Release|x86.ActiveCfg = Release|Any CPU
|
||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Release|x86.Build.0 = Release|Any CPU
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640}.Release|x86.Build.0 = Release|Any CPU
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|Any CPU.ActiveCfg = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|Any CPU.Build.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|Any CPU.Deploy.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|ARM.ActiveCfg = Release|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|ARM.Build.0 = Release|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|ARM.Deploy.0 = Release|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|iPhone.ActiveCfg = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|iPhone.Build.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|iPhone.Deploy.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|x64.ActiveCfg = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|x64.Build.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|x64.Deploy.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|x86.ActiveCfg = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|x86.Build.0 = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Ad-Hoc|x86.Deploy.0 = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|Any CPU.ActiveCfg = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|Any CPU.Build.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|Any CPU.Deploy.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|ARM.ActiveCfg = Release|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|ARM.Build.0 = Release|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|ARM.Deploy.0 = Release|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|iPhone.ActiveCfg = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|iPhone.Build.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|iPhone.Deploy.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|iPhoneSimulator.ActiveCfg = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|iPhoneSimulator.Build.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|iPhoneSimulator.Deploy.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|x64.ActiveCfg = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|x64.Build.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|x64.Deploy.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|x86.ActiveCfg = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|x86.Build.0 = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.AppStore|x86.Deploy.0 = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|Any CPU.ActiveCfg = Debug|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|iPhone.ActiveCfg = Debug|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|iPhoneSimulator.ActiveCfg = Debug|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|x64.Deploy.0 = Debug|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Debug|x86.Deploy.0 = Debug|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|Any CPU.ActiveCfg = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|ARM.ActiveCfg = Release|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|ARM.Build.0 = Release|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|ARM.Deploy.0 = Release|ARM
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|iPhone.ActiveCfg = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|iPhoneSimulator.ActiveCfg = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|x64.Build.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|x64.Deploy.0 = Release|x64
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|x86.Build.0 = Release|x86
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}.Release|x86.Deploy.0 = Release|x86
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
@@ -480,5 +539,10 @@ Global
|
|||||||
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE} = {0D790714-ECF8-4A83-BE4A-E9C84DD1BB5D}
|
{FA507A17-D4E3-46DF-ACD8-D7E6D7D4E3AE} = {0D790714-ECF8-4A83-BE4A-E9C84DD1BB5D}
|
||||||
{2E399654-26A2-46F6-B9CA-1B496A3F370A} = {92470CBD-9047-4C3C-8EA3-D972D6622D84}
|
{2E399654-26A2-46F6-B9CA-1B496A3F370A} = {92470CBD-9047-4C3C-8EA3-D972D6622D84}
|
||||||
{428CACAB-CC26-4F41-9062-1E4A9BC82640} = {2E399654-26A2-46F6-B9CA-1B496A3F370A}
|
{428CACAB-CC26-4F41-9062-1E4A9BC82640} = {2E399654-26A2-46F6-B9CA-1B496A3F370A}
|
||||||
|
{3A2D5669-ED71-4F2B-BA85-2D36BAA05141} = {EC730FD9-F623-4B6C-B503-95CDCFBCF277}
|
||||||
|
{0BE54BBB-7772-4289-BD51-1FDBB0CC2446} = {EC730FD9-F623-4B6C-B503-95CDCFBCF277}
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {318CB2DF-0118-43A3-AC83-56BADCF71CCD}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|||||||
@@ -178,8 +178,8 @@
|
|||||||
<HintPath>..\..\packages\Splat.1.6.2\lib\monoandroid\Splat.dll</HintPath>
|
<HintPath>..\..\packages\Splat.1.6.2\lib\monoandroid\Splat.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SQLite-net, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="SQLite-net, Version=1.5.166.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\sqlite-net-pcl.1.4.118\lib\netstandard1.1\SQLite-net.dll</HintPath>
|
<HintPath>..\..\packages\sqlite-net-pcl.1.5.166-beta\lib\netstandard1.1\SQLite-net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SQLitePCLRaw.batteries_green, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a84b7dcfb1391f7f, processorArchitecture=MSIL">
|
<Reference Include="SQLitePCLRaw.batteries_green, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a84b7dcfb1391f7f, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\SQLitePCLRaw.bundle_green.1.1.8\lib\MonoAndroid\SQLitePCLRaw.batteries_green.dll</HintPath>
|
<HintPath>..\..\packages\SQLitePCLRaw.bundle_green.1.1.8\lib\MonoAndroid\SQLitePCLRaw.batteries_green.dll</HintPath>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<package id="Plugin.Fingerprint" version="1.4.5" targetFramework="monoandroid71" />
|
<package id="Plugin.Fingerprint" version="1.4.5" targetFramework="monoandroid71" />
|
||||||
<package id="SimpleInjector" version="4.0.8" targetFramework="monoandroid71" />
|
<package id="SimpleInjector" version="4.0.8" targetFramework="monoandroid71" />
|
||||||
<package id="Splat" version="1.6.2" targetFramework="monoandroid60" />
|
<package id="Splat" version="1.6.2" targetFramework="monoandroid60" />
|
||||||
<package id="sqlite-net-pcl" version="1.4.118" targetFramework="monoandroid71" />
|
<package id="sqlite-net-pcl" version="1.5.166-beta" targetFramework="monoandroid71" />
|
||||||
<package id="SQLitePCLRaw.bundle_green" version="1.1.8" targetFramework="monoandroid71" />
|
<package id="SQLitePCLRaw.bundle_green" version="1.1.8" targetFramework="monoandroid71" />
|
||||||
<package id="SQLitePCLRaw.core" version="1.1.8" targetFramework="monoandroid71" />
|
<package id="SQLitePCLRaw.core" version="1.1.8" targetFramework="monoandroid71" />
|
||||||
<package id="SQLitePCLRaw.lib.e_sqlite3.android" version="1.1.8" targetFramework="monoandroid71" />
|
<package id="SQLitePCLRaw.lib.e_sqlite3.android" version="1.1.8" targetFramework="monoandroid71" />
|
||||||
|
|||||||
@@ -540,8 +540,8 @@
|
|||||||
<HintPath>..\..\packages\Splat.1.6.2\lib\Portable-net45+win+wpa81+wp80\Splat.dll</HintPath>
|
<HintPath>..\..\packages\Splat.1.6.2\lib\Portable-net45+win+wpa81+wp80\Splat.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SQLite-net, Version=1.4.118.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="SQLite-net, Version=1.5.166.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\sqlite-net-pcl.1.4.118\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\SQLite-net.dll</HintPath>
|
<HintPath>..\..\packages\sqlite-net-pcl.1.5.166-beta\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\SQLite-net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SQLitePCLRaw.batteries_green, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a84b7dcfb1391f7f, processorArchitecture=MSIL">
|
<Reference Include="SQLitePCLRaw.batteries_green, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a84b7dcfb1391f7f, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\SQLitePCLRaw.bundle_green.1.1.8\lib\portable-net45+netcore45+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\SQLitePCLRaw.batteries_green.dll</HintPath>
|
<HintPath>..\..\packages\SQLitePCLRaw.bundle_green.1.1.8\lib\portable-net45+netcore45+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\SQLitePCLRaw.batteries_green.dll</HintPath>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace Bit.App.Controls
|
|||||||
|
|
||||||
protected override SizeRequest OnSizeRequest(double widthConstraint, double heightConstraint)
|
protected override SizeRequest OnSizeRequest(double widthConstraint, double heightConstraint)
|
||||||
{
|
{
|
||||||
if(!VerticalOptions.Expands)
|
if(!VerticalOptions.Expands && Device.RuntimePlatform != Device.Windows)
|
||||||
{
|
{
|
||||||
var reflectionService = Resolver.Resolve<IReflectionService>();
|
var reflectionService = Resolver.Resolve<IReflectionService>();
|
||||||
var baseBaseOnSizeRequest = reflectionService.GetVisualElementOnSizeRequest(this);
|
var baseBaseOnSizeRequest = reflectionService.GetVisualElementOnSizeRequest(this);
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ namespace Bit.App.Pages
|
|||||||
var toolbarItem = new ToolbarItem(AppResources.Save, null, async () => await SaveAsync(),
|
var toolbarItem = new ToolbarItem(AppResources.Save, null, async () => await SaveAsync(),
|
||||||
ToolbarItemOrder.Default, 0);
|
ToolbarItemOrder.Default, 0);
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
table.RowHeight = table2.RowHeight = -1;
|
table.RowHeight = table2.RowHeight = -1;
|
||||||
table.EstimatedRowHeight = table2.EstimatedRowHeight = 70;
|
table.EstimatedRowHeight = table2.EstimatedRowHeight = 70;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
var settingsButton = new Button
|
var settingsButton = new Button
|
||||||
{
|
{
|
||||||
Image = "cog",
|
Image = "cog.png",
|
||||||
VerticalOptions = LayoutOptions.Start,
|
VerticalOptions = LayoutOptions.Start,
|
||||||
HorizontalOptions = LayoutOptions.Start,
|
HorizontalOptions = LayoutOptions.Start,
|
||||||
WidthRequest = 25,
|
WidthRequest = 25,
|
||||||
@@ -46,7 +46,7 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
var logo = new CachedImage
|
var logo = new CachedImage
|
||||||
{
|
{
|
||||||
Source = "logo",
|
Source = "logo.png",
|
||||||
VerticalOptions = LayoutOptions.CenterAndExpand,
|
VerticalOptions = LayoutOptions.CenterAndExpand,
|
||||||
HorizontalOptions = LayoutOptions.Center,
|
HorizontalOptions = LayoutOptions.Center,
|
||||||
WidthRequest = 282,
|
WidthRequest = 282,
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
var fingerprintIcon = new ExtendedButton
|
var fingerprintIcon = new ExtendedButton
|
||||||
{
|
{
|
||||||
Image = "fingerprint",
|
Image = "fingerprint.png",
|
||||||
BackgroundColor = Color.Transparent,
|
BackgroundColor = Color.Transparent,
|
||||||
Command = new Command(async () => await CheckFingerprintAsync()),
|
Command = new Command(async () => await CheckFingerprintAsync()),
|
||||||
VerticalOptions = LayoutOptions.CenterAndExpand,
|
VerticalOptions = LayoutOptions.CenterAndExpand,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Bit.App.Pages
|
|||||||
WinPhone: new Thickness(15, 20));
|
WinPhone: new Thickness(15, 20));
|
||||||
|
|
||||||
PasswordCell = new FormEntryCell(AppResources.MasterPassword, isPassword: true,
|
PasswordCell = new FormEntryCell(AppResources.MasterPassword, isPassword: true,
|
||||||
useLabelAsPlaceholder: true, imageSource: "lock", containerPadding: padding);
|
useLabelAsPlaceholder: true, imageSource: "lock.png", containerPadding: padding);
|
||||||
|
|
||||||
PasswordCell.Entry.ReturnType = Enums.ReturnType.Go;
|
PasswordCell.Entry.ReturnType = Enums.ReturnType.Go;
|
||||||
|
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
var scrollView = new ScrollView { Content = layout };
|
var scrollView = new ScrollView { Content = layout };
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
table.RowHeight = -1;
|
table.RowHeight = -1;
|
||||||
table.EstimatedRowHeight = 70;
|
table.EstimatedRowHeight = 70;
|
||||||
|
|||||||
@@ -17,16 +17,16 @@ namespace Bit.App.Pages
|
|||||||
var toolsNavigation = new ExtendedNavigationPage(new ToolsPage());
|
var toolsNavigation = new ExtendedNavigationPage(new ToolsPage());
|
||||||
|
|
||||||
favoritesNavigation.Title = AppResources.Favorites;
|
favoritesNavigation.Title = AppResources.Favorites;
|
||||||
favoritesNavigation.Icon = "star";
|
favoritesNavigation.Icon = "star.png";
|
||||||
|
|
||||||
vaultNavigation.Title = AppResources.MyVault;
|
vaultNavigation.Title = AppResources.MyVault;
|
||||||
vaultNavigation.Icon = "fa_lock";
|
vaultNavigation.Icon = "fa_lock.png";
|
||||||
|
|
||||||
toolsNavigation.Title = AppResources.Tools;
|
toolsNavigation.Title = AppResources.Tools;
|
||||||
toolsNavigation.Icon = "tools";
|
toolsNavigation.Icon = "tools.png";
|
||||||
|
|
||||||
settingsNavigation.Title = AppResources.Settings;
|
settingsNavigation.Title = AppResources.Settings;
|
||||||
settingsNavigation.Icon = "cogs";
|
settingsNavigation.Icon = "cogs.png";
|
||||||
|
|
||||||
Children.Add(favoritesNavigation);
|
Children.Add(favoritesNavigation);
|
||||||
Children.Add(vaultNavigation);
|
Children.Add(vaultNavigation);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Bit.App.Pages
|
|||||||
WinPhone: new Thickness(15, 20));
|
WinPhone: new Thickness(15, 20));
|
||||||
|
|
||||||
EmailCell = new FormEntryCell(AppResources.EmailAddress, entryKeyboard: Keyboard.Email,
|
EmailCell = new FormEntryCell(AppResources.EmailAddress, entryKeyboard: Keyboard.Email,
|
||||||
useLabelAsPlaceholder: true, imageSource: "envelope", containerPadding: padding);
|
useLabelAsPlaceholder: true, imageSource: "envelope.png", containerPadding: padding);
|
||||||
|
|
||||||
EmailCell.Entry.ReturnType = Enums.ReturnType.Go;
|
EmailCell.Entry.ReturnType = Enums.ReturnType.Go;
|
||||||
|
|
||||||
|
|||||||
@@ -50,15 +50,15 @@ namespace Bit.App.Pages
|
|||||||
WinPhone: new Thickness(15, 20));
|
WinPhone: new Thickness(15, 20));
|
||||||
|
|
||||||
PasswordHintCell = new FormEntryCell(AppResources.MasterPasswordHint, useLabelAsPlaceholder: true,
|
PasswordHintCell = new FormEntryCell(AppResources.MasterPasswordHint, useLabelAsPlaceholder: true,
|
||||||
imageSource: "lightbulb", containerPadding: padding);
|
imageSource: "lightbulb.png", containerPadding: padding);
|
||||||
ConfirmPasswordCell = new FormEntryCell(AppResources.RetypeMasterPassword, isPassword: true,
|
ConfirmPasswordCell = new FormEntryCell(AppResources.RetypeMasterPassword, isPassword: true,
|
||||||
nextElement: PasswordHintCell.Entry, useLabelAsPlaceholder: true, imageSource: "lock",
|
nextElement: PasswordHintCell.Entry, useLabelAsPlaceholder: true, imageSource: "lock.png",
|
||||||
containerPadding: padding);
|
containerPadding: padding);
|
||||||
PasswordCell = new FormEntryCell(AppResources.MasterPassword, isPassword: true,
|
PasswordCell = new FormEntryCell(AppResources.MasterPassword, isPassword: true,
|
||||||
nextElement: ConfirmPasswordCell.Entry, useLabelAsPlaceholder: true, imageSource: "lock",
|
nextElement: ConfirmPasswordCell.Entry, useLabelAsPlaceholder: true, imageSource: "lock.png",
|
||||||
containerPadding: padding);
|
containerPadding: padding);
|
||||||
EmailCell = new FormEntryCell(AppResources.EmailAddress, nextElement: PasswordCell.Entry,
|
EmailCell = new FormEntryCell(AppResources.EmailAddress, nextElement: PasswordCell.Entry,
|
||||||
entryKeyboard: Keyboard.Email, useLabelAsPlaceholder: true, imageSource: "envelope",
|
entryKeyboard: Keyboard.Email, useLabelAsPlaceholder: true, imageSource: "envelope.png",
|
||||||
containerPadding: padding);
|
containerPadding: padding);
|
||||||
|
|
||||||
PasswordHintCell.Entry.ReturnType = Enums.ReturnType.Done;
|
PasswordHintCell.Entry.ReturnType = Enums.ReturnType.Done;
|
||||||
@@ -122,7 +122,7 @@ namespace Bit.App.Pages
|
|||||||
await Register();
|
await Register();
|
||||||
}, ToolbarItemOrder.Default, 0);
|
}, ToolbarItemOrder.Default, 0);
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
table.RowHeight = table2.RowHeight = -1;
|
table.RowHeight = table2.RowHeight = -1;
|
||||||
table.EstimatedRowHeight = table2.EstimatedRowHeight = 70;
|
table.EstimatedRowHeight = table2.EstimatedRowHeight = 70;
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ namespace Bit.App.Pages
|
|||||||
Children = { _zxing, _overlay }
|
Children = { _zxing, _overlay }
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Close));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Close));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
var logo = new CachedImage
|
var logo = new CachedImage
|
||||||
{
|
{
|
||||||
Source = "logo",
|
Source = "logo.png",
|
||||||
HorizontalOptions = LayoutOptions.Center,
|
HorizontalOptions = LayoutOptions.Center,
|
||||||
WidthRequest = 282,
|
WidthRequest = 282,
|
||||||
HeightRequest = 44
|
HeightRequest = 44
|
||||||
@@ -78,7 +78,7 @@ namespace Bit.App.Pages
|
|||||||
Spacing = 0
|
Spacing = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ namespace Bit.App.Pages
|
|||||||
Title = AppResources.AddFolder;
|
Title = AppResources.AddFolder;
|
||||||
Content = table;
|
Content = table;
|
||||||
ToolbarItems.Add(saveToolBarItem);
|
ToolbarItems.Add(saveToolBarItem);
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ namespace Bit.App.Pages
|
|||||||
Title = AppResources.EditFolder;
|
Title = AppResources.EditFolder;
|
||||||
Content = mainTable;
|
Content = mainTable;
|
||||||
ToolbarItems.Add(saveToolBarItem);
|
ToolbarItems.Add(saveToolBarItem);
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Bit.App.Pages
|
|||||||
Content = StackLayout
|
Content = StackLayout
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
analyticsTable.RowHeight = -1;
|
analyticsTable.RowHeight = -1;
|
||||||
analyticsTable.EstimatedRowHeight = 70;
|
analyticsTable.EstimatedRowHeight = 70;
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ namespace Bit.App.Pages
|
|||||||
Spacing = 0
|
Spacing = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ namespace Bit.App.Pages
|
|||||||
ItemsSource = Folders,
|
ItemsSource = Folders,
|
||||||
ItemTemplate = new DataTemplate(() => new SettingsFolderListViewCell(this))
|
ItemTemplate = new DataTemplate(() => new SettingsFolderListViewCell(this))
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
@@ -87,7 +87,7 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
_page = page;
|
_page = page;
|
||||||
Text = AppResources.Add;
|
Text = AppResources.Add;
|
||||||
Icon = "plus";
|
Icon = "plus.png";
|
||||||
ClickAction = () => ClickedItem();
|
ClickAction = () => ClickedItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace Bit.App.Pages
|
|||||||
PinControl.Label.GestureRecognizers.Add(Tgr);
|
PinControl.Label.GestureRecognizers.Add(Tgr);
|
||||||
instructionLabel.GestureRecognizers.Add(Tgr);
|
instructionLabel.GestureRecognizers.Add(Tgr);
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ namespace Bit.App.Pages
|
|||||||
Padding = new Thickness(15, 0)
|
Padding = new Thickness(15, 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
var tapNotificationImage = new CachedImage
|
var tapNotificationImage = new CachedImage
|
||||||
{
|
{
|
||||||
Source = "accessibility_notification",
|
Source = "accessibility_notification.png",
|
||||||
HorizontalOptions = LayoutOptions.Center,
|
HorizontalOptions = LayoutOptions.Center,
|
||||||
Margin = new Thickness(0, 20, 0, 0),
|
Margin = new Thickness(0, 20, 0, 0),
|
||||||
WidthRequest = 300,
|
WidthRequest = 300,
|
||||||
@@ -132,7 +132,7 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
var tapNotificationIcon = new CachedImage
|
var tapNotificationIcon = new CachedImage
|
||||||
{
|
{
|
||||||
Source = "accessibility_notification_icon",
|
Source = "accessibility_notification_icon.png",
|
||||||
HorizontalOptions = LayoutOptions.Center,
|
HorizontalOptions = LayoutOptions.Center,
|
||||||
Margin = new Thickness(0, 20, 0, 0),
|
Margin = new Thickness(0, 20, 0, 0),
|
||||||
WidthRequest = 300,
|
WidthRequest = 300,
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ namespace Bit.App.Pages
|
|||||||
VerticalOptions = LayoutOptions.FillAndExpand
|
VerticalOptions = LayoutOptions.FillAndExpand
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Close));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Close));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,10 +33,10 @@ namespace Bit.App.Pages
|
|||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
GeneratorCell = new ToolsViewCell(AppResources.PasswordGenerator, AppResources.PasswordGeneratorDescription,
|
GeneratorCell = new ToolsViewCell(AppResources.PasswordGenerator, AppResources.PasswordGeneratorDescription,
|
||||||
"refresh");
|
"refresh.png");
|
||||||
WebCell = new ToolsViewCell(AppResources.WebVault, AppResources.WebVaultDescription, "globe");
|
WebCell = new ToolsViewCell(AppResources.WebVault, AppResources.WebVaultDescription, "globe.png");
|
||||||
ShareCell = new ToolsViewCell(AppResources.ShareVault, AppResources.ShareVaultDescription, "share_tools");
|
ShareCell = new ToolsViewCell(AppResources.ShareVault, AppResources.ShareVaultDescription, "share_tools.png");
|
||||||
ImportCell = new ToolsViewCell(AppResources.ImportLogins, AppResources.ImportLoginsDescription, "cloudup");
|
ImportCell = new ToolsViewCell(AppResources.ImportLogins, AppResources.ImportLoginsDescription, "cloudup.png");
|
||||||
|
|
||||||
var section = new TableSection(" ") { GeneratorCell };
|
var section = new TableSection(" ") { GeneratorCell };
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ namespace Bit.App.Pages
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
AutofillCell = new ToolsViewCell(AppResources.BitwardenAutofillService,
|
AutofillCell = new ToolsViewCell(AppResources.BitwardenAutofillService,
|
||||||
AppResources.BitwardenAutofillServiceDescription, "upload");
|
AppResources.BitwardenAutofillServiceDescription, "upload.png");
|
||||||
section.Add(AutofillCell);
|
section.Add(AutofillCell);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ namespace Bit.App.Pages
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
table.RowHeight = -1;
|
table.RowHeight = -1;
|
||||||
table.EstimatedRowHeight = 44;
|
table.EstimatedRowHeight = 44;
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ namespace Bit.App.Pages
|
|||||||
Title = AppResources.AddLogin;
|
Title = AppResources.AddLogin;
|
||||||
Content = table;
|
Content = table;
|
||||||
ToolbarItems.Add(saveToolBarItem);
|
ToolbarItems.Add(saveToolBarItem);
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ namespace Bit.App.Pages
|
|||||||
ToolbarItems.Add(saveToolBarItem);
|
ToolbarItems.Add(saveToolBarItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ListView.RowHeight = -1;
|
ListView.RowHeight = -1;
|
||||||
NewTable.RowHeight = -1;
|
NewTable.RowHeight = -1;
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
Content = Table;
|
Content = Table;
|
||||||
ToolbarItems.Add(SaveToolbarItem);
|
ToolbarItems.Add(SaveToolbarItem);
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
@@ -216,7 +216,7 @@ namespace Bit.App.Pages
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Content = NoDataLabel;
|
Content = NoDataLabel;
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Close));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Close));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ namespace Bit.App.Pages
|
|||||||
Title = AppResources.EditLogin;
|
Title = AppResources.EditLogin;
|
||||||
Content = table;
|
Content = table;
|
||||||
ToolbarItems.Add(saveToolBarItem);
|
ToolbarItems.Add(saveToolBarItem);
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
ToolbarItems.Add(new DismissModalToolBarItem(this, AppResources.Cancel));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -481,7 +481,7 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
_page = page;
|
_page = page;
|
||||||
Text = AppResources.Add;
|
Text = AppResources.Add;
|
||||||
Icon = "plus";
|
Icon = "plus.png";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -491,7 +491,7 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
var image = new CachedImage
|
var image = new CachedImage
|
||||||
{
|
{
|
||||||
Source = "folder",
|
Source = "folder.png",
|
||||||
WidthRequest = 18,
|
WidthRequest = 18,
|
||||||
HeightRequest = 18
|
HeightRequest = 18
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ namespace Bit.App.Pages
|
|||||||
{
|
{
|
||||||
EditItem = new EditLoginToolBarItem(this, _loginId);
|
EditItem = new EditLoginToolBarItem(this, _loginId);
|
||||||
ToolbarItems.Add(EditItem);
|
ToolbarItems.Add(EditItem);
|
||||||
if(Device.RuntimePlatform == Device.iOS)
|
if(Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Windows)
|
||||||
{
|
{
|
||||||
ToolbarItems.Add(new DismissModalToolBarItem(this));
|
ToolbarItems.Add(new DismissModalToolBarItem(this));
|
||||||
}
|
}
|
||||||
@@ -399,7 +399,7 @@ namespace Bit.App.Pages
|
|||||||
_tapped = tappedAction;
|
_tapped = tappedAction;
|
||||||
Label.Text = attachment.Name;
|
Label.Text = attachment.Name;
|
||||||
Detail.Text = attachment.SizeName;
|
Detail.Text = attachment.SizeName;
|
||||||
Icon.Source = "download";
|
Icon.Source = "download.png";
|
||||||
BackgroundColor = Color.White;
|
BackgroundColor = Color.White;
|
||||||
Detail.MinimumWidthRequest = 100;
|
Detail.MinimumWidthRequest = 100;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<package id="PInvoke.Windows.Core" version="0.5.97" targetFramework="portable45-net45+win8+wpa81" />
|
<package id="PInvoke.Windows.Core" version="0.5.97" targetFramework="portable45-net45+win8+wpa81" />
|
||||||
<package id="Plugin.Fingerprint" version="1.4.5" targetFramework="portable45-net45+win8+wpa81" />
|
<package id="Plugin.Fingerprint" version="1.4.5" targetFramework="portable45-net45+win8+wpa81" />
|
||||||
<package id="Splat" version="1.6.2" targetFramework="portable45-net45+win8+wpa81" />
|
<package id="Splat" version="1.6.2" targetFramework="portable45-net45+win8+wpa81" />
|
||||||
<package id="sqlite-net-pcl" version="1.4.118" targetFramework="portable45-net45+win8+wpa81" />
|
<package id="sqlite-net-pcl" version="1.5.166-beta" targetFramework="portable45-net45+win8+wpa81" />
|
||||||
<package id="SQLitePCLRaw.bundle_green" version="1.1.8" targetFramework="portable45-net45+win8+wpa81" />
|
<package id="SQLitePCLRaw.bundle_green" version="1.1.8" targetFramework="portable45-net45+win8+wpa81" />
|
||||||
<package id="SQLitePCLRaw.core" version="1.1.8" targetFramework="portable45-net45+win8+wpa81" />
|
<package id="SQLitePCLRaw.core" version="1.1.8" targetFramework="portable45-net45+win8+wpa81" />
|
||||||
<package id="Validation" version="2.3.7" targetFramework="portable45-net45+win8+wpa81" />
|
<package id="Validation" version="2.3.7" targetFramework="portable45-net45+win8+wpa81" />
|
||||||
|
|||||||
50
src/UWP.Images/UWP.Images.projitems
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||||
|
<HasSharedItems>true</HasSharedItems>
|
||||||
|
<SharedGUID>0be54bbb-7772-4289-bd51-1fdbb0cc2446</SharedGUID>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Label="Configuration">
|
||||||
|
<Import_RootNamespace>UWP.Images</Import_RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)camera.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)cloudup.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)cog.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)cogs.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)cogs_selected.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)download.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)envelope.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)eye.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)eye_slash.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)fa_lock.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)fa_lock_selected.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)fingerprint.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)folder.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)globe.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)icon.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)ion_chevron_right.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)lightbulb.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)lock.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)logo.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)more.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)more_selected.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)notification_sm.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)paperclip.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)photo.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)plus.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)refresh.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)search.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)share.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)share_tools.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)star.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)star_selected.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)tools.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)tools_selected.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)trash.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)upload.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)user.png" />
|
||||||
|
<Content Include="$(MSBuildThisFileDirectory)yubikey.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
13
src/UWP.Images/UWP.Images.shproj
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>0be54bbb-7772-4289-bd51-1fdbb0cc2446</ProjectGuid>
|
||||||
|
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
|
||||||
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
|
||||||
|
<PropertyGroup />
|
||||||
|
<Import Project="UWP.Images.projitems" Label="Shared" />
|
||||||
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
BIN
src/UWP.Images/camera.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/UWP.Images/cloudup.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/UWP.Images/cog.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/UWP.Images/cogs.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/UWP.Images/cogs_selected.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/UWP.Images/download.png
Normal file
|
After Width: | Height: | Size: 690 B |
BIN
src/UWP.Images/envelope.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/UWP.Images/eye.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/UWP.Images/eye_slash.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/UWP.Images/fa_lock.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/UWP.Images/fa_lock_selected.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/UWP.Images/fingerprint.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
src/UWP.Images/folder.png
Normal file
|
After Width: | Height: | Size: 889 B |
BIN
src/UWP.Images/globe.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
src/UWP.Images/icon.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
src/UWP.Images/ion_chevron_right.png
Normal file
|
After Width: | Height: | Size: 881 B |
BIN
src/UWP.Images/lightbulb.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/UWP.Images/lock.png
Normal file
|
After Width: | Height: | Size: 810 B |
BIN
src/UWP.Images/logo.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
src/UWP.Images/more.png
Normal file
|
After Width: | Height: | Size: 921 B |
BIN
src/UWP.Images/more_selected.png
Normal file
|
After Width: | Height: | Size: 584 B |
BIN
src/UWP.Images/notification_sm.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/UWP.Images/paperclip.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/UWP.Images/photo.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/UWP.Images/plus.png
Normal file
|
After Width: | Height: | Size: 150 B |
BIN
src/UWP.Images/refresh.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/UWP.Images/search.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/UWP.Images/share.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/UWP.Images/share_tools.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
src/UWP.Images/star.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/UWP.Images/star_selected.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/UWP.Images/tools.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/UWP.Images/tools_selected.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/UWP.Images/trash.png
Normal file
|
After Width: | Height: | Size: 552 B |
BIN
src/UWP.Images/upload.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/UWP.Images/user.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/UWP.Images/yubikey.png
Normal file
|
After Width: | Height: | Size: 381 KiB |
8
src/UWP/App.xaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<Application
|
||||||
|
x:Class="Bit.UWP.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:UWP"
|
||||||
|
RequestedTheme="Light">
|
||||||
|
|
||||||
|
</Application>
|
||||||
185
src/UWP/App.xaml.cs
Normal file
@@ -0,0 +1,185 @@
|
|||||||
|
using Acr.UserDialogs;
|
||||||
|
using Bit.App.Abstractions;
|
||||||
|
using Bit.App.Repositories;
|
||||||
|
using Bit.App.Services;
|
||||||
|
using Bit.UWP.Services;
|
||||||
|
using FFImageLoading.Forms.WinUWP;
|
||||||
|
using Plugin.Connectivity;
|
||||||
|
using Plugin.Fingerprint;
|
||||||
|
using Plugin.Settings.Abstractions;
|
||||||
|
using PushNotification.Plugin;
|
||||||
|
using SimpleInjector;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.ApplicationModel;
|
||||||
|
using Windows.ApplicationModel.Activation;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
using XLabs.Ioc;
|
||||||
|
using XLabs.Ioc.SimpleInjectorContainer;
|
||||||
|
|
||||||
|
namespace Bit.UWP
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Provides application-specific behavior to supplement the default Application class.
|
||||||
|
/// </summary>
|
||||||
|
sealed partial class App : Application
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes the singleton application object. This is the first line of authored code
|
||||||
|
/// executed, and as such is the logical equivalent of main() or WinMain().
|
||||||
|
/// </summary>
|
||||||
|
public App()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
this.Suspending += OnSuspending;
|
||||||
|
if (!Resolver.IsSet)
|
||||||
|
{
|
||||||
|
SetIoc();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public ISettings Settings { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Invoked when the application is launched normally by the end user. Other entry points
|
||||||
|
/// will be used such as when the application is launched to open a specific file.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="e">Details about the launch request and process.</param>
|
||||||
|
protected override void OnLaunched(LaunchActivatedEventArgs e)
|
||||||
|
{
|
||||||
|
Frame rootFrame = Window.Current.Content as Frame;
|
||||||
|
|
||||||
|
// Do not repeat app initialization when the Window already has content,
|
||||||
|
// just ensure that the window is active
|
||||||
|
if (rootFrame == null)
|
||||||
|
{
|
||||||
|
// Create a Frame to act as the navigation context and navigate to the first page
|
||||||
|
rootFrame = new Frame();
|
||||||
|
|
||||||
|
rootFrame.NavigationFailed += OnNavigationFailed;
|
||||||
|
|
||||||
|
Xamarin.Forms.Forms.Init(e);
|
||||||
|
|
||||||
|
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
|
||||||
|
{
|
||||||
|
//TODO: Load state from previously suspended application
|
||||||
|
}
|
||||||
|
|
||||||
|
// Place the frame in the current Window
|
||||||
|
Window.Current.Content = rootFrame;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (e.PrelaunchActivated == false)
|
||||||
|
{
|
||||||
|
if (rootFrame.Content == null)
|
||||||
|
{
|
||||||
|
// When the navigation stack isn't restored navigate to the first page,
|
||||||
|
// configuring the new page by passing required information as a navigation
|
||||||
|
// parameter
|
||||||
|
rootFrame.Navigate(typeof(MainPage), e.Arguments);
|
||||||
|
}
|
||||||
|
// Ensure the current window is active
|
||||||
|
Window.Current.Activate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Invoked when Navigation to a certain page fails
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender">The Frame which failed navigation</param>
|
||||||
|
/// <param name="e">Details about the navigation failure</param>
|
||||||
|
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
|
||||||
|
{
|
||||||
|
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Invoked when application execution is being suspended. Application state is saved
|
||||||
|
/// without knowing whether the application will be terminated or resumed with the contents
|
||||||
|
/// of memory still intact.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender">The source of the suspend request.</param>
|
||||||
|
/// <param name="e">Details about the suspend request.</param>
|
||||||
|
private void OnSuspending(object sender, SuspendingEventArgs e)
|
||||||
|
{
|
||||||
|
var deferral = e.SuspendingOperation.GetDeferral();
|
||||||
|
//TODO: Save application state and stop any background activity
|
||||||
|
deferral.Complete();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void SetIoc()
|
||||||
|
{
|
||||||
|
var container = new Container();
|
||||||
|
|
||||||
|
// Services
|
||||||
|
container.RegisterSingleton<IDatabaseService, DatabaseService>();
|
||||||
|
container.RegisterSingleton<ISqlService, SqlService>();
|
||||||
|
container.RegisterSingleton<ISecureStorageService, SecureStorageService>();
|
||||||
|
container.RegisterSingleton<ICryptoService, CryptoService>();
|
||||||
|
container.RegisterSingleton<IKeyDerivationService, KeyDerivationService>();
|
||||||
|
container.RegisterSingleton<IAuthService, AuthService>();
|
||||||
|
container.RegisterSingleton<IFolderService, FolderService>();
|
||||||
|
container.RegisterSingleton<ILoginService, LoginService>();
|
||||||
|
container.RegisterSingleton<ISyncService, SyncService>();
|
||||||
|
container.RegisterSingleton<IDeviceActionService, DeviceActionService>();
|
||||||
|
container.RegisterSingleton<IAppIdService, AppIdService>();
|
||||||
|
container.RegisterSingleton<IPasswordGenerationService, PasswordGenerationService>();
|
||||||
|
container.RegisterSingleton<ILockService, LockService>();
|
||||||
|
container.RegisterSingleton<IAppInfoService, AppInfoService>();
|
||||||
|
container.RegisterSingleton<IGoogleAnalyticsService, GoogleAnalyticsService>();
|
||||||
|
container.RegisterSingleton<IDeviceInfoService, DeviceInfoService>();
|
||||||
|
container.RegisterSingleton<ILocalizeService, LocalizeService>();
|
||||||
|
container.RegisterSingleton<ILogService, LogService>();
|
||||||
|
container.RegisterSingleton<IHttpService, HttpService>();
|
||||||
|
container.RegisterSingleton<ITokenService, TokenService>();
|
||||||
|
container.RegisterSingleton<ISettingsService, SettingsService>();
|
||||||
|
container.RegisterSingleton<IAppSettingsService, AppSettingsService>();
|
||||||
|
container.RegisterSingleton<IReflectionService, ReflectionService>();
|
||||||
|
|
||||||
|
// Repositories
|
||||||
|
container.RegisterSingleton<IFolderRepository, FolderRepository>();
|
||||||
|
container.RegisterSingleton<IFolderApiRepository, FolderApiRepository>();
|
||||||
|
container.RegisterSingleton<ILoginRepository, LoginRepository>();
|
||||||
|
container.RegisterSingleton<IAttachmentRepository, AttachmentRepository>();
|
||||||
|
container.RegisterSingleton<IConnectApiRepository, ConnectApiRepository>();
|
||||||
|
container.RegisterSingleton<IDeviceApiRepository, DeviceApiRepository>();
|
||||||
|
container.RegisterSingleton<IAccountsApiRepository, AccountsApiRepository>();
|
||||||
|
container.RegisterSingleton<ICipherApiRepository, CipherApiRepository>();
|
||||||
|
container.RegisterSingleton<ISettingsRepository, SettingsRepository>();
|
||||||
|
container.RegisterSingleton<ISettingsApiRepository, SettingsApiRepository>();
|
||||||
|
container.RegisterSingleton<ITwoFactorApiRepository, TwoFactorApiRepository>();
|
||||||
|
container.RegisterSingleton<ISyncApiRepository, SyncApiRepository>();
|
||||||
|
|
||||||
|
// Other
|
||||||
|
container.RegisterSingleton(CrossConnectivity.Current);
|
||||||
|
container.RegisterSingleton(UserDialogs.Instance);
|
||||||
|
container.RegisterSingleton(CrossFingerprint.Current);
|
||||||
|
|
||||||
|
container.RegisterSingleton<ISettings>(Plugin.Settings.CrossSettings.Current);
|
||||||
|
|
||||||
|
// Push
|
||||||
|
var pushListener = new PushNotificationListener();
|
||||||
|
container.RegisterSingleton<IPushNotificationListener>(pushListener);
|
||||||
|
CrossPushNotification.Initialize(pushListener);
|
||||||
|
container.RegisterSingleton(CrossPushNotification.Current);
|
||||||
|
CachedImageRenderer.Init();
|
||||||
|
|
||||||
|
Resolver.SetResolver(new SimpleInjectorResolver(container));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
src/UWP/Assets/LockScreenLogo.scale-200.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/UWP/Assets/SplashScreen.scale-200.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
src/UWP/Assets/Square150x150Logo.scale-200.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/UWP/Assets/Square44x44Logo.scale-200.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/UWP/Assets/StoreLogo.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/UWP/Assets/Wide310x150Logo.scale-200.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
14
src/UWP/MainPage.xaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<forms:WindowsPage
|
||||||
|
x:Class="Bit.UWP.MainPage"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:UWP"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:forms="using:Xamarin.Forms.Platform.UWP"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</forms:WindowsPage>
|
||||||
52
src/UWP/MainPage.xaml.cs
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
using Acr.UserDialogs;
|
||||||
|
using Bit.App.Abstractions;
|
||||||
|
using Plugin.Connectivity.Abstractions;
|
||||||
|
using Plugin.Settings.Abstractions;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
using Xamarin.Forms.Platform.UWP;
|
||||||
|
using XLabs.Ioc;
|
||||||
|
|
||||||
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
|
||||||
|
|
||||||
|
namespace Bit.UWP
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class MainPage : WindowsPage
|
||||||
|
{
|
||||||
|
public MainPage()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
LoadApplication(new Bit.App.App(
|
||||||
|
null,
|
||||||
|
false,
|
||||||
|
Resolver.Resolve<IAuthService>(),
|
||||||
|
Resolver.Resolve<IConnectivity>(),
|
||||||
|
Resolver.Resolve<IUserDialogs>(),
|
||||||
|
Resolver.Resolve<IDatabaseService>(),
|
||||||
|
Resolver.Resolve<ISyncService>(),
|
||||||
|
Resolver.Resolve<ISettings>(),
|
||||||
|
Resolver.Resolve<ILockService>(),
|
||||||
|
Resolver.Resolve<IGoogleAnalyticsService>(),
|
||||||
|
Resolver.Resolve<ILocalizeService>(),
|
||||||
|
Resolver.Resolve<IAppInfoService>(),
|
||||||
|
Resolver.Resolve<IAppSettingsService>(),
|
||||||
|
Resolver.Resolve<IDeviceActionService>()));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
29
src/UWP/Package.appxmanifest
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
|
||||||
|
<Identity Name="fb84989a-4cf4-440f-a76d-ef3506d9c9ba" Publisher="CN=Hicham" Version="1.0.0.0" />
|
||||||
|
<mp:PhoneIdentity PhoneProductId="fb84989a-4cf4-440f-a76d-ef3506d9c9ba" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
|
||||||
|
<Properties>
|
||||||
|
<DisplayName>UWP</DisplayName>
|
||||||
|
<PublisherDisplayName>Hicham</PublisherDisplayName>
|
||||||
|
<Logo>Assets\StoreLogo.png</Logo>
|
||||||
|
</Properties>
|
||||||
|
<Dependencies>
|
||||||
|
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||||
|
</Dependencies>
|
||||||
|
<Resources>
|
||||||
|
<Resource Language="x-generate" />
|
||||||
|
</Resources>
|
||||||
|
<Applications>
|
||||||
|
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Bit.UWP.App">
|
||||||
|
<uap:VisualElements DisplayName="bitwarden" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="bitwarden" BackgroundColor="transparent">
|
||||||
|
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
|
||||||
|
</uap:DefaultTile>
|
||||||
|
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
||||||
|
</uap:VisualElements>
|
||||||
|
</Application>
|
||||||
|
</Applications>
|
||||||
|
<Capabilities>
|
||||||
|
<Capability Name="internetClient" />
|
||||||
|
<DeviceCapability Name="webcam" />
|
||||||
|
</Capabilities>
|
||||||
|
</Package>
|
||||||
29
src/UWP/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("UWP")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("UWP")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
31
src/UWP/Properties/Default.rd.xml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<!--
|
||||||
|
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
|
||||||
|
developers. However, you can modify these parameters to modify the behavior of the .NET Native
|
||||||
|
optimizer.
|
||||||
|
|
||||||
|
Runtime Directives are documented at https://go.microsoft.com/fwlink/?LinkID=391919
|
||||||
|
|
||||||
|
To fully enable reflection for App1.MyClass and all of its public/private members
|
||||||
|
<Type Name="App1.MyClass" Dynamic="Required All"/>
|
||||||
|
|
||||||
|
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
|
||||||
|
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
||||||
|
|
||||||
|
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
||||||
|
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
|
||||||
|
-->
|
||||||
|
|
||||||
|
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||||
|
<Application>
|
||||||
|
<!--
|
||||||
|
An Assembly element with Name="*Application*" applies to all assemblies in
|
||||||
|
the application package. The asterisks are not wildcards.
|
||||||
|
-->
|
||||||
|
<Assembly Name="*Application*" Dynamic="Required All" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Add your application specific runtime directives here. -->
|
||||||
|
|
||||||
|
|
||||||
|
</Application>
|
||||||
|
</Directives>
|
||||||
40
src/UWP/Services/AppInfoService.cs
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Windows.ApplicationModel;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class AppInfoService : IAppInfoService
|
||||||
|
{
|
||||||
|
|
||||||
|
public string Build
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
Package package = Package.Current;
|
||||||
|
PackageId packageId = package.Id;
|
||||||
|
PackageVersion version = packageId.Version;
|
||||||
|
|
||||||
|
return version.Build.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Version
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
Package package = Package.Current;
|
||||||
|
PackageId packageId = package.Id;
|
||||||
|
PackageVersion version = packageId.Version;
|
||||||
|
|
||||||
|
return $"{version.Major}.{version.Minor}.{version.Build}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool AutofillServiceEnabled => false;
|
||||||
|
}
|
||||||
|
}
|
||||||
88
src/UWP/Services/DeviceActionService.cs
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Windows.ApplicationModel.Core;
|
||||||
|
using Windows.ApplicationModel.DataTransfer;
|
||||||
|
using Windows.Storage;
|
||||||
|
using Windows.System;
|
||||||
|
using Windows.UI.Core;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class DeviceActionService : IDeviceActionService
|
||||||
|
{
|
||||||
|
public bool CanOpenFile(string fileName)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ClearCache()
|
||||||
|
{
|
||||||
|
Task.Run(async () =>
|
||||||
|
{
|
||||||
|
foreach (var item in await ApplicationData.Current.LocalCacheFolder.GetItemsAsync())
|
||||||
|
{
|
||||||
|
await item.DeleteAsync();
|
||||||
|
}
|
||||||
|
}).Wait();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CopyToClipboard(string text)
|
||||||
|
{
|
||||||
|
DataPackage dataPackage = new DataPackage();
|
||||||
|
dataPackage.RequestedOperation = DataPackageOperation.Copy;
|
||||||
|
dataPackage.SetText(text);
|
||||||
|
|
||||||
|
Clipboard.SetContent(dataPackage);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool OpenFile(byte[] fileData, string id, string fileName)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
//the method is synchronous in the interface, so the async method are run synchronously here
|
||||||
|
var storageFolder = ApplicationData.Current.LocalCacheFolder;
|
||||||
|
var file = storageFolder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting).AsTask().Result;
|
||||||
|
FileIO.WriteBytesAsync(file, fileData).AsTask().Wait();
|
||||||
|
Launcher.LaunchFileAsync(file, new LauncherOptions { DisplayApplicationPicker = true }).AsTask().Wait();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task SelectFileAsync()
|
||||||
|
{
|
||||||
|
var picker = new Windows.Storage.Pickers.FileOpenPicker
|
||||||
|
{
|
||||||
|
ViewMode = Windows.Storage.Pickers.PickerViewMode.Thumbnail,
|
||||||
|
SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.PicturesLibrary,
|
||||||
|
FileTypeFilter = { "*" }
|
||||||
|
};
|
||||||
|
|
||||||
|
return CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, async () =>
|
||||||
|
{
|
||||||
|
var file = await picker.PickSingleFileAsync();
|
||||||
|
if (file != null)
|
||||||
|
await SelectFileResult(file);
|
||||||
|
}).AsTask();
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task SelectFileResult(StorageFile file)
|
||||||
|
{
|
||||||
|
var buffer = await FileIO.ReadBufferAsync(file);
|
||||||
|
|
||||||
|
MessagingCenter.Send(Xamarin.Forms.Application.Current, "SelectFileResult",
|
||||||
|
new Tuple<byte[], string>(buffer.ToArray(), file.Name));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
43
src/UWP/Services/DeviceInfoService.cs
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using Microsoft.Toolkit.Uwp.Helpers;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Windows.Graphics.Display;
|
||||||
|
using Windows.Devices.SmartCards;
|
||||||
|
using Windows.Devices.Enumeration;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class DeviceInfoService : IDeviceInfoService
|
||||||
|
{
|
||||||
|
public string Model => SystemInformation.DeviceModel;
|
||||||
|
|
||||||
|
public int Version => SystemInformation.OperatingSystemVersion.Build;
|
||||||
|
|
||||||
|
public float Scale => (float)DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel;
|
||||||
|
|
||||||
|
public bool NfcEnabled
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (!Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Devices.SmartCards.SmartCardEmulator"))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return Task.Run(async () => await SmartCardEmulator.GetDefaultAsync()).Result != null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool HasCamera
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var cameraList = Task.Run(async () => await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture)).Result;
|
||||||
|
|
||||||
|
return cameraList?.Any() ?? false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
src/UWP/Services/GoogleAnalyticsService.cs
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class GoogleAnalyticsService : IGoogleAnalyticsService
|
||||||
|
{
|
||||||
|
public void Dispatch(Action completionHandler = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetAppOptOut(bool optOut)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TrackAppEvent(string eventName, string label = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TrackEvent(string category, string eventName, string label = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TrackException(string message, bool fatal)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TrackExtensionEvent(string eventName, string label = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TrackPage(string pageName)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
16
src/UWP/Services/HttpService.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Bit.App;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class HttpService : IHttpService
|
||||||
|
{
|
||||||
|
public ApiHttpClient ApiClient => new ApiHttpClient();
|
||||||
|
public IdentityHttpClient IdentityClient => new IdentityHttpClient();
|
||||||
|
}
|
||||||
|
}
|
||||||
37
src/UWP/Services/KeyDerivationService.cs
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using System.Security.Cryptography;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Windows.Security.Cryptography;
|
||||||
|
using Windows.Security.Cryptography.Core;
|
||||||
|
using Windows.Storage.Streams;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class KeyDerivationService : IKeyDerivationService
|
||||||
|
{
|
||||||
|
private const int KeyLength = 32; // 32 bytes
|
||||||
|
|
||||||
|
public byte[] DeriveKey(byte[] password, byte[] salt, uint rounds)
|
||||||
|
{
|
||||||
|
IBuffer buffSalt = salt.AsBuffer();
|
||||||
|
IBuffer buffPassword = password.AsBuffer();
|
||||||
|
KeyDerivationAlgorithmProvider provider = KeyDerivationAlgorithmProvider.OpenAlgorithm(KeyDerivationAlgorithmNames.Pbkdf2Sha256);
|
||||||
|
KeyDerivationParameters pbkdf2Params = KeyDerivationParameters.BuildForPbkdf2(buffSalt, rounds);
|
||||||
|
CryptographicKey keyOriginal = provider.CreateKey(buffPassword);
|
||||||
|
|
||||||
|
IBuffer keyDerived = CryptographicEngine.DeriveKeyMaterial(
|
||||||
|
keyOriginal,
|
||||||
|
pbkdf2Params,
|
||||||
|
KeyLength
|
||||||
|
);
|
||||||
|
|
||||||
|
return keyDerived.ToArray();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
30
src/UWP/Services/LocalizeService.cs
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Globalization;
|
||||||
|
using Windows.Globalization;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class LocalizeService : ILocalizeService
|
||||||
|
{
|
||||||
|
public CultureInfo GetCurrentCultureInfo()
|
||||||
|
{
|
||||||
|
return CultureInfo.CurrentCulture;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetLocale(CultureInfo locale)
|
||||||
|
{
|
||||||
|
CultureInfo.CurrentCulture = locale;
|
||||||
|
CultureInfo.CurrentUICulture = locale;
|
||||||
|
CultureInfo.DefaultThreadCurrentCulture = locale;
|
||||||
|
CultureInfo.DefaultThreadCurrentUICulture = locale;
|
||||||
|
|
||||||
|
ApplicationLanguages.PrimaryLanguageOverride = locale.TwoLetterISOLanguageName;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
18
src/UWP/Services/LogService.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class LogService : ILogService
|
||||||
|
{
|
||||||
|
public void WriteLine(string message)
|
||||||
|
{
|
||||||
|
Debug.WriteLine(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
17
src/UWP/Services/ReflectionService.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
using Bit.App.Abstractions;
|
||||||
|
using Bit.App.Controls;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class ReflectionService : IReflectionService
|
||||||
|
{
|
||||||
|
public Func<double, double, SizeRequest> GetVisualElementOnSizeRequest(ExtendedTableView tableView)
|
||||||
|
{
|
||||||
|
//todo
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
58
src/UWP/Services/SecureStorageService.cs
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Windows.Security.Credentials;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class SecureStorageService : ISecureStorageService
|
||||||
|
{
|
||||||
|
private const string ResourceName = "bitwarden";
|
||||||
|
private PasswordVault _vault = new PasswordVault();
|
||||||
|
|
||||||
|
public bool Contains(string key)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var entry = _vault.Retrieve(ResourceName, key);
|
||||||
|
return entry != null;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Delete(string key)
|
||||||
|
{
|
||||||
|
var entry = _vault.Retrieve(ResourceName, key);
|
||||||
|
if (entry != null)
|
||||||
|
_vault.Remove(entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] Retrieve(string key)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var entry = _vault.Retrieve(ResourceName, key);
|
||||||
|
if (entry != null)
|
||||||
|
return Convert.FromBase64String(entry.Password);
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Store(string key, byte[] dataBytes)
|
||||||
|
{
|
||||||
|
var data = Convert.ToBase64String(dataBytes);
|
||||||
|
_vault.Add(new PasswordCredential(ResourceName, key, data));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
22
src/UWP/Services/SqlService.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using Bit.App.Abstractions;
|
||||||
|
using SQLite;
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using Windows.ApplicationModel;
|
||||||
|
using Windows.Storage;
|
||||||
|
|
||||||
|
namespace Bit.UWP.Services
|
||||||
|
{
|
||||||
|
public class SqlService : ISqlService
|
||||||
|
{
|
||||||
|
public SQLiteConnection GetConnection()
|
||||||
|
{
|
||||||
|
var sqliteFilename = "bitwarden.db3";
|
||||||
|
|
||||||
|
string path = Path.Combine(ApplicationData.Current.LocalFolder.Path, sqliteFilename);
|
||||||
|
var conn = new SQLite.SQLiteConnection(path, SQLiteOpenFlags.ReadWrite | SQLiteOpenFlags.Create | SQLiteOpenFlags.FullMutex | SQLiteOpenFlags.SharedCache);
|
||||||
|
// Return the database connection
|
||||||
|
return conn;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
210
src/UWP/UWP.csproj
Normal file
@@ -0,0 +1,210 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
|
<ProjectGuid>{3A2D5669-ED71-4F2B-BA85-2D36BAA05141}</ProjectGuid>
|
||||||
|
<OutputType>AppContainerExe</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Bit.UWP</RootNamespace>
|
||||||
|
<AssemblyName>Bit.UWP</AssemblyName>
|
||||||
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
|
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||||
|
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.15063.0</TargetPlatformVersion>
|
||||||
|
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
|
||||||
|
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
|
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
|
||||||
|
<PackageCertificateKeyFile>UWP_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
|
<OutputPath>bin\x86\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||||
|
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>ARM</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||||
|
<OutputPath>bin\x64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>;2008</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="App.xaml.cs">
|
||||||
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="MainPage.xaml.cs">
|
||||||
|
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="Services\AppInfoService.cs" />
|
||||||
|
<Compile Include="Services\DeviceActionService.cs" />
|
||||||
|
<Compile Include="Services\DeviceInfoService.cs" />
|
||||||
|
<Compile Include="Services\GoogleAnalyticsService.cs" />
|
||||||
|
<Compile Include="Services\HttpService.cs" />
|
||||||
|
<Compile Include="Services\ReflectionService.cs" />
|
||||||
|
<Compile Include="Services\SecureStorageService.cs" />
|
||||||
|
<Compile Include="Services\KeyDerivationService.cs" />
|
||||||
|
<Compile Include="Services\LocalizeService.cs" />
|
||||||
|
<Compile Include="Services\LogService.cs" />
|
||||||
|
<Compile Include="Services\SqlService.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<AppxManifest Include="Package.appxmanifest">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</AppxManifest>
|
||||||
|
<None Include="UWP_TemporaryKey.pfx" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Properties\Default.rd.xml" />
|
||||||
|
<Content Include="Assets\LockScreenLogo.scale-200.png" />
|
||||||
|
<Content Include="Assets\SplashScreen.scale-200.png" />
|
||||||
|
<Content Include="Assets\Square150x150Logo.scale-200.png" />
|
||||||
|
<Content Include="Assets\Square44x44Logo.scale-200.png" />
|
||||||
|
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
|
||||||
|
<Content Include="Assets\StoreLogo.png" />
|
||||||
|
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ApplicationDefinition Include="App.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</ApplicationDefinition>
|
||||||
|
<Page Include="MainPage.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Acr.UserDialogs">
|
||||||
|
<Version>6.3.10</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||||
|
<Version>5.4.0</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Microsoft.Toolkit.Uwp">
|
||||||
|
<Version>2.0.0</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Newtonsoft.Json">
|
||||||
|
<Version>9.0.1</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="PCLCrypto">
|
||||||
|
<Version>2.0.147</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Plugin.Fingerprint">
|
||||||
|
<Version>1.4.5</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="SimpleInjector">
|
||||||
|
<Version>4.0.8</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="sqlite-net-pcl">
|
||||||
|
<Version>1.5.166-beta</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Xam.Plugin.Connectivity">
|
||||||
|
<Version>3.0.2</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Xam.Plugin.PushNotification">
|
||||||
|
<Version>1.2.4</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Xam.Plugins.Settings">
|
||||||
|
<Version>3.0.1</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Xamarin.FFImageLoading.Forms">
|
||||||
|
<Version>2.2.9</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Xamarin.Forms">
|
||||||
|
<Version>2.3.4.267</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="XLabs.IoC">
|
||||||
|
<Version>2.0.5782</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="XLabs.IoC.SimpleInjector">
|
||||||
|
<Version>2.0.5782</Version>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\App\App.csproj">
|
||||||
|
<Project>{b490c5da-639e-4994-abd2-54222b8a348e}</Project>
|
||||||
|
<Name>App</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<SDKReference Include="WindowsMobile, Version=10.0.15063.0">
|
||||||
|
<Name>Windows Mobile Extensions for the UWP</Name>
|
||||||
|
</SDKReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="..\UWP.Images\UWP.Images.projitems" Label="Shared" />
|
||||||
|
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||||
|
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
@@ -53,8 +53,8 @@
|
|||||||
<Reference Include="Plugin.Settings.Abstractions, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="Plugin.Settings.Abstractions, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\Xam.Plugins.Settings.3.0.1\lib\Xamarin.iOS10\Plugin.Settings.Abstractions.dll</HintPath>
|
<HintPath>..\..\packages\Xam.Plugins.Settings.3.0.1\lib\Xamarin.iOS10\Plugin.Settings.Abstractions.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SQLite-net, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="SQLite-net, Version=1.5.166.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\sqlite-net-pcl.1.4.118\lib\netstandard1.1\SQLite-net.dll</HintPath>
|
<HintPath>..\..\packages\sqlite-net-pcl.1.5.166-beta\lib\netstandard1.1\SQLite-net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SQLitePCLRaw.batteries_green, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a84b7dcfb1391f7f, processorArchitecture=MSIL">
|
<Reference Include="SQLitePCLRaw.batteries_green, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a84b7dcfb1391f7f, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\packages\SQLitePCLRaw.bundle_green.1.1.8\lib\Xamarin.iOS10\SQLitePCLRaw.batteries_green.dll</HintPath>
|
<HintPath>..\..\packages\SQLitePCLRaw.bundle_green.1.1.8\lib\Xamarin.iOS10\SQLitePCLRaw.batteries_green.dll</HintPath>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<packages>
|
<packages>
|
||||||
<package id="HockeySDK.Xamarin" version="4.1.5" targetFramework="xamarinios10" />
|
<package id="HockeySDK.Xamarin" version="4.1.5" targetFramework="xamarinios10" />
|
||||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="xamarinios10" />
|
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="xamarinios10" />
|
||||||
<package id="sqlite-net-pcl" version="1.4.118" targetFramework="xamarinios10" />
|
<package id="sqlite-net-pcl" version="1.5.166-beta" targetFramework="xamarinios10" />
|
||||||
<package id="SQLitePCLRaw.bundle_green" version="1.1.8" targetFramework="xamarinios10" />
|
<package id="SQLitePCLRaw.bundle_green" version="1.1.8" targetFramework="xamarinios10" />
|
||||||
<package id="SQLitePCLRaw.core" version="1.1.8" targetFramework="xamarinios10" />
|
<package id="SQLitePCLRaw.core" version="1.1.8" targetFramework="xamarinios10" />
|
||||||
<package id="SQLitePCLRaw.provider.sqlite3.ios_unified" version="1.1.8" targetFramework="xamarinios10" />
|
<package id="SQLitePCLRaw.provider.sqlite3.ios_unified" version="1.1.8" targetFramework="xamarinios10" />
|
||||||
|
|||||||