iOS new architecture: disallow disabling enforcement when RCT_NEW_ARCHITECTURE is defined

Summary: Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D28080430

fbshipit-source-id: 3e89be8419776c4a6da9dd9e8c6c5501c8f6c304
This commit is contained in:
Kevin Gozali 2021-04-29 19:44:52 -07:00 коммит произвёл Facebook GitHub Bot
Родитель c54aeccf1a
Коммит f346dd616f
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -243,7 +243,11 @@ static BOOL newArchitectureViolationReporting = NO;
void RCTEnableNewArchitectureViolationReporting(BOOL enabled)
{
#if RCT_NEW_ARCHITECTURE
// Cannot disable the reporting in this mode.
#else
newArchitectureViolationReporting = enabled;
#endif
}
static NSString *getNewArchitectureViolationMessage(id context, NSString *extra)