mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-20 15:57:45 +01:00
remove libs for fdroid build
This commit is contained in:
parent
f7e2382847
commit
d4aaa547a7
@ -9,6 +9,7 @@ after_build:
|
|||||||
- IF DEFINED keystore_dec_secret secure-file\tools\secure-file -decrypt src\Android\8bit.keystore.enc -secret %keystore_dec_secret%
|
- IF DEFINED keystore_dec_secret secure-file\tools\secure-file -decrypt src\Android\8bit.keystore.enc -secret %keystore_dec_secret%
|
||||||
- IF DEFINED keystore_password msbuild "/t:SignAndroidPackage" "/p:Configuration=Release" "/p:AndroidKeyStore=true" "/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=%keystore_password%" "/p:AndroidSigningKeyStore=8bit.keystore" "/p:AndroidSigningStorePass=%keystore_password%" "src\Android\Android.csproj"
|
- IF DEFINED keystore_password msbuild "/t:SignAndroidPackage" "/p:Configuration=Release" "/p:AndroidKeyStore=true" "/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=%keystore_password%" "/p:AndroidSigningKeyStore=8bit.keystore" "/p:AndroidSigningStorePass=%keystore_password%" "src\Android\Android.csproj"
|
||||||
- ps: IF($env:keystore_dec_secret) { copy-item src\Android\bin\Release\com.x8bit.bitwarden-Signed.apk .\com.x8bit.bitwarden-$($env:APPVEYOR_BUILD_NUMBER).apk }
|
- ps: IF($env:keystore_dec_secret) { copy-item src\Android\bin\Release\com.x8bit.bitwarden-Signed.apk .\com.x8bit.bitwarden-$($env:APPVEYOR_BUILD_NUMBER).apk }
|
||||||
|
- ps: IF($env:keystore_dec_secret) { .\src\Android\fdroid-remove-libs.ps1 $($env:APPVEYOR_BUILD_FOLDER) }
|
||||||
- IF DEFINED keystore_password msbuild "/t:SignAndroidPackage" "/p:Configuration=FDroid" "/p:AndroidKeyStore=true" "/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=%keystore_password%" "/p:AndroidSigningKeyStore=8bit.keystore" "/p:AndroidSigningStorePass=%keystore_password%" "src\Android\Android.csproj"
|
- IF DEFINED keystore_password msbuild "/t:SignAndroidPackage" "/p:Configuration=FDroid" "/p:AndroidKeyStore=true" "/p:AndroidSigningKeyAlias=bitwarden" "/p:AndroidSigningKeyPass=%keystore_password%" "/p:AndroidSigningKeyStore=8bit.keystore" "/p:AndroidSigningStorePass=%keystore_password%" "src\Android\Android.csproj"
|
||||||
- ps: IF($env:keystore_dec_secret) { copy-item src\Android\bin\FDroid\com.x8bit.bitwarden-Signed.apk .\com.x8bit.bitwarden-fdroid-$($env:APPVEYOR_BUILD_NUMBER).apk }
|
- ps: IF($env:keystore_dec_secret) { copy-item src\Android\bin\FDroid\com.x8bit.bitwarden-Signed.apk .\com.x8bit.bitwarden-fdroid-$($env:APPVEYOR_BUILD_NUMBER).apk }
|
||||||
on_success:
|
on_success:
|
||||||
|
@ -155,6 +155,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="8bit.keystore.enc" />
|
<None Include="8bit.keystore.enc" />
|
||||||
<GoogleServicesJson Include="google-services.json" />
|
<GoogleServicesJson Include="google-services.json" />
|
||||||
|
<None Include="fdroid-remove-libs.ps1" />
|
||||||
<None Include="google-services.json.enc" />
|
<None Include="google-services.json.enc" />
|
||||||
<None Include="increment-version.ps1" />
|
<None Include="increment-version.ps1" />
|
||||||
<None Include="Resources\AboutResources.txt" />
|
<None Include="Resources\AboutResources.txt" />
|
||||||
@ -872,6 +873,12 @@
|
|||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Xamarin.Firebase.Messaging">
|
||||||
|
<Version>42.1021.1</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Xamarin.GooglePlayServices.Analytics">
|
||||||
|
<Version>42.1021.1</Version>
|
||||||
|
</PackageReference>
|
||||||
<PackageReference Include="SimpleInjector">
|
<PackageReference Include="SimpleInjector">
|
||||||
<Version>4.0.12</Version>
|
<Version>4.0.12</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
@ -882,14 +889,6 @@
|
|||||||
<PackageReference Include="Portable.BouncyCastle" Version="1.8.1.3" />
|
<PackageReference Include="Portable.BouncyCastle" Version="1.8.1.3" />
|
||||||
<PackageReference Include="Plugin.CurrentActivity" Version="1.0.1" />
|
<PackageReference Include="Plugin.CurrentActivity" Version="1.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Condition="'$(Configuration)|$(Platform)' != 'FDroid|AnyCPU'">
|
|
||||||
<PackageReference Include="Xamarin.Firebase.Messaging">
|
|
||||||
<Version>42.1021.1</Version>
|
|
||||||
</PackageReference>
|
|
||||||
<PackageReference Include="Xamarin.GooglePlayServices.Analytics">
|
|
||||||
<Version>42.1021.1</Version>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AndroidResource Include="Resources\drawable\bottom_nav_bg.xml" />
|
<AndroidResource Include="Resources\drawable\bottom_nav_bg.xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
33
src/Android/Resources/Resource.Designer.cs
generated
33
src/Android/Resources/Resource.Designer.cs
generated
@ -6475,17 +6475,17 @@ namespace Bit.Android
|
|||||||
// aapt resource value: 0x7f090051
|
// aapt resource value: 0x7f090051
|
||||||
public const int ApplicationName = 2131296337;
|
public const int ApplicationName = 2131296337;
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900b2
|
// aapt resource value: 0x7f0900ab
|
||||||
public const int AutoFillServiceDescription = 2131296434;
|
public const int AutoFillServiceDescription = 2131296427;
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900b1
|
// aapt resource value: 0x7f0900aa
|
||||||
public const int AutoFillServiceSummary = 2131296433;
|
public const int AutoFillServiceSummary = 2131296426;
|
||||||
|
|
||||||
// aapt resource value: 0x7f090050
|
// aapt resource value: 0x7f090050
|
||||||
public const int Hello = 2131296336;
|
public const int Hello = 2131296336;
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900b3
|
// aapt resource value: 0x7f0900ac
|
||||||
public const int MyVault = 2131296435;
|
public const int MyVault = 2131296428;
|
||||||
|
|
||||||
// aapt resource value: 0x7f090027
|
// aapt resource value: 0x7f090027
|
||||||
public const int abc_action_bar_home_description = 2131296295;
|
public const int abc_action_bar_home_description = 2131296295;
|
||||||
@ -6640,27 +6640,6 @@ namespace Bit.Android
|
|||||||
// aapt resource value: 0x7f09000f
|
// aapt resource value: 0x7f09000f
|
||||||
public const int common_signin_button_text_long = 2131296271;
|
public const int common_signin_button_text_long = 2131296271;
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900ac
|
|
||||||
public const int default_web_client_id = 2131296428;
|
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900ad
|
|
||||||
public const int firebase_database_url = 2131296429;
|
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900aa
|
|
||||||
public const int gcm_defaultSenderId = 2131296426;
|
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900ae
|
|
||||||
public const int google_api_key = 2131296430;
|
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900ab
|
|
||||||
public const int google_app_id = 2131296427;
|
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900af
|
|
||||||
public const int google_crash_reporting_api_key = 2131296431;
|
|
||||||
|
|
||||||
// aapt resource value: 0x7f0900b0
|
|
||||||
public const int google_storage_bucket = 2131296432;
|
|
||||||
|
|
||||||
// aapt resource value: 0x7f090052
|
// aapt resource value: 0x7f090052
|
||||||
public const int hockeyapp_crash_dialog_app_name_fallback = 2131296338;
|
public const int hockeyapp_crash_dialog_app_name_fallback = 2131296338;
|
||||||
|
|
||||||
|
27
src/Android/fdroid-remove-libs.ps1
Normal file
27
src/Android/fdroid-remove-libs.ps1
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
$rootPath = $args[0];
|
||||||
|
|
||||||
|
# Android.csproj
|
||||||
|
|
||||||
|
$xml=New-Object XML;
|
||||||
|
$xml.Load($rootPath + "\src\Android\Android.csproj");
|
||||||
|
|
||||||
|
$ns=New-Object System.Xml.XmlNamespaceManager($xml.NameTable);
|
||||||
|
$ns.AddNamespace("ns", $xml.DocumentElement.NamespaceURI);
|
||||||
|
|
||||||
|
$firebaseNode=$xml.SelectSingleNode("/ns:Project/ns:ItemGroup/ns:PackageReference[@Include='Xamarin.Firebase.Messaging']", $ns);
|
||||||
|
$firebaseNode.ParentNode.RemoveChild($firebaseNode);
|
||||||
|
|
||||||
|
$playServiceNode=$xml.SelectSingleNode("/ns:Project/ns:ItemGroup/ns:PackageReference[@Include='Xamarin.GooglePlayServices.Analytics']", $ns);
|
||||||
|
$playServiceNode.ParentNode.RemoveChild($playServiceNode);
|
||||||
|
|
||||||
|
$xml.Save($rootPath + "\src\Android\Android.csproj");
|
||||||
|
|
||||||
|
# App.csproj
|
||||||
|
|
||||||
|
$xml=New-Object XML;
|
||||||
|
$xml.Load($rootPath + "\src\App\App.csproj");
|
||||||
|
|
||||||
|
$hockeyNode=$xml.SelectSingleNode("/Project/ItemGroup/PackageReference[@Include='HockeySDK.Xamarin']");
|
||||||
|
$hockeyNode.ParentNode.RemoveChild($hockeyNode);
|
||||||
|
|
||||||
|
$xml.Save($rootPath + "\src\App\App.csproj");
|
@ -25,6 +25,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="HockeySDK.Xamarin" Version="5.0.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
|
||||||
<PackageReference Include="PCLCrypto" Version="2.0.147" />
|
<PackageReference Include="PCLCrypto" Version="2.0.147" />
|
||||||
<PackageReference Include="Plugin.Fingerprint" Version="1.4.6-beta4" />
|
<PackageReference Include="Plugin.Fingerprint" Version="1.4.6-beta4" />
|
||||||
@ -39,10 +40,6 @@
|
|||||||
<PackageReference Include="ZXing.Net.Mobile.Forms" Version="2.1.47" />
|
<PackageReference Include="ZXing.Net.Mobile.Forms" Version="2.1.47" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition="'$(Configuration)|$(Platform)' != 'FDroid|AnyCPU'">
|
|
||||||
<PackageReference Include="HockeySDK.Xamarin" Version="5.0.0" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Update="Resources\AppResources.cs.Designer.cs">
|
<Compile Update="Resources\AppResources.cs.Designer.cs">
|
||||||
<DependentUpon>AppResources.cs.resx</DependentUpon>
|
<DependentUpon>AppResources.cs.resx</DependentUpon>
|
||||||
|
Loading…
Reference in New Issue
Block a user