From 449f718a8db9b1a59df4af3749309f142f6e256c Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Wed, 20 Jul 2022 21:16:02 -0400 Subject: [PATCH 01/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2833dc52..2466c3e9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,7 @@ pr: - master pool: - vmImage: 'macOS-10.14' + vmImage: 'macOS-latest' steps: - task: Gradle@2 From 0a4b215c67d0abba2581b3b70eb74048cfdd45b5 Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Wed, 20 Jul 2022 22:37:00 -0400 Subject: [PATCH 02/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2466c3e9..bbf8320a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,7 @@ pr: - master pool: - vmImage: 'macOS-latest' + vmImage: 'macOS-10.15' steps: - task: Gradle@2 From 8412475543a92a5ca31fcfd93acf9ebcc749365d Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Wed, 20 Jul 2022 22:54:48 -0400 Subject: [PATCH 03/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bbf8320a..13005585 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,7 @@ pr: - master pool: - vmImage: 'macOS-10.15' + vmImage: 'macOS-11' steps: - task: Gradle@2 From 528d93138733e85e8fab769d196865b37c2d3034 Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Thu, 21 Jul 2022 08:54:05 -0400 Subject: [PATCH 04/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 13005585..ae72434d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,6 +10,8 @@ pr: pool: vmImage: 'macOS-11' + name: Azure Pipelines + demands: java steps: - task: Gradle@2 From 0e9ac3dd699e81cd034f1d32fcc1fad1a72fd5ae Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Thu, 21 Jul 2022 08:58:04 -0400 Subject: [PATCH 05/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ae72434d..c6231b0c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,6 @@ pr: - master pool: - vmImage: 'macOS-11' name: Azure Pipelines demands: java From 2321d5b2f02affeee599f2ca32e2967ab374a83a Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Thu, 21 Jul 2022 13:56:58 -0400 Subject: [PATCH 06/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c6231b0c..e5cab4d7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,7 +20,7 @@ steps: #!/usr/bin/env bash # Install AVD files - echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-27;google_apis;x86' + echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;google_apis;x86' # Create emulator echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-27;google_apis;x86' --force From 47dc9cf3d30a1734cfb2d0a9029be8b24f9d6db2 Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Thu, 21 Jul 2022 14:12:38 -0400 Subject: [PATCH 07/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e5cab4d7..d250d4f0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,10 +20,10 @@ steps: #!/usr/bin/env bash # Install AVD files - echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;google_apis;x86' + echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-28;google_apis;x86' # Create emulator - echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-27;google_apis;x86' --force + echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-28;google_apis;x86' --force $ANDROID_HOME/emulator/emulator -list-avds From d7cff8cd540712a59b950ed9d0f85610d658292e Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Fri, 22 Jul 2022 15:20:40 -0400 Subject: [PATCH 08/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d250d4f0..58ac4228 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,32 @@ pool: steps: - task: Gradle@2 - displayName: 'gradlew build' + displayName: 'gradlew clean build' + +- bash: | + ndkVersion=21.3.6528147 + echo "Checking for NDK $ndkVersion" + + if [[ -f "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" ]] + then + sdkManagerCmd=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager + else + sdkManagerCmd=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager.bat + fi + + sdkManager=$($sdkManagerCmd --list | grep -o "ndk;$ndkVersion") + + if [ $sdkManager -eq "ndk;$ndkVersion" ] + then + echo "NDK found" + else + $sdkManagerCmd --install "ndk;$ndkVersion" + fi + + echo "Checking all SDKs installed" + $sdkManagerCmd --list + displayName: 'Installing NDK' + - bash: | #!/usr/bin/env bash From 0d59ca5e63abbc868481829330b1fbab94b3687b Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Fri, 22 Jul 2022 15:36:25 -0400 Subject: [PATCH 09/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 58ac4228..2aabc383 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,39 +16,14 @@ steps: - task: Gradle@2 displayName: 'gradlew clean build' -- bash: | - ndkVersion=21.3.6528147 - echo "Checking for NDK $ndkVersion" - - if [[ -f "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" ]] - then - sdkManagerCmd=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager - else - sdkManagerCmd=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager.bat - fi - - sdkManager=$($sdkManagerCmd --list | grep -o "ndk;$ndkVersion") - - if [ $sdkManager -eq "ndk;$ndkVersion" ] - then - echo "NDK found" - else - $sdkManagerCmd --install "ndk;$ndkVersion" - fi - - echo "Checking all SDKs installed" - $sdkManagerCmd --list - displayName: 'Installing NDK' - - - bash: | #!/usr/bin/env bash # Install AVD files - echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-28;google_apis;x86' + echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-30;google_apis;x86' # Create emulator - echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-28;google_apis;x86' --force + echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-30;google_apis;x86' --force $ANDROID_HOME/emulator/emulator -list-avds From ea0c24ebcc60bed124191d9e4478a5a18338b93c Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Fri, 22 Jul 2022 15:44:55 -0400 Subject: [PATCH 10/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2aabc383..bcbed786 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,8 +9,7 @@ pr: - master pool: - name: Azure Pipelines - demands: java + vmImage: macos-latest steps: - task: Gradle@2 From 83adabbc7e28625c7b5c030dd9807c58c5ad2923 Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Fri, 22 Jul 2022 16:06:02 -0400 Subject: [PATCH 11/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bcbed786..d865e559 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,10 +19,10 @@ steps: #!/usr/bin/env bash # Install AVD files - echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-30;google_apis;x86' + echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;google_apis;x86' # Create emulator - echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-30;google_apis;x86' --force + echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-29;google_apis;x86' --force $ANDROID_HOME/emulator/emulator -list-avds From e9201841376993bf671d9e2dbd87842656c27a8e Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Fri, 22 Jul 2022 16:10:15 -0400 Subject: [PATCH 12/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d865e559..2201b73b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,7 +9,8 @@ pr: - master pool: - vmImage: macos-latest + name: Azure Pipelines + demands: java steps: - task: Gradle@2 From e175875b57ed470ada59e3e9d98f528196281a99 Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Fri, 22 Jul 2022 16:19:26 -0400 Subject: [PATCH 13/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2201b73b..60488e38 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,8 +13,13 @@ pool: demands: java steps: -- task: Gradle@2 +- task: Gradle@3 displayName: 'gradlew clean build' + inputs: + tasks: clean build + publishJUnitResults: false + jdkVersionOption: 1.11 + gradleOptions: '-Xmx4608M' - bash: | #!/usr/bin/env bash From 97ecfd49f64dedc83a2556dca79748b1f4089744 Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Fri, 22 Jul 2022 16:42:37 -0400 Subject: [PATCH 14/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 60488e38..c9ba5373 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -21,29 +21,7 @@ steps: jdkVersionOption: 1.11 gradleOptions: '-Xmx4608M' -- bash: | - #!/usr/bin/env bash - - # Install AVD files - echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;google_apis;x86' - - # Create emulator - echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-29;google_apis;x86' --force - - $ANDROID_HOME/emulator/emulator -list-avds - - echo "Starting emulator" - - # Start emulator in background - nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -no-snapshot > /dev/null 2>&1 & - $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82' - - $ANDROID_HOME/platform-tools/adb devices - - echo "Emulator started" - displayName: 'Starting emulator' - -- task: Gradle@2 +- task: Gradle@3 displayName: 'gradlew -Pcoverage jacocoCoverageReport' inputs: tasks: '-Pcoverage jacocoCoverageReport' From 77b06770f6b48426e5ef82cd4e934e1608ba2471 Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Mon, 25 Jul 2022 18:43:43 -0400 Subject: [PATCH 15/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c9ba5373..91247a04 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -21,6 +21,28 @@ steps: jdkVersionOption: 1.11 gradleOptions: '-Xmx4608M' +- bash: | + #!/usr/bin/env bash + + # Install AVD files + echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-28;google_apis;x86' + + # Create emulator + echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-28;google_apis;x86' --force + + $ANDROID_HOME/emulator/emulator -list-avds + + echo "Starting emulator" + + # Start emulator in background + nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -no-snapshot > /dev/null 2>&1 & + $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82' + + $ANDROID_HOME/platform-tools/adb devices + + echo "Emulator started" + displayName: 'Starting emulator' + - task: Gradle@3 displayName: 'gradlew -Pcoverage jacocoCoverageReport' inputs: From a4df99c6e5142dfa6b684ec7bf454875062dac58 Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Mon, 25 Jul 2022 18:55:18 -0400 Subject: [PATCH 16/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 91247a04..5fc48712 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,8 +9,7 @@ pr: - master pool: - name: Azure Pipelines - demands: java + vmImage: 'macos-latest' steps: - task: Gradle@3 @@ -28,7 +27,7 @@ steps: echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-28;google_apis;x86' # Create emulator - echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-28;google_apis;x86' --force + echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-28;google_apis;x86' --force $ANDROID_HOME/emulator/emulator -list-avds From fc7ff15659ff8ece29eaf239babe94069032fbaa Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Mon, 25 Jul 2022 19:04:52 -0400 Subject: [PATCH 17/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5fc48712..fe840ce1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -45,6 +45,7 @@ steps: - task: Gradle@3 displayName: 'gradlew -Pcoverage jacocoCoverageReport' inputs: + jdkVersionOption: 1.11 tasks: '-Pcoverage jacocoCoverageReport' - task: PublishBuildArtifacts@1 From d168d628d58010611b527cd8d7bce91d0d67f153 Mon Sep 17 00:00:00 2001 From: nithyaganeshng <56405961+nithyaganeshng@users.noreply.github.com> Date: Mon, 25 Jul 2022 19:18:56 -0400 Subject: [PATCH 18/18] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fe840ce1..af35e876 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -59,9 +59,10 @@ steps: summaryFileLocation: '$(System.DefaultWorkingDirectory)/sdk/build/reports/jacoco/jacocoCoverageReport/jacocoCoverageReport.xml' reportDirectory: '$(System.DefaultWorkingDirectory)/sdk/build/reports/jacoco/jacocoCoverageReport/html' -- task: Gradle@2 +- task: Gradle@3 displayName: 'gradlew lint' inputs: + jdkVersionOption: 1.11 tasks: lint publishJUnitResults: false