File tree Expand file tree Collapse file tree
packages/react-native/scripts/ios-prebuild Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ async function getNightlyTarballUrl(
204204 return await computeNightlyTarballURL (
205205 version ,
206206 buildType ,
207+ 'hermes' ,
207208 artifactCoordinate ,
208209 artifactName ,
209210 ) ;
Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ async function getNightlyTarballUrl(
200200 return await computeNightlyTarballURL (
201201 version ,
202202 buildType ,
203+ 'react' ,
203204 coordinate ,
204205 artifactName ,
205206 ) ;
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ export type Destination =
2020 'macOS,variant=Mac Catalyst';
2121
2222export type BuildFlavor = 'Debug' | 'Release';
23+
24+ export type MavenSubGroup = 'hermes' | 'react';
2325*/
2426
2527module . exports = { } ;
Original file line number Diff line number Diff line change 88 * @format
99 */
1010
11- /*:: import type {BuildFlavor} from './types'; */
11+ /*:: import type {BuildFlavor, MavenSubGroup } from './types'; */
1212
1313const { execSync} = require ( 'child_process' ) ;
1414const fs = require ( 'fs' ) ;
@@ -62,10 +62,11 @@ function createLogger(
6262async function computeNightlyTarballURL (
6363 version /*: string */ ,
6464 buildType /*: BuildFlavor */ ,
65+ subGroup /*: MavenSubGroup */ ,
6566 artifactCoordinate /*: string */ ,
6667 artifactName /*: string */ ,
6768) /*: Promise<string> */ {
68- const xmlUrl = `https://central.sonatype.com/repository/maven-snapshots/com/facebook/hermes /${ artifactCoordinate } /${ version } -SNAPSHOT/maven-metadata.xml` ;
69+ const xmlUrl = `https://central.sonatype.com/repository/maven-snapshots/com/facebook/${ subGroup } /${ artifactCoordinate } /${ version } -SNAPSHOT/maven-metadata.xml` ;
6970
7071 const response = await fetch ( xmlUrl ) ;
7172 if ( ! response . ok ) {
@@ -97,7 +98,7 @@ async function computeNightlyTarballURL(
9798 const buildNumber = buildNumberMatch [ 1 ] ;
9899
99100 const fullVersion = `${ version } -${ timestamp } -${ buildNumber } ` ;
100- const finalUrl = `https://central.sonatype.com/repository/maven-snapshots/com/facebook/hermes /${ artifactCoordinate } /${ version } -SNAPSHOT/${ artifactCoordinate } -${ fullVersion } -${ artifactName } ` ;
101+ const finalUrl = `https://central.sonatype.com/repository/maven-snapshots/com/facebook/${ subGroup } /${ artifactCoordinate } /${ version } -SNAPSHOT/${ artifactCoordinate } -${ fullVersion } -${ artifactName } ` ;
101102 return finalUrl ;
102103}
103104
You can’t perform that action at this time.
0 commit comments