Move bridge dependencies into a single ReactTestFactory

Reviewed By: cjhopman

Differential Revision: D2816291

fb-gh-sync-id: 0eb654541cac7816922d948cc38a26fab44fad70
This commit is contained in:
Marc Horowitz
2016-01-29 00:56:51 -08:00
committed by facebook-github-bot-6
parent b9ceecb31f
commit 5e82094fcb
4 changed files with 129 additions and 60 deletions

View File

@@ -132,7 +132,8 @@ public class ReactAppTestActivity extends FragmentActivity implements
final CountDownLatch currentLayoutEvent = mLayoutEvent = new CountDownLatch(1);
mBridgeIdleSignaler = new ReactBridgeIdleSignaler();
ReactInstanceManager.Builder builder = ReactInstanceManager.builder()
ReactInstanceManager.Builder builder =
ReactTestHelper.getReactTestFactory().getReactInstanceManagerBuilder()
.setApplication(getApplication())
.setBundleAssetName(bundleName)
// By not setting a JS module name, we force the bundle to be always loaded from