Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @DoNotStrip to method called from cpp in bridgeless mode
Summary: I hit a crash when testing bridgeless mode in a release build: Error: Exception in HostFunction: java.lang.NoSuchMethodError: no non-static method "Lcom/facebook/react/modules/core/JavaTimerManager;.createTimer(IJZ)V" It turns out that `JavaTimerManager.createTimer()` is getting stripped from release builds because it's not referenced in Java at all. Adding `DoNotStrip` annotation to keep it around. The other methods in JavaTimerManager don't need this because they're referenced by TimingModule - this is the only method that's only used directly from C++ by bridgeless mode. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D19655519 fbshipit-source-id: 8b9862475986bb84b12d81f73f677cc2e4860c67
- Loading branch information