Skip to content

Commit

Permalink
Merge pull request #1049 from microsoft/develop
Browse files Browse the repository at this point in the history
Merge develop to master
  • Loading branch information
DmitriyKirakosyan authored Sep 30, 2024
2 parents bd644a3 + 45e7f4d commit 2f65b32
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 4 deletions.
44 changes: 44 additions & 0 deletions .azurepipelines/publish-maven-1ES.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion AppCenterReactNativeShared/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ publishing {
}

dependencies {
api 'com.microsoft.appcenter:appcenter:5.0.4'
api 'com.microsoft.appcenter:appcenter:5.0.5'
}

artifacts {
Expand Down
2 changes: 1 addition & 1 deletion appcenter-analytics/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion appcenter-crashes/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion appcenter/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2f65b32

Please sign in to comment.