Enable TurboModules for FB4A

Summary:
## Summary
If a NativeModule Spec interface extends `TurboModule`, we want to make the auto-generated Java base class for that NativeModule to implement `com.facebook.react.turbomodule.core.interfaces.TurboModule`. This makes it so that our Android code recognizes that Java module as a TurboModule.

When this diff lands, all internal FB4A NativeModules will start going through the TurboModule system.

Reviewed By: fkgozali

Differential Revision: D15327683

fbshipit-source-id: e295dafdab7a0e130820318aeaf0cafa41487689
This commit is contained in:
Ramanpreet Nara
2019-06-05 18:58:38 -07:00
committed by Facebook Github Bot
parent 764fd955db
commit 7b9c456e7d
@@ -67,4 +67,9 @@ public abstract class BaseJavaModule implements NativeModule {
public boolean hasConstants() {
return false;
}
// Cleanup Logic for TurboModuels
public void invalidate() {
// Do nothing
}
}