1
0
mirror of https://github.com/bitwarden/mobile.git synced 2025-01-22 21:11:27 +01:00
bitwarden-mobile/src/Android/increment-version.ps1

8 lines
311 B
PowerShell
Raw Normal View History

2017-02-05 03:35:02 +01:00
$rootPath = $args[0];
$newVersionCode = $args[1];
2017-02-05 03:19:54 +01:00
$xml=New-Object XML;
2017-02-05 03:40:46 +01:00
$xml.Load($rootPath + "\src\Android\Properties\AndroidManifest.xml");
2017-02-05 03:19:54 +01:00
$node=$xml.SelectNodes("/manifest");
$node.SetAttribute("android:versionCode", $newVersionCode);
2017-02-05 03:40:46 +01:00
$xml.Save($rootPath + "\src\Android\Properties\AndroidManifest.xml");