Skip to content

Commit

Permalink
Lines authored by rspencer
Browse files Browse the repository at this point in the history
This commit forms part of the blame-preserving initial commit suite.
  • Loading branch information
rspencer authored and Robert Spencer committed Mar 29, 2017
1 parent 90ceddf commit 617b48a
Show file tree
Hide file tree
Showing 35 changed files with 73 additions and 0 deletions.
11 changes: 11 additions & 0 deletions COMPONENTS_DEFS
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ COMPONENTS_COMPONENTS_FRESCO_COMMON_TARGET = make_dep_path('src/main/java/com/fa
# Test source
COMPONENTS_TEST_TARGET = make_dep_path('src/test/java/com/facebook/components:components')

# Java source with local upstream
COMPONENTS_PROGUARDANNOTATIONS_TARGET = make_dep_path('src/main/java/com/facebook/proguard/annotations:annotations')

# Resources
COMPONENTS_RES_TARGET = make_dep_path(':res')

# Libraries
COMPONENTS_INFERANNOTATIONS_TARGET = make_dep_path('lib/infer-annotations:infer-annotations')
COMPONENTS_JSR_TARGET = make_dep_path('lib/jsr-305:jsr-305')
COMPONENTS_ANDROIDSUPPORT_TARGET = make_dep_path('lib/android-support:android-support')
COMPONENTS_ANDROIDSUPPORT_RECYCLERVIEW_TARGET = make_dep_path('lib/android-support:android-support-recyclerview')
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ static List<SpecModelValidationError> validateOnUpdateStateMethods(SpecModel spe
* <li>1. Method parameters annotated with {@link Param} don't have the same name as parameters
* annotated with {@link State} or {@link Prop}.</li>
* <li>2. Method parameters not annotated with {@link Param} must be of type
* com.facebook.litho.StateValue.</li>
1 change: 1 addition & 0 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.facebook.samples.litho">
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
* LICENSE-examples file in the root directory of this source tree.
*/

package com.facebook.samples.litho;
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
* LICENSE-examples file in the root directory of this source tree.
*/

package com.facebook.samples.litho;
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
* LICENSE-examples file in the root directory of this source tree.
*/

package com.facebook.samples.litho;
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
* LICENSE-examples file in the root directory of this source tree.
*/

package com.facebook.samples.litho;
1 change: 1 addition & 0 deletions sample/src/main/java/com/facebook/samples/litho/Demos.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
* LICENSE-examples file in the root directory of this source tree.
*/

package com.facebook.samples.litho;
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ static ComponentLayout onCreateLayout(
.withLayout().flexShrink(0)
.marginDip(YogaEdge.HORIZONTAL, 10)
.flex(0).flexBasisDip(0))
.child(
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ static ComponentLayout onCreateLayout(
return Container.create(c).flexDirection(YogaFlexDirection.COLUMN).flexShrink(0).alignContent(YogaAlign.FLEX_START)
.child(
Container.create(c).flexDirection(YogaFlexDirection.COLUMN).flexShrink(0).alignContent(YogaAlign.FLEX_START)
.child(
Recycler.create(c)
.binder(binder)
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@
import android.support.annotation.StyleRes;
import android.support.v4.util.Pools;

import com.facebook.litho.Component;
import com.facebook.litho.ComponentLayout;
import com.facebook.litho.ComponentLifecycle;
import com.facebook.litho.ComponentContext;
import com.facebook.litho.Size;
import com.facebook.litho.SizeSpec;
12 changes: 12 additions & 0 deletions src/main/java/com/facebook/components/ComponentsSystrace.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@
package com.facebook.litho;

/**
* This is intended as a hook into {@code android.os.Trace}, but allows you to provide your own
* functionality. Use it as
* <p>
* {@code
* ComponentsSystrace.beginSection("tag");
* ...
* ComponentsSystrace.endSection();
* }
* </p>
*
* As a default, it simply calls {@code android.os.Trace} (see {@link DefaultComponentsSystrace}).
* You may supply your own with {@link ComponentsSystrace#provide(Systrace)}.
1 change: 1 addition & 0 deletions src/main/java/com/facebook/components/ViewNodeInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
import android.view.View;

import com.facebook.yoga.YogaDirection;
import com.facebook.litho.reference.Reference;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
* Copyright (c) 2014-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.
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
* Copyright (c) 2014-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.
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
* Copyright (c) 2014-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.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@

package com.facebook.litho;

import com.facebook.litho.testing.testrunner.ComponentsTestRunner;
import com.facebook.litho.testing.TestLayoutComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@

package com.facebook.litho;

import com.facebook.litho.testing.testrunner.ComponentsTestRunner;
import com.facebook.litho.testing.TestLayoutComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
import android.util.SparseArray;
import android.view.View;

import com.facebook.litho.testing.ComponentTestHelper;
import com.facebook.litho.testing.testrunner.ComponentsTestRunner;
import com.facebook.litho.testing.TestDrawableComponent;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

package com.facebook.litho.dataflow;

0 comments on commit 617b48a

Please sign in to comment.