mirror of
https://github.com/bitwarden/android.git
synced 2024-12-18 23:31:52 +03:00
increment version script
This commit is contained in:
parent
63d6c32063
commit
d4749c139b
3 changed files with 21 additions and 11 deletions
|
@ -336,6 +336,7 @@
|
|||
<None Include="app.config">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="increment-version.ps1" />
|
||||
<None Include="packages.config">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.x8bit.bitwarden" android:versionName="1.2.1" android:installLocation="auto" android:versionCode="10">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.x8bit.bitwarden" android:versionName="1.2.1" android:installLocation="auto" android:versionCode="101">
|
||||
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="23" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
|
||||
|
@ -9,5 +9,6 @@
|
|||
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
|
||||
<uses-permission android:name="com.x8bit.bitwarden.permission.C2D_MESSAGE" />
|
||||
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
||||
<application android:label="bitwarden" android:theme="@style/BitwardenTheme"></application>
|
||||
<application android:label="bitwarden" android:theme="@style/BitwardenTheme">
|
||||
</application>
|
||||
</manifest>
|
8
src/Android/increment-version.ps1
Normal file
8
src/Android/increment-version.ps1
Normal file
|
@ -0,0 +1,8 @@
|
|||
$rootPath = "%APPVEYOR_BUILD_FOLDER%";
|
||||
$newVersionCode = "%APPVEYOR_BUILD_NUMBER%";
|
||||
|
||||
$xml=New-Object XML;
|
||||
$xml.Load($rootPath + "src\Android\Properties\AndroidManifest.xml");
|
||||
$node=$xml.SelectNodes("/manifest");
|
||||
$node.SetAttribute("android:versionCode", $newVersionCode);
|
||||
$xml.Save($rootPath + "src\Android\Properties\AndroidManifest.xml");
|
Loading…
Reference in a new issue