Remove FlatUI references from fb4a.

Reviewed By: AaaChiuuu

Differential Revision: D6189136

fbshipit-source-id: c92a4d46098ff36ddbf267d150c6fa559a60a1e8
This commit is contained in:
Dmitry Zakharov 2017-10-31 06:42:54 -07:00 committed by Facebook Github Bot
parent c4f8551fd7
commit 387a3557ae
2 changed files with 0 additions and 68 deletions

View File

@ -1,11 +0,0 @@
// Copyright 2004-present Facebook. All Rights Reserved.
package com.facebook.react.flat;
/**
* Holds global flag for enabling nodes.
*/
public class FlatUI {
public static boolean sEnabled;
}

View File

@ -1,57 +0,0 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.react.flat;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.UIImplementationProvider;
import com.facebook.react.uimanager.UIManagerModule;
import com.facebook.react.uimanager.ViewManager;
import com.facebook.react.uimanager.events.EventDispatcher;
import java.util.List;
/**
* UIImplementationProvider that creates instances of {@link FlatUIImplementation}.
*/
public final class FlatUIImplementationProvider extends UIImplementationProvider {
private final boolean mMemoryImprovementEnabled;
public FlatUIImplementationProvider() {
mMemoryImprovementEnabled = true;
}
public FlatUIImplementationProvider(boolean memoryImprovementEnabled) {
mMemoryImprovementEnabled = memoryImprovementEnabled;
}
@Override
public FlatUIImplementation createUIImplementation(
ReactApplicationContext reactContext,
List<ViewManager> viewManagers,
EventDispatcher eventDispatcher,
int minTimeLeftInFrameForNonBatchedOperationMs) {
return FlatUIImplementation.createInstance(
reactContext,
viewManagers,
eventDispatcher,
mMemoryImprovementEnabled,
minTimeLeftInFrameForNonBatchedOperationMs);
}
@Override
public FlatUIImplementation createUIImplementation(
ReactApplicationContext reactContext,
UIManagerModule.ViewManagerResolver viewManagerResolver,
EventDispatcher eventDispatcher,
int minTimeLeftInFrameForNonBatchedOperationMs) {
throw new UnsupportedOperationException(
"Lazy version of FlatUIImplementations are not supported");
}
}