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:
Родитель
c54aeccf1a
Коммит
f346dd616f
|
@ -243,7 +243,11 @@ static BOOL newArchitectureViolationReporting = NO;
|
||||||
|
|
||||||
void RCTEnableNewArchitectureViolationReporting(BOOL enabled)
|
void RCTEnableNewArchitectureViolationReporting(BOOL enabled)
|
||||||
{
|
{
|
||||||
|
#if RCT_NEW_ARCHITECTURE
|
||||||
|
// Cannot disable the reporting in this mode.
|
||||||
|
#else
|
||||||
newArchitectureViolationReporting = enabled;
|
newArchitectureViolationReporting = enabled;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static NSString *getNewArchitectureViolationMessage(id context, NSString *extra)
|
static NSString *getNewArchitectureViolationMessage(id context, NSString *extra)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче