Update java package name to yoga

Summary: Update package name of java code to refer to yoga instead of csslayout. Still need to change the name of the folder where this code resides but that requires update github sync scripts etc so it is safer and easier to split these diffs apart.

Differential Revision: D4271420

fbshipit-source-id: b3cf150569a2331868410339cd19e5c694f2059e
This commit is contained in:
Emil Sjolander
2016-12-05 02:56:20 -08:00
committed by Facebook Github Bot
parent c6100d0771
commit 1b7ae2ed3d
36 changed files with 39 additions and 39 deletions

View File

@@ -134,7 +134,7 @@ with open(root + '/CSSLayout/YGEnums.h', 'w') as f:
for name, values in ENUMS.items():
with open(root + '/java/com/facebook/csslayout/Yoga%s.java' % name, 'w') as f:
f.write(LICENSE)
f.write('package com.facebook.csslayout;\n\n')
f.write('package com.facebook.yoga;\n\n')
f.write('import com.facebook.proguard.annotations.DoNotStrip;\n\n')
f.write('@DoNotStrip\n')
f.write('public enum Yoga%s {\n' % name)

View File

@@ -28,7 +28,7 @@ JavaEmitter.prototype = Object.create(Emitter.prototype, {
emitPrologue:{value:function() {
this.push([
'package com.facebook.csslayout;',
'package com.facebook.yoga;',
'',
'import org.junit.Test;',
'',

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
public class YogaConstants {

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
/**
* Helpers for building measure output value.

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import javax.annotation.Nullable;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
// This only exists for legacy reasons. It will be removed sometime in the near future.
public interface YogaNodeAPI<YogaNodeType extends YogaNodeAPI> {

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;

View File

@@ -58,7 +58,7 @@ static YGSize YGJNIMeasureFunc(YGNodeRef node,
float height,
YGMeasureMode heightMode) {
if (auto obj = YGNodeJobject(node)->lockLocal()) {
static auto measureFunc = findClassLocal("com/facebook/csslayout/YogaNode")
static auto measureFunc = findClassLocal("com/facebook/yoga/YogaNode")
->getMethod<jlong(jfloat, jint, jfloat, jint)>("measure");
YGTransferLayoutDirection(node, obj);
@@ -81,7 +81,7 @@ static YGSize YGJNIMeasureFunc(YGNodeRef node,
}
struct JYogaLogLevel : public JavaClass<JYogaLogLevel> {
static constexpr auto kJavaDescriptor = "Lcom/facebook/csslayout/YogaLogLevel;";
static constexpr auto kJavaDescriptor = "Lcom/facebook/yoga/YogaLogLevel;";
};
static global_ref<jobject> *jLogger;
@@ -89,7 +89,7 @@ static int YGLog(YGLogLevel level, const char *format, va_list args) {
char buffer[256];
int result = vsnprintf(buffer, sizeof(buffer), format, args);
static auto logFunc = findClassLocal("com/facebook/csslayout/YogaLogger")
static auto logFunc = findClassLocal("com/facebook/yoga/YogaLogger")
->getMethod<void(local_ref<JYogaLogLevel>, jstring)>("log");
static auto logLevelFromInt =
@@ -261,7 +261,7 @@ YG_NODE_JNI_STYLE_PROP(jfloat, float, AspectRatio);
jint JNI_OnLoad(JavaVM *vm, void *) {
return initialize(vm, [] {
registerNatives("com/facebook/csslayout/YogaNode",
registerNatives("com/facebook/yoga/YogaNode",
{
YGMakeNativeMethod(jni_YGNodeNew),
YGMakeNativeMethod(jni_YGNodeFree),

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGAbsolutePositionTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignContentTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignItemsTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignSelfTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGBorderTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexDirectionTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexWrapTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGJustifyContentTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGMarginTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGMinMaxDimensionTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGPaddingTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -9,7 +9,7 @@
// @Generated by gentest/gentest.rb from gentest/fixtures/YGRoundingTest.html
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;

View File

@@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.facebook.csslayout;
package com.facebook.yoga;
import org.junit.Test;