@@ -183,17 +183,16 @@ async function testRNTestProject(circleCIArtifacts) {
183
183
// create the local npm package to feed the CLI
184
184
185
185
// base setup required (specular to publish-npm.js)
186
- const baseVersion = require ( '../packages/react-native/package.json' ) . version ;
187
186
188
187
// in local testing, 1000.0.0 mean we are on main, every other case means we are
189
188
// working on a release version
190
- const buildType = baseVersion !== '1000.0.0' ? 'release' : 'dry-run' ;
191
189
const shortCommit = exec ( 'git rev-parse HEAD' , { silent : true } )
192
190
. toString ( )
193
191
. trim ( )
194
192
. slice ( 0 , 9 ) ;
195
193
196
194
const releaseVersion = `1000.0.0-${ shortCommit } ` ;
195
+ const buildType = 'dry-run' ;
197
196
198
197
// Prepare some variables for later use
199
198
const repoRoot = pwd ( ) ;
@@ -204,6 +203,7 @@ async function testRNTestProject(circleCIArtifacts) {
204
203
circleCIArtifacts != null
205
204
? path . join ( circleCIArtifacts . baseTmpPath ( ) , 'maven-local' )
206
205
: '/private/tmp/maven-local' ;
206
+
207
207
const hermesPath = await prepareArtifacts (
208
208
circleCIArtifacts ,
209
209
mavenLocalPath ,
@@ -226,9 +226,16 @@ async function testRNTestProject(circleCIArtifacts) {
226
226
cd ( 'RNTestProject' ) ;
227
227
exec ( 'yarn install' ) ;
228
228
229
+ // When using CircleCI artifacts, the CI will zip maven local into a
230
+ // /tmp/maven-local subfolder struct.
231
+ // When we generate the project manually, there is no such structure.
232
+ const expandedMavenLocal =
233
+ circleCIArtifacts == null
234
+ ? mavenLocalPath
235
+ : `${ mavenLocalPath } /tmp/maven-local` ;
229
236
// need to do this here so that Android will be properly setup either way
230
237
exec (
231
- `echo "react.internal.mavenLocalRepo=${ mavenLocalPath } /tmp/maven-local " >> android/gradle.properties` ,
238
+ `echo "react.internal.mavenLocalRepo=${ expandedMavenLocal } " >> android/gradle.properties` ,
232
239
) ;
233
240
234
241
// Update gradle properties to set Hermes as false
0 commit comments