Summary: This allows using the flipper RN module with TurboModules instead of using FlipperPackage. ## Changelog [react-native-flipper] Allow Flipper module instances to be created by applications Pull Request resolved: https://github.com/facebook/flipper/pull/786 Test Plan: An instance of the Flipper module can now be created like this when using TurboModules: ```java Override public NativeModule getModule(String name, ReactApplicationContext reactContext) { switch (name) { ... case FlipperModule.NAME: return new FlipperModule(FlipperReactNativeJavaScriptPluginManager.getInstance(), reactContext); ... } } ``` Tested that it builds Reviewed By: mweststrate Differential Revision: D19812912 Pulled By: passy fbshipit-source-id: 401b3e4552ea0cdb7444a2cf5d170c408edab4db
README
If you want to publish the lib as a maven dependency, follow these steps before publishing a new version to npm:
- Be sure to have the Android SDK and NDK installed
- Be sure to have a
local.propertiesfile in this folder that points to the Android SDK and NDK
ndk.dir=/Users/{username}/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/{username}/Library/Android/sdk
- Delete the
mavenfolder - Run
./gradlew installArchives - Verify that latest set of generated files is in the maven folder with the correct version number