mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b0f7b0c66b
Summary: I'm extending `react-native-artifacts` to expose both Hermes Debug and Release for iOS. Changelog: [Internal] [Changed] - Publish both Hermes Debug and Release inside `react-native-artifacts` Reviewed By: mdvacca Differential Revision: D40512210 fbshipit-source-id: 9676c95eaab45365c9c264585c491cd1bde04db5
42 lines
1.2 KiB
Groovy
42 lines
1.2 KiB
Groovy
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
plugins {
|
|
id("maven-publish")
|
|
}
|
|
|
|
group = "com.facebook.react"
|
|
version = parent.publishing_version
|
|
configurations.maybeCreate("default")
|
|
|
|
// Those artifacts should be placed inside the `artifacts/hermes-ios-*.tar.gz` location.
|
|
def hermesiOSDebugArtifactFile = layout.projectDirectory.file('artifacts/hermes-ios-debug.tar.gz')
|
|
def hermesiOSDebugArtifact = artifacts.add('default', hermesiOSDebugArtifactFile) {
|
|
type 'tgz'
|
|
extension 'tar.gz'
|
|
classifier 'hermes-ios-debug'
|
|
}
|
|
def hermesiOSReleaseArtifactFile = layout.projectDirectory.file('artifacts/hermes-ios-release.tar.gz')
|
|
def hermesiOSReleaseArtifact = artifacts.add('default', hermesiOSReleaseArtifactFile) {
|
|
type 'tgz'
|
|
extension 'tar.gz'
|
|
classifier 'hermes-ios-release'
|
|
}
|
|
|
|
|
|
apply from: "../publish.gradle"
|
|
|
|
publishing {
|
|
publications {
|
|
getByName("release") {
|
|
artifactId 'react-native-artifacts'
|
|
artifact hermesiOSDebugArtifact
|
|
artifact hermesiOSReleaseArtifact
|
|
}
|
|
}
|
|
}
|