@@ -289,7 +289,7 @@ class DependencyUtilsTest {
289289 val forcedModules = project.configurations.first().resolutionStrategy.forcedModules
290290 assertThat(forcedModules.any { it.toString() == " com.facebook.react:react-android:1.2.3" })
291291 .isTrue()
292- assertThat(forcedModules.any { it.toString() == " com.facebook.react :hermes-android:4.5.6" })
292+ assertThat(forcedModules.any { it.toString() == " com.facebook.hermes :hermes-android:4.5.6" })
293293 .isTrue()
294294 }
295295
@@ -324,11 +324,11 @@ class DependencyUtilsTest {
324324 val libForcedModules = libProject.configurations.first().resolutionStrategy.forcedModules
325325 assertThat(appForcedModules.any { it.toString() == " com.facebook.react:react-android:1.2.3" })
326326 .isTrue()
327- assertThat(appForcedModules.any { it.toString() == " com.facebook.react :hermes-android:4.5.6" })
327+ assertThat(appForcedModules.any { it.toString() == " com.facebook.hermes :hermes-android:4.5.6" })
328328 .isTrue()
329329 assertThat(libForcedModules.any { it.toString() == " com.facebook.react:react-android:1.2.3" })
330330 .isTrue()
331- assertThat(libForcedModules.any { it.toString() == " com.facebook.react :hermes-android:4.5.6" })
331+ assertThat(libForcedModules.any { it.toString() == " com.facebook.hermes :hermes-android:4.5.6" })
332332 .isTrue()
333333 }
334334
@@ -381,11 +381,15 @@ class DependencyUtilsTest {
381381 val libForcedModules = libProject.configurations.first().resolutionStrategy.forcedModules
382382 assertThat(appForcedModules.any { it.toString() == " io.github.test:react-android:1.2.3" })
383383 .isTrue()
384- assertThat(appForcedModules.any { it.toString() == " io.github.test:hermes-android:4.5.6" })
384+ assertThat(
385+ appForcedModules.any { it.toString() == " io.github.test.hermes:hermes-android:4.5.6" }
386+ )
385387 .isTrue()
386388 assertThat(libForcedModules.any { it.toString() == " io.github.test:react-android:1.2.3" })
387389 .isTrue()
388- assertThat(libForcedModules.any { it.toString() == " io.github.test:hermes-android:4.5.6" })
390+ assertThat(
391+ libForcedModules.any { it.toString() == " io.github.test.hermes:hermes-android:4.5.6" }
392+ )
389393 .isTrue()
390394 }
391395
@@ -438,7 +442,7 @@ class DependencyUtilsTest {
438442 )
439443 .isEqualTo(dependencySubstitutions[0 ].third)
440444 assertThat(" com.facebook.react:hermes-engine" ).isEqualTo(dependencySubstitutions[1 ].first)
441- assertThat(" com.facebook.react :hermes-android:0.42.0" )
445+ assertThat(" com.facebook.hermes :hermes-android:0.42.0" )
442446 .isEqualTo(dependencySubstitutions[1 ].second)
443447 assertThat(
444448 " The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/facebook/react-native/issues/35210."
@@ -490,19 +494,26 @@ class DependencyUtilsTest {
490494 )
491495 .isEqualTo(dependencySubstitutions[0 ].third)
492496 assertThat(" com.facebook.react:hermes-engine" ).isEqualTo(dependencySubstitutions[1 ].first)
493- assertThat(" io.github.test:hermes-android:0.42.0" ).isEqualTo(dependencySubstitutions[1 ].second)
497+ assertThat(" io.github.test.hermes:hermes-android:0.42.0" )
498+ .isEqualTo(dependencySubstitutions[1 ].second)
494499 assertThat(
495500 " The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/facebook/react-native/issues/35210."
496501 )
497502 .isEqualTo(dependencySubstitutions[1 ].third)
498- assertThat(" com.facebook.react:react-android" ).isEqualTo(dependencySubstitutions[2 ].first)
499- assertThat(" io.github.test:react-android:0.42.0" ).isEqualTo(dependencySubstitutions[2 ].second)
500- assertThat(" The react-android dependency was modified to use the correct Maven group." )
503+ assertThat(" com.facebook.react:hermes-android" ).isEqualTo(dependencySubstitutions[2 ].first)
504+ assertThat(" io.github.test.hermes:hermes-android:0.42.0" )
505+ .isEqualTo(dependencySubstitutions[2 ].second)
506+ assertThat(" The hermes-android artifact was moved to com.facebook.hermes publishing group." )
501507 .isEqualTo(dependencySubstitutions[2 ].third)
502- assertThat(" com.facebook.react:hermes -android" ).isEqualTo(dependencySubstitutions[3 ].first)
503- assertThat(" io.github.test:hermes -android:0.42.0" ).isEqualTo(dependencySubstitutions[3 ].second)
504- assertThat(" The hermes -android dependency was modified to use the correct Maven group." )
508+ assertThat(" com.facebook.react:react -android" ).isEqualTo(dependencySubstitutions[3 ].first)
509+ assertThat(" io.github.test:react -android:0.42.0" ).isEqualTo(dependencySubstitutions[3 ].second)
510+ assertThat(" The react -android dependency was modified to use the correct Maven group." )
505511 .isEqualTo(dependencySubstitutions[3 ].third)
512+ assertThat(" com.facebook.react:hermes-android" ).isEqualTo(dependencySubstitutions[4 ].first)
513+ assertThat(" io.github.test.hermes:hermes-android:0.42.0" )
514+ .isEqualTo(dependencySubstitutions[4 ].second)
515+ assertThat(" The hermes-android dependency was modified to use the correct Maven group." )
516+ .isEqualTo(dependencySubstitutions[4 ].third)
506517 }
507518
508519 @Test
@@ -532,15 +543,20 @@ class DependencyUtilsTest {
532543 " The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/facebook/react-native/issues/35210."
533544 )
534545 .isEqualTo(dependencySubstitutions[1 ].third)
535- assertThat(" com.facebook.react:react-android" ).isEqualTo(dependencySubstitutions[2 ].first)
536- assertThat(" io.github.test:react-android:0.42.0" ).isEqualTo(dependencySubstitutions[2 ].second)
537- assertThat(" The react-android dependency was modified to use the correct Maven group." )
546+ assertThat(" com.facebook.react:hermes-android" ).isEqualTo(dependencySubstitutions[2 ].first)
547+ assertThat(" io.github.test.hermes:hermes-android:0.43.0" )
548+ .isEqualTo(dependencySubstitutions[2 ].second)
549+ assertThat(" The hermes-android artifact was moved to com.facebook.hermes publishing group." )
538550 .isEqualTo(dependencySubstitutions[2 ].third)
539- assertThat(" com.facebook.react:hermes-android" ).isEqualTo(dependencySubstitutions[3 ].first)
551+ assertThat(" com.facebook.react:react-android" ).isEqualTo(dependencySubstitutions[3 ].first)
552+ assertThat(" io.github.test:react-android:0.42.0" ).isEqualTo(dependencySubstitutions[3 ].second)
553+ assertThat(" The react-android dependency was modified to use the correct Maven group." )
554+ .isEqualTo(dependencySubstitutions[3 ].third)
555+ assertThat(" com.facebook.react:hermes-android" ).isEqualTo(dependencySubstitutions[4 ].first)
540556 assertThat(" io.github.test.hermes:hermes-android:0.43.0" )
541- .isEqualTo(dependencySubstitutions[3 ].second)
557+ .isEqualTo(dependencySubstitutions[4 ].second)
542558 assertThat(" The hermes-android dependency was modified to use the correct Maven group." )
543- .isEqualTo(dependencySubstitutions[3 ].third)
559+ .isEqualTo(dependencySubstitutions[4 ].third)
544560 }
545561
546562 @Test
@@ -560,6 +576,7 @@ class DependencyUtilsTest {
560576 tempFolder.newFile(" version.properties" ).apply {
561577 writeText(
562578 """
579+ HERMES_VERSION_NAME=1000.0.0
563580 HERMES_V1_VERSION_NAME=1000.0.0
564581 ANOTHER_PROPERTY=true
565582 """
@@ -596,6 +613,7 @@ class DependencyUtilsTest {
596613 tempFolder.newFile(" version.properties" ).apply {
597614 writeText(
598615 """
616+ HERMES_VERSION_NAME=0.14.0
599617 HERMES_V1_VERSION_NAME=250829098.0.0-stable
600618 ANOTHER_PROPERTY=true
601619 """
@@ -609,7 +627,7 @@ class DependencyUtilsTest {
609627 val hermesV1VersionString = strings.hermesV1VersionString
610628
611629 assertThat(versionString).isEqualTo(" 0.0.0-20221101-2019-cfe811ab1-SNAPSHOT" )
612- assertThat(hermesVersionString).isEqualTo(" 0.0.0-20221101-2019-cfe811ab1-SNAPSHOT " )
630+ assertThat(hermesVersionString).isEqualTo(" 0.14.0 " )
613631 assertThat(hermesV1VersionString).isEqualTo(" 250829098.0.0-stable" )
614632 }
615633
@@ -661,6 +679,7 @@ class DependencyUtilsTest {
661679 tempFolder.newFile(" version.properties" ).apply {
662680 writeText(
663681 """
682+ HERMES_VERSION_NAME=
664683 HERMES_V1_VERSION_NAME=
665684 ANOTHER_PROPERTY=true
666685 """
@@ -695,6 +714,7 @@ class DependencyUtilsTest {
695714 tempFolder.newFile(" version.properties" ).apply {
696715 writeText(
697716 """
717+ HERMES_VERSION_NAME=
698718 HERMES_V1_VERSION_NAME=
699719 ANOTHER_PROPERTY=true
700720 """
@@ -726,6 +746,7 @@ class DependencyUtilsTest {
726746 tempFolder.newFile(" version.properties" ).apply {
727747 writeText(
728748 """
749+ HERMES_VERSION_NAME=
729750 HERMES_V1_VERSION_NAME=
730751 ANOTHER_PROPERTY=true
731752 """
0 commit comments