From 290257e76d251fb5a5406b4203b205bfca301bae Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 5 Mar 2025 03:30:32 -0800 Subject: [PATCH] Fix Sonatype publishing (#49836) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49836 We were passing the path to the `RegularFile` instead of the `PublishingArtifacts` to the gradle script. cortinico why this is not checked at build time? This should be a typing issue that should be caught at build time, also during the test-all jobs, not just when the nightly run... ## Changelog: [Internal] Reviewed By: cortinico Differential Revision: D70617638 fbshipit-source-id: 67ff1aea2bd827fb110db7a0d2f3651b88a1e8cc --- .../ReactAndroid/external-artifacts/build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-native/ReactAndroid/external-artifacts/build.gradle.kts b/packages/react-native/ReactAndroid/external-artifacts/build.gradle.kts index 8ad0827636a..7404361e29c 100644 --- a/packages/react-native/ReactAndroid/external-artifacts/build.gradle.kts +++ b/packages/react-native/ReactAndroid/external-artifacts/build.gradle.kts @@ -76,7 +76,7 @@ val reactNativeDependenciesDebugDSYMArtifact: PublishArtifact = artifacts.add("externalArtifacts", reactNativeDependenciesDebugDSYMArtifactFile) { type = "tgz" extension = "tar.gz" - classifier = "reactnative-dependencies-debug-dSYM" + classifier = "reactnative-dependencies-dSYM-debug" } val reactNativeDependenciesReleaseDSYMArtifactFile: RegularFile = @@ -85,7 +85,7 @@ val reactNativeDependenciesReleaseDSYMArtifact: PublishArtifact = artifacts.add("externalArtifacts", reactNativeDependenciesReleaseDSYMArtifactFile) { type = "tgz" extension = "tar.gz" - classifier = "reactnative-dependencies-release-dSYM" + classifier = "reactnative-dependencies-dSYM-release" } apply(from = "../publish.gradle") @@ -100,8 +100,8 @@ publishing { artifact(hermesDSYMReleaseArtifact) artifact(reactNativeDependenciesDebugArtifact) artifact(reactNativeDependenciesReleaseArtifact) - artifact(reactNativeDependenciesDebugDSYMArtifactFile) - artifact(reactNativeDependenciesReleaseDSYMArtifactFile) + artifact(reactNativeDependenciesDebugDSYMArtifact) + artifact(reactNativeDependenciesReleaseDSYMArtifact) } } }