mirror of
https://github.com/bitwarden/android.git
synced 2024-12-26 02:48:29 +03:00
* Set custom HttpClient for FFImageLoading to set AndroidClientHandler in order to load icons from icon server due to a problem with the SSL certificate when using the default HttpClientHandler #1640 * Using cleanup for FDroid #1640 * Added System.Net.Http on Android.csproj for FDroid only to check if that fixes the build
This commit is contained in:
parent
1c006d6218
commit
1b60ac3699
2 changed files with 5 additions and 1 deletions
|
@ -68,6 +68,7 @@
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="System.Net.Http" Condition="'$(Configuration)'=='FDroid'" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Plugin.CurrentActivity">
|
<PackageReference Include="Plugin.CurrentActivity">
|
||||||
|
|
|
@ -16,6 +16,8 @@ using Bit.Droid.Utilities;
|
||||||
using Plugin.CurrentActivity;
|
using Plugin.CurrentActivity;
|
||||||
using Plugin.Fingerprint;
|
using Plugin.Fingerprint;
|
||||||
using Xamarin.Android.Net;
|
using Xamarin.Android.Net;
|
||||||
|
using System.Net.Http;
|
||||||
|
using System.Net;
|
||||||
#if !FDROID
|
#if !FDROID
|
||||||
using Android.Gms.Security;
|
using Android.Gms.Security;
|
||||||
#endif
|
#endif
|
||||||
|
@ -78,7 +80,8 @@ namespace Bit.Droid
|
||||||
FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration
|
FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration
|
||||||
{
|
{
|
||||||
FadeAnimationEnabled = false,
|
FadeAnimationEnabled = false,
|
||||||
FadeAnimationForCachedImages = false
|
FadeAnimationForCachedImages = false,
|
||||||
|
HttpClient = new HttpClient(new AndroidClientHandler() { AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate })
|
||||||
});
|
});
|
||||||
ZXing.Net.Mobile.Forms.Android.Platform.Init();
|
ZXing.Net.Mobile.Forms.Android.Platform.Init();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue