From d4749c139b04ceeed8675f5898ca4e8c9ddf670b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 4 Feb 2017 21:19:54 -0500 Subject: [PATCH] increment version script --- src/Android/Android.csproj | 1 + src/Android/Properties/AndroidManifest.xml | 23 +++++++++++----------- src/Android/increment-version.ps1 | 8 ++++++++ 3 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 src/Android/increment-version.ps1 diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index 4615a1c7e..d21e7b4a4 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -336,6 +336,7 @@ Designer + Designer diff --git a/src/Android/Properties/AndroidManifest.xml b/src/Android/Properties/AndroidManifest.xml index d49342516..a200878a7 100644 --- a/src/Android/Properties/AndroidManifest.xml +++ b/src/Android/Properties/AndroidManifest.xml @@ -1,13 +1,14 @@  - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Android/increment-version.ps1 b/src/Android/increment-version.ps1 new file mode 100644 index 000000000..4b91eb1c8 --- /dev/null +++ b/src/Android/increment-version.ps1 @@ -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"); \ No newline at end of file