mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Publish dSYM to Maven when doing a release (#38992)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38992 This Diff publishes the Hermes dSYMs to Maven while doing a release. These were missing and so the Stack traces can't be fully symbolicated when a crash occurs. ## Changelog: [Internal] - Publish dSYM to Maven Reviewed By: cortinico Differential Revision: D48309198 fbshipit-source-id: a5514e544587daadd0a0d7614f25a30fccd16a5b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
27c53ddbd1
commit
540c41be91
@@ -1950,7 +1950,8 @@ jobs:
|
||||
mkdir -p ./packages/react-native/ReactAndroid/external-artifacts/artifacts/
|
||||
cp $HERMES_WS_DIR/hermes-runtime-darwin/hermes-ios-debug.tar.gz ./packages/react-native/ReactAndroid/external-artifacts/artifacts/hermes-ios-debug.tar.gz
|
||||
cp $HERMES_WS_DIR/hermes-runtime-darwin/hermes-ios-release.tar.gz ./packages/react-native/ReactAndroid/external-artifacts/artifacts/hermes-ios-release.tar.gz
|
||||
|
||||
cp $HERMES_WS_DIR/dSYM/Debug/hermes.framework.dSYM ./packages/react-native/ReactAndroid/external-artifacts/artifacts/hermes-framework-dSYM-debug.tar.gz
|
||||
cp $HERMES_WS_DIR/dSYM/Release/hermes.framework.dSYM ./packages/react-native/ReactAndroid/external-artifacts/artifacts/hermes-framework-dSYM-release.tar.gz
|
||||
- run_yarn
|
||||
- build_packages
|
||||
- attach_workspace:
|
||||
|
||||
@@ -35,6 +35,24 @@ val hermesiOSReleaseArtifact: PublishArtifact =
|
||||
classifier = "hermes-ios-release"
|
||||
}
|
||||
|
||||
// Those artifacts should be placed inside the `artifacts/hermes-*.framework.dSYM` location
|
||||
val hermesDSYMDebugArtifactFile: RegularFile =
|
||||
layout.projectDirectory.file("artifacts/hermes-framework-dSYM-debug.tar.gz")
|
||||
val hermesDSYMDebugArtifact: PublishArtifact =
|
||||
artifacts.add("default", hermesDSYMDebugArtifactFile) {
|
||||
type = "tgz"
|
||||
extension = "tar.gz"
|
||||
classifier = "hermes-framework-dSYM-debug"
|
||||
}
|
||||
val hermesDSYMReleaseArtifactFile: RegularFile =
|
||||
layout.projectDirectory.file("artifacts/hermes-framework-dSYM-release.tar.gz")
|
||||
val hermesDSYMReleaseArtifact: PublishArtifact =
|
||||
artifacts.add("default", hermesDSYMReleaseArtifactFile) {
|
||||
type = "tgz"
|
||||
extension = "tar.gz"
|
||||
classifier = "hermes-framework-dSYM-release"
|
||||
}
|
||||
|
||||
apply(from = "../publish.gradle")
|
||||
|
||||
publishing {
|
||||
@@ -43,6 +61,8 @@ publishing {
|
||||
artifactId = "react-native-artifacts"
|
||||
artifact(hermesiOSDebugArtifact)
|
||||
artifact(hermesiOSReleaseArtifact)
|
||||
artifact(hermesDSYMDebugArtifact)
|
||||
artifact(hermesDSYMReleaseArtifact)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user