From e7845df92d5abac5fbe3aa61b79e9b9bb5d003e7 Mon Sep 17 00:00:00 2001 From: Dima Date: Fri, 13 Sep 2024 14:05:37 +0700 Subject: [PATCH 1/2] [CI] Add publishing to Azure Maven Artifacts (#1047) * Add job for publishing to azure maven artifacts * Run maven and apiscan on master only --- .azurepipelines/publish-maven-1ES.yml | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.azurepipelines/publish-maven-1ES.yml b/.azurepipelines/publish-maven-1ES.yml index 2f4b191b3..3734d1f6f 100644 --- a/.azurepipelines/publish-maven-1ES.yml +++ b/.azurepipelines/publish-maven-1ES.yml @@ -74,7 +74,51 @@ extends: publishJUnitResults: false workingDirectory: './AppCenterReactNativeShared/android' + - stage: PublishAzureMaven + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) + dependsOn: Stage + pool: + name: Azure Pipelines + image: macos-latest + os: macOS + variables: + "agent.source.skip": true + jobs: + - job: UploadArtifacts + steps: + - task: DownloadPipelineArtifact@2 + displayName: Download Build Artifacts + inputs: + artifactName: Release + targetPath: '$(Agent.BuildDirectory)/Release' + - task: MavenAuthenticate@0 + displayName: 'Maven Authenticate' + inputs: + artifactsFeeds: AppCenter + - task: Bash@3 + displayName: Upload files to Azure Artifacts + inputs: + targetType: 'inline' + script: | + VERSION=$(basename $(Agent.BuildDirectory)/Release/appcenter/reactnative/appcenter-react-native/*/) + ARTIFACTS_DIR="$(Agent.BuildDirectory)/Release/appcenter/reactnative/appcenter-react-native/$VERSION" + ARTIFACT_ID="appcenter-react-native" + ARTIFACT_FILE_BASE="$ARTIFACTS_DIR/$ARTIFACT_ID-$VERSION" + + mvn deploy:deploy-file -DgeneratePom=false \ + -Durl=$(AZURE_REPO) \ + -Dfile=$ARTIFACT_FILE_BASE.aar \ + -Dfiles=$ARTIFACT_FILE_BASE.pom,$ARTIFACT_FILE_BASE-sources.jar \ + -Dtypes=pom,jar \ + -Dclassifiers=pom,sources \ + -DgroupId=com.microsoft.appcenter.reactnative \ + -DartifactId=$ARTIFACT_ID \ + -Dversion=$VERSION-${BUILD_SOURCEVERSION:0:7} \ + -DrepositoryId=AppCenter \ + -e + - stage: APIScan + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) dependsOn: Stage pool: name: 1ES-PT-Windows-2022 From 45e7f4dee29ba78b091b5fbaf871d7ef2f15a5a0 Mon Sep 17 00:00:00 2001 From: Djordje <46656919+DordeDimitrijev@users.noreply.github.com> Date: Mon, 30 Sep 2024 13:20:15 +0200 Subject: [PATCH 2/2] Bump android SDK versions (#1048) --- AppCenterReactNativeShared/android/build.gradle | 2 +- appcenter-analytics/android/build.gradle | 2 +- appcenter-crashes/android/build.gradle | 2 +- appcenter/android/build.gradle | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AppCenterReactNativeShared/android/build.gradle b/AppCenterReactNativeShared/android/build.gradle index 281bbed34..90ac3e1c8 100644 --- a/AppCenterReactNativeShared/android/build.gradle +++ b/AppCenterReactNativeShared/android/build.gradle @@ -112,7 +112,7 @@ publishing { } dependencies { - api 'com.microsoft.appcenter:appcenter:5.0.4' + api 'com.microsoft.appcenter:appcenter:5.0.5' } artifacts { diff --git a/appcenter-analytics/android/build.gradle b/appcenter-analytics/android/build.gradle index b37dbc2e6..a8fd2ef86 100644 --- a/appcenter-analytics/android/build.gradle +++ b/appcenter-analytics/android/build.gradle @@ -25,7 +25,7 @@ dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-native:+' - api 'com.microsoft.appcenter:appcenter-analytics:5.0.4' + api 'com.microsoft.appcenter:appcenter-analytics:5.0.5' //api project(':AppCenterReactNativeShared') // For testing with TestApp api 'com.microsoft.appcenter.reactnative:appcenter-react-native:5.0.2' diff --git a/appcenter-crashes/android/build.gradle b/appcenter-crashes/android/build.gradle index a7d2564e7..f34d10928 100644 --- a/appcenter-crashes/android/build.gradle +++ b/appcenter-crashes/android/build.gradle @@ -25,7 +25,7 @@ dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-native:+' - api 'com.microsoft.appcenter:appcenter-crashes:5.0.4' + api 'com.microsoft.appcenter:appcenter-crashes:5.0.5' //api project(':AppCenterReactNativeShared') // For testing with TestApp api 'com.microsoft.appcenter.reactnative:appcenter-react-native:5.0.2' diff --git a/appcenter/android/build.gradle b/appcenter/android/build.gradle index 9f4f0ce57..26688af4c 100644 --- a/appcenter/android/build.gradle +++ b/appcenter/android/build.gradle @@ -25,7 +25,7 @@ dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-native:+' - api 'com.microsoft.appcenter:appcenter:5.0.4' + api 'com.microsoft.appcenter:appcenter:5.0.5' //api project(':AppCenterReactNativeShared') // For testing with TestApp api 'com.microsoft.appcenter.reactnative:appcenter-react-native:5.0.2'