Remove FlatUI references from fb4a.
Reviewed By: AaaChiuuu Differential Revision: D6189136 fbshipit-source-id: c92a4d46098ff36ddbf267d150c6fa559a60a1e8
This commit is contained in:
parent
c4f8551fd7
commit
387a3557ae
|
@ -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;
|
||||
}
|
|
@ -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");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue