diff --git a/.buckconfig b/.buckconfig deleted file mode 100644 index 4147e394..00000000 --- a/.buckconfig +++ /dev/null @@ -1,10 +0,0 @@ -[cxx] - gtest_dep = //lib/gtest:gtest -[android] - target = android-25 - build_tools_version = 26.0.2 -[ndk] - ndk_version = 15.2.4203891 - compiler = clang - app_platform = android-21 - cpu_abis = arm64, armv7, x86, x86_64 diff --git a/.clang-format b/.clang-format index 7bb07207..d64a4072 100644 --- a/.clang-format +++ b/.clang-format @@ -54,3 +54,115 @@ SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: 1 Standard: Cpp11 UseTab: Never +--- +Language: ObjC +AccessModifierOffset: -1 +AlignAfterOpenBracket: AlwaysBreak +AlignConsecutiveMacros: false +AlignConsecutiveAssignments: false +AlignConsecutiveBitFields: false +AlignConsecutiveDeclarations: false +AlignEscapedNewlines: Left +AlignOperands: DontAlign +AlignTrailingComments: false +AllowAllArgumentsOnNextLine: true +AllowAllConstructorInitializersOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortEnumsOnASingleLine: true +AllowShortBlocksOnASingleLine: Never +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortLambdasOnASingleLine: All +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: true +AlwaysBreakTemplateDeclarations: Yes +BinPackArguments: false +BinPackParameters: false +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Attach +BreakInheritanceList: BeforeColon +BreakBeforeTernaryOperators: true +BreakConstructorInitializers: BeforeColon +BreakAfterJavaFieldAnnotations: false +BreakStringLiterals: false +ColumnLimit: 80 +CommentPragmas: '^ IWYU pragma:' +CompactNamespaces: false +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: true +DeriveLineEnding: true +DerivePointerAlignment: false +DisableFormat: false +FixNamespaceComments: true +ForEachMacros: + - FOR_EACH + - FOR_EACH_R + - FOR_EACH_RANGE +IncludeBlocks: Preserve +IncludeCategories: + - Regex: '^<.*\.h(pp)?>' + Priority: 1 + - Regex: '^<.*' + Priority: 2 + - Regex: '.*' + Priority: 3 +IndentCaseLabels: true +IndentCaseBlocks: false +IndentGotoLabels: true +IndentPPDirectives: None +IndentExternBlock: AfterExternBlock +IndentWidth: 2 +IndentWrappedFunctionNames: false +InsertTrailingCommas: None +JavaScriptQuotes: Leave +JavaScriptWrapImports: true +KeepEmptyLinesAtTheStartOfBlocks: false +MacroBlockBegin: '' +MacroBlockEnd: '' +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None +ObjCBinPackProtocolList: Auto +ObjCBlockIndentWidth: 2 +ObjCBreakBeforeNestedBlockParam: true +ObjCSpaceAfterProperty: false +ObjCSpaceBeforeProtocolList: false +PenaltyBreakAssignment: 2 +PenaltyBreakBeforeFirstCallParameter: 1 +PenaltyBreakComment: 300 +PenaltyBreakFirstLessLess: 120 +PenaltyBreakString: 1000 +PenaltyBreakTemplateDeclaration: 10 +PenaltyExcessCharacter: 1000000 +PenaltyReturnTypeOnItsOwnLine: 200 +PointerAlignment: Left +ReflowComments: true +SortIncludes: true +SortUsingDeclarations: true +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: true +SpaceBeforeAssignmentOperators: true +SpaceBeforeCpp11BracedList: false +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyBlock: false +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInConditionalStatement: false +SpacesInContainerLiterals: true +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +SpaceBeforeSquareBrackets: false +Standard: Latest +TabWidth: 8 +UseCRLF: false +UseTab: Never +... diff --git a/.github/actions/black/action.yml b/.github/actions/black/action.yml new file mode 100644 index 00000000..63b6c423 --- /dev/null +++ b/.github/actions/black/action.yml @@ -0,0 +1,25 @@ +name: Black Formatter +inputs: + directory: + description: Directory to Lint + required: true + version: + description: pypi version of "black" to use + required: false + default: 22.3.0 + +runs: + using: "composite" + steps: + - name: Ensure supported Python selected + uses: actions/setup-python@v4 + with: + python-version: '>=3.6.2' + + - name: pip install + shell: bash + run: pip install black==${{ inputs.version }} + + - name: black + shell: bash + run: black --check ${{ inputs.directory }} diff --git a/.github/actions/clang-format/action.yml b/.github/actions/clang-format/action.yml new file mode 100644 index 00000000..b81af54f --- /dev/null +++ b/.github/actions/clang-format/action.yml @@ -0,0 +1,23 @@ +name: Clang Format +inputs: + directory: + description: Directory to Lint + required: true + version: + description: LLVM version to use # Should be kept roughly in sync with arcanist + required: false + default: 12 + +runs: + using: "composite" + steps: + - name: Install + shell: bash + run: sudo apt-get install -y clang-format-${{ inputs.version }} + + - name: clang-format + working-directory: ${{ inputs.directory }} + shell: bash + env: + BASHOPTS: extglob:nullglob + run: clang-format-${{ inputs.version }} --dry-run --Werror **/*.{h,hh,hpp,c,cpp,cc,m,mm} diff --git a/.github/actions/install-emsdk/action.yml b/.github/actions/install-emsdk/action.yml new file mode 100644 index 00000000..8f0be736 --- /dev/null +++ b/.github/actions/install-emsdk/action.yml @@ -0,0 +1,23 @@ +name: Install emsdk (including emcc) +inputs: + version: + description: EMCC Version to install + required: false + default: 3.1.28 + +runs: + using: "composite" + steps: + - name: Clone emsdk repo + working-directory: ${{ runner.temp }} + shell: bash + run: git clone https://github.com/emscripten-core/emsdk.git + + - name: emdsk install + working-directory: ${{ runner.temp }}/emsdk + shell: bash + run: | + ./emsdk install ${{ inputs.version }} + ./emsdk activate ${{ inputs.version }} + echo $RUNNER_TEMP/emsdk >> $GITHUB_PATH + echo $RUNNER_TEMP/emsdk/upstream/emscripten >> $GITHUB_PATH diff --git a/.github/actions/install-ninja/action.yml b/.github/actions/install-ninja/action.yml new file mode 100644 index 00000000..897a1e77 --- /dev/null +++ b/.github/actions/install-ninja/action.yml @@ -0,0 +1,14 @@ +name: Install Ninja + +runs: + using: "composite" + steps: + - name: Install ninja (Linux) + if: ${{ runner.os == 'Linux' }} + shell: bash + run: sudo apt-get install -y ninja-build + + - name: Install ninja (Windows) + if: ${{ runner.os == 'Windows' }} + shell: powershell + run: choco install ninja diff --git a/.github/actions/setup-android/action.yml b/.github/actions/setup-android/action.yml new file mode 100644 index 00000000..67ea26b9 --- /dev/null +++ b/.github/actions/setup-android/action.yml @@ -0,0 +1,12 @@ +name: Setup Android environment + +runs: + using: "composite" + steps: + - name: Select Java Version + uses: actions/setup-java@v2 + with: + distribution: zulu + java-version: 17 + - name: Configure Gradle Caches + uses: gradle/gradle-build-action@v2 diff --git a/.github/actions/setup-apple/action.yml b/.github/actions/setup-apple/action.yml new file mode 100644 index 00000000..6ef41f58 --- /dev/null +++ b/.github/actions/setup-apple/action.yml @@ -0,0 +1,9 @@ +name: Setup Apple envirionment + +runs: + using: "composite" + steps: + # TODO: This and Ruby should be versioned + - name: Install Cocoapods + shell: bash + run: sudo gem install cocoapods diff --git a/.github/actions/setup-cpp/action.yml b/.github/actions/setup-cpp/action.yml new file mode 100644 index 00000000..8947b695 --- /dev/null +++ b/.github/actions/setup-cpp/action.yml @@ -0,0 +1,12 @@ +name: Setup C++ envirionment + +runs: + using: "composite" + steps: + - name: Install Ninja + if: ${{ runner.os != 'Windows' }} + uses: ./.github/actions/install-ninja + + - name: Setup VS Developer Command Prompt + if: ${{ runner.os == 'Windows' }} + uses: ilammy/msvc-dev-cmd@v1 diff --git a/.github/actions/setup-js/action.yml b/.github/actions/setup-js/action.yml new file mode 100644 index 00000000..5deb01f9 --- /dev/null +++ b/.github/actions/setup-js/action.yml @@ -0,0 +1,20 @@ +name: Setup JavaScript envirionment + +runs: + using: "composite" + steps: + - name: Install Node + uses: actions/setup-node@v1 + with: + node-version: 18.x + + - name: Install emsdk + uses: ./.github/actions/install-emsdk + + - name: Install Ninja + uses: ./.github/actions/install-ninja + + - name: yarn install + shell: bash + run: yarn install --frozen-lockfile + working-directory: javascript diff --git a/.github/actions/setup-website/action.yml b/.github/actions/setup-website/action.yml new file mode 100644 index 00000000..0473cee3 --- /dev/null +++ b/.github/actions/setup-website/action.yml @@ -0,0 +1,18 @@ +name: Setup Website envirionment + +runs: + using: "composite" + steps: + # TODO: Update to latest when website is moved to the workspace version of + # yoga-layout + - name: Install Node + uses: actions/setup-node@v1 + with: + node-version: 12.x + + # TODO: the website should be in a yarn workspace with the library, but the + # current version of gatsby is incompatible with hoisting. + - name: yarn install + shell: bash + run: yarn install --frozen-lockfile + working-directory: website diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index efda3439..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: CI - -on: [push, pull_request] - -jobs: - website: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Setup Node.js - uses: actions/setup-node@v1 - with: - node-version: 8.x - - name: Install dependencies - run: yarn install --frozen-lockfile --ignore-scripts - working-directory: website - - name: Build - run: yarn build - working-directory: website - - name: Deploy - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_branch: gh-pages - publish_dir: website/public - cname: yogalayout.com - keep_files: true - user_name: 'Yoga-bot' - user_email: 'yogabot@fb.com' - android: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Install NDK 21 - run: echo "y" | sudo /usr/local/lib/android/sdk/tools/bin/sdkmanager --install "ndk;21.0.6113669" "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT} - - name: Install dependencies - run: | - if [[ -n "${{ secrets.encrypted_d27e803291ff_iv }}" ]]; then - openssl aes-256-cbc -K ${{ secrets.encrypted_d27e803291ff_key }} -iv {{ secrets.encrypted_d27e803291ff_iv }} -in scripts/setup-keys.enc -d >> gradle.properties; - fi - sudo apt-get update - sudo apt-get install -y ninja-build - pushd $HOME - git clone --depth 1 https://github.com/facebook/buck.git - cd buck - ant - popd - echo "$HOME/buck/bin" >> $GITHUB_PATH - export PATH=$PATH:$HOME/buck/bin/ - buck --version - - name: Build - # TODO: Run the tests here again. They're currently crashing the JVM in GitHub Actions for some reason. - run: ./gradlew :yoga-layout:assembleDebug diff --git a/.github/workflows/publish-android-release.yml b/.github/workflows/publish-android-release.yml new file mode 100644 index 00000000..05aee864 --- /dev/null +++ b/.github/workflows/publish-android-release.yml @@ -0,0 +1,29 @@ +name: Publish Android Release + +on: + release: + types: + - created + workflow_dispatch: + +jobs: + publish: + name: Publish to Maven Central + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-android + + - name: Publish and release + run: | + ./gradlew :yoga:assembleRelease publish --info + ./gradlew closeAndReleaseRepository + env: + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }} + ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} diff --git a/.github/workflows/publish-android-snashot.yml b/.github/workflows/publish-android-snashot.yml new file mode 100644 index 00000000..ed90e3cc --- /dev/null +++ b/.github/workflows/publish-android-snashot.yml @@ -0,0 +1,36 @@ +name: Publish Android Snapshot + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + publish: + name: Publish Snapshot + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-android + + - name: Publish to Maven Local + run: ./gradlew publishToMavenLocal + env: + ORG_GRADLE_PROJECT_USE_SNAPSHOT: true + + - name: Upload Build Artifacts + uses: actions/upload-artifact@v3 + with: + name: 'snapshot-artifacts' + path: '~/.m2/repository/' + + - name: Publish to the Snapshot Repository + run: ./gradlew publishToSonatype + env: + ORG_GRADLE_PROJECT_NEXUS_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_NEXUS_USERNAME }} + ORG_GRADLE_PROJECT_NEXUS_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_NEXUS_PASSWORD }} + ORG_GRADLE_PROJECT_USE_SNAPSHOT: true diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml new file mode 100644 index 00000000..ac936663 --- /dev/null +++ b/.github/workflows/publish-website.yml @@ -0,0 +1,32 @@ +name: Website + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + publish: + name: Publish to GitHub Pages + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-website + + - name: yarn build + run: yarn build + working-directory: website + + - uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: website/public + cname: yogalayout.com + keep_files: true + user_name: 'Yoga-bot' + user_email: 'yogabot@fb.com' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 1231fb66..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Publish - -on: - release: - types: - - created - workflow_dispatch: - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Install dependencies - run: source scripts/android-setup.sh && installAndroidSDK - - name: Write GPG Sec Ring - run: echo '${{ secrets.GPG_KEY_CONTENTS }}' | base64 -d > /tmp/secring.gpg - - name: Update gradle.properties - run: echo -e "signing.secretKeyRingFile=/tmp/secring.gpg\nsigning.keyId=${{ secrets.SIGNING_KEY_ID }}\nsigning.password=${{ secrets.SIGNING_PASSWORD }}\nmavenCentralPassword=${{ secrets.SONATYPE_NEXUS_PASSWORD }}\nmavenCentralUsername=${{ secrets.SONATYPE_NEXUS_USERNAME }}" >> gradle.properties - - name: Upload Android Archives - run: ./gradlew :yoga:assembleRelease publish --info - - name: Release and close - run: ./gradlew closeAndReleaseRepository - - name: Clean secrets - if: always() - run: rm /tmp/secring.gpg diff --git a/.github/workflows/validate-android.yml b/.github/workflows/validate-android.yml new file mode 100644 index 00000000..3da04e98 --- /dev/null +++ b/.github/workflows/validate-android.yml @@ -0,0 +1,26 @@ +name: Android + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + name: Build [${{ matrix.os }}][${{ matrix.mode }}] + runs-on: ${{ matrix.os }} + strategy: + matrix: + mode: [Debug, Release] + os: [ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-android + + - name: Build + run: ./gradlew assemble${{ matrix.mode }} --stacktrace diff --git a/.github/workflows/validate-apple.yml b/.github/workflows/validate-apple.yml new file mode 100644 index 00000000..3b569812 --- /dev/null +++ b/.github/workflows/validate-apple.yml @@ -0,0 +1,55 @@ +name: Apple + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + lint-pods: + name: Lint + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-apple + + - name: pod spec lint + run: pod spec lint --verbose + continue-on-error: true # Apple Build is Broken + + build-sample: + name: Build [${{ matrix.mode }}] + runs-on: macos-latest + strategy: + matrix: + mode: [Debug, Release] + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-apple + + - name: pod install + run: pod install + working-directory: ./YogaKit/YogaKitSample + continue-on-error: true # Apple Build is Broken + + # TODO: xcodebuild + + clang-format: + name: Format + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: clang-format + uses: ./.github/actions/clang-format + with: + directory: ./YogaKit diff --git a/.github/workflows/validate-cpp.yml b/.github/workflows/validate-cpp.yml new file mode 100644 index 00000000..6d83c390 --- /dev/null +++ b/.github/workflows/validate-cpp.yml @@ -0,0 +1,64 @@ +name: C++ + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +env: + GTEST_COLOR: 1 + +jobs: + test: + name: Build and Test [${{ matrix.os }}][${{ matrix.mode }}] + runs-on: ${{ matrix.os }} + strategy: + matrix: + mode: [Debug, Release] + os: [ubuntu-latest] # TODO: fix issues building GTest Binary with MSVC in GitHub Actions + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-cpp + + - name: Unit tests + run: ./unit_tests ${{ matrix.mode }} + + benchmark: + name: Benchmark [${{ matrix.os }}] + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-cpp + + - name: Build benchmark + run: | + cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release + cmake --build build + working-directory: benchmark + + - name: Run benchmark + run: ./build/benchmark + working-directory: benchmark + + clang-format: + name: Format + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: clang-format + uses: ./.github/actions/clang-format + with: + directory: ./yoga diff --git a/.github/workflows/validate-js.yml b/.github/workflows/validate-js.yml new file mode 100644 index 00000000..2b856906 --- /dev/null +++ b/.github/workflows/validate-js.yml @@ -0,0 +1,74 @@ +name: JavaScript + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +env: + FORCE_COLOR: 3 + +jobs: + benchmark: + name: Benchmark [${{ matrix.os }}] + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-js + + - name: yarn benchmark + run: yarn benchmark + working-directory: javascript + + build: + name: Build [${{ matrix.os }}] + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-js + + - name: yarn build + run: yarn build + working-directory: javascript + + test: + name: Test [${{ matrix.os }}] + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-js + + - name: yarn test + run: yarn test + working-directory: javascript + + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: yarn install + run: yarn install --frozen-lockfile + working-directory: javascript + + - name: yarn lint + run: yarn lint + working-directory: javascript diff --git a/.github/workflows/validate-python.yml b/.github/workflows/validate-python.yml new file mode 100644 index 00000000..6ff392d2 --- /dev/null +++ b/.github/workflows/validate-python.yml @@ -0,0 +1,21 @@ +name: Python + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + format: + name: Format + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: black --check + uses: ./.github/actions/black + with: + directory: ${{ github.workspace }} diff --git a/.github/workflows/validate-website.yml b/.github/workflows/validate-website.yml new file mode 100644 index 00000000..e6b8a40b --- /dev/null +++ b/.github/workflows/validate-website.yml @@ -0,0 +1,23 @@ +name: Website + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + name: Build + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-website + + - name: yarn build + run: yarn build + working-directory: website diff --git a/.gitignore b/.gitignore index 35d9788a..64cb87e5 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,8 @@ /_site/ # Visual studio code -.vscode +!.vscode + *.pdb *.tlog *.obj @@ -63,5 +64,8 @@ Carthage/Build # Gradle .gradle +local.properties + # NDK/CMake +.cxx .externalNativeBuild diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 16b40a6e..00000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "lib/gtest/googletest"] - path = lib/gtest/googletest - url = https://github.com/google/googletest.git diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..cce314cd --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "ms-vscode.cpptools", + "EditorConfig.EditorConfig", + "dbaeumer.vscode-eslint", + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..db839dd5 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,25 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug C++ Unit tests (lldb)", + "type": "cppdbg", + "MIMode": "lldb", + "request": "launch", + "program": "${workspaceFolder}/tests/build/yogatests", + "cwd": "${workspaceFolder}", + "preLaunchTask": "Build Unit Tests" + }, + { + "name": "Debug C++ Unit tests (vsdbg)", + "type": "cppvsdbg", + "request": "launch", + "program": "${workspaceFolder}/tests/build/yogatests", + "cwd": "${workspaceFolder}", + "preLaunchTask": "Build Unit Tests" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..93391564 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,20 @@ +{ + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "eslint.format.enable": true, + "eslint.packageManager": "yarn", + "eslint.enable": true, + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact" + ], + "eslint.workingDirectories": [ + { + "mode": "auto" + } + ], +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..93797fb3 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,23 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build Unit Tests", + "type": "shell", + "command": "(which ninja && cmake -B build -S . -D CMAKE_BUILD_TYPE=Debug -G Ninja || cmake -B build -S . -D CMAKE_BUILD_TYPE=Debug) && cmake --build build", + "windows": { + "command": "(where ninja && cmake -B build -S . -D CMAKE_BUILD_TYPE=Debug -G Ninja || cmake -B build -S . -D CMAKE_BUILD_TYPE=Debug) && cmake --build build", + }, + "group": "build", + "options": { + "cwd": "tests" + }, + "presentation": { + "reveal": "always", + "panel": "new" + } + } + ] +} diff --git a/BUCK b/BUCK deleted file mode 100644 index eb96206f..00000000 --- a/BUCK +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. -load("//tools/build_defs/oss:yoga_defs.bzl", "BASE_COMPILER_FLAGS", "GTEST_TARGET", "LIBRARY_COMPILER_FLAGS", "YOGA_ROOTS", "subdir_glob", "yoga_cxx_library", "yoga_cxx_test", "yoga_dep", "yoga_prebuilt_cxx_library") - -GMOCK_OVERRIDE_FLAGS = [ - # gmock does not mark mocked methods as override, ignore the warnings in tests - "-Wno-inconsistent-missing-override", -] - -TEST_COMPILER_FLAGS = BASE_COMPILER_FLAGS + GMOCK_OVERRIDE_FLAGS + [ - "-DDEBUG", - "-DYG_ENABLE_EVENTS", -] - -yoga_prebuilt_cxx_library( - name = "ndklog", - exported_platform_linker_flags = [ - ( - "^android.*", - ["-llog"], - ), - ], - header_only = True, - visibility = YOGA_ROOTS, -) - -yoga_cxx_library( - name = "yoga", - srcs = glob(["yoga/**/*.cpp"]), - compiler_flags = LIBRARY_COMPILER_FLAGS, - public_include_directories = ["."], - raw_headers = glob(["yoga/**/*.h"]), - soname = "libyogacore.$(ext)", - tests = [":YogaTests"], - visibility = ["PUBLIC"], - deps = [ - ":ndklog", - ], -) - -yoga_cxx_library( - name = "yoga-static", - srcs = glob(["yoga/**/*.cpp"]), - compiler_flags = LIBRARY_COMPILER_FLAGS, - preferred_linkage = "static", - public_include_directories = ["."], - raw_headers = glob(["yoga/**/*.h"]), - tests = [":YogaTests"], - visibility = ["PUBLIC"], - deps = [ - ":ndklog", - ], -) - -yoga_cxx_library( - name = "yogaForDebug", - srcs = glob(["yoga/**/*.cpp"]), - compiler_flags = TEST_COMPILER_FLAGS, - public_include_directories = ["."], - raw_headers = glob(["yoga/**/*.h"]), - soname = "libyogacore.$(ext)", - tests = [":YogaTests"], - visibility = ["PUBLIC"], - deps = [ - ":yoga", - ], -) - -yoga_cxx_test( - name = "YogaTests", - srcs = glob(["tests/*.cpp"]), - headers = subdir_glob([("", "yoga/**/*.h")]), - compiler_flags = TEST_COMPILER_FLAGS, - contacts = ["emilsj@fb.com"], - visibility = ["PUBLIC"], - deps = [ - ":yogaForDebug", - yoga_dep("testutil:testutil"), - GTEST_TARGET, - ], -) diff --git a/CMakeLists.txt b/CMakeLists.txt index 018c269f..f4ce73cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,24 +1,52 @@ -# Copyright (c) Facebook, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -cmake_minimum_required(VERSION 3.4.1) - +cmake_minimum_required(VERSION 3.13...3.26) +project(yoga-all) set(CMAKE_VERBOSE_MAKEFILE on) -add_compile_options( - -fno-omit-frame-pointer - -fexceptions - -fvisibility=hidden - -ffunction-sections - -fdata-sections - -Wall - -std=c++11) +include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/project-defaults.cmake) -file(GLOB_RECURSE yogacore_SRC yoga/*.cpp) -add_library(yogacore STATIC ${yogacore_SRC}) +add_subdirectory(yoga) +add_subdirectory(tests) -target_include_directories(yogacore PUBLIC .) -target_link_libraries(yogacore android log) -set_target_properties(yogacore PROPERTIES CXX_STANDARD 11) +# cmake install config +include(GNUInstallDirs) +include(CMakePackageConfigHelpers) + +# declare target to install +install(TARGETS yogacore EXPORT yoga-targets + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} +) + +# install header files +install(DIRECTORY + "${CMAKE_CURRENT_LIST_DIR}/yoga" + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + FILES_MATCHING PATTERN "*.h" +) + +# install target config +install(EXPORT yoga-targets + FILE yogaTargets.cmake + NAMESPACE yoga:: + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/yoga +) + + +# generate config file +configure_package_config_file( + ${CMAKE_CURRENT_SOURCE_DIR}/cmake/yoga-config.cmake.in + ${CMAKE_CURRENT_BINARY_DIR}/yogaConfig.cmake + INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/yoga +) + +# install config file +install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/yogaConfig.cmake + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/yoga +) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index d1abc700..f049d4c5 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -74,4 +74,3 @@ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.ht For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq - diff --git a/README.md b/README.md index 527879ff..085a62ec 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,24 @@ -# Yoga [![CocoaPods](https://img.shields.io/cocoapods/v/YogaKit.svg)](http://cocoapods.org/pods/YogaKit) [![npm](https://img.shields.io/npm/v/yoga-layout.svg)](https://www.npmjs.com/package/yoga-layout) [![bintray](https://img.shields.io/bintray/v/facebook/maven/com.facebook.yoga:yoga.svg)](https://bintray.com/facebook/maven/com.facebook.yoga%3Ayoga/_latestVersion) [![NuGet](https://img.shields.io/nuget/v/Facebook.Yoga.svg)](https://www.nuget.org/packages/Facebook.Yoga) +# Yoga [![Support Ukraine](https://img.shields.io/badge/Support-Ukraine-FFD500?style=flat&labelColor=005BBB)](https://opensource.fb.com/support-ukraine) [![CocoaPods](https://img.shields.io/cocoapods/v/YogaKit.svg)](http://cocoapods.org/pods/YogaKit) [![npm](https://img.shields.io/npm/v/yoga-layout.svg)](https://www.npmjs.com/package/yoga-layout) [![Maven Central](https://img.shields.io/maven-central/v/com.facebook.yoga/yoga)](https://search.maven.org/artifact/com.facebook.yoga/yoga) + +Yoga is an embeddable and performant flexbox layout engine with bindings for multiple languages. + ## Building -Yoga builds with [buck](https://buckbuild.com). Make sure you install buck before contributing to Yoga. Yoga's main implementation is in C++, with bindings to supported languages and frameworks. When making changes to Yoga please ensure the changes are also propagated to these bindings when applicable. +Yoga's main implementation targets C++ 14 with accompanying build logic in CMake. A wrapper is provided to build the main library and run unit tests. -## Testing -For testing we rely on [gtest](https://github.com/google/googletest) as a submodule. After cloning Yoga run `git submodule init` followed by `git submodule update`. +```sh +./unit_tests +``` -For any changes you make you should ensure that all the tests are passing. In case you make any fixes or additions to the library please also add tests for that change to ensure we don't break anything in the future. Tests are located in the `tests` directory. Run the tests by executing `buck test //:yoga`. +While not required, this script will use [ninja](https://ninja-build.org/) if it is installed for faster builds. -Instead of manually writing a test which ensures parity with web implementations of Flexbox you can run `gentest/gentest.rb` to generate a test for you. You can write html which you want to verify in Yoga, in `gentest/fixtures` folder, such as the following. +Yoga is additionally part of the [vcpkg](https://github.com/Microsoft/vcpkg/) collection of ports maintained by Microsoft and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. + + + +## Adding Tests + +Many of Yoga's tests are automatically generated, using HTML fixtures describing node structure. These are rendered in Chrome to generate an expected layout result for the tree. New fixtures can be added to `gentest/fixtures`. ```html
@@ -16,59 +26,11 @@ Instead of manually writing a test which ensures parity with web implementations
``` -Run `gentest/gentest.rb` to generate test code and re-run `buck test //:yoga` to validate the behavior. One test case will be generated for every root `div` in the input html. +To generate new tests from added fixtures: +1. Run `bundle install` in the `gentest` directory to install dependencies of the test generator. +2. Run `ruby gentest.rb` in the `gentest` directory. -You may need to install the latest watir-webdriver gem (`gem install watir-webdriver`) and [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/) to run `gentest/gentest.rb` Ruby script. -### .NET -.NET testing is not integrated in buck yet, you might need to set up .NET testing environment. We have a script which to launch C# test on macOS, `csharp/tests/Facebook.Yoga/test_macos.sh`. +## Debugging -## Benchmarks -Benchmarks are located in `benchmark/YGBenchmark.c` and can be run with `buck run //benchmark:benchmark`. If you think your change has affected performance please run this before and after your change to validate that nothing has regressed. Benchmarks are run on every commit in CI. - -### JavaScript -Installing through NPM -```sh -npm install yoga-layout -``` -By default this will install the library and try to build for all platforms (node, browser asm, and standalone webpack). You may receive errors if you do not have the required platform development tools already installed. To preset the platform you'd like to build for you can set a .npmrc property first. -```sh -npm config set yoga-layout:platform standalone -``` -This will now only run the standalone webpack build upon install. - -## Build Platforms - -| name | description | -|----------------|-------------------------------------------------| -| all (default) | Builds all of these platforms. | -| browser | Builds asm js browser version. | -| node | Builds node js version. | -| standalone | Runs webpack. | -| none | Does nothing. You can use the prepackaged libs. | - -## Maintainer Release Guide - -To publish a new release, follow these steps: - -1. Ensure you have your GPG key set up and your [OSS Sonatype](https://oss.sonatype.org/) credentials handy. -2. Add the follow entries to either your local `gradle.properties` (don't forget to revert) or your global `~/.gradle/gradle.properties`: - -``` -# You get these from https://oss.sonatype.org/#profile;User%20Token -mavenCentralRepositoryUsername= -mavenCentralRepositoryPassword= - -# You can get the keyId (in GPG 1.4 format) by running `gpg1 --list-keys`. -signing.secretKeyRingFile= -signing.keyId= -signing.password= -``` - -3. Change the `VERSION_NAME` in `gradle.properties` to a non-SNAPSHOT release. -4. Commit and land the version change. -5. Run `./gradlew publishToMaven`. -6. Run `./gradlew closeAndReleaseRepository`. -7. Change the `VERSION_NAME` in `gradle.properties` back to a new SNAPSHOT release. -8. Commit and land the version change. -9. Celebrate! You've made a release! +Yoga provides a VSCode "launch.json" configuration which allows debugging unit tests. Simply add your breakpoints, and run "Debug C++ Unit tests (lldb)" (or "Debug C++ Unit tests (vsdbg)" on Windows). diff --git a/ReactYoga.xcodeproj/project.pbxproj b/ReactYoga.xcodeproj/project.pbxproj deleted file mode 100644 index 090c6e09..00000000 --- a/ReactYoga.xcodeproj/project.pbxproj +++ /dev/null @@ -1,5202 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 000E6CEB1AB0E980000CDF4D /* RCTSourceCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 000E6CEA1AB0E980000CDF4D /* RCTSourceCode.m */; }; - 001BFCD01D8381DE008E587E /* RCTMultipartStreamReader.m in Sources */ = {isa = PBXBuildFile; fileRef = 001BFCCF1D8381DE008E587E /* RCTMultipartStreamReader.m */; }; - 006FC4141D9B20820057AAAD /* RCTMultipartDataTask.m in Sources */ = {isa = PBXBuildFile; fileRef = 006FC4131D9B20820057AAAD /* RCTMultipartDataTask.m */; }; - 008341F61D1DB34400876D9A /* RCTJSStackFrame.m in Sources */ = {isa = PBXBuildFile; fileRef = 008341F41D1DB34400876D9A /* RCTJSStackFrame.m */; }; - 0EA924D02237686F004AB895 /* RCTSurfacePresenterStub.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 589515DF2231AD9C0036BDE0 /* RCTSurfacePresenterStub.h */; }; - 0EEEA8DF2239002200A8C82D /* RCTSurfacePresenterStub.m in Sources */ = {isa = PBXBuildFile; fileRef = 0EEEA8DE2239002200A8C82D /* RCTSurfacePresenterStub.m */; }; - 0EEEA8E02239002200A8C82D /* RCTSurfacePresenterStub.m in Sources */ = {isa = PBXBuildFile; fileRef = 0EEEA8DE2239002200A8C82D /* RCTSurfacePresenterStub.m */; }; - 130443A11E3FEAA900D93A67 /* RCTFollyConvert.h in Headers */ = {isa = PBXBuildFile; fileRef = 1304439F1E3FEAA900D93A67 /* RCTFollyConvert.h */; }; - 130443A21E3FEAA900D93A67 /* RCTFollyConvert.mm in Sources */ = {isa = PBXBuildFile; fileRef = 130443A01E3FEAA900D93A67 /* RCTFollyConvert.mm */; }; - 130443A31E3FEAAE00D93A67 /* RCTFollyConvert.h in Headers */ = {isa = PBXBuildFile; fileRef = 1304439F1E3FEAA900D93A67 /* RCTFollyConvert.h */; }; - 130443A41E3FEAC600D93A67 /* RCTFollyConvert.mm in Sources */ = {isa = PBXBuildFile; fileRef = 130443A01E3FEAA900D93A67 /* RCTFollyConvert.mm */; }; - 130443C61E401A8C00D93A67 /* RCTConvert+Transform.m in Sources */ = {isa = PBXBuildFile; fileRef = 130443C41E401A8C00D93A67 /* RCTConvert+Transform.m */; }; - 130443DB1E401ADD00D93A67 /* RCTConvert+Transform.m in Sources */ = {isa = PBXBuildFile; fileRef = 130443C41E401A8C00D93A67 /* RCTConvert+Transform.m */; }; - 130443DC1E401AF400D93A67 /* RCTConvert+Transform.h in Headers */ = {isa = PBXBuildFile; fileRef = 130443C31E401A8C00D93A67 /* RCTConvert+Transform.h */; }; - 130443DD1E401AF500D93A67 /* RCTConvert+Transform.h in Headers */ = {isa = PBXBuildFile; fileRef = 130443C31E401A8C00D93A67 /* RCTConvert+Transform.h */; }; - 130443DE1E401B0D00D93A67 /* RCTTVView.h in Headers */ = {isa = PBXBuildFile; fileRef = 130443D61E401AD800D93A67 /* RCTTVView.h */; }; - 130E3D881E6A082100ACE484 /* RCTDevSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 130E3D861E6A082100ACE484 /* RCTDevSettings.h */; }; - 130E3D891E6A082100ACE484 /* RCTDevSettings.mm in Sources */ = {isa = PBXBuildFile; fileRef = 130E3D871E6A082100ACE484 /* RCTDevSettings.mm */; }; - 130E3D8A1E6A083600ACE484 /* RCTDevSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 130E3D861E6A082100ACE484 /* RCTDevSettings.h */; }; - 130E3D8B1E6A083900ACE484 /* RCTDevSettings.mm in Sources */ = {isa = PBXBuildFile; fileRef = 130E3D871E6A082100ACE484 /* RCTDevSettings.mm */; }; - 13134C861E296B2A00B9F3CB /* RCTCxxBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C741E296B2A00B9F3CB /* RCTCxxBridge.mm */; }; - 13134C871E296B2A00B9F3CB /* RCTCxxBridge.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C741E296B2A00B9F3CB /* RCTCxxBridge.mm */; }; - 13134C8C1E296B2A00B9F3CB /* RCTMessageThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C771E296B2A00B9F3CB /* RCTMessageThread.h */; }; - 13134C8D1E296B2A00B9F3CB /* RCTMessageThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C771E296B2A00B9F3CB /* RCTMessageThread.h */; }; - 13134C8E1E296B2A00B9F3CB /* RCTMessageThread.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C781E296B2A00B9F3CB /* RCTMessageThread.mm */; }; - 13134C8F1E296B2A00B9F3CB /* RCTMessageThread.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C781E296B2A00B9F3CB /* RCTMessageThread.mm */; }; - 13134C941E296B2A00B9F3CB /* RCTObjcExecutor.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C7B1E296B2A00B9F3CB /* RCTObjcExecutor.h */; }; - 13134C951E296B2A00B9F3CB /* RCTObjcExecutor.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C7B1E296B2A00B9F3CB /* RCTObjcExecutor.h */; }; - 13134C961E296B2A00B9F3CB /* RCTObjcExecutor.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C7C1E296B2A00B9F3CB /* RCTObjcExecutor.mm */; }; - 13134C971E296B2A00B9F3CB /* RCTObjcExecutor.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C7C1E296B2A00B9F3CB /* RCTObjcExecutor.mm */; }; - 13134C981E296B2A00B9F3CB /* RCTCxxMethod.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C7E1E296B2A00B9F3CB /* RCTCxxMethod.h */; }; - 13134C991E296B2A00B9F3CB /* RCTCxxMethod.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C7E1E296B2A00B9F3CB /* RCTCxxMethod.h */; }; - 13134C9A1E296B2A00B9F3CB /* RCTCxxMethod.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C7F1E296B2A00B9F3CB /* RCTCxxMethod.mm */; }; - 13134C9B1E296B2A00B9F3CB /* RCTCxxMethod.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C7F1E296B2A00B9F3CB /* RCTCxxMethod.mm */; }; - 13134C9C1E296B2A00B9F3CB /* RCTCxxModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C801E296B2A00B9F3CB /* RCTCxxModule.h */; }; - 13134C9D1E296B2A00B9F3CB /* RCTCxxModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C801E296B2A00B9F3CB /* RCTCxxModule.h */; }; - 13134C9E1E296B2A00B9F3CB /* RCTCxxModule.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C811E296B2A00B9F3CB /* RCTCxxModule.mm */; }; - 13134C9F1E296B2A00B9F3CB /* RCTCxxModule.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C811E296B2A00B9F3CB /* RCTCxxModule.mm */; }; - 13134CA01E296B2A00B9F3CB /* RCTCxxUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C821E296B2A00B9F3CB /* RCTCxxUtils.h */; }; - 13134CA11E296B2A00B9F3CB /* RCTCxxUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 13134C821E296B2A00B9F3CB /* RCTCxxUtils.h */; }; - 13134CA21E296B2A00B9F3CB /* RCTCxxUtils.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C831E296B2A00B9F3CB /* RCTCxxUtils.mm */; }; - 13134CA31E296B2A00B9F3CB /* RCTCxxUtils.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13134C831E296B2A00B9F3CB /* RCTCxxUtils.mm */; }; - 131B6AF41AF1093D00FFC3E0 /* RCTSegmentedControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 131B6AF11AF1093D00FFC3E0 /* RCTSegmentedControl.m */; }; - 131B6AF51AF1093D00FFC3E0 /* RCTSegmentedControlManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 131B6AF31AF1093D00FFC3E0 /* RCTSegmentedControlManager.m */; }; - 133EA4E52098F6E30035B1D8 /* ReactMarker.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13DA8A2F2097A90A00276ED4 /* ReactMarker.h */; }; - 13456E931ADAD2DE009F94A7 /* RCTConvert+CoreLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 13456E921ADAD2DE009F94A7 /* RCTConvert+CoreLocation.m */; }; - 134D63C31F1FEC4B008872B5 /* RCTCxxBridgeDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 134D63C21F1FEC4B008872B5 /* RCTCxxBridgeDelegate.h */; }; - 134D63C41F1FEC65008872B5 /* RCTCxxBridgeDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 134D63C21F1FEC4B008872B5 /* RCTCxxBridgeDelegate.h */; }; - 13513F3C1B1F43F400FCE529 /* RCTProgressViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13513F3B1B1F43F400FCE529 /* RCTProgressViewManager.m */; }; - 13723B501A82FD3C00F88898 /* RCTStatusBarManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13723B4F1A82FD3C00F88898 /* RCTStatusBarManager.m */; }; - 1372B70A1AB030C200659ED6 /* RCTAppState.m in Sources */ = {isa = PBXBuildFile; fileRef = 1372B7091AB030C200659ED6 /* RCTAppState.m */; }; - 1384E2081E806D4E00545659 /* RCTNativeModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 1384E2061E806D4E00545659 /* RCTNativeModule.h */; }; - 1384E2091E806D4E00545659 /* RCTNativeModule.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1384E2071E806D4E00545659 /* RCTNativeModule.mm */; }; - 1384E20A1E806D5700545659 /* RCTNativeModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 1384E2061E806D4E00545659 /* RCTNativeModule.h */; }; - 1384E20B1E806D5B00545659 /* RCTNativeModule.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1384E2071E806D4E00545659 /* RCTNativeModule.mm */; }; - 139D7E911E25C70B00323FB7 /* bignum-dtoa.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E391E25C5A300323FB7 /* bignum-dtoa.cc */; }; - 139D7E931E25C70B00323FB7 /* bignum.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E3B1E25C5A300323FB7 /* bignum.cc */; }; - 139D7E951E25C70B00323FB7 /* cached-powers.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E3D1E25C5A300323FB7 /* cached-powers.cc */; }; - 139D7E971E25C70B00323FB7 /* diy-fp.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E3F1E25C5A300323FB7 /* diy-fp.cc */; }; - 139D7E991E25C70B00323FB7 /* double-conversion.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E411E25C5A300323FB7 /* double-conversion.cc */; }; - 139D7E9B1E25C70B00323FB7 /* fast-dtoa.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E431E25C5A300323FB7 /* fast-dtoa.cc */; }; - 139D7E9D1E25C70B00323FB7 /* fixed-dtoa.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E451E25C5A300323FB7 /* fixed-dtoa.cc */; }; - 139D7EA01E25C70B00323FB7 /* strtod.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E481E25C5A300323FB7 /* strtod.cc */; }; - 139D7EA51E25C85300323FB7 /* bignum-dtoa.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E3A1E25C5A300323FB7 /* bignum-dtoa.h */; }; - 139D7EA61E25C85300323FB7 /* bignum.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E3C1E25C5A300323FB7 /* bignum.h */; }; - 139D7EA71E25C85300323FB7 /* cached-powers.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E3E1E25C5A300323FB7 /* cached-powers.h */; }; - 139D7EA81E25C85300323FB7 /* diy-fp.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E401E25C5A300323FB7 /* diy-fp.h */; }; - 139D7EA91E25C85300323FB7 /* double-conversion.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E421E25C5A300323FB7 /* double-conversion.h */; }; - 139D7EAA1E25C85300323FB7 /* fast-dtoa.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E441E25C5A300323FB7 /* fast-dtoa.h */; }; - 139D7EAB1E25C85300323FB7 /* fixed-dtoa.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E461E25C5A300323FB7 /* fixed-dtoa.h */; }; - 139D7EAC1E25C85300323FB7 /* ieee.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E471E25C5A300323FB7 /* ieee.h */; }; - 139D7EAD1E25C85300323FB7 /* strtod.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E491E25C5A300323FB7 /* strtod.h */; }; - 139D7EAE1E25C85300323FB7 /* utils.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E4A1E25C5A300323FB7 /* utils.h */; }; - 139D7F021E25DE1100323FB7 /* logging.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EDA1E25DBDC00323FB7 /* logging.cc */; }; - 139D7F031E25DE1100323FB7 /* raw_logging.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EDB1E25DBDC00323FB7 /* raw_logging.cc */; }; - 139D7F041E25DE1100323FB7 /* signalhandler.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EDC1E25DBDC00323FB7 /* signalhandler.cc */; }; - 139D7F051E25DE1100323FB7 /* symbolize.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EDE1E25DBDC00323FB7 /* symbolize.cc */; }; - 139D7F061E25DE1100323FB7 /* utilities.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EE01E25DBDC00323FB7 /* utilities.cc */; }; - 139D7F071E25DE1100323FB7 /* vlog_is_on.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EE21E25DBDC00323FB7 /* vlog_is_on.cc */; }; - 139D7F091E25DE3700323FB7 /* demangle.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7F081E25DE3700323FB7 /* demangle.cc */; }; - 139D84B01E273B5600323FB7 /* Conv.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 139D849F1E273B5600323FB7 /* Conv.cpp */; }; - 139D84B11E273B5600323FB7 /* dynamic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 139D84A21E273B5600323FB7 /* dynamic.cpp */; }; - 139D84B31E273B5600323FB7 /* json.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 139D84A71E273B5600323FB7 /* json.cpp */; }; - 13A0C2891B74F71200B29F6F /* RCTDevLoadingView.m in Sources */ = {isa = PBXBuildFile; fileRef = 13A0C2861B74F71200B29F6F /* RCTDevLoadingView.m */; }; - 13A0C28A1B74F71200B29F6F /* RCTDevMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 13A0C2881B74F71200B29F6F /* RCTDevMenu.m */; }; - 13A1F71E1A75392D00D3D453 /* RCTKeyCommands.m in Sources */ = {isa = PBXBuildFile; fileRef = 13A1F71D1A75392D00D3D453 /* RCTKeyCommands.m */; }; - 13A6E20E1C19AA0C00845B82 /* RCTParserUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 13A6E20D1C19AA0C00845B82 /* RCTParserUtils.m */; }; - 13AB90C11B6FA36700713B4F /* RCTComponentData.m in Sources */ = {isa = PBXBuildFile; fileRef = 13AB90C01B6FA36700713B4F /* RCTComponentData.m */; }; - 13AF20451AE707F9005F5298 /* RCTSlider.m in Sources */ = {isa = PBXBuildFile; fileRef = 13AF20441AE707F9005F5298 /* RCTSlider.m */; }; - 13B07FEF1A69327A00A75B9A /* RCTAlertManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FE81A69327A00A75B9A /* RCTAlertManager.m */; }; - 13B07FF01A69327A00A75B9A /* RCTExceptionsManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FEA1A69327A00A75B9A /* RCTExceptionsManager.m */; }; - 13B07FF21A69327A00A75B9A /* RCTTiming.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FEE1A69327A00A75B9A /* RCTTiming.m */; }; - 13B080201A69489C00A75B9A /* RCTActivityIndicatorViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B080191A69489C00A75B9A /* RCTActivityIndicatorViewManager.m */; }; - 13B080261A694A8400A75B9A /* RCTWrapperViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B080241A694A8400A75B9A /* RCTWrapperViewController.m */; }; - 13BB3D021BECD54500932C10 /* RCTImageSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 13BB3D011BECD54500932C10 /* RCTImageSource.m */; }; - 13BCE8091C99CB9D00DD7AAD /* RCTRootShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 13BCE8081C99CB9D00DD7AAD /* RCTRootShadowView.m */; }; - 13C156051AB1A2840079392D /* RCTWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 13C156021AB1A2840079392D /* RCTWebView.m */; }; - 13C156061AB1A2840079392D /* RCTWebViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13C156041AB1A2840079392D /* RCTWebViewManager.m */; }; - 13CC8A821B17642100940AE7 /* RCTBorderDrawing.m in Sources */ = {isa = PBXBuildFile; fileRef = 13CC8A811B17642100940AE7 /* RCTBorderDrawing.m */; }; - 13D033631C1837FE0021DC29 /* RCTClipboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 13D033621C1837FE0021DC29 /* RCTClipboard.m */; }; - 13D9FEEB1CDCCECF00158BD7 /* RCTEventEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 13D9FEEA1CDCCECF00158BD7 /* RCTEventEmitter.m */; }; - 13D9FEEE1CDCD93000158BD7 /* RCTKeyboardObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 13D9FEED1CDCD93000158BD7 /* RCTKeyboardObserver.m */; }; - 13DA8A312097A90B00276ED4 /* ReactMarker.h in Headers */ = {isa = PBXBuildFile; fileRef = 13DA8A2F2097A90A00276ED4 /* ReactMarker.h */; }; - 13DA8A322097A90B00276ED4 /* ReactMarker.h in Headers */ = {isa = PBXBuildFile; fileRef = 13DA8A2F2097A90A00276ED4 /* ReactMarker.h */; }; - 13DA8A332097A90B00276ED4 /* ReactMarker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 13DA8A302097A90B00276ED4 /* ReactMarker.cpp */; }; - 13DA8A342097A90B00276ED4 /* ReactMarker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 13DA8A302097A90B00276ED4 /* ReactMarker.cpp */; }; - 13E0674A1A70F434002CDEE1 /* RCTUIManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E067491A70F434002CDEE1 /* RCTUIManager.m */; }; - 13E067561A70F44B002CDEE1 /* RCTViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E0674E1A70F44B002CDEE1 /* RCTViewManager.m */; }; - 13E067571A70F44B002CDEE1 /* RCTView.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E067501A70F44B002CDEE1 /* RCTView.m */; }; - 13E067591A70F44B002CDEE1 /* UIView+React.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E067541A70F44B002CDEE1 /* UIView+React.m */; }; - 13E41EEB1C05CA0B00CD8DAC /* RCTProfileTrampoline-i386.S in Sources */ = {isa = PBXBuildFile; fileRef = 14BF717F1C04793D00C97D0C /* RCTProfileTrampoline-i386.S */; }; - 13F17A851B8493E5007D4C75 /* RCTRedBox.m in Sources */ = {isa = PBXBuildFile; fileRef = 13F17A841B8493E5007D4C75 /* RCTRedBox.m */; }; - 13F887581E2971D400C3C7A1 /* Demangle.h in Sources */ = {isa = PBXBuildFile; fileRef = 13F887521E2971C500C3C7A1 /* Demangle.h */; }; - 13F8875A1E2971D400C3C7A1 /* Unicode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 13F887541E2971C500C3C7A1 /* Unicode.cpp */; }; - 13F8876E1E29726200C3C7A1 /* CxxNativeModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0A81E03699D0018521A /* CxxNativeModule.cpp */; }; - 13F887701E29726200C3C7A1 /* Instance.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0AE1E03699D0018521A /* Instance.cpp */; }; - 13F887711E29726200C3C7A1 /* JSBundleType.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AC70D2EB1DE48A22002E6351 /* JSBundleType.cpp */; }; - 13F8877B1E29726200C3C7A1 /* JSIndexedRAMBundle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0C61E03699D0018521A /* JSIndexedRAMBundle.cpp */; }; - 13F8877C1E29726200C3C7A1 /* MethodCall.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0CA1E03699D0018521A /* MethodCall.cpp */; }; - 13F8877D1E29726200C3C7A1 /* ModuleRegistry.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0CC1E03699D0018521A /* ModuleRegistry.cpp */; }; - 13F8877E1E29726200C3C7A1 /* NativeToJsBridge.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0CF1E03699D0018521A /* NativeToJsBridge.cpp */; }; - 13F887801E29726200C3C7A1 /* SampleCxxModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0D31E03699D0018521A /* SampleCxxModule.cpp */; }; - 13F887821E29726300C3C7A1 /* CxxNativeModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0A81E03699D0018521A /* CxxNativeModule.cpp */; }; - 13F887841E29726300C3C7A1 /* Instance.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0AE1E03699D0018521A /* Instance.cpp */; }; - 13F8878E1E29726300C3C7A1 /* JSIndexedRAMBundle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0C61E03699D0018521A /* JSIndexedRAMBundle.cpp */; }; - 13F8878F1E29726300C3C7A1 /* MethodCall.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0CA1E03699D0018521A /* MethodCall.cpp */; }; - 13F887901E29726300C3C7A1 /* ModuleRegistry.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0CC1E03699D0018521A /* ModuleRegistry.cpp */; }; - 13F887911E29726300C3C7A1 /* NativeToJsBridge.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0CF1E03699D0018521A /* NativeToJsBridge.cpp */; }; - 13F887931E29726300C3C7A1 /* SampleCxxModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3D92B0D31E03699D0018521A /* SampleCxxModule.cpp */; }; - 142014191B32094000CC17BA /* RCTPerformanceLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 142014171B32094000CC17BA /* RCTPerformanceLogger.m */; }; - 1450FF861BCFF28A00208362 /* RCTProfile.m in Sources */ = {isa = PBXBuildFile; fileRef = 1450FF811BCFF28A00208362 /* RCTProfile.m */; }; - 1450FF871BCFF28A00208362 /* RCTProfileTrampoline-arm.S in Sources */ = {isa = PBXBuildFile; fileRef = 1450FF821BCFF28A00208362 /* RCTProfileTrampoline-arm.S */; }; - 1450FF881BCFF28A00208362 /* RCTProfileTrampoline-arm64.S in Sources */ = {isa = PBXBuildFile; fileRef = 1450FF831BCFF28A00208362 /* RCTProfileTrampoline-arm64.S */; }; - 1450FF8A1BCFF28A00208362 /* RCTProfileTrampoline-x86_64.S in Sources */ = {isa = PBXBuildFile; fileRef = 1450FF851BCFF28A00208362 /* RCTProfileTrampoline-x86_64.S */; }; - 14C2CA741B3AC64300E6CBB2 /* RCTModuleData.mm in Sources */ = {isa = PBXBuildFile; fileRef = 14C2CA731B3AC64300E6CBB2 /* RCTModuleData.mm */; }; - 14C2CA761B3AC64F00E6CBB2 /* RCTFrameUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 14C2CA751B3AC64F00E6CBB2 /* RCTFrameUpdate.m */; }; - 14F3620D1AABD06A001CE568 /* RCTSwitch.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F362081AABD06A001CE568 /* RCTSwitch.m */; }; - 14F3620E1AABD06A001CE568 /* RCTSwitchManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F3620A1AABD06A001CE568 /* RCTSwitchManager.m */; }; - 14F484561AABFCE100FDF6B9 /* RCTSliderManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F484551AABFCE100FDF6B9 /* RCTSliderManager.m */; }; - 14F7A0EC1BDA3B3C003C6C10 /* RCTPerfMonitor.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F7A0EB1BDA3B3C003C6C10 /* RCTPerfMonitor.m */; }; - 14F7A0F01BDA714B003C6C10 /* RCTFPSGraph.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F7A0EF1BDA714B003C6C10 /* RCTFPSGraph.m */; }; - 191E3EBE1C29D9AF00C180A6 /* RCTRefreshControlManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 191E3EBD1C29D9AF00C180A6 /* RCTRefreshControlManager.m */; }; - 191E3EC11C29DC3800C180A6 /* RCTRefreshControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 191E3EC01C29DC3800C180A6 /* RCTRefreshControl.m */; }; - 199B8A6F1F44DB16005DEF67 /* RCTVersion.h in Headers */ = {isa = PBXBuildFile; fileRef = 199B8A6E1F44DB16005DEF67 /* RCTVersion.h */; }; - 199B8A761F44DEDA005DEF67 /* RCTVersion.h in Headers */ = {isa = PBXBuildFile; fileRef = 199B8A6E1F44DB16005DEF67 /* RCTVersion.h */; }; - 19F61BFA1E8495CD00571D81 /* bignum-dtoa.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E3A1E25C5A300323FB7 /* bignum-dtoa.h */; }; - 19F61BFB1E8495CD00571D81 /* bignum.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E3C1E25C5A300323FB7 /* bignum.h */; }; - 19F61BFC1E8495CD00571D81 /* cached-powers.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E3E1E25C5A300323FB7 /* cached-powers.h */; }; - 19F61BFD1E8495CD00571D81 /* diy-fp.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E401E25C5A300323FB7 /* diy-fp.h */; }; - 19F61BFE1E8495CD00571D81 /* double-conversion.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E421E25C5A300323FB7 /* double-conversion.h */; }; - 19F61BFF1E8495CD00571D81 /* fast-dtoa.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E441E25C5A300323FB7 /* fast-dtoa.h */; }; - 19F61C001E8495CD00571D81 /* fixed-dtoa.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E461E25C5A300323FB7 /* fixed-dtoa.h */; }; - 19F61C011E8495CD00571D81 /* ieee.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E471E25C5A300323FB7 /* ieee.h */; }; - 19F61C021E8495CD00571D81 /* strtod.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E491E25C5A300323FB7 /* strtod.h */; }; - 19F61C031E8495CD00571D81 /* utils.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E4A1E25C5A300323FB7 /* utils.h */; }; - 27595AA41E575C7800CCE2B1 /* CxxModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0A71E03699D0018521A /* CxxModule.h */; }; - 27595AA51E575C7800CCE2B1 /* CxxNativeModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0A91E03699D0018521A /* CxxNativeModule.h */; }; - 27595AA61E575C7800CCE2B1 /* JSExecutor.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0AB1E03699D0018521A /* JSExecutor.h */; }; - 27595AA91E575C7800CCE2B1 /* Instance.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0AF1E03699D0018521A /* Instance.h */; }; - 27595AAA1E575C7800CCE2B1 /* JsArgumentHelpers-inl.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0B01E03699D0018521A /* JsArgumentHelpers-inl.h */; }; - 27595AAB1E575C7800CCE2B1 /* JsArgumentHelpers.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0B11E03699D0018521A /* JsArgumentHelpers.h */; }; - 27595AB51E575C7800CCE2B1 /* JSIndexedRAMBundle.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C71E03699D0018521A /* JSIndexedRAMBundle.h */; }; - 27595AB61E575C7800CCE2B1 /* MessageQueueThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C91E03699D0018521A /* MessageQueueThread.h */; }; - 27595AB71E575C7800CCE2B1 /* MethodCall.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CB1E03699D0018521A /* MethodCall.h */; }; - 27595AB81E575C7800CCE2B1 /* ModuleRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CD1E03699D0018521A /* ModuleRegistry.h */; }; - 27595AB91E575C7800CCE2B1 /* NativeModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CE1E03699D0018521A /* NativeModule.h */; }; - 27595ABA1E575C7800CCE2B1 /* NativeToJsBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D01E03699D0018521A /* NativeToJsBridge.h */; }; - 27595ABC1E575C7800CCE2B1 /* SampleCxxModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D41E03699D0018521A /* SampleCxxModule.h */; }; - 27595ABD1E575C7800CCE2B1 /* SystraceSection.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D51E03699D0018521A /* SystraceSection.h */; }; - 27595ABF1E575C7800CCE2B1 /* CxxModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0A71E03699D0018521A /* CxxModule.h */; }; - 27595AC01E575C7800CCE2B1 /* CxxNativeModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0A91E03699D0018521A /* CxxNativeModule.h */; }; - 27595AC11E575C7800CCE2B1 /* JSExecutor.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0AB1E03699D0018521A /* JSExecutor.h */; }; - 27595AC41E575C7800CCE2B1 /* Instance.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0AF1E03699D0018521A /* Instance.h */; }; - 27595AC51E575C7800CCE2B1 /* JsArgumentHelpers-inl.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0B01E03699D0018521A /* JsArgumentHelpers-inl.h */; }; - 27595AC61E575C7800CCE2B1 /* JsArgumentHelpers.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0B11E03699D0018521A /* JsArgumentHelpers.h */; }; - 27595AD01E575C7800CCE2B1 /* JSIndexedRAMBundle.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C71E03699D0018521A /* JSIndexedRAMBundle.h */; }; - 27595AD11E575C7800CCE2B1 /* MessageQueueThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C91E03699D0018521A /* MessageQueueThread.h */; }; - 27595AD21E575C7800CCE2B1 /* MethodCall.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CB1E03699D0018521A /* MethodCall.h */; }; - 27595AD31E575C7800CCE2B1 /* ModuleRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CD1E03699D0018521A /* ModuleRegistry.h */; }; - 27595AD41E575C7800CCE2B1 /* NativeModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CE1E03699D0018521A /* NativeModule.h */; }; - 27595AD51E575C7800CCE2B1 /* NativeToJsBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D01E03699D0018521A /* NativeToJsBridge.h */; }; - 27595AD71E575C7800CCE2B1 /* SampleCxxModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D41E03699D0018521A /* SampleCxxModule.h */; }; - 27595AD81E575C7800CCE2B1 /* SystraceSection.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D51E03699D0018521A /* SystraceSection.h */; }; - 2D0EB9F32021067800CAF88A /* RCTUIUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = F1EFDA4E201F660F00EE6E4C /* RCTUIUtils.m */; }; - 2D1D83CE1F74E2DA00615550 /* libdouble-conversion.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D383D621EBD27B9005632C8 /* libdouble-conversion.a */; }; - 2D3B5E931D9B087300451313 /* RCTErrorInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */; }; - 2D3B5E941D9B087900451313 /* RCTBundleURLProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 68EFE4ED1CF6EB3900A1DE13 /* RCTBundleURLProvider.m */; }; - 2D3B5E951D9B087C00451313 /* RCTAssert.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA4B1A601E3B00E9B192 /* RCTAssert.m */; }; - 2D3B5E971D9B089000451313 /* RCTBridge.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA5F1A601EAA00E9B192 /* RCTBridge.m */; }; - 2D3B5E981D9B089500451313 /* RCTConvert.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBACB1A6023D300E9B192 /* RCTConvert.m */; }; - 2D3B5E991D9B089A00451313 /* RCTDisplayLink.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D1E68D91CABD13900DD7465 /* RCTDisplayLink.m */; }; - 2D3B5E9A1D9B089D00451313 /* RCTEventDispatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA661A601EF300E9B192 /* RCTEventDispatcher.m */; }; - 2D3B5E9B1D9B08A000451313 /* RCTFrameUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 14C2CA751B3AC64F00E6CBB2 /* RCTFrameUpdate.m */; }; - 2D3B5E9C1D9B08A300451313 /* RCTImageSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 13BB3D011BECD54500932C10 /* RCTImageSource.m */; }; - 2D3B5E9E1D9B08AD00451313 /* RCTJSStackFrame.m in Sources */ = {isa = PBXBuildFile; fileRef = 008341F41D1DB34400876D9A /* RCTJSStackFrame.m */; }; - 2D3B5E9F1D9B08AF00451313 /* RCTKeyCommands.m in Sources */ = {isa = PBXBuildFile; fileRef = 13A1F71D1A75392D00D3D453 /* RCTKeyCommands.m */; }; - 2D3B5EA01D9B08B200451313 /* RCTLog.mm in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA4E1A601E3B00E9B192 /* RCTLog.mm */; }; - 2D3B5EA11D9B08B600451313 /* RCTModuleData.mm in Sources */ = {isa = PBXBuildFile; fileRef = 14C2CA731B3AC64300E6CBB2 /* RCTModuleData.mm */; }; - 2D3B5EA31D9B08BE00451313 /* RCTParserUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 13A6E20D1C19AA0C00845B82 /* RCTParserUtils.m */; }; - 2D3B5EA41D9B08C200451313 /* RCTPerformanceLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 142014171B32094000CC17BA /* RCTPerformanceLogger.m */; }; - 2D3B5EA51D9B08C700451313 /* RCTRootView.m in Sources */ = {isa = PBXBuildFile; fileRef = 830A229D1A66C68A008503DA /* RCTRootView.m */; }; - 2D3B5EA61D9B08CA00451313 /* RCTTouchEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 391E86A21C623EC800009732 /* RCTTouchEvent.m */; }; - 2D3B5EA71D9B08CE00451313 /* RCTTouchHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA971A6020BB00E9B192 /* RCTTouchHandler.m */; }; - 2D3B5EA81D9B08D300451313 /* RCTUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA501A601E3B00E9B192 /* RCTUtils.m */; }; - 2D3B5EAE1D9B08F800451313 /* RCTEventEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 13D9FEEA1CDCCECF00158BD7 /* RCTEventEmitter.m */; }; - 2D3B5EAF1D9B08FB00451313 /* RCTAccessibilityManager.m in Sources */ = {isa = PBXBuildFile; fileRef = E9B20B7A1B500126007A2DA7 /* RCTAccessibilityManager.m */; }; - 2D3B5EB01D9B08FE00451313 /* RCTAlertManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FE81A69327A00A75B9A /* RCTAlertManager.m */; }; - 2D3B5EB11D9B090100451313 /* RCTAppState.m in Sources */ = {isa = PBXBuildFile; fileRef = 1372B7091AB030C200659ED6 /* RCTAppState.m */; }; - 2D3B5EB21D9B090300451313 /* RCTAsyncLocalStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = 58114A4E1AAE93D500E7D092 /* RCTAsyncLocalStorage.m */; }; - 2D3B5EB41D9B090A00451313 /* RCTDevLoadingView.m in Sources */ = {isa = PBXBuildFile; fileRef = 13A0C2861B74F71200B29F6F /* RCTDevLoadingView.m */; }; - 2D3B5EB51D9B091100451313 /* RCTDevMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 13A0C2881B74F71200B29F6F /* RCTDevMenu.m */; }; - 2D3B5EB61D9B091400451313 /* RCTExceptionsManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FEA1A69327A00A75B9A /* RCTExceptionsManager.m */; }; - 2D3B5EB71D9B091800451313 /* RCTRedBox.m in Sources */ = {isa = PBXBuildFile; fileRef = 13F17A841B8493E5007D4C75 /* RCTRedBox.m */; }; - 2D3B5EB81D9B091B00451313 /* RCTSourceCode.m in Sources */ = {isa = PBXBuildFile; fileRef = 000E6CEA1AB0E980000CDF4D /* RCTSourceCode.m */; }; - 2D3B5EBA1D9B092100451313 /* RCTI18nUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 352DCFEF1D19F4C20056D623 /* RCTI18nUtil.m */; }; - 2D3B5EBB1D9B092300451313 /* RCTI18nManager.m in Sources */ = {isa = PBXBuildFile; fileRef = B233E6E91D2D845D00BC68BA /* RCTI18nManager.m */; }; - 2D3B5EBC1D9B092600451313 /* RCTKeyboardObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 13D9FEED1CDCD93000158BD7 /* RCTKeyboardObserver.m */; }; - 2D3B5EBD1D9B092A00451313 /* RCTTiming.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FEE1A69327A00A75B9A /* RCTTiming.m */; }; - 2D3B5EBE1D9B092D00451313 /* RCTUIManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E067491A70F434002CDEE1 /* RCTUIManager.m */; }; - 2D3B5EC01D9B093600451313 /* RCTPerfMonitor.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F7A0EB1BDA3B3C003C6C10 /* RCTPerfMonitor.m */; }; - 2D3B5EC11D9B093900451313 /* RCTFPSGraph.m in Sources */ = {isa = PBXBuildFile; fileRef = 14F7A0EF1BDA714B003C6C10 /* RCTFPSGraph.m */; }; - 2D3B5EC21D9B093B00451313 /* RCTProfile.m in Sources */ = {isa = PBXBuildFile; fileRef = 1450FF811BCFF28A00208362 /* RCTProfile.m */; }; - 2D3B5EC31D9B094800451313 /* RCTProfileTrampoline-arm.S in Sources */ = {isa = PBXBuildFile; fileRef = 1450FF821BCFF28A00208362 /* RCTProfileTrampoline-arm.S */; }; - 2D3B5EC41D9B094B00451313 /* RCTProfileTrampoline-arm64.S in Sources */ = {isa = PBXBuildFile; fileRef = 1450FF831BCFF28A00208362 /* RCTProfileTrampoline-arm64.S */; }; - 2D3B5EC51D9B094D00451313 /* RCTProfileTrampoline-i386.S in Sources */ = {isa = PBXBuildFile; fileRef = 14BF717F1C04793D00C97D0C /* RCTProfileTrampoline-i386.S */; }; - 2D3B5EC61D9B095000451313 /* RCTProfileTrampoline-x86_64.S in Sources */ = {isa = PBXBuildFile; fileRef = 1450FF851BCFF28A00208362 /* RCTProfileTrampoline-x86_64.S */; }; - 2D3B5EC71D9B095600451313 /* RCTActivityIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = B95154311D1B34B200FE7B80 /* RCTActivityIndicatorView.m */; }; - 2D3B5EC81D9B095800451313 /* RCTActivityIndicatorViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B080191A69489C00A75B9A /* RCTActivityIndicatorViewManager.m */; }; - 2D3B5EC91D9B095C00451313 /* RCTBorderDrawing.m in Sources */ = {isa = PBXBuildFile; fileRef = 13CC8A811B17642100940AE7 /* RCTBorderDrawing.m */; }; - 2D3B5ECA1D9B095F00451313 /* RCTComponentData.m in Sources */ = {isa = PBXBuildFile; fileRef = 13AB90C01B6FA36700713B4F /* RCTComponentData.m */; }; - 2D3B5ECB1D9B096200451313 /* RCTConvert+CoreLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 13456E921ADAD2DE009F94A7 /* RCTConvert+CoreLocation.m */; }; - 2D3B5ECF1D9B096F00451313 /* RCTFont.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3D37B5811D522B190042D5B5 /* RCTFont.mm */; }; - 2D3B5ED41D9B097D00451313 /* RCTModalHostView.m in Sources */ = {isa = PBXBuildFile; fileRef = 83A1FE8B1B62640A00BE0E65 /* RCTModalHostView.m */; }; - 2D3B5ED51D9B098000451313 /* RCTModalHostViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 83392EB21B6634E10013B15F /* RCTModalHostViewController.m */; }; - 2D3B5ED61D9B098400451313 /* RCTModalHostViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 83A1FE8E1B62643A00BE0E65 /* RCTModalHostViewManager.m */; }; - 2D3B5EDD1D9B09A300451313 /* RCTProgressViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13513F3B1B1F43F400FCE529 /* RCTProgressViewManager.m */; }; - 2D3B5EE01D9B09AD00451313 /* RCTRootShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 13BCE8081C99CB9D00DD7AAD /* RCTRootShadowView.m */; }; - 2D3B5EE31D9B09B700451313 /* RCTSegmentedControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 131B6AF11AF1093D00FFC3E0 /* RCTSegmentedControl.m */; }; - 2D3B5EE41D9B09BB00451313 /* RCTSegmentedControlManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 131B6AF31AF1093D00FFC3E0 /* RCTSegmentedControlManager.m */; }; - 2D3B5EEE1D9B09DA00451313 /* RCTView.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E067501A70F44B002CDEE1 /* RCTView.m */; }; - 2D3B5EEF1D9B09DC00451313 /* RCTViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E0674E1A70F44B002CDEE1 /* RCTViewManager.m */; }; - 2D3B5EF01D9B09E300451313 /* RCTWrapperViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B080241A694A8400A75B9A /* RCTWrapperViewController.m */; }; - 2D3B5EF11D9B09E700451313 /* UIView+React.m in Sources */ = {isa = PBXBuildFile; fileRef = 13E067541A70F44B002CDEE1 /* UIView+React.m */; }; - 2D74EAFA1DAE9590003B751B /* RCTMultipartDataTask.m in Sources */ = {isa = PBXBuildFile; fileRef = 006FC4131D9B20820057AAAD /* RCTMultipartDataTask.m */; }; - 2D8C2E331DA40441000EE098 /* RCTMultipartStreamReader.m in Sources */ = {isa = PBXBuildFile; fileRef = 001BFCCF1D8381DE008E587E /* RCTMultipartStreamReader.m */; }; - 2DD0EFE11DA84F2800B0C975 /* RCTStatusBarManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13723B4F1A82FD3C00F88898 /* RCTStatusBarManager.m */; }; - 352DCFF01D19F4C20056D623 /* RCTI18nUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 352DCFEF1D19F4C20056D623 /* RCTI18nUtil.m */; }; - 391E86A41C623EC800009732 /* RCTTouchEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 391E86A21C623EC800009732 /* RCTTouchEvent.m */; }; - 39C50FF92046EACF00CEE534 /* RCTVersion.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 199B8A6E1F44DB16005DEF67 /* RCTVersion.h */; }; - 39C50FFB2046EE3500CEE534 /* RCTVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 39C50FFA2046EE3500CEE534 /* RCTVersion.m */; }; - 39C50FFC2046EE3500CEE534 /* RCTVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 39C50FFA2046EE3500CEE534 /* RCTVersion.m */; }; - 3D05745A1DE5FFF500184BB4 /* RCTJavaScriptLoader.mm in Sources */ = {isa = PBXBuildFile; fileRef = AC70D2E81DE489E4002E6351 /* RCTJavaScriptLoader.mm */; }; - 3D0B84221EC0B3F600B2BD8E /* RCTResizeMode.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0851DE4F3A000E03CC6 /* RCTResizeMode.h */; }; - 3D0B84231EC0B40D00B2BD8E /* RCTImageLoader.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0831DE4F3A000E03CC6 /* RCTImageLoader.h */; }; - 3D0B84241EC0B40D00B2BD8E /* RCTImageStoreManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0841DE4F3A000E03CC6 /* RCTImageStoreManager.h */; }; - 3D0B84251EC0B42600B2BD8E /* RCTNetworking.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA07A1DE4F2EA00E03CC6 /* RCTNetworking.h */; }; - 3D0B84261EC0B42600B2BD8E /* RCTNetworkTask.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA07B1DE4F2EA00E03CC6 /* RCTNetworkTask.h */; }; - 3D0B84271EC0B45400B2BD8E /* RCTLinkingManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA08B1DE4F4DD00E03CC6 /* RCTLinkingManager.h */; }; - 3D0B842A1EC0B49400B2BD8E /* RCTTVRemoteHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D0B84281EC0B49400B2BD8E /* RCTTVRemoteHandler.h */; }; - 3D0B842B1EC0B49400B2BD8E /* RCTTVRemoteHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D0B84291EC0B49400B2BD8E /* RCTTVRemoteHandler.m */; }; - 3D0B842C1EC0B4EA00B2BD8E /* RCTTVView.m in Sources */ = {isa = PBXBuildFile; fileRef = 130443D71E401AD800D93A67 /* RCTTVView.m */; }; - 3D0E378A1F1CC40000DCAC9F /* RCTWebSocketModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D0E37891F1CC40000DCAC9F /* RCTWebSocketModule.h */; }; - 3D0E378E1F1CC59100DCAC9F /* RCTWebSocketModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D0E37891F1CC40000DCAC9F /* RCTWebSocketModule.h */; }; - 3D0E378F1F1CC5CF00DCAC9F /* RCTWebSocketModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D0E37891F1CC40000DCAC9F /* RCTWebSocketModule.h */; }; - 3D0E37901F1CC5E100DCAC9F /* RCTWebSocketModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D0E37891F1CC40000DCAC9F /* RCTWebSocketModule.h */; }; - 3D1E68DB1CABD13900DD7465 /* RCTDisplayLink.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D1E68D91CABD13900DD7465 /* RCTDisplayLink.m */; }; - 3D302F241DF828F800D6DDAE /* RCTImageLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0831DE4F3A000E03CC6 /* RCTImageLoader.h */; }; - 3D302F251DF828F800D6DDAE /* RCTImageStoreManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0841DE4F3A000E03CC6 /* RCTImageStoreManager.h */; }; - 3D302F261DF828F800D6DDAE /* RCTResizeMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0851DE4F3A000E03CC6 /* RCTResizeMode.h */; }; - 3D302F271DF828F800D6DDAE /* RCTLinkingManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA08B1DE4F4DD00E03CC6 /* RCTLinkingManager.h */; }; - 3D302F281DF828F800D6DDAE /* RCTNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA07A1DE4F2EA00E03CC6 /* RCTNetworking.h */; }; - 3D302F291DF828F800D6DDAE /* RCTNetworkTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA07B1DE4F2EA00E03CC6 /* RCTNetworkTask.h */; }; - 3D302F2A1DF828F800D6DDAE /* RCTPushNotificationManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA08D1DE4F4EE00E03CC6 /* RCTPushNotificationManager.h */; }; - 3D302F2B1DF828F800D6DDAE /* RCTAssert.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4A1A601E3B00E9B192 /* RCTAssert.h */; }; - 3D302F2C1DF828F800D6DDAE /* RCTBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA5E1A601EAA00E9B192 /* RCTBridge.h */; }; - 3D302F2D1DF828F800D6DDAE /* RCTBridge+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 14A43DB81C1F849600794BC8 /* RCTBridge+Private.h */; }; - 3D302F2E1DF828F800D6DDAE /* RCTBridgeDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1482F9E61B55B927000ADFF3 /* RCTBridgeDelegate.h */; }; - 3D302F2F1DF828F800D6DDAE /* RCTBridgeMethod.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AFBCA11C07287B00BBAEAA /* RCTBridgeMethod.h */; }; - 3D302F301DF828F800D6DDAE /* RCTBridgeModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 830213F31A654E0800B993E6 /* RCTBridgeModule.h */; }; - 3D302F311DF828F800D6DDAE /* RCTBundleURLProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 68EFE4EC1CF6EB3000A1DE13 /* RCTBundleURLProvider.h */; }; - 3D302F321DF828F800D6DDAE /* RCTConvert.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBACA1A6023D300E9B192 /* RCTConvert.h */; }; - 3D302F331DF828F800D6DDAE /* RCTDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AF1F851AE6E777005F5298 /* RCTDefines.h */; }; - 3D302F341DF828F800D6DDAE /* RCTDisplayLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1E68D81CABD13900DD7465 /* RCTDisplayLink.h */; }; - 3D302F351DF828F800D6DDAE /* RCTErrorCustomizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EDCA8A21D3591E700450C31 /* RCTErrorCustomizer.h */; }; - 3D302F361DF828F800D6DDAE /* RCTErrorInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */; }; - 3D302F371DF828F800D6DDAE /* RCTEventDispatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA651A601EF300E9B192 /* RCTEventDispatcher.h */; }; - 3D302F381DF828F800D6DDAE /* RCTFrameUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1436DD071ADE7AA000A5ED7D /* RCTFrameUpdate.h */; }; - 3D302F391DF828F800D6DDAE /* RCTImageSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 13BB3D001BECD54500932C10 /* RCTImageSource.h */; }; - 3D302F3A1DF828F800D6DDAE /* RCTInvalidating.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4C1A601E3B00E9B192 /* RCTInvalidating.h */; }; - 3D302F3B1DF828F800D6DDAE /* RCTJavaScriptExecutor.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA631A601ECA00E9B192 /* RCTJavaScriptExecutor.h */; }; - 3D302F3C1DF828F800D6DDAE /* RCTJavaScriptLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 14200DA81AC179B3008EE6BA /* RCTJavaScriptLoader.h */; }; - 3D302F3D1DF828F800D6DDAE /* RCTJSStackFrame.h in Headers */ = {isa = PBXBuildFile; fileRef = 008341F51D1DB34400876D9A /* RCTJSStackFrame.h */; }; - 3D302F3E1DF828F800D6DDAE /* RCTKeyCommands.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A1F71C1A75392D00D3D453 /* RCTKeyCommands.h */; }; - 3D302F3F1DF828F800D6DDAE /* RCTLog.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4D1A601E3B00E9B192 /* RCTLog.h */; }; - 3D302F401DF828F800D6DDAE /* RCTModuleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 14C2CA721B3AC64300E6CBB2 /* RCTModuleData.h */; }; - 3D302F411DF828F800D6DDAE /* RCTModuleMethod.h in Headers */ = {isa = PBXBuildFile; fileRef = 14C2CA6F1B3AC63800E6CBB2 /* RCTModuleMethod.h */; }; - 3D302F421DF828F800D6DDAE /* RCTMultipartDataTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 006FC4121D9B20820057AAAD /* RCTMultipartDataTask.h */; }; - 3D302F431DF828F800D6DDAE /* RCTMultipartStreamReader.h in Headers */ = {isa = PBXBuildFile; fileRef = 001BFCCE1D8381DE008E587E /* RCTMultipartStreamReader.h */; }; - 3D302F441DF828F800D6DDAE /* RCTNullability.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A6E20F1C19ABC700845B82 /* RCTNullability.h */; }; - 3D302F451DF828F800D6DDAE /* RCTParserUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A6E20C1C19AA0C00845B82 /* RCTParserUtils.h */; }; - 3D302F461DF828F800D6DDAE /* RCTPerformanceLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = 142014181B32094000CC17BA /* RCTPerformanceLogger.h */; }; - 3D302F471DF828F800D6DDAE /* RCTPlatform.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7749421DC1065C007EC8D8 /* RCTPlatform.h */; }; - 3D302F481DF828F800D6DDAE /* RCTRootView.h in Headers */ = {isa = PBXBuildFile; fileRef = 830A229C1A66C68A008503DA /* RCTRootView.h */; }; - 3D302F491DF828F800D6DDAE /* RCTRootViewDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AFBCA21C07287B00BBAEAA /* RCTRootViewDelegate.h */; }; - 3D302F4A1DF828F800D6DDAE /* RCTRootViewInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 6A15FB0C1BDF663500531DFB /* RCTRootViewInternal.h */; }; - 3D302F4B1DF828F800D6DDAE /* RCTTouchEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 391E86A31C623EC800009732 /* RCTTouchEvent.h */; }; - 3D302F4C1DF828F800D6DDAE /* RCTTouchHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA961A6020BB00E9B192 /* RCTTouchHandler.h */; }; - 3D302F4D1DF828F800D6DDAE /* RCTURLRequestDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1345A83A1B265A0E00583190 /* RCTURLRequestDelegate.h */; }; - 3D302F4E1DF828F800D6DDAE /* RCTURLRequestHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = 1345A83B1B265A0E00583190 /* RCTURLRequestHandler.h */; }; - 3D302F4F1DF828F800D6DDAE /* RCTUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4F1A601E3B00E9B192 /* RCTUtils.h */; }; - 3D302F551DF828F800D6DDAE /* RCTAccessibilityManager.h in Headers */ = {isa = PBXBuildFile; fileRef = E9B20B791B500126007A2DA7 /* RCTAccessibilityManager.h */; }; - 3D302F561DF828F800D6DDAE /* RCTAlertManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B07FE71A69327A00A75B9A /* RCTAlertManager.h */; }; - 3D302F571DF828F800D6DDAE /* RCTAppState.h in Headers */ = {isa = PBXBuildFile; fileRef = 1372B7081AB030C200659ED6 /* RCTAppState.h */; }; - 3D302F581DF828F800D6DDAE /* RCTAsyncLocalStorage.h in Headers */ = {isa = PBXBuildFile; fileRef = 58114A4F1AAE93D500E7D092 /* RCTAsyncLocalStorage.h */; }; - 3D302F591DF828F800D6DDAE /* RCTClipboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 13D033611C1837FE0021DC29 /* RCTClipboard.h */; }; - 3D302F5A1DF828F800D6DDAE /* RCTDevLoadingView.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A0C2851B74F71200B29F6F /* RCTDevLoadingView.h */; }; - 3D302F5B1DF828F800D6DDAE /* RCTDevMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A0C2871B74F71200B29F6F /* RCTDevMenu.h */; }; - 3D302F5C1DF828F800D6DDAE /* RCTEventEmitter.h in Headers */ = {isa = PBXBuildFile; fileRef = 13D9FEE91CDCCECF00158BD7 /* RCTEventEmitter.h */; }; - 3D302F5D1DF828F800D6DDAE /* RCTExceptionsManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B07FE91A69327A00A75B9A /* RCTExceptionsManager.h */; }; - 3D302F5E1DF828F800D6DDAE /* RCTI18nManager.h in Headers */ = {isa = PBXBuildFile; fileRef = B233E6E81D2D843200BC68BA /* RCTI18nManager.h */; }; - 3D302F5F1DF828F800D6DDAE /* RCTI18nUtil.h in Headers */ = {isa = PBXBuildFile; fileRef = 352DCFEE1D19F4C20056D623 /* RCTI18nUtil.h */; }; - 3D302F601DF828F800D6DDAE /* RCTKeyboardObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 13D9FEEC1CDCD93000158BD7 /* RCTKeyboardObserver.h */; }; - 3D302F611DF828F800D6DDAE /* RCTRedBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 13F17A831B8493E5007D4C75 /* RCTRedBox.h */; }; - 3D302F621DF828F800D6DDAE /* RCTSourceCode.h in Headers */ = {isa = PBXBuildFile; fileRef = 000E6CE91AB0E97F000CDF4D /* RCTSourceCode.h */; }; - 3D302F631DF828F800D6DDAE /* RCTStatusBarManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13723B4E1A82FD3C00F88898 /* RCTStatusBarManager.h */; }; - 3D302F641DF828F800D6DDAE /* RCTTiming.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B07FED1A69327A00A75B9A /* RCTTiming.h */; }; - 3D302F651DF828F800D6DDAE /* RCTUIManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E067481A70F434002CDEE1 /* RCTUIManager.h */; }; - 3D302F661DF828F800D6DDAE /* RCTFPSGraph.h in Headers */ = {isa = PBXBuildFile; fileRef = 14F7A0EE1BDA714B003C6C10 /* RCTFPSGraph.h */; }; - 3D302F681DF828F800D6DDAE /* RCTMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 14BF71811C04795500C97D0C /* RCTMacros.h */; }; - 3D302F691DF828F800D6DDAE /* RCTProfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 1450FF801BCFF28A00208362 /* RCTProfile.h */; }; - 3D302F6A1DF828F800D6DDAE /* RCTActivityIndicatorView.h in Headers */ = {isa = PBXBuildFile; fileRef = B95154301D1B34B200FE7B80 /* RCTActivityIndicatorView.h */; }; - 3D302F6B1DF828F800D6DDAE /* RCTActivityIndicatorViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B080181A69489C00A75B9A /* RCTActivityIndicatorViewManager.h */; }; - 3D302F6C1DF828F800D6DDAE /* RCTAnimationType.h in Headers */ = {isa = PBXBuildFile; fileRef = 13442BF21AA90E0B0037E5B0 /* RCTAnimationType.h */; }; - 3D302F6D1DF828F800D6DDAE /* RCTAutoInsetsProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 13C325261AA63B6A0048765F /* RCTAutoInsetsProtocol.h */; }; - 3D302F6E1DF828F800D6DDAE /* RCTBorderDrawing.h in Headers */ = {isa = PBXBuildFile; fileRef = 13CC8A801B17642100940AE7 /* RCTBorderDrawing.h */; }; - 3D302F6F1DF828F800D6DDAE /* RCTBorderStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = ACDD3FDA1BC7430D00E7DE33 /* RCTBorderStyle.h */; }; - 3D302F701DF828F800D6DDAE /* RCTComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 13C325281AA63B6A0048765F /* RCTComponent.h */; }; - 3D302F711DF828F800D6DDAE /* RCTComponentData.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AB90BF1B6FA36700713B4F /* RCTComponentData.h */; }; - 3D302F721DF828F800D6DDAE /* RCTConvert+CoreLocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 13456E911ADAD2DE009F94A7 /* RCTConvert+CoreLocation.h */; }; - 3D302F761DF828F800D6DDAE /* RCTFont.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D37B5801D522B190042D5B5 /* RCTFont.h */; }; - 3D302F7B1DF828F800D6DDAE /* RCTModalHostView.h in Headers */ = {isa = PBXBuildFile; fileRef = 83A1FE8A1B62640A00BE0E65 /* RCTModalHostView.h */; }; - 3D302F7C1DF828F800D6DDAE /* RCTModalHostViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 83392EB11B6634E10013B15F /* RCTModalHostViewController.h */; }; - 3D302F7D1DF828F800D6DDAE /* RCTModalHostViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 83A1FE8D1B62643A00BE0E65 /* RCTModalHostViewManager.h */; }; - 3D302F841DF828F800D6DDAE /* RCTPointerEvents.h in Headers */ = {isa = PBXBuildFile; fileRef = 13442BF31AA90E0B0037E5B0 /* RCTPointerEvents.h */; }; - 3D302F851DF828F800D6DDAE /* RCTProgressViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13513F3A1B1F43F400FCE529 /* RCTProgressViewManager.h */; }; - 3D302F861DF828F800D6DDAE /* RCTRefreshControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 191E3EBF1C29DC3800C180A6 /* RCTRefreshControl.h */; }; - 3D302F871DF828F800D6DDAE /* RCTRefreshControlManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 191E3EBC1C29D9AF00C180A6 /* RCTRefreshControlManager.h */; }; - 3D302F881DF828F800D6DDAE /* RCTRootShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 13BCE8071C99CB9D00DD7AAD /* RCTRootShadowView.h */; }; - 3D302F8C1DF828F800D6DDAE /* RCTSegmentedControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 131B6AF01AF1093D00FFC3E0 /* RCTSegmentedControl.h */; }; - 3D302F8D1DF828F800D6DDAE /* RCTSegmentedControlManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 131B6AF21AF1093D00FFC3E0 /* RCTSegmentedControlManager.h */; }; - 3D302F8E1DF828F800D6DDAE /* RCTShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E0674B1A70F44B002CDEE1 /* RCTShadowView.h */; }; - 3D302F8F1DF828F800D6DDAE /* RCTSlider.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AF20431AE707F8005F5298 /* RCTSlider.h */; }; - 3D302F901DF828F800D6DDAE /* RCTSliderManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 14F484541AABFCE100FDF6B9 /* RCTSliderManager.h */; }; - 3D302F911DF828F800D6DDAE /* RCTSwitch.h in Headers */ = {isa = PBXBuildFile; fileRef = 14F362071AABD06A001CE568 /* RCTSwitch.h */; }; - 3D302F921DF828F800D6DDAE /* RCTSwitchManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 14F362091AABD06A001CE568 /* RCTSwitchManager.h */; }; - 3D302F971DF828F800D6DDAE /* RCTTextDecorationLineType.h in Headers */ = {isa = PBXBuildFile; fileRef = E3BBC8EB1ADE6F47001BBD81 /* RCTTextDecorationLineType.h */; }; - 3D302F981DF828F800D6DDAE /* RCTView.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E0674F1A70F44B002CDEE1 /* RCTView.h */; }; - 3D302F9A1DF828F800D6DDAE /* RCTViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E0674D1A70F44B002CDEE1 /* RCTViewManager.h */; }; - 3D302F9D1DF828F800D6DDAE /* RCTWrapperViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B080231A694A8400A75B9A /* RCTWrapperViewController.h */; }; - 3D302F9F1DF828F800D6DDAE /* UIView+React.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E067531A70F44B002CDEE1 /* UIView+React.h */; }; - 3D3030221DF8294C00D6DDAE /* JSBundleType.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D3CD8F51DE5FB2300167DC4 /* JSBundleType.h */; }; - 3D37B5821D522B190042D5B5 /* RCTFont.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3D37B5811D522B190042D5B5 /* RCTFont.mm */; }; - 3D383D1F1EBD27A8005632C8 /* RCTBridge+Private.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14A43DB81C1F849600794BC8 /* RCTBridge+Private.h */; }; - 3D383D201EBD27AF005632C8 /* RCTBridge+Private.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14A43DB81C1F849600794BC8 /* RCTBridge+Private.h */; }; - 3D383D251EBD27B6005632C8 /* Conv.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 139D849F1E273B5600323FB7 /* Conv.cpp */; }; - 3D383D271EBD27B6005632C8 /* raw_logging.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EDB1E25DBDC00323FB7 /* raw_logging.cc */; }; - 3D383D281EBD27B6005632C8 /* signalhandler.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EDC1E25DBDC00323FB7 /* signalhandler.cc */; }; - 3D383D291EBD27B6005632C8 /* dynamic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 139D84A21E273B5600323FB7 /* dynamic.cpp */; }; - 3D383D2A1EBD27B6005632C8 /* utilities.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EE01E25DBDC00323FB7 /* utilities.cc */; }; - 3D383D2D1EBD27B6005632C8 /* symbolize.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EDE1E25DBDC00323FB7 /* symbolize.cc */; }; - 3D383D2E1EBD27B6005632C8 /* vlog_is_on.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EE21E25DBDC00323FB7 /* vlog_is_on.cc */; }; - 3D383D2F1EBD27B6005632C8 /* Unicode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 13F887541E2971C500C3C7A1 /* Unicode.cpp */; }; - 3D383D301EBD27B6005632C8 /* demangle.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7F081E25DE3700323FB7 /* demangle.cc */; }; - 3D383D311EBD27B6005632C8 /* Demangle.h in Sources */ = {isa = PBXBuildFile; fileRef = 13F887521E2971C500C3C7A1 /* Demangle.h */; }; - 3D383D331EBD27B6005632C8 /* logging.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7EDA1E25DBDC00323FB7 /* logging.cc */; }; - 3D383D341EBD27B6005632C8 /* json.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 139D84A71E273B5600323FB7 /* json.cpp */; }; - 3D383D401EBD27B9005632C8 /* bignum-dtoa.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E391E25C5A300323FB7 /* bignum-dtoa.cc */; }; - 3D383D411EBD27B9005632C8 /* bignum.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E3B1E25C5A300323FB7 /* bignum.cc */; }; - 3D383D421EBD27B9005632C8 /* cached-powers.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E3D1E25C5A300323FB7 /* cached-powers.cc */; }; - 3D383D431EBD27B9005632C8 /* diy-fp.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E3F1E25C5A300323FB7 /* diy-fp.cc */; }; - 3D383D441EBD27B9005632C8 /* double-conversion.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E411E25C5A300323FB7 /* double-conversion.cc */; }; - 3D383D451EBD27B9005632C8 /* fast-dtoa.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E431E25C5A300323FB7 /* fast-dtoa.cc */; }; - 3D383D461EBD27B9005632C8 /* fixed-dtoa.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E451E25C5A300323FB7 /* fixed-dtoa.cc */; }; - 3D383D471EBD27B9005632C8 /* strtod.cc in Sources */ = {isa = PBXBuildFile; fileRef = 139D7E481E25C5A300323FB7 /* strtod.cc */; }; - 3D383D4A1EBD27B9005632C8 /* bignum-dtoa.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E3A1E25C5A300323FB7 /* bignum-dtoa.h */; }; - 3D383D4B1EBD27B9005632C8 /* bignum.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E3C1E25C5A300323FB7 /* bignum.h */; }; - 3D383D4C1EBD27B9005632C8 /* cached-powers.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E3E1E25C5A300323FB7 /* cached-powers.h */; }; - 3D383D4D1EBD27B9005632C8 /* diy-fp.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E401E25C5A300323FB7 /* diy-fp.h */; }; - 3D383D4E1EBD27B9005632C8 /* double-conversion.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E421E25C5A300323FB7 /* double-conversion.h */; }; - 3D383D4F1EBD27B9005632C8 /* fast-dtoa.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E441E25C5A300323FB7 /* fast-dtoa.h */; }; - 3D383D501EBD27B9005632C8 /* fixed-dtoa.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E461E25C5A300323FB7 /* fixed-dtoa.h */; }; - 3D383D511EBD27B9005632C8 /* ieee.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E471E25C5A300323FB7 /* ieee.h */; }; - 3D383D521EBD27B9005632C8 /* strtod.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E491E25C5A300323FB7 /* strtod.h */; }; - 3D383D531EBD27B9005632C8 /* utils.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 139D7E4A1E25C5A300323FB7 /* utils.h */; }; - 3D383D551EBD27B9005632C8 /* bignum-dtoa.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E3A1E25C5A300323FB7 /* bignum-dtoa.h */; }; - 3D383D561EBD27B9005632C8 /* bignum.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E3C1E25C5A300323FB7 /* bignum.h */; }; - 3D383D571EBD27B9005632C8 /* cached-powers.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E3E1E25C5A300323FB7 /* cached-powers.h */; }; - 3D383D581EBD27B9005632C8 /* diy-fp.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E401E25C5A300323FB7 /* diy-fp.h */; }; - 3D383D591EBD27B9005632C8 /* double-conversion.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E421E25C5A300323FB7 /* double-conversion.h */; }; - 3D383D5A1EBD27B9005632C8 /* fast-dtoa.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E441E25C5A300323FB7 /* fast-dtoa.h */; }; - 3D383D5B1EBD27B9005632C8 /* fixed-dtoa.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E461E25C5A300323FB7 /* fixed-dtoa.h */; }; - 3D383D5C1EBD27B9005632C8 /* ieee.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E471E25C5A300323FB7 /* ieee.h */; }; - 3D383D5D1EBD27B9005632C8 /* strtod.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E491E25C5A300323FB7 /* strtod.h */; }; - 3D383D5E1EBD27B9005632C8 /* utils.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D7E4A1E25C5A300323FB7 /* utils.h */; }; - 3D383D6D1EBD2940005632C8 /* libdouble-conversion.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139D7E881E25C6D100323FB7 /* libdouble-conversion.a */; }; - 3D383D6F1EBD2940005632C8 /* libthird-party.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139D7ECE1E25DB7D00323FB7 /* libthird-party.a */; }; - 3D383D721EBD2949005632C8 /* libthird-party.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D383D3C1EBD27B6005632C8 /* libthird-party.a */; }; - 3D3CD9411DE5FC5300167DC4 /* libcxxreact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D3CD9251DE5FBEC00167DC4 /* libcxxreact.a */; }; - 3D3CD9451DE5FC7100167DC4 /* JSBundleType.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D3CD8F51DE5FB2300167DC4 /* JSBundleType.h */; }; - 3D74547C1E54758900E74ADD /* JSBigString.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7454781E54757500E74ADD /* JSBigString.h */; }; - 3D74547D1E54758900E74ADD /* JSBigString.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7454781E54757500E74ADD /* JSBigString.h */; }; - 3D74547E1E54759A00E74ADD /* JSModulesUnbundle.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C81E03699D0018521A /* JSModulesUnbundle.h */; }; - 3D74547F1E54759E00E74ADD /* JSModulesUnbundle.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C81E03699D0018521A /* JSModulesUnbundle.h */; }; - 3D7454801E5475AF00E74ADD /* RecoverableError.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7454791E54757500E74ADD /* RecoverableError.h */; }; - 3D7454811E5475AF00E74ADD /* RecoverableError.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7454791E54757500E74ADD /* RecoverableError.h */; }; - 3D7749441DC1065C007EC8D8 /* RCTPlatform.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D7749431DC1065C007EC8D8 /* RCTPlatform.m */; }; - 3D7AA9C41E548CD5001955CF /* NSDataBigString.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3D7AA9C31E548CD5001955CF /* NSDataBigString.mm */; }; - 3D7AA9C51E548CDB001955CF /* NSDataBigString.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7454B31E54786200E74ADD /* NSDataBigString.h */; }; - 3D7AA9C61E548CDD001955CF /* NSDataBigString.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3D7AA9C31E548CD5001955CF /* NSDataBigString.mm */; }; - 3D7BFD151EA8E351008DFB7A /* RCTPackagerClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD0B1EA8E351008DFB7A /* RCTPackagerClient.h */; }; - 3D7BFD161EA8E351008DFB7A /* RCTPackagerClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD0B1EA8E351008DFB7A /* RCTPackagerClient.h */; }; - 3D7BFD171EA8E351008DFB7A /* RCTPackagerClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D7BFD0C1EA8E351008DFB7A /* RCTPackagerClient.m */; }; - 3D7BFD181EA8E351008DFB7A /* RCTPackagerClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D7BFD0C1EA8E351008DFB7A /* RCTPackagerClient.m */; }; - 3D7BFD1D1EA8E351008DFB7A /* RCTPackagerConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD0F1EA8E351008DFB7A /* RCTPackagerConnection.h */; }; - 3D7BFD1E1EA8E351008DFB7A /* RCTPackagerConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD0F1EA8E351008DFB7A /* RCTPackagerConnection.h */; }; - 3D7BFD1F1EA8E351008DFB7A /* RCTPackagerConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3D7BFD101EA8E351008DFB7A /* RCTPackagerConnection.mm */; }; - 3D7BFD201EA8E351008DFB7A /* RCTPackagerConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3D7BFD101EA8E351008DFB7A /* RCTPackagerConnection.mm */; }; - 3D7BFD291EA8E37B008DFB7A /* RCTDevSettings.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 130E3D861E6A082100ACE484 /* RCTDevSettings.h */; }; - 3D7BFD2D1EA8E3FA008DFB7A /* RCTReconnectingWebSocket.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD2B1EA8E3FA008DFB7A /* RCTReconnectingWebSocket.h */; }; - 3D7BFD2E1EA8E3FA008DFB7A /* RCTReconnectingWebSocket.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD2B1EA8E3FA008DFB7A /* RCTReconnectingWebSocket.h */; }; - 3D7BFD2F1EA8E3FA008DFB7A /* RCTSRWebSocket.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD2C1EA8E3FA008DFB7A /* RCTSRWebSocket.h */; }; - 3D7BFD301EA8E3FA008DFB7A /* RCTSRWebSocket.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD2C1EA8E3FA008DFB7A /* RCTSRWebSocket.h */; }; - 3D7BFD311EA8E41F008DFB7A /* RCTPackagerClient.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD0B1EA8E351008DFB7A /* RCTPackagerClient.h */; }; - 3D7BFD331EA8E433008DFB7A /* RCTPackagerClient.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D7BFD0B1EA8E351008DFB7A /* RCTPackagerClient.h */; }; - 3D7BFD351EA8E43F008DFB7A /* RCTDevSettings.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 130E3D861E6A082100ACE484 /* RCTDevSettings.h */; }; - 3D80D9181DF6F7A80028D040 /* JSBundleType.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AC70D2EB1DE48A22002E6351 /* JSBundleType.cpp */; }; - 3D80D91B1DF6F8200028D040 /* RCTPlatform.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D7749431DC1065C007EC8D8 /* RCTPlatform.m */; }; - 3D80D91F1DF6FA890028D040 /* RCTImageLoader.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0831DE4F3A000E03CC6 /* RCTImageLoader.h */; }; - 3D80D9201DF6FA890028D040 /* RCTImageStoreManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0841DE4F3A000E03CC6 /* RCTImageStoreManager.h */; }; - 3D80D9211DF6FA890028D040 /* RCTResizeMode.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0851DE4F3A000E03CC6 /* RCTResizeMode.h */; }; - 3D80D9221DF6FA890028D040 /* RCTLinkingManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA08B1DE4F4DD00E03CC6 /* RCTLinkingManager.h */; }; - 3D80D9231DF6FA890028D040 /* RCTNetworking.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA07A1DE4F2EA00E03CC6 /* RCTNetworking.h */; }; - 3D80D9241DF6FA890028D040 /* RCTNetworkTask.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA07B1DE4F2EA00E03CC6 /* RCTNetworkTask.h */; }; - 3D80D9251DF6FA890028D040 /* RCTPushNotificationManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA08D1DE4F4EE00E03CC6 /* RCTPushNotificationManager.h */; }; - 3D80D9261DF6FA890028D040 /* RCTAssert.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4A1A601E3B00E9B192 /* RCTAssert.h */; }; - 3D80D9271DF6FA890028D040 /* RCTBridge.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA5E1A601EAA00E9B192 /* RCTBridge.h */; }; - 3D80D9291DF6FA890028D040 /* RCTBridgeDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1482F9E61B55B927000ADFF3 /* RCTBridgeDelegate.h */; }; - 3D80D92A1DF6FA890028D040 /* RCTBridgeMethod.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AFBCA11C07287B00BBAEAA /* RCTBridgeMethod.h */; }; - 3D80D92B1DF6FA890028D040 /* RCTBridgeModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 830213F31A654E0800B993E6 /* RCTBridgeModule.h */; }; - 3D80D92C1DF6FA890028D040 /* RCTBundleURLProvider.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 68EFE4EC1CF6EB3000A1DE13 /* RCTBundleURLProvider.h */; }; - 3D80D92D1DF6FA890028D040 /* RCTConvert.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBACA1A6023D300E9B192 /* RCTConvert.h */; }; - 3D80D92E1DF6FA890028D040 /* RCTDefines.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AF1F851AE6E777005F5298 /* RCTDefines.h */; }; - 3D80D92F1DF6FA890028D040 /* RCTDisplayLink.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1E68D81CABD13900DD7465 /* RCTDisplayLink.h */; }; - 3D80D9301DF6FA890028D040 /* RCTErrorCustomizer.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3EDCA8A21D3591E700450C31 /* RCTErrorCustomizer.h */; }; - 3D80D9311DF6FA890028D040 /* RCTErrorInfo.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */; }; - 3D80D9321DF6FA890028D040 /* RCTEventDispatcher.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA651A601EF300E9B192 /* RCTEventDispatcher.h */; }; - 3D80D9331DF6FA890028D040 /* RCTFrameUpdate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1436DD071ADE7AA000A5ED7D /* RCTFrameUpdate.h */; }; - 3D80D9341DF6FA890028D040 /* RCTImageSource.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13BB3D001BECD54500932C10 /* RCTImageSource.h */; }; - 3D80D9351DF6FA890028D040 /* RCTInvalidating.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4C1A601E3B00E9B192 /* RCTInvalidating.h */; }; - 3D80D9361DF6FA890028D040 /* RCTJavaScriptExecutor.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA631A601ECA00E9B192 /* RCTJavaScriptExecutor.h */; }; - 3D80D9371DF6FA890028D040 /* RCTJavaScriptLoader.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14200DA81AC179B3008EE6BA /* RCTJavaScriptLoader.h */; }; - 3D80D9381DF6FA890028D040 /* RCTJSStackFrame.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 008341F51D1DB34400876D9A /* RCTJSStackFrame.h */; }; - 3D80D9391DF6FA890028D040 /* RCTKeyCommands.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A1F71C1A75392D00D3D453 /* RCTKeyCommands.h */; }; - 3D80D93A1DF6FA890028D040 /* RCTLog.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4D1A601E3B00E9B192 /* RCTLog.h */; }; - 3D80D93B1DF6FA890028D040 /* RCTModuleData.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14C2CA721B3AC64300E6CBB2 /* RCTModuleData.h */; }; - 3D80D93C1DF6FA890028D040 /* RCTModuleMethod.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14C2CA6F1B3AC63800E6CBB2 /* RCTModuleMethod.h */; }; - 3D80D93D1DF6FA890028D040 /* RCTMultipartDataTask.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 006FC4121D9B20820057AAAD /* RCTMultipartDataTask.h */; }; - 3D80D93E1DF6FA890028D040 /* RCTMultipartStreamReader.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 001BFCCE1D8381DE008E587E /* RCTMultipartStreamReader.h */; }; - 3D80D93F1DF6FA890028D040 /* RCTNullability.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A6E20F1C19ABC700845B82 /* RCTNullability.h */; }; - 3D80D9401DF6FA890028D040 /* RCTParserUtils.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A6E20C1C19AA0C00845B82 /* RCTParserUtils.h */; }; - 3D80D9411DF6FA890028D040 /* RCTPerformanceLogger.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 142014181B32094000CC17BA /* RCTPerformanceLogger.h */; }; - 3D80D9421DF6FA890028D040 /* RCTPlatform.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D7749421DC1065C007EC8D8 /* RCTPlatform.h */; }; - 3D80D9431DF6FA890028D040 /* RCTRootView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 830A229C1A66C68A008503DA /* RCTRootView.h */; }; - 3D80D9441DF6FA890028D040 /* RCTRootViewDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AFBCA21C07287B00BBAEAA /* RCTRootViewDelegate.h */; }; - 3D80D9461DF6FA890028D040 /* RCTTouchEvent.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 391E86A31C623EC800009732 /* RCTTouchEvent.h */; }; - 3D80D9471DF6FA890028D040 /* RCTTouchHandler.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA961A6020BB00E9B192 /* RCTTouchHandler.h */; }; - 3D80D9481DF6FA890028D040 /* RCTURLRequestDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1345A83A1B265A0E00583190 /* RCTURLRequestDelegate.h */; }; - 3D80D9491DF6FA890028D040 /* RCTURLRequestHandler.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1345A83B1B265A0E00583190 /* RCTURLRequestHandler.h */; }; - 3D80D94A1DF6FA890028D040 /* RCTUtils.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4F1A601E3B00E9B192 /* RCTUtils.h */; }; - 3D80D9501DF6FA890028D040 /* RCTAccessibilityManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = E9B20B791B500126007A2DA7 /* RCTAccessibilityManager.h */; }; - 3D80D9511DF6FA890028D040 /* RCTAlertManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B07FE71A69327A00A75B9A /* RCTAlertManager.h */; }; - 3D80D9521DF6FA890028D040 /* RCTAppState.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1372B7081AB030C200659ED6 /* RCTAppState.h */; }; - 3D80D9531DF6FA890028D040 /* RCTAsyncLocalStorage.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 58114A4F1AAE93D500E7D092 /* RCTAsyncLocalStorage.h */; }; - 3D80D9541DF6FA890028D040 /* RCTClipboard.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13D033611C1837FE0021DC29 /* RCTClipboard.h */; }; - 3D80D9551DF6FA890028D040 /* RCTDevLoadingView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A0C2851B74F71200B29F6F /* RCTDevLoadingView.h */; }; - 3D80D9561DF6FA890028D040 /* RCTDevMenu.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A0C2871B74F71200B29F6F /* RCTDevMenu.h */; }; - 3D80D9571DF6FA890028D040 /* RCTEventEmitter.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13D9FEE91CDCCECF00158BD7 /* RCTEventEmitter.h */; }; - 3D80D9581DF6FA890028D040 /* RCTExceptionsManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B07FE91A69327A00A75B9A /* RCTExceptionsManager.h */; }; - 3D80D9591DF6FA890028D040 /* RCTI18nManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = B233E6E81D2D843200BC68BA /* RCTI18nManager.h */; }; - 3D80D95A1DF6FA890028D040 /* RCTI18nUtil.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 352DCFEE1D19F4C20056D623 /* RCTI18nUtil.h */; }; - 3D80D95B1DF6FA890028D040 /* RCTKeyboardObserver.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13D9FEEC1CDCD93000158BD7 /* RCTKeyboardObserver.h */; }; - 3D80D95C1DF6FA890028D040 /* RCTRedBox.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13F17A831B8493E5007D4C75 /* RCTRedBox.h */; }; - 3D80D95D1DF6FA890028D040 /* RCTSourceCode.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 000E6CE91AB0E97F000CDF4D /* RCTSourceCode.h */; }; - 3D80D95E1DF6FA890028D040 /* RCTStatusBarManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13723B4E1A82FD3C00F88898 /* RCTStatusBarManager.h */; }; - 3D80D95F1DF6FA890028D040 /* RCTTiming.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B07FED1A69327A00A75B9A /* RCTTiming.h */; }; - 3D80D9601DF6FA890028D040 /* RCTUIManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E067481A70F434002CDEE1 /* RCTUIManager.h */; }; - 3D80D9611DF6FA890028D040 /* RCTFPSGraph.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14F7A0EE1BDA714B003C6C10 /* RCTFPSGraph.h */; }; - 3D80D9631DF6FA890028D040 /* RCTMacros.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14BF71811C04795500C97D0C /* RCTMacros.h */; }; - 3D80D9641DF6FA890028D040 /* RCTProfile.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1450FF801BCFF28A00208362 /* RCTProfile.h */; }; - 3D80D9651DF6FA890028D040 /* RCTActivityIndicatorView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = B95154301D1B34B200FE7B80 /* RCTActivityIndicatorView.h */; }; - 3D80D9661DF6FA890028D040 /* RCTActivityIndicatorViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B080181A69489C00A75B9A /* RCTActivityIndicatorViewManager.h */; }; - 3D80D9671DF6FA890028D040 /* RCTAnimationType.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13442BF21AA90E0B0037E5B0 /* RCTAnimationType.h */; }; - 3D80D9681DF6FA890028D040 /* RCTAutoInsetsProtocol.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13C325261AA63B6A0048765F /* RCTAutoInsetsProtocol.h */; }; - 3D80D9691DF6FA890028D040 /* RCTBorderDrawing.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13CC8A801B17642100940AE7 /* RCTBorderDrawing.h */; }; - 3D80D96A1DF6FA890028D040 /* RCTBorderStyle.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = ACDD3FDA1BC7430D00E7DE33 /* RCTBorderStyle.h */; }; - 3D80D96B1DF6FA890028D040 /* RCTComponent.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13C325281AA63B6A0048765F /* RCTComponent.h */; }; - 3D80D96C1DF6FA890028D040 /* RCTComponentData.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AB90BF1B6FA36700713B4F /* RCTComponentData.h */; }; - 3D80D96D1DF6FA890028D040 /* RCTConvert+CoreLocation.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13456E911ADAD2DE009F94A7 /* RCTConvert+CoreLocation.h */; }; - 3D80D9711DF6FA890028D040 /* RCTFont.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D37B5801D522B190042D5B5 /* RCTFont.h */; }; - 3D80D9761DF6FA890028D040 /* RCTModalHostView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83A1FE8A1B62640A00BE0E65 /* RCTModalHostView.h */; }; - 3D80D9771DF6FA890028D040 /* RCTModalHostViewController.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83392EB11B6634E10013B15F /* RCTModalHostViewController.h */; }; - 3D80D9781DF6FA890028D040 /* RCTModalHostViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83A1FE8D1B62643A00BE0E65 /* RCTModalHostViewManager.h */; }; - 3D80D97D1DF6FA890028D040 /* RCTPicker.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 58114A121AAE854800E7D092 /* RCTPicker.h */; }; - 3D80D97E1DF6FA890028D040 /* RCTPickerManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 58114A141AAE854800E7D092 /* RCTPickerManager.h */; }; - 3D80D97F1DF6FA890028D040 /* RCTPointerEvents.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13442BF31AA90E0B0037E5B0 /* RCTPointerEvents.h */; }; - 3D80D9801DF6FA890028D040 /* RCTProgressViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13513F3A1B1F43F400FCE529 /* RCTProgressViewManager.h */; }; - 3D80D9811DF6FA890028D040 /* RCTRefreshControl.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 191E3EBF1C29DC3800C180A6 /* RCTRefreshControl.h */; }; - 3D80D9821DF6FA890028D040 /* RCTRefreshControlManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 191E3EBC1C29D9AF00C180A6 /* RCTRefreshControlManager.h */; }; - 3D80D9831DF6FA890028D040 /* RCTRootShadowView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13BCE8071C99CB9D00DD7AAD /* RCTRootShadowView.h */; }; - 3D80D9871DF6FA890028D040 /* RCTSegmentedControl.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 131B6AF01AF1093D00FFC3E0 /* RCTSegmentedControl.h */; }; - 3D80D9881DF6FA890028D040 /* RCTSegmentedControlManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 131B6AF21AF1093D00FFC3E0 /* RCTSegmentedControlManager.h */; }; - 3D80D9891DF6FA890028D040 /* RCTShadowView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E0674B1A70F44B002CDEE1 /* RCTShadowView.h */; }; - 3D80D98A1DF6FA890028D040 /* RCTSlider.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AF20431AE707F8005F5298 /* RCTSlider.h */; }; - 3D80D98B1DF6FA890028D040 /* RCTSliderManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14F484541AABFCE100FDF6B9 /* RCTSliderManager.h */; }; - 3D80D98C1DF6FA890028D040 /* RCTSwitch.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14F362071AABD06A001CE568 /* RCTSwitch.h */; }; - 3D80D98D1DF6FA890028D040 /* RCTSwitchManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14F362091AABD06A001CE568 /* RCTSwitchManager.h */; }; - 3D80D9921DF6FA890028D040 /* RCTTextDecorationLineType.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = E3BBC8EB1ADE6F47001BBD81 /* RCTTextDecorationLineType.h */; }; - 3D80D9931DF6FA890028D040 /* RCTView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E0674F1A70F44B002CDEE1 /* RCTView.h */; }; - 3D80D9951DF6FA890028D040 /* RCTViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E0674D1A70F44B002CDEE1 /* RCTViewManager.h */; }; - 3D80D9961DF6FA890028D040 /* RCTWebView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13C156011AB1A2840079392D /* RCTWebView.h */; }; - 3D80D9971DF6FA890028D040 /* RCTWebViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13C156031AB1A2840079392D /* RCTWebViewManager.h */; }; - 3D80D9981DF6FA890028D040 /* RCTWrapperViewController.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B080231A694A8400A75B9A /* RCTWrapperViewController.h */; }; - 3D80D99A1DF6FA890028D040 /* UIView+React.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E067531A70F44B002CDEE1 /* UIView+React.h */; }; - 3D80DA191DF820620028D040 /* RCTImageLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0831DE4F3A000E03CC6 /* RCTImageLoader.h */; }; - 3D80DA1A1DF820620028D040 /* RCTImageStoreManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0841DE4F3A000E03CC6 /* RCTImageStoreManager.h */; }; - 3D80DA1B1DF820620028D040 /* RCTResizeMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA0851DE4F3A000E03CC6 /* RCTResizeMode.h */; }; - 3D80DA1C1DF820620028D040 /* RCTLinkingManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA08B1DE4F4DD00E03CC6 /* RCTLinkingManager.h */; }; - 3D80DA1D1DF820620028D040 /* RCTNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA07A1DE4F2EA00E03CC6 /* RCTNetworking.h */; }; - 3D80DA1E1DF820620028D040 /* RCTNetworkTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA07B1DE4F2EA00E03CC6 /* RCTNetworkTask.h */; }; - 3D80DA1F1DF820620028D040 /* RCTPushNotificationManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1FA08D1DE4F4EE00E03CC6 /* RCTPushNotificationManager.h */; }; - 3D80DA201DF820620028D040 /* RCTAssert.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4A1A601E3B00E9B192 /* RCTAssert.h */; }; - 3D80DA211DF820620028D040 /* RCTBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA5E1A601EAA00E9B192 /* RCTBridge.h */; }; - 3D80DA221DF820620028D040 /* RCTBridge+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 14A43DB81C1F849600794BC8 /* RCTBridge+Private.h */; }; - 3D80DA231DF820620028D040 /* RCTBridgeDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1482F9E61B55B927000ADFF3 /* RCTBridgeDelegate.h */; }; - 3D80DA241DF820620028D040 /* RCTBridgeMethod.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AFBCA11C07287B00BBAEAA /* RCTBridgeMethod.h */; }; - 3D80DA251DF820620028D040 /* RCTBridgeModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 830213F31A654E0800B993E6 /* RCTBridgeModule.h */; }; - 3D80DA261DF820620028D040 /* RCTBundleURLProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 68EFE4EC1CF6EB3000A1DE13 /* RCTBundleURLProvider.h */; }; - 3D80DA271DF820620028D040 /* RCTConvert.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBACA1A6023D300E9B192 /* RCTConvert.h */; }; - 3D80DA281DF820620028D040 /* RCTDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AF1F851AE6E777005F5298 /* RCTDefines.h */; }; - 3D80DA291DF820620028D040 /* RCTDisplayLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D1E68D81CABD13900DD7465 /* RCTDisplayLink.h */; }; - 3D80DA2A1DF820620028D040 /* RCTErrorCustomizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EDCA8A21D3591E700450C31 /* RCTErrorCustomizer.h */; }; - 3D80DA2B1DF820620028D040 /* RCTErrorInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */; }; - 3D80DA2C1DF820620028D040 /* RCTEventDispatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA651A601EF300E9B192 /* RCTEventDispatcher.h */; }; - 3D80DA2D1DF820620028D040 /* RCTFrameUpdate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1436DD071ADE7AA000A5ED7D /* RCTFrameUpdate.h */; }; - 3D80DA2E1DF820620028D040 /* RCTImageSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 13BB3D001BECD54500932C10 /* RCTImageSource.h */; }; - 3D80DA2F1DF820620028D040 /* RCTInvalidating.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4C1A601E3B00E9B192 /* RCTInvalidating.h */; }; - 3D80DA301DF820620028D040 /* RCTJavaScriptExecutor.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA631A601ECA00E9B192 /* RCTJavaScriptExecutor.h */; }; - 3D80DA311DF820620028D040 /* RCTJavaScriptLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 14200DA81AC179B3008EE6BA /* RCTJavaScriptLoader.h */; }; - 3D80DA321DF820620028D040 /* RCTJSStackFrame.h in Headers */ = {isa = PBXBuildFile; fileRef = 008341F51D1DB34400876D9A /* RCTJSStackFrame.h */; }; - 3D80DA331DF820620028D040 /* RCTKeyCommands.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A1F71C1A75392D00D3D453 /* RCTKeyCommands.h */; }; - 3D80DA341DF820620028D040 /* RCTLog.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4D1A601E3B00E9B192 /* RCTLog.h */; }; - 3D80DA351DF820620028D040 /* RCTModuleData.h in Headers */ = {isa = PBXBuildFile; fileRef = 14C2CA721B3AC64300E6CBB2 /* RCTModuleData.h */; }; - 3D80DA361DF820620028D040 /* RCTModuleMethod.h in Headers */ = {isa = PBXBuildFile; fileRef = 14C2CA6F1B3AC63800E6CBB2 /* RCTModuleMethod.h */; }; - 3D80DA371DF820620028D040 /* RCTMultipartDataTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 006FC4121D9B20820057AAAD /* RCTMultipartDataTask.h */; }; - 3D80DA381DF820620028D040 /* RCTMultipartStreamReader.h in Headers */ = {isa = PBXBuildFile; fileRef = 001BFCCE1D8381DE008E587E /* RCTMultipartStreamReader.h */; }; - 3D80DA391DF820620028D040 /* RCTNullability.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A6E20F1C19ABC700845B82 /* RCTNullability.h */; }; - 3D80DA3A1DF820620028D040 /* RCTParserUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A6E20C1C19AA0C00845B82 /* RCTParserUtils.h */; }; - 3D80DA3B1DF820620028D040 /* RCTPerformanceLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = 142014181B32094000CC17BA /* RCTPerformanceLogger.h */; }; - 3D80DA3C1DF820620028D040 /* RCTPlatform.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7749421DC1065C007EC8D8 /* RCTPlatform.h */; }; - 3D80DA3D1DF820620028D040 /* RCTRootView.h in Headers */ = {isa = PBXBuildFile; fileRef = 830A229C1A66C68A008503DA /* RCTRootView.h */; }; - 3D80DA3E1DF820620028D040 /* RCTRootViewDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AFBCA21C07287B00BBAEAA /* RCTRootViewDelegate.h */; }; - 3D80DA3F1DF820620028D040 /* RCTRootViewInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 6A15FB0C1BDF663500531DFB /* RCTRootViewInternal.h */; }; - 3D80DA401DF820620028D040 /* RCTTouchEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 391E86A31C623EC800009732 /* RCTTouchEvent.h */; }; - 3D80DA411DF820620028D040 /* RCTTouchHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA961A6020BB00E9B192 /* RCTTouchHandler.h */; }; - 3D80DA421DF820620028D040 /* RCTURLRequestDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1345A83A1B265A0E00583190 /* RCTURLRequestDelegate.h */; }; - 3D80DA431DF820620028D040 /* RCTURLRequestHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = 1345A83B1B265A0E00583190 /* RCTURLRequestHandler.h */; }; - 3D80DA441DF820620028D040 /* RCTUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4F1A601E3B00E9B192 /* RCTUtils.h */; }; - 3D80DA4A1DF820620028D040 /* RCTAccessibilityManager.h in Headers */ = {isa = PBXBuildFile; fileRef = E9B20B791B500126007A2DA7 /* RCTAccessibilityManager.h */; }; - 3D80DA4B1DF820620028D040 /* RCTAlertManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B07FE71A69327A00A75B9A /* RCTAlertManager.h */; }; - 3D80DA4C1DF820620028D040 /* RCTAppState.h in Headers */ = {isa = PBXBuildFile; fileRef = 1372B7081AB030C200659ED6 /* RCTAppState.h */; }; - 3D80DA4D1DF820620028D040 /* RCTAsyncLocalStorage.h in Headers */ = {isa = PBXBuildFile; fileRef = 58114A4F1AAE93D500E7D092 /* RCTAsyncLocalStorage.h */; }; - 3D80DA4E1DF820620028D040 /* RCTClipboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 13D033611C1837FE0021DC29 /* RCTClipboard.h */; }; - 3D80DA4F1DF820620028D040 /* RCTDevLoadingView.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A0C2851B74F71200B29F6F /* RCTDevLoadingView.h */; }; - 3D80DA501DF820620028D040 /* RCTDevMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 13A0C2871B74F71200B29F6F /* RCTDevMenu.h */; }; - 3D80DA511DF820620028D040 /* RCTEventEmitter.h in Headers */ = {isa = PBXBuildFile; fileRef = 13D9FEE91CDCCECF00158BD7 /* RCTEventEmitter.h */; }; - 3D80DA521DF820620028D040 /* RCTExceptionsManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B07FE91A69327A00A75B9A /* RCTExceptionsManager.h */; }; - 3D80DA531DF820620028D040 /* RCTI18nManager.h in Headers */ = {isa = PBXBuildFile; fileRef = B233E6E81D2D843200BC68BA /* RCTI18nManager.h */; }; - 3D80DA541DF820620028D040 /* RCTI18nUtil.h in Headers */ = {isa = PBXBuildFile; fileRef = 352DCFEE1D19F4C20056D623 /* RCTI18nUtil.h */; }; - 3D80DA551DF820620028D040 /* RCTKeyboardObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 13D9FEEC1CDCD93000158BD7 /* RCTKeyboardObserver.h */; }; - 3D80DA561DF820620028D040 /* RCTRedBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 13F17A831B8493E5007D4C75 /* RCTRedBox.h */; }; - 3D80DA571DF820620028D040 /* RCTSourceCode.h in Headers */ = {isa = PBXBuildFile; fileRef = 000E6CE91AB0E97F000CDF4D /* RCTSourceCode.h */; }; - 3D80DA581DF820620028D040 /* RCTStatusBarManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13723B4E1A82FD3C00F88898 /* RCTStatusBarManager.h */; }; - 3D80DA591DF820620028D040 /* RCTTiming.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B07FED1A69327A00A75B9A /* RCTTiming.h */; }; - 3D80DA5A1DF820620028D040 /* RCTUIManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E067481A70F434002CDEE1 /* RCTUIManager.h */; }; - 3D80DA5B1DF820620028D040 /* RCTFPSGraph.h in Headers */ = {isa = PBXBuildFile; fileRef = 14F7A0EE1BDA714B003C6C10 /* RCTFPSGraph.h */; }; - 3D80DA5D1DF820620028D040 /* RCTMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 14BF71811C04795500C97D0C /* RCTMacros.h */; }; - 3D80DA5E1DF820620028D040 /* RCTProfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 1450FF801BCFF28A00208362 /* RCTProfile.h */; }; - 3D80DA5F1DF820620028D040 /* RCTActivityIndicatorView.h in Headers */ = {isa = PBXBuildFile; fileRef = B95154301D1B34B200FE7B80 /* RCTActivityIndicatorView.h */; }; - 3D80DA601DF820620028D040 /* RCTActivityIndicatorViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B080181A69489C00A75B9A /* RCTActivityIndicatorViewManager.h */; }; - 3D80DA611DF820620028D040 /* RCTAnimationType.h in Headers */ = {isa = PBXBuildFile; fileRef = 13442BF21AA90E0B0037E5B0 /* RCTAnimationType.h */; }; - 3D80DA621DF820620028D040 /* RCTAutoInsetsProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 13C325261AA63B6A0048765F /* RCTAutoInsetsProtocol.h */; }; - 3D80DA631DF820620028D040 /* RCTBorderDrawing.h in Headers */ = {isa = PBXBuildFile; fileRef = 13CC8A801B17642100940AE7 /* RCTBorderDrawing.h */; }; - 3D80DA641DF820620028D040 /* RCTBorderStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = ACDD3FDA1BC7430D00E7DE33 /* RCTBorderStyle.h */; }; - 3D80DA651DF820620028D040 /* RCTComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 13C325281AA63B6A0048765F /* RCTComponent.h */; }; - 3D80DA661DF820620028D040 /* RCTComponentData.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AB90BF1B6FA36700713B4F /* RCTComponentData.h */; }; - 3D80DA671DF820620028D040 /* RCTConvert+CoreLocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 13456E911ADAD2DE009F94A7 /* RCTConvert+CoreLocation.h */; }; - 3D80DA6B1DF820620028D040 /* RCTFont.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D37B5801D522B190042D5B5 /* RCTFont.h */; }; - 3D80DA701DF820620028D040 /* RCTModalHostView.h in Headers */ = {isa = PBXBuildFile; fileRef = 83A1FE8A1B62640A00BE0E65 /* RCTModalHostView.h */; }; - 3D80DA711DF820620028D040 /* RCTModalHostViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 83392EB11B6634E10013B15F /* RCTModalHostViewController.h */; }; - 3D80DA721DF820620028D040 /* RCTModalHostViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 83A1FE8D1B62643A00BE0E65 /* RCTModalHostViewManager.h */; }; - 3D80DA771DF820620028D040 /* RCTPicker.h in Headers */ = {isa = PBXBuildFile; fileRef = 58114A121AAE854800E7D092 /* RCTPicker.h */; }; - 3D80DA781DF820620028D040 /* RCTPickerManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 58114A141AAE854800E7D092 /* RCTPickerManager.h */; }; - 3D80DA791DF820620028D040 /* RCTPointerEvents.h in Headers */ = {isa = PBXBuildFile; fileRef = 13442BF31AA90E0B0037E5B0 /* RCTPointerEvents.h */; }; - 3D80DA7A1DF820620028D040 /* RCTProgressViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13513F3A1B1F43F400FCE529 /* RCTProgressViewManager.h */; }; - 3D80DA7B1DF820620028D040 /* RCTRefreshControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 191E3EBF1C29DC3800C180A6 /* RCTRefreshControl.h */; }; - 3D80DA7C1DF820620028D040 /* RCTRefreshControlManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 191E3EBC1C29D9AF00C180A6 /* RCTRefreshControlManager.h */; }; - 3D80DA7D1DF820620028D040 /* RCTRootShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 13BCE8071C99CB9D00DD7AAD /* RCTRootShadowView.h */; }; - 3D80DA811DF820620028D040 /* RCTSegmentedControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 131B6AF01AF1093D00FFC3E0 /* RCTSegmentedControl.h */; }; - 3D80DA821DF820620028D040 /* RCTSegmentedControlManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 131B6AF21AF1093D00FFC3E0 /* RCTSegmentedControlManager.h */; }; - 3D80DA831DF820620028D040 /* RCTShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E0674B1A70F44B002CDEE1 /* RCTShadowView.h */; }; - 3D80DA841DF820620028D040 /* RCTSlider.h in Headers */ = {isa = PBXBuildFile; fileRef = 13AF20431AE707F8005F5298 /* RCTSlider.h */; }; - 3D80DA851DF820620028D040 /* RCTSliderManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 14F484541AABFCE100FDF6B9 /* RCTSliderManager.h */; }; - 3D80DA861DF820620028D040 /* RCTSwitch.h in Headers */ = {isa = PBXBuildFile; fileRef = 14F362071AABD06A001CE568 /* RCTSwitch.h */; }; - 3D80DA871DF820620028D040 /* RCTSwitchManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 14F362091AABD06A001CE568 /* RCTSwitchManager.h */; }; - 3D80DA8C1DF820620028D040 /* RCTTextDecorationLineType.h in Headers */ = {isa = PBXBuildFile; fileRef = E3BBC8EB1ADE6F47001BBD81 /* RCTTextDecorationLineType.h */; }; - 3D80DA8D1DF820620028D040 /* RCTView.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E0674F1A70F44B002CDEE1 /* RCTView.h */; }; - 3D80DA8F1DF820620028D040 /* RCTViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E0674D1A70F44B002CDEE1 /* RCTViewManager.h */; }; - 3D80DA901DF820620028D040 /* RCTWebView.h in Headers */ = {isa = PBXBuildFile; fileRef = 13C156011AB1A2840079392D /* RCTWebView.h */; }; - 3D80DA911DF820620028D040 /* RCTWebViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 13C156031AB1A2840079392D /* RCTWebViewManager.h */; }; - 3D80DA921DF820620028D040 /* RCTWrapperViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 13B080231A694A8400A75B9A /* RCTWrapperViewController.h */; }; - 3D80DA931DF820620028D040 /* UIView+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 83F15A171B7CC46900F10295 /* UIView+Private.h */; }; - 3D80DA941DF820620028D040 /* UIView+React.h in Headers */ = {isa = PBXBuildFile; fileRef = 13E067531A70F44B002CDEE1 /* UIView+React.h */; }; - 3D8ED92C1E5B120100D83D20 /* libcxxreact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D3CD9321DE5FBEE00167DC4 /* libcxxreact.a */; }; - 3DA9819E1E5B0DBB004F2374 /* NSDataBigString.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D7454B31E54786200E74ADD /* NSDataBigString.h */; }; - 3DA981A01E5B0E34004F2374 /* CxxModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0A71E03699D0018521A /* CxxModule.h */; }; - 3DA981A11E5B0E34004F2374 /* CxxNativeModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0A91E03699D0018521A /* CxxNativeModule.h */; }; - 3DA981A21E5B0E34004F2374 /* JSExecutor.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0AB1E03699D0018521A /* JSExecutor.h */; }; - 3DA981A51E5B0E34004F2374 /* Instance.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0AF1E03699D0018521A /* Instance.h */; }; - 3DA981A61E5B0E34004F2374 /* JsArgumentHelpers-inl.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0B01E03699D0018521A /* JsArgumentHelpers-inl.h */; }; - 3DA981A71E5B0E34004F2374 /* JsArgumentHelpers.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0B11E03699D0018521A /* JsArgumentHelpers.h */; }; - 3DA981A81E5B0E34004F2374 /* JSBigString.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D7454781E54757500E74ADD /* JSBigString.h */; }; - 3DA981A91E5B0E34004F2374 /* JSBundleType.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D3CD8F51DE5FB2300167DC4 /* JSBundleType.h */; }; - 3DA981B31E5B0E34004F2374 /* JSIndexedRAMBundle.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C71E03699D0018521A /* JSIndexedRAMBundle.h */; }; - 3DA981B41E5B0E34004F2374 /* JSModulesUnbundle.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C81E03699D0018521A /* JSModulesUnbundle.h */; }; - 3DA981B51E5B0E34004F2374 /* MessageQueueThread.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C91E03699D0018521A /* MessageQueueThread.h */; }; - 3DA981B61E5B0E34004F2374 /* MethodCall.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CB1E03699D0018521A /* MethodCall.h */; }; - 3DA981B71E5B0E34004F2374 /* ModuleRegistry.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CD1E03699D0018521A /* ModuleRegistry.h */; }; - 3DA981B81E5B0E34004F2374 /* NativeModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CE1E03699D0018521A /* NativeModule.h */; }; - 3DA981B91E5B0E34004F2374 /* NativeToJsBridge.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D01E03699D0018521A /* NativeToJsBridge.h */; }; - 3DA981BC1E5B0E34004F2374 /* RecoverableError.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D7454791E54757500E74ADD /* RecoverableError.h */; }; - 3DA981BD1E5B0E34004F2374 /* SampleCxxModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D41E03699D0018521A /* SampleCxxModule.h */; }; - 3DA981BE1E5B0E34004F2374 /* SystraceSection.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D51E03699D0018521A /* SystraceSection.h */; }; - 3DA981BF1E5B0F29004F2374 /* RCTAssert.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4A1A601E3B00E9B192 /* RCTAssert.h */; }; - 3DA981C01E5B0F29004F2374 /* RCTBridge.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA5E1A601EAA00E9B192 /* RCTBridge.h */; }; - 3DA981C21E5B0F29004F2374 /* RCTBridgeDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1482F9E61B55B927000ADFF3 /* RCTBridgeDelegate.h */; }; - 3DA981C31E5B0F29004F2374 /* RCTBridgeMethod.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AFBCA11C07287B00BBAEAA /* RCTBridgeMethod.h */; }; - 3DA981C41E5B0F29004F2374 /* RCTBridgeModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 830213F31A654E0800B993E6 /* RCTBridgeModule.h */; }; - 3DA981C51E5B0F29004F2374 /* RCTBundleURLProvider.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 68EFE4EC1CF6EB3000A1DE13 /* RCTBundleURLProvider.h */; }; - 3DA981C61E5B0F29004F2374 /* RCTConvert.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBACA1A6023D300E9B192 /* RCTConvert.h */; }; - 3DA981C71E5B0F29004F2374 /* RCTDefines.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AF1F851AE6E777005F5298 /* RCTDefines.h */; }; - 3DA981C81E5B0F29004F2374 /* RCTDisplayLink.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D1E68D81CABD13900DD7465 /* RCTDisplayLink.h */; }; - 3DA981C91E5B0F29004F2374 /* RCTErrorCustomizer.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3EDCA8A21D3591E700450C31 /* RCTErrorCustomizer.h */; }; - 3DA981CA1E5B0F29004F2374 /* RCTErrorInfo.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */; }; - 3DA981CB1E5B0F29004F2374 /* RCTEventDispatcher.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA651A601EF300E9B192 /* RCTEventDispatcher.h */; }; - 3DA981CC1E5B0F29004F2374 /* RCTFrameUpdate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1436DD071ADE7AA000A5ED7D /* RCTFrameUpdate.h */; }; - 3DA981CD1E5B0F29004F2374 /* RCTImageSource.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13BB3D001BECD54500932C10 /* RCTImageSource.h */; }; - 3DA981CE1E5B0F29004F2374 /* RCTInvalidating.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4C1A601E3B00E9B192 /* RCTInvalidating.h */; }; - 3DA981CF1E5B0F29004F2374 /* RCTJavaScriptExecutor.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA631A601ECA00E9B192 /* RCTJavaScriptExecutor.h */; }; - 3DA981D01E5B0F29004F2374 /* RCTJavaScriptLoader.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14200DA81AC179B3008EE6BA /* RCTJavaScriptLoader.h */; }; - 3DA981D11E5B0F29004F2374 /* RCTJSStackFrame.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 008341F51D1DB34400876D9A /* RCTJSStackFrame.h */; }; - 3DA981D21E5B0F29004F2374 /* RCTKeyCommands.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A1F71C1A75392D00D3D453 /* RCTKeyCommands.h */; }; - 3DA981D31E5B0F29004F2374 /* RCTLog.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4D1A601E3B00E9B192 /* RCTLog.h */; }; - 3DA981D41E5B0F29004F2374 /* RCTModuleData.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14C2CA721B3AC64300E6CBB2 /* RCTModuleData.h */; }; - 3DA981D51E5B0F29004F2374 /* RCTModuleMethod.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14C2CA6F1B3AC63800E6CBB2 /* RCTModuleMethod.h */; }; - 3DA981D61E5B0F29004F2374 /* RCTMultipartDataTask.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 006FC4121D9B20820057AAAD /* RCTMultipartDataTask.h */; }; - 3DA981D71E5B0F29004F2374 /* RCTMultipartStreamReader.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 001BFCCE1D8381DE008E587E /* RCTMultipartStreamReader.h */; }; - 3DA981D81E5B0F29004F2374 /* RCTNullability.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A6E20F1C19ABC700845B82 /* RCTNullability.h */; }; - 3DA981D91E5B0F29004F2374 /* RCTParserUtils.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A6E20C1C19AA0C00845B82 /* RCTParserUtils.h */; }; - 3DA981DA1E5B0F29004F2374 /* RCTPerformanceLogger.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 142014181B32094000CC17BA /* RCTPerformanceLogger.h */; }; - 3DA981DB1E5B0F29004F2374 /* RCTPlatform.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D7749421DC1065C007EC8D8 /* RCTPlatform.h */; }; - 3DA981DC1E5B0F29004F2374 /* RCTReloadCommand.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = A2440AA01DF8D854006E7BFC /* RCTReloadCommand.h */; }; - 3DA981DD1E5B0F29004F2374 /* RCTRootContentView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59A7B9FB1E577DBF0068EDBF /* RCTRootContentView.h */; }; - 3DA981DE1E5B0F29004F2374 /* RCTRootView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 830A229C1A66C68A008503DA /* RCTRootView.h */; }; - 3DA981DF1E5B0F29004F2374 /* RCTRootViewDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AFBCA21C07287B00BBAEAA /* RCTRootViewDelegate.h */; }; - 3DA981E11E5B0F29004F2374 /* RCTTouchEvent.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 391E86A31C623EC800009732 /* RCTTouchEvent.h */; }; - 3DA981E21E5B0F29004F2374 /* RCTTouchHandler.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA961A6020BB00E9B192 /* RCTTouchHandler.h */; }; - 3DA981E31E5B0F29004F2374 /* RCTURLRequestDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1345A83A1B265A0E00583190 /* RCTURLRequestDelegate.h */; }; - 3DA981E41E5B0F29004F2374 /* RCTURLRequestHandler.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1345A83B1B265A0E00583190 /* RCTURLRequestHandler.h */; }; - 3DA981E51E5B0F29004F2374 /* RCTUtils.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83CBBA4F1A601E3B00E9B192 /* RCTUtils.h */; }; - 3DA981EA1E5B0F7F004F2374 /* RCTAccessibilityManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = E9B20B791B500126007A2DA7 /* RCTAccessibilityManager.h */; }; - 3DA981EB1E5B0F7F004F2374 /* RCTAlertManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B07FE71A69327A00A75B9A /* RCTAlertManager.h */; }; - 3DA981EC1E5B0F7F004F2374 /* RCTAppState.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1372B7081AB030C200659ED6 /* RCTAppState.h */; }; - 3DA981ED1E5B0F7F004F2374 /* RCTAsyncLocalStorage.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 58114A4F1AAE93D500E7D092 /* RCTAsyncLocalStorage.h */; }; - 3DA981EE1E5B0F7F004F2374 /* RCTClipboard.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13D033611C1837FE0021DC29 /* RCTClipboard.h */; }; - 3DA981EF1E5B0F7F004F2374 /* RCTDevLoadingView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A0C2851B74F71200B29F6F /* RCTDevLoadingView.h */; }; - 3DA981F01E5B0F7F004F2374 /* RCTDevMenu.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13A0C2871B74F71200B29F6F /* RCTDevMenu.h */; }; - 3DA981F11E5B0F7F004F2374 /* RCTEventEmitter.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13D9FEE91CDCCECF00158BD7 /* RCTEventEmitter.h */; }; - 3DA981F21E5B0F7F004F2374 /* RCTExceptionsManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B07FE91A69327A00A75B9A /* RCTExceptionsManager.h */; }; - 3DA981F31E5B0F7F004F2374 /* RCTI18nManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = B233E6E81D2D843200BC68BA /* RCTI18nManager.h */; }; - 3DA981F41E5B0F7F004F2374 /* RCTI18nUtil.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 352DCFEE1D19F4C20056D623 /* RCTI18nUtil.h */; }; - 3DA981F51E5B0F7F004F2374 /* RCTKeyboardObserver.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13D9FEEC1CDCD93000158BD7 /* RCTKeyboardObserver.h */; }; - 3DA981F61E5B0F7F004F2374 /* RCTRedBox.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13F17A831B8493E5007D4C75 /* RCTRedBox.h */; }; - 3DA981F71E5B0F7F004F2374 /* RCTSourceCode.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 000E6CE91AB0E97F000CDF4D /* RCTSourceCode.h */; }; - 3DA981F81E5B0F7F004F2374 /* RCTStatusBarManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13723B4E1A82FD3C00F88898 /* RCTStatusBarManager.h */; }; - 3DA981F91E5B0F7F004F2374 /* RCTTiming.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B07FED1A69327A00A75B9A /* RCTTiming.h */; }; - 3DA981FA1E5B0F7F004F2374 /* RCTUIManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E067481A70F434002CDEE1 /* RCTUIManager.h */; }; - 3DA981FB1E5B0F7F004F2374 /* RCTFPSGraph.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14F7A0EE1BDA714B003C6C10 /* RCTFPSGraph.h */; }; - 3DA981FD1E5B0F7F004F2374 /* RCTMacros.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14BF71811C04795500C97D0C /* RCTMacros.h */; }; - 3DA981FE1E5B0F7F004F2374 /* RCTProfile.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 1450FF801BCFF28A00208362 /* RCTProfile.h */; }; - 3DA981FF1E5B0F7F004F2374 /* RCTActivityIndicatorView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = B95154301D1B34B200FE7B80 /* RCTActivityIndicatorView.h */; }; - 3DA982001E5B0F7F004F2374 /* RCTActivityIndicatorViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B080181A69489C00A75B9A /* RCTActivityIndicatorViewManager.h */; }; - 3DA982011E5B0F7F004F2374 /* RCTAnimationType.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13442BF21AA90E0B0037E5B0 /* RCTAnimationType.h */; }; - 3DA982021E5B0F7F004F2374 /* RCTAutoInsetsProtocol.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13C325261AA63B6A0048765F /* RCTAutoInsetsProtocol.h */; }; - 3DA982031E5B0F7F004F2374 /* RCTBorderDrawing.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13CC8A801B17642100940AE7 /* RCTBorderDrawing.h */; }; - 3DA982041E5B0F7F004F2374 /* RCTBorderStyle.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = ACDD3FDA1BC7430D00E7DE33 /* RCTBorderStyle.h */; }; - 3DA982051E5B0F7F004F2374 /* RCTComponent.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13C325281AA63B6A0048765F /* RCTComponent.h */; }; - 3DA982061E5B0F7F004F2374 /* RCTComponentData.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AB90BF1B6FA36700713B4F /* RCTComponentData.h */; }; - 3DA982071E5B0F7F004F2374 /* RCTConvert+CoreLocation.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13456E911ADAD2DE009F94A7 /* RCTConvert+CoreLocation.h */; }; - 3DA9820C1E5B0F7F004F2374 /* RCTFont.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D37B5801D522B190042D5B5 /* RCTFont.h */; }; - 3DA982111E5B0F7F004F2374 /* RCTModalHostView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83A1FE8A1B62640A00BE0E65 /* RCTModalHostView.h */; }; - 3DA982121E5B0F7F004F2374 /* RCTModalHostViewController.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83392EB11B6634E10013B15F /* RCTModalHostViewController.h */; }; - 3DA982131E5B0F7F004F2374 /* RCTModalHostViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 83A1FE8D1B62643A00BE0E65 /* RCTModalHostViewManager.h */; }; - 3DA982181E5B0F7F004F2374 /* RCTPicker.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 58114A121AAE854800E7D092 /* RCTPicker.h */; }; - 3DA982191E5B0F7F004F2374 /* RCTPickerManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 58114A141AAE854800E7D092 /* RCTPickerManager.h */; }; - 3DA9821A1E5B0F7F004F2374 /* RCTPointerEvents.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13442BF31AA90E0B0037E5B0 /* RCTPointerEvents.h */; }; - 3DA9821B1E5B0F7F004F2374 /* RCTProgressViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13513F3A1B1F43F400FCE529 /* RCTProgressViewManager.h */; }; - 3DA9821C1E5B0F7F004F2374 /* RCTRefreshControl.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 191E3EBF1C29DC3800C180A6 /* RCTRefreshControl.h */; }; - 3DA9821D1E5B0F7F004F2374 /* RCTRefreshControlManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 191E3EBC1C29D9AF00C180A6 /* RCTRefreshControlManager.h */; }; - 3DA9821E1E5B0F7F004F2374 /* RCTRootShadowView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13BCE8071C99CB9D00DD7AAD /* RCTRootShadowView.h */; }; - 3DA982241E5B0F7F004F2374 /* RCTSegmentedControl.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 131B6AF01AF1093D00FFC3E0 /* RCTSegmentedControl.h */; }; - 3DA982251E5B0F7F004F2374 /* RCTSegmentedControlManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 131B6AF21AF1093D00FFC3E0 /* RCTSegmentedControlManager.h */; }; - 3DA982261E5B0F7F004F2374 /* RCTShadowView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E0674B1A70F44B002CDEE1 /* RCTShadowView.h */; }; - 3DA982271E5B0F7F004F2374 /* RCTSlider.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13AF20431AE707F8005F5298 /* RCTSlider.h */; }; - 3DA982281E5B0F7F004F2374 /* RCTSliderManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14F484541AABFCE100FDF6B9 /* RCTSliderManager.h */; }; - 3DA982291E5B0F7F004F2374 /* RCTSwitch.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14F362071AABD06A001CE568 /* RCTSwitch.h */; }; - 3DA9822A1E5B0F7F004F2374 /* RCTSwitchManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 14F362091AABD06A001CE568 /* RCTSwitchManager.h */; }; - 3DA9822F1E5B0F7F004F2374 /* RCTTextDecorationLineType.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = E3BBC8EB1ADE6F47001BBD81 /* RCTTextDecorationLineType.h */; }; - 3DA982301E5B0F7F004F2374 /* RCTTVView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 130443D61E401AD800D93A67 /* RCTTVView.h */; }; - 3DA982311E5B0F7F004F2374 /* RCTView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E0674F1A70F44B002CDEE1 /* RCTView.h */; }; - 3DA982331E5B0F7F004F2374 /* RCTViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E0674D1A70F44B002CDEE1 /* RCTViewManager.h */; }; - 3DA982341E5B0F7F004F2374 /* RCTWebView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13C156011AB1A2840079392D /* RCTWebView.h */; }; - 3DA982351E5B0F7F004F2374 /* RCTWebViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13C156031AB1A2840079392D /* RCTWebViewManager.h */; }; - 3DA982361E5B0F7F004F2374 /* RCTWrapperViewController.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13B080231A694A8400A75B9A /* RCTWrapperViewController.h */; }; - 3DA982381E5B0F7F004F2374 /* UIView+React.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13E067531A70F44B002CDEE1 /* UIView+React.h */; }; - 3DA982391E5B0F8A004F2374 /* UIView+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 83F15A171B7CC46900F10295 /* UIView+Private.h */; }; - 3DA9823B1E5B1053004F2374 /* CxxModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0A71E03699D0018521A /* CxxModule.h */; }; - 3DA9823C1E5B1053004F2374 /* CxxNativeModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0A91E03699D0018521A /* CxxNativeModule.h */; }; - 3DA9823D1E5B1053004F2374 /* JSExecutor.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0AB1E03699D0018521A /* JSExecutor.h */; }; - 3DA982401E5B1053004F2374 /* Instance.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0AF1E03699D0018521A /* Instance.h */; }; - 3DA982411E5B1053004F2374 /* JsArgumentHelpers-inl.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0B01E03699D0018521A /* JsArgumentHelpers-inl.h */; }; - 3DA982421E5B1053004F2374 /* JsArgumentHelpers.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0B11E03699D0018521A /* JsArgumentHelpers.h */; }; - 3DA982431E5B1053004F2374 /* JSBigString.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D7454781E54757500E74ADD /* JSBigString.h */; }; - 3DA982441E5B1053004F2374 /* JSBundleType.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D3CD8F51DE5FB2300167DC4 /* JSBundleType.h */; }; - 3DA9824E1E5B1053004F2374 /* JSIndexedRAMBundle.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C71E03699D0018521A /* JSIndexedRAMBundle.h */; }; - 3DA9824F1E5B1053004F2374 /* JSModulesUnbundle.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C81E03699D0018521A /* JSModulesUnbundle.h */; }; - 3DA982501E5B1053004F2374 /* MessageQueueThread.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0C91E03699D0018521A /* MessageQueueThread.h */; }; - 3DA982511E5B1053004F2374 /* MethodCall.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CB1E03699D0018521A /* MethodCall.h */; }; - 3DA982521E5B1053004F2374 /* ModuleRegistry.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CD1E03699D0018521A /* ModuleRegistry.h */; }; - 3DA982531E5B1053004F2374 /* NativeModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0CE1E03699D0018521A /* NativeModule.h */; }; - 3DA982541E5B1053004F2374 /* NativeToJsBridge.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D01E03699D0018521A /* NativeToJsBridge.h */; }; - 3DA982571E5B1053004F2374 /* RecoverableError.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D7454791E54757500E74ADD /* RecoverableError.h */; }; - 3DA982581E5B1053004F2374 /* SampleCxxModule.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D41E03699D0018521A /* SampleCxxModule.h */; }; - 3DA982591E5B1053004F2374 /* SystraceSection.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 3D92B0D51E03699D0018521A /* SystraceSection.h */; }; - 3DC159E41E83E1AE007B1282 /* RCTRootContentView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59A7B9FC1E577DBF0068EDBF /* RCTRootContentView.m */; }; - 3DC159E51E83E1E9007B1282 /* JSBigString.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 27B958731E57587D0096647A /* JSBigString.cpp */; }; - 3DC159E61E83E1FA007B1282 /* JSBigString.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 27B958731E57587D0096647A /* JSBigString.cpp */; }; - 3DCD185D1DF978E7007FE5A1 /* RCTReloadCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = A2440AA11DF8D854006E7BFC /* RCTReloadCommand.m */; }; - 3DCE52F31FEAB10600613583 /* RCTRedBoxExtraDataViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = FEFAAC9D1FDB89B40057BBE0 /* RCTRedBoxExtraDataViewController.h */; }; - 3DCE52F41FEAB10D00613583 /* RCTRedBoxExtraDataViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FEFAAC9C1FDB89B40057BBE0 /* RCTRedBoxExtraDataViewController.m */; }; - 3DCE53251FEAB1E000613583 /* RCTShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5335D5401FE81A4700883D58 /* RCTShadowView.m */; }; - 3DCE53281FEAB23100613583 /* RCTDatePicker.h in Headers */ = {isa = PBXBuildFile; fileRef = 133CAE8C1B8E5CFD00F6AD92 /* RCTDatePicker.h */; }; - 3DCE53291FEAB23100613583 /* RCTDatePicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 133CAE8D1B8E5CFD00F6AD92 /* RCTDatePicker.m */; }; - 3DCE532A1FEAB23100613583 /* RCTDatePickerManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 58C571C01AA56C1900CDF9C8 /* RCTDatePickerManager.h */; }; - 3DCE532B1FEAB23100613583 /* RCTDatePickerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 58C571BF1AA56C1900CDF9C8 /* RCTDatePickerManager.m */; }; - 3EDCA8A51D3591E700450C31 /* RCTErrorInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */; }; - 4F56C93822167A4800DB9F3F /* jsilib.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F56C93722167A4800DB9F3F /* jsilib.h */; }; - 4F56C93922167A4D00DB9F3F /* jsilib.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 4F56C93722167A4800DB9F3F /* jsilib.h */; }; - 4F56C93A2216A3B700DB9F3F /* jsilib.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 4F56C93722167A4800DB9F3F /* jsilib.h */; }; - 50E98FEA21460B0D00CD9289 /* RCTWKWebViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 50E98FE621460B0D00CD9289 /* RCTWKWebViewManager.m */; }; - 50E98FEB21460B0D00CD9289 /* RCTWKWebView.h in Headers */ = {isa = PBXBuildFile; fileRef = 50E98FE721460B0D00CD9289 /* RCTWKWebView.h */; }; - 50E98FEC21460B0D00CD9289 /* RCTWKWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 50E98FE821460B0D00CD9289 /* RCTWKWebView.m */; }; - 50E98FED21460B0D00CD9289 /* RCTWKWebViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 50E98FE921460B0D00CD9289 /* RCTWKWebViewManager.h */; }; - 5335D5411FE81A4700883D58 /* RCTShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5335D5401FE81A4700883D58 /* RCTShadowView.m */; }; - 58114A161AAE854800E7D092 /* RCTPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 58114A131AAE854800E7D092 /* RCTPicker.m */; }; - 58114A171AAE854800E7D092 /* RCTPickerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 58114A151AAE854800E7D092 /* RCTPickerManager.m */; }; - 58114A501AAE93D500E7D092 /* RCTAsyncLocalStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = 58114A4E1AAE93D500E7D092 /* RCTAsyncLocalStorage.m */; }; - 589515E02231AD9C0036BDE0 /* RCTSurfacePresenterStub.h in Headers */ = {isa = PBXBuildFile; fileRef = 589515DF2231AD9C0036BDE0 /* RCTSurfacePresenterStub.h */; }; - 589515E12231ADE00036BDE0 /* RCTSurfacePresenterStub.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 589515DF2231AD9C0036BDE0 /* RCTSurfacePresenterStub.h */; }; - 590D7BFD1EBD458B00D8A370 /* RCTShadowView+Layout.h in Headers */ = {isa = PBXBuildFile; fileRef = 590D7BFB1EBD458B00D8A370 /* RCTShadowView+Layout.h */; }; - 590D7BFE1EBD458B00D8A370 /* RCTShadowView+Layout.h in Headers */ = {isa = PBXBuildFile; fileRef = 590D7BFB1EBD458B00D8A370 /* RCTShadowView+Layout.h */; }; - 590D7BFF1EBD458B00D8A370 /* RCTShadowView+Layout.m in Sources */ = {isa = PBXBuildFile; fileRef = 590D7BFC1EBD458B00D8A370 /* RCTShadowView+Layout.m */; }; - 590D7C001EBD458B00D8A370 /* RCTShadowView+Layout.m in Sources */ = {isa = PBXBuildFile; fileRef = 590D7BFC1EBD458B00D8A370 /* RCTShadowView+Layout.m */; }; - 591F78DA202ADB22004A668C /* RCTLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 591F78D8202ADB21004A668C /* RCTLayout.m */; }; - 591F78DB202ADB22004A668C /* RCTLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 591F78D8202ADB21004A668C /* RCTLayout.m */; }; - 591F78DC202ADB22004A668C /* RCTLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 591F78D9202ADB22004A668C /* RCTLayout.h */; }; - 591F78DD202ADB22004A668C /* RCTLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 591F78D9202ADB22004A668C /* RCTLayout.h */; }; - 591F78DE202ADB8F004A668C /* RCTLayout.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 591F78D9202ADB22004A668C /* RCTLayout.h */; }; - 591F78DF202ADB97004A668C /* RCTLayout.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 591F78D9202ADB22004A668C /* RCTLayout.h */; }; - 5925356A20084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5925356920084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm */; }; - 5925356B20084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5925356920084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm */; }; - 59283CA01FD67321000EAAB9 /* RCTSurfaceStage.m in Sources */ = {isa = PBXBuildFile; fileRef = 59283C9F1FD67320000EAAB9 /* RCTSurfaceStage.m */; }; - 59283CA11FD67321000EAAB9 /* RCTSurfaceStage.m in Sources */ = {isa = PBXBuildFile; fileRef = 59283C9F1FD67320000EAAB9 /* RCTSurfaceStage.m */; }; - 594F0A321FD23228007FBE96 /* RCTSurfaceHostingView.h in Headers */ = {isa = PBXBuildFile; fileRef = 594F0A2F1FD23228007FBE96 /* RCTSurfaceHostingView.h */; }; - 594F0A331FD23228007FBE96 /* RCTSurfaceHostingView.h in Headers */ = {isa = PBXBuildFile; fileRef = 594F0A2F1FD23228007FBE96 /* RCTSurfaceHostingView.h */; }; - 594F0A341FD23228007FBE96 /* RCTSurfaceHostingView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 594F0A301FD23228007FBE96 /* RCTSurfaceHostingView.mm */; }; - 594F0A351FD23228007FBE96 /* RCTSurfaceHostingView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 594F0A301FD23228007FBE96 /* RCTSurfaceHostingView.mm */; }; - 594F0A361FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 594F0A311FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h */; }; - 594F0A371FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 594F0A311FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h */; }; - 594F0A381FD233A2007FBE96 /* RCTSurface.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2A1FB274970058CCF6 /* RCTSurface.h */; }; - 594F0A391FD233A2007FBE96 /* RCTSurfaceDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2C1FB274970058CCF6 /* RCTSurfaceDelegate.h */; }; - 594F0A3A1FD233A2007FBE96 /* RCTSurfaceRootShadowView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2D1FB274970058CCF6 /* RCTSurfaceRootShadowView.h */; }; - 594F0A3B1FD233A2007FBE96 /* RCTSurfaceRootShadowViewDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2F1FB274970058CCF6 /* RCTSurfaceRootShadowViewDelegate.h */; }; - 594F0A3C1FD233A2007FBE96 /* RCTSurfaceRootView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA301FB274970058CCF6 /* RCTSurfaceRootView.h */; }; - 594F0A3D1FD233A2007FBE96 /* RCTSurfaceStage.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA321FB274970058CCF6 /* RCTSurfaceStage.h */; }; - 594F0A3E1FD233A2007FBE96 /* RCTSurfaceView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA341FB274970058CCF6 /* RCTSurfaceView.h */; }; - 594F0A3F1FD233A2007FBE96 /* RCTSurfaceHostingView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 594F0A2F1FD23228007FBE96 /* RCTSurfaceHostingView.h */; }; - 594F0A401FD233A2007FBE96 /* RCTSurfaceSizeMeasureMode.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 594F0A311FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h */; }; - 594F0A411FD233BD007FBE96 /* RCTSurface.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2A1FB274970058CCF6 /* RCTSurface.h */; }; - 594F0A421FD233BD007FBE96 /* RCTSurfaceDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2C1FB274970058CCF6 /* RCTSurfaceDelegate.h */; }; - 594F0A431FD233BD007FBE96 /* RCTSurfaceRootShadowView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2D1FB274970058CCF6 /* RCTSurfaceRootShadowView.h */; }; - 594F0A441FD233BD007FBE96 /* RCTSurfaceRootShadowViewDelegate.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2F1FB274970058CCF6 /* RCTSurfaceRootShadowViewDelegate.h */; }; - 594F0A451FD233BD007FBE96 /* RCTSurfaceRootView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA301FB274970058CCF6 /* RCTSurfaceRootView.h */; }; - 594F0A461FD233BD007FBE96 /* RCTSurfaceStage.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA321FB274970058CCF6 /* RCTSurfaceStage.h */; }; - 594F0A471FD233BD007FBE96 /* RCTSurfaceView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 599FAA341FB274970058CCF6 /* RCTSurfaceView.h */; }; - 594F0A481FD233BD007FBE96 /* RCTSurfaceHostingView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 594F0A2F1FD23228007FBE96 /* RCTSurfaceHostingView.h */; }; - 594F0A491FD233BD007FBE96 /* RCTSurfaceSizeMeasureMode.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 594F0A311FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h */; }; - 59500D431F71C63F00B122B7 /* RCTUIManagerUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 59500D411F71C63700B122B7 /* RCTUIManagerUtils.h */; }; - 59500D441F71C63F00B122B7 /* RCTUIManagerUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 59500D411F71C63700B122B7 /* RCTUIManagerUtils.h */; }; - 59500D451F71C63F00B122B7 /* RCTUIManagerUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 59500D421F71C63F00B122B7 /* RCTUIManagerUtils.m */; }; - 59500D461F71C63F00B122B7 /* RCTUIManagerUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 59500D421F71C63F00B122B7 /* RCTUIManagerUtils.m */; }; - 59500D471F71C66700B122B7 /* RCTUIManagerUtils.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59500D411F71C63700B122B7 /* RCTUIManagerUtils.h */; }; - 59500D481F71C67600B122B7 /* RCTUIManagerUtils.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59500D411F71C63700B122B7 /* RCTUIManagerUtils.h */; }; - 5960C1B51F0804A00066FD5B /* RCTLayoutAnimation.h in Headers */ = {isa = PBXBuildFile; fileRef = 5960C1B11F0804A00066FD5B /* RCTLayoutAnimation.h */; }; - 5960C1B61F0804A00066FD5B /* RCTLayoutAnimation.h in Headers */ = {isa = PBXBuildFile; fileRef = 5960C1B11F0804A00066FD5B /* RCTLayoutAnimation.h */; }; - 5960C1B71F0804A00066FD5B /* RCTLayoutAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 5960C1B21F0804A00066FD5B /* RCTLayoutAnimation.m */; }; - 5960C1B81F0804A00066FD5B /* RCTLayoutAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 5960C1B21F0804A00066FD5B /* RCTLayoutAnimation.m */; }; - 5960C1B91F0804A00066FD5B /* RCTLayoutAnimationGroup.h in Headers */ = {isa = PBXBuildFile; fileRef = 5960C1B31F0804A00066FD5B /* RCTLayoutAnimationGroup.h */; }; - 5960C1BA1F0804A00066FD5B /* RCTLayoutAnimationGroup.h in Headers */ = {isa = PBXBuildFile; fileRef = 5960C1B31F0804A00066FD5B /* RCTLayoutAnimationGroup.h */; }; - 5960C1BB1F0804A00066FD5B /* RCTLayoutAnimationGroup.m in Sources */ = {isa = PBXBuildFile; fileRef = 5960C1B41F0804A00066FD5B /* RCTLayoutAnimationGroup.m */; }; - 5960C1BC1F0804A00066FD5B /* RCTLayoutAnimationGroup.m in Sources */ = {isa = PBXBuildFile; fileRef = 5960C1B41F0804A00066FD5B /* RCTLayoutAnimationGroup.m */; }; - 5960C1BD1F0804DF0066FD5B /* RCTLayoutAnimation.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5960C1B11F0804A00066FD5B /* RCTLayoutAnimation.h */; }; - 5960C1BE1F0804DF0066FD5B /* RCTLayoutAnimationGroup.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5960C1B31F0804A00066FD5B /* RCTLayoutAnimationGroup.h */; }; - 5960C1BF1F0804F50066FD5B /* RCTLayoutAnimation.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5960C1B11F0804A00066FD5B /* RCTLayoutAnimation.h */; }; - 5960C1C01F0804F50066FD5B /* RCTLayoutAnimationGroup.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 5960C1B31F0804A00066FD5B /* RCTLayoutAnimationGroup.h */; }; - 597633361F4E021D005BE8A4 /* RCTShadowView+Internal.m in Sources */ = {isa = PBXBuildFile; fileRef = 597633341F4E021D005BE8A4 /* RCTShadowView+Internal.m */; }; - 597633371F4E021D005BE8A4 /* RCTShadowView+Internal.m in Sources */ = {isa = PBXBuildFile; fileRef = 597633341F4E021D005BE8A4 /* RCTShadowView+Internal.m */; }; - 597633381F4E021D005BE8A4 /* RCTShadowView+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 597633351F4E021D005BE8A4 /* RCTShadowView+Internal.h */; }; - 597633391F4E021D005BE8A4 /* RCTShadowView+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 597633351F4E021D005BE8A4 /* RCTShadowView+Internal.h */; }; - 598FD1921F816A2A006C54CB /* RAMBundleRegistry.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = C6D380181F71D75B00621378 /* RAMBundleRegistry.h */; }; - 599FAA361FB274980058CCF6 /* RCTSurface.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2A1FB274970058CCF6 /* RCTSurface.h */; }; - 599FAA371FB274980058CCF6 /* RCTSurface.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2A1FB274970058CCF6 /* RCTSurface.h */; }; - 599FAA381FB274980058CCF6 /* RCTSurface.mm in Sources */ = {isa = PBXBuildFile; fileRef = 599FAA2B1FB274970058CCF6 /* RCTSurface.mm */; }; - 599FAA391FB274980058CCF6 /* RCTSurface.mm in Sources */ = {isa = PBXBuildFile; fileRef = 599FAA2B1FB274970058CCF6 /* RCTSurface.mm */; }; - 599FAA3A1FB274980058CCF6 /* RCTSurfaceDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2C1FB274970058CCF6 /* RCTSurfaceDelegate.h */; }; - 599FAA3B1FB274980058CCF6 /* RCTSurfaceDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2C1FB274970058CCF6 /* RCTSurfaceDelegate.h */; }; - 599FAA3C1FB274980058CCF6 /* RCTSurfaceRootShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2D1FB274970058CCF6 /* RCTSurfaceRootShadowView.h */; }; - 599FAA3D1FB274980058CCF6 /* RCTSurfaceRootShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2D1FB274970058CCF6 /* RCTSurfaceRootShadowView.h */; }; - 599FAA3E1FB274980058CCF6 /* RCTSurfaceRootShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 599FAA2E1FB274970058CCF6 /* RCTSurfaceRootShadowView.m */; }; - 599FAA3F1FB274980058CCF6 /* RCTSurfaceRootShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 599FAA2E1FB274970058CCF6 /* RCTSurfaceRootShadowView.m */; }; - 599FAA401FB274980058CCF6 /* RCTSurfaceRootShadowViewDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2F1FB274970058CCF6 /* RCTSurfaceRootShadowViewDelegate.h */; }; - 599FAA411FB274980058CCF6 /* RCTSurfaceRootShadowViewDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA2F1FB274970058CCF6 /* RCTSurfaceRootShadowViewDelegate.h */; }; - 599FAA421FB274980058CCF6 /* RCTSurfaceRootView.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA301FB274970058CCF6 /* RCTSurfaceRootView.h */; }; - 599FAA431FB274980058CCF6 /* RCTSurfaceRootView.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA301FB274970058CCF6 /* RCTSurfaceRootView.h */; }; - 599FAA441FB274980058CCF6 /* RCTSurfaceRootView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 599FAA311FB274970058CCF6 /* RCTSurfaceRootView.mm */; }; - 599FAA451FB274980058CCF6 /* RCTSurfaceRootView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 599FAA311FB274970058CCF6 /* RCTSurfaceRootView.mm */; }; - 599FAA461FB274980058CCF6 /* RCTSurfaceStage.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA321FB274970058CCF6 /* RCTSurfaceStage.h */; }; - 599FAA471FB274980058CCF6 /* RCTSurfaceStage.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA321FB274970058CCF6 /* RCTSurfaceStage.h */; }; - 599FAA481FB274980058CCF6 /* RCTSurfaceView+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA331FB274970058CCF6 /* RCTSurfaceView+Internal.h */; }; - 599FAA491FB274980058CCF6 /* RCTSurfaceView+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA331FB274970058CCF6 /* RCTSurfaceView+Internal.h */; }; - 599FAA4A1FB274980058CCF6 /* RCTSurfaceView.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA341FB274970058CCF6 /* RCTSurfaceView.h */; }; - 599FAA4B1FB274980058CCF6 /* RCTSurfaceView.h in Headers */ = {isa = PBXBuildFile; fileRef = 599FAA341FB274970058CCF6 /* RCTSurfaceView.h */; }; - 599FAA4C1FB274980058CCF6 /* RCTSurfaceView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 599FAA351FB274970058CCF6 /* RCTSurfaceView.mm */; }; - 599FAA4D1FB274980058CCF6 /* RCTSurfaceView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 599FAA351FB274970058CCF6 /* RCTSurfaceView.mm */; }; - 59A7B9FD1E577DBF0068EDBF /* RCTRootContentView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59A7B9FB1E577DBF0068EDBF /* RCTRootContentView.h */; }; - 59A7B9FE1E577DBF0068EDBF /* RCTRootContentView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59A7B9FC1E577DBF0068EDBF /* RCTRootContentView.m */; }; - 59B1EBC91EBD46250047B19B /* RCTShadowView+Layout.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 590D7BFB1EBD458B00D8A370 /* RCTShadowView+Layout.h */; }; - 59B1EBCA1EBD47520047B19B /* RCTShadowView+Layout.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 590D7BFB1EBD458B00D8A370 /* RCTShadowView+Layout.h */; }; - 59D031ED1F8353D3008361F0 /* RCTSafeAreaShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59D031E51F8353D3008361F0 /* RCTSafeAreaShadowView.h */; }; - 59D031EE1F8353D3008361F0 /* RCTSafeAreaShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59D031E51F8353D3008361F0 /* RCTSafeAreaShadowView.h */; }; - 59D031EF1F8353D3008361F0 /* RCTSafeAreaShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59D031E61F8353D3008361F0 /* RCTSafeAreaShadowView.m */; }; - 59D031F01F8353D3008361F0 /* RCTSafeAreaShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59D031E61F8353D3008361F0 /* RCTSafeAreaShadowView.m */; }; - 59D031F11F8353D3008361F0 /* RCTSafeAreaView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59D031E71F8353D3008361F0 /* RCTSafeAreaView.h */; }; - 59D031F21F8353D3008361F0 /* RCTSafeAreaView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59D031E71F8353D3008361F0 /* RCTSafeAreaView.h */; }; - 59D031F31F8353D3008361F0 /* RCTSafeAreaView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59D031E81F8353D3008361F0 /* RCTSafeAreaView.m */; }; - 59D031F41F8353D3008361F0 /* RCTSafeAreaView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59D031E81F8353D3008361F0 /* RCTSafeAreaView.m */; }; - 59D031F51F8353D3008361F0 /* RCTSafeAreaViewLocalData.h in Headers */ = {isa = PBXBuildFile; fileRef = 59D031E91F8353D3008361F0 /* RCTSafeAreaViewLocalData.h */; }; - 59D031F61F8353D3008361F0 /* RCTSafeAreaViewLocalData.h in Headers */ = {isa = PBXBuildFile; fileRef = 59D031E91F8353D3008361F0 /* RCTSafeAreaViewLocalData.h */; }; - 59D031F71F8353D3008361F0 /* RCTSafeAreaViewLocalData.m in Sources */ = {isa = PBXBuildFile; fileRef = 59D031EA1F8353D3008361F0 /* RCTSafeAreaViewLocalData.m */; }; - 59D031F81F8353D3008361F0 /* RCTSafeAreaViewLocalData.m in Sources */ = {isa = PBXBuildFile; fileRef = 59D031EA1F8353D3008361F0 /* RCTSafeAreaViewLocalData.m */; }; - 59D031F91F8353D3008361F0 /* RCTSafeAreaViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 59D031EB1F8353D3008361F0 /* RCTSafeAreaViewManager.h */; }; - 59D031FA1F8353D3008361F0 /* RCTSafeAreaViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 59D031EB1F8353D3008361F0 /* RCTSafeAreaViewManager.h */; }; - 59D031FB1F8353D3008361F0 /* RCTSafeAreaViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 59D031EC1F8353D3008361F0 /* RCTSafeAreaViewManager.m */; }; - 59D031FC1F8353D3008361F0 /* RCTSafeAreaViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 59D031EC1F8353D3008361F0 /* RCTSafeAreaViewManager.m */; }; - 59E604A01FE9CCE300BD90C5 /* RCTScrollContentShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59E6049C1FE9CCE100BD90C5 /* RCTScrollContentShadowView.h */; }; - 59E604A11FE9CCE300BD90C5 /* RCTScrollContentShadowView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59E6049C1FE9CCE100BD90C5 /* RCTScrollContentShadowView.h */; }; - 59E604A21FE9CCE300BD90C5 /* RCTScrollContentViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 59E6049D1FE9CCE200BD90C5 /* RCTScrollContentViewManager.m */; }; - 59E604A31FE9CCE300BD90C5 /* RCTScrollContentViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 59E6049D1FE9CCE200BD90C5 /* RCTScrollContentViewManager.m */; }; - 59E604A41FE9CCE300BD90C5 /* RCTScrollContentShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59E6049E1FE9CCE200BD90C5 /* RCTScrollContentShadowView.m */; }; - 59E604A51FE9CCE300BD90C5 /* RCTScrollContentShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59E6049E1FE9CCE200BD90C5 /* RCTScrollContentShadowView.m */; }; - 59E604A61FE9CCE300BD90C5 /* RCTScrollContentViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 59E6049F1FE9CCE200BD90C5 /* RCTScrollContentViewManager.h */; }; - 59E604A71FE9CCE300BD90C5 /* RCTScrollContentViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 59E6049F1FE9CCE200BD90C5 /* RCTScrollContentViewManager.h */; }; - 59EB6DBB1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EB6DB91EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h */; }; - 59EB6DBC1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EB6DB91EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h */; }; - 59EB6DBD1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 59EB6DBA1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.mm */; }; - 59EB6DBE1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 59EB6DBA1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.mm */; }; - 59EB6DBF1EBD6FFC0072A5E7 /* RCTUIManagerObserverCoordinator.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EB6DB91EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h */; }; - 59EB6DC01EBD70130072A5E7 /* RCTUIManagerObserverCoordinator.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EB6DB91EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h */; }; - 59EDBCA71FDF4E0C003573DE /* RCTScrollableProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EDBC9C1FDF4E0C003573DE /* RCTScrollableProtocol.h */; }; - 59EDBCA81FDF4E0C003573DE /* RCTScrollableProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EDBC9C1FDF4E0C003573DE /* RCTScrollableProtocol.h */; }; - 59EDBCAD1FDF4E0C003573DE /* RCTScrollContentView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EDBC9F1FDF4E0C003573DE /* RCTScrollContentView.h */; }; - 59EDBCAE1FDF4E0C003573DE /* RCTScrollContentView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EDBC9F1FDF4E0C003573DE /* RCTScrollContentView.h */; }; - 59EDBCAF1FDF4E0C003573DE /* RCTScrollContentView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59EDBCA01FDF4E0C003573DE /* RCTScrollContentView.m */; }; - 59EDBCB01FDF4E0C003573DE /* RCTScrollContentView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59EDBCA01FDF4E0C003573DE /* RCTScrollContentView.m */; }; - 59EDBCB51FDF4E0C003573DE /* RCTScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EDBCA31FDF4E0C003573DE /* RCTScrollView.h */; }; - 59EDBCB61FDF4E0C003573DE /* RCTScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EDBCA31FDF4E0C003573DE /* RCTScrollView.h */; }; - 59EDBCB71FDF4E0C003573DE /* RCTScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59EDBCA41FDF4E0C003573DE /* RCTScrollView.m */; }; - 59EDBCB81FDF4E0C003573DE /* RCTScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = 59EDBCA41FDF4E0C003573DE /* RCTScrollView.m */; }; - 59EDBCB91FDF4E0C003573DE /* RCTScrollViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EDBCA51FDF4E0C003573DE /* RCTScrollViewManager.h */; }; - 59EDBCBA1FDF4E0C003573DE /* RCTScrollViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 59EDBCA51FDF4E0C003573DE /* RCTScrollViewManager.h */; }; - 59EDBCBB1FDF4E0C003573DE /* RCTScrollViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 59EDBCA61FDF4E0C003573DE /* RCTScrollViewManager.m */; }; - 59EDBCBC1FDF4E0C003573DE /* RCTScrollViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 59EDBCA61FDF4E0C003573DE /* RCTScrollViewManager.m */; }; - 59EDBCBD1FDF4E43003573DE /* RCTScrollableProtocol.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EDBC9C1FDF4E0C003573DE /* RCTScrollableProtocol.h */; }; - 59EDBCBF1FDF4E43003573DE /* RCTScrollContentView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EDBC9F1FDF4E0C003573DE /* RCTScrollContentView.h */; }; - 59EDBCC11FDF4E43003573DE /* RCTScrollView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EDBCA31FDF4E0C003573DE /* RCTScrollView.h */; }; - 59EDBCC21FDF4E43003573DE /* RCTScrollViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EDBCA51FDF4E0C003573DE /* RCTScrollViewManager.h */; }; - 59EDBCC31FDF4E55003573DE /* RCTScrollableProtocol.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EDBC9C1FDF4E0C003573DE /* RCTScrollableProtocol.h */; }; - 59EDBCC51FDF4E55003573DE /* RCTScrollContentView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EDBC9F1FDF4E0C003573DE /* RCTScrollContentView.h */; }; - 59EDBCC71FDF4E55003573DE /* RCTScrollView.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EDBCA31FDF4E0C003573DE /* RCTScrollView.h */; }; - 59EDBCC81FDF4E55003573DE /* RCTScrollViewManager.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 59EDBCA51FDF4E0C003573DE /* RCTScrollViewManager.h */; }; - 657734841EE834C900A0E9EA /* RCTInspectorDevServerHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = 657734821EE834C900A0E9EA /* RCTInspectorDevServerHelper.h */; }; - 657734851EE834C900A0E9EA /* RCTInspectorDevServerHelper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 657734831EE834C900A0E9EA /* RCTInspectorDevServerHelper.mm */; }; - 657734861EE834D900A0E9EA /* RCTInspectorDevServerHelper.mm in Sources */ = {isa = PBXBuildFile; fileRef = 657734831EE834C900A0E9EA /* RCTInspectorDevServerHelper.mm */; }; - 657734871EE834E000A0E9EA /* RCTInspectorDevServerHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = 657734821EE834C900A0E9EA /* RCTInspectorDevServerHelper.h */; }; - 6577348E1EE8354A00A0E9EA /* RCTInspector.h in Headers */ = {isa = PBXBuildFile; fileRef = 6577348A1EE8354A00A0E9EA /* RCTInspector.h */; }; - 6577348F1EE8354A00A0E9EA /* RCTInspector.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6577348B1EE8354A00A0E9EA /* RCTInspector.mm */; }; - 657734901EE8354A00A0E9EA /* RCTInspectorPackagerConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 6577348C1EE8354A00A0E9EA /* RCTInspectorPackagerConnection.h */; }; - 657734911EE8354A00A0E9EA /* RCTInspectorPackagerConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 6577348D1EE8354A00A0E9EA /* RCTInspectorPackagerConnection.m */; }; - 657734921EE8356100A0E9EA /* RCTInspector.h in Headers */ = {isa = PBXBuildFile; fileRef = 6577348A1EE8354A00A0E9EA /* RCTInspector.h */; }; - 657734931EE8356100A0E9EA /* RCTInspector.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6577348B1EE8354A00A0E9EA /* RCTInspector.mm */; }; - 657734941EE8356100A0E9EA /* RCTInspectorPackagerConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 6577348C1EE8354A00A0E9EA /* RCTInspectorPackagerConnection.h */; }; - 657734951EE8356100A0E9EA /* RCTInspectorPackagerConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 6577348D1EE8354A00A0E9EA /* RCTInspectorPackagerConnection.m */; }; - 66CD94B11F1045E700CB3C7C /* RCTMaskedView.h in Headers */ = {isa = PBXBuildFile; fileRef = 66CD94AD1F1045E700CB3C7C /* RCTMaskedView.h */; }; - 66CD94B21F1045E700CB3C7C /* RCTMaskedView.h in Headers */ = {isa = PBXBuildFile; fileRef = 66CD94AD1F1045E700CB3C7C /* RCTMaskedView.h */; }; - 66CD94B31F1045E700CB3C7C /* RCTMaskedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 66CD94AE1F1045E700CB3C7C /* RCTMaskedView.m */; }; - 66CD94B41F1045E700CB3C7C /* RCTMaskedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 66CD94AE1F1045E700CB3C7C /* RCTMaskedView.m */; }; - 66CD94B51F1045E700CB3C7C /* RCTMaskedViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 66CD94AF1F1045E700CB3C7C /* RCTMaskedViewManager.h */; }; - 66CD94B61F1045E700CB3C7C /* RCTMaskedViewManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 66CD94AF1F1045E700CB3C7C /* RCTMaskedViewManager.h */; }; - 66CD94B71F1045E700CB3C7C /* RCTMaskedViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 66CD94B01F1045E700CB3C7C /* RCTMaskedViewManager.m */; }; - 66CD94B81F1045E700CB3C7C /* RCTMaskedViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 66CD94B01F1045E700CB3C7C /* RCTMaskedViewManager.m */; }; - 68EFE4EE1CF6EB3900A1DE13 /* RCTBundleURLProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 68EFE4ED1CF6EB3900A1DE13 /* RCTBundleURLProvider.m */; }; - 6D4C7F86224946B900CBB1EC /* libYogaDev.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D4C7F85224946B900CBB1EC /* libYogaDev.a */; }; - 6D4C7FB02249479200CBB1EC /* libYogaDev.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D4C7FAF2249479200CBB1EC /* libYogaDev.a */; }; - 6DCB224622493AF10041DDBC /* Demangle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6DCB224522493AF10041DDBC /* Demangle.cpp */; }; - 830A229E1A66C68A008503DA /* RCTRootView.m in Sources */ = {isa = PBXBuildFile; fileRef = 830A229D1A66C68A008503DA /* RCTRootView.m */; }; - 83281384217EB70900574D55 /* MallocImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281383217EB70800574D55 /* MallocImpl.cpp */; }; - 83281385217EB71200574D55 /* MallocImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281383217EB70800574D55 /* MallocImpl.cpp */; }; - 83281387217EB73400574D55 /* String.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281386217EB73400574D55 /* String.cpp */; }; - 83281388217EB73400574D55 /* String.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281386217EB73400574D55 /* String.cpp */; }; - 8328138A217EB74C00574D55 /* json_pointer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281389217EB74C00574D55 /* json_pointer.cpp */; }; - 8328138B217EB74C00574D55 /* json_pointer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281389217EB74C00574D55 /* json_pointer.cpp */; }; - 8328138D217EB75C00574D55 /* ColdClass.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8328138C217EB75C00574D55 /* ColdClass.cpp */; }; - 8328138E217EB75C00574D55 /* ColdClass.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8328138C217EB75C00574D55 /* ColdClass.cpp */; }; - 83281393217EB77D00574D55 /* SpookyHashV2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281392217EB77C00574D55 /* SpookyHashV2.cpp */; }; - 83281394217EB77D00574D55 /* SpookyHashV2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281392217EB77C00574D55 /* SpookyHashV2.cpp */; }; - 83281396217EB79000574D55 /* F14Table.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281395217EB78F00574D55 /* F14Table.cpp */; }; - 83281397217EB79000574D55 /* F14Table.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281395217EB78F00574D55 /* F14Table.cpp */; }; - 83281399217EB79D00574D55 /* ScopeGuard.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281398217EB79D00574D55 /* ScopeGuard.cpp */; }; - 8328139A217EB79D00574D55 /* ScopeGuard.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83281398217EB79D00574D55 /* ScopeGuard.cpp */; }; - 83392EB31B6634E10013B15F /* RCTModalHostViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 83392EB21B6634E10013B15F /* RCTModalHostViewController.m */; }; - 833D02BA217EBCFA00A23750 /* Assume.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 833D02B9217EBCFA00A23750 /* Assume.cpp */; }; - 833D02BB217EBCFA00A23750 /* Assume.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 833D02B9217EBCFA00A23750 /* Assume.cpp */; }; - 833D02BD217EBD2600A23750 /* Format.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 833D02BC217EBD2600A23750 /* Format.cpp */; }; - 833D02BE217EBD2600A23750 /* Format.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 833D02BC217EBD2600A23750 /* Format.cpp */; }; - 83A1FE8C1B62640A00BE0E65 /* RCTModalHostView.m in Sources */ = {isa = PBXBuildFile; fileRef = 83A1FE8B1B62640A00BE0E65 /* RCTModalHostView.m */; }; - 83A1FE8F1B62643A00BE0E65 /* RCTModalHostViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 83A1FE8E1B62643A00BE0E65 /* RCTModalHostViewManager.m */; }; - 83CBBA511A601E3B00E9B192 /* RCTAssert.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA4B1A601E3B00E9B192 /* RCTAssert.m */; }; - 83CBBA521A601E3B00E9B192 /* RCTLog.mm in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA4E1A601E3B00E9B192 /* RCTLog.mm */; }; - 83CBBA531A601E3B00E9B192 /* RCTUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA501A601E3B00E9B192 /* RCTUtils.m */; }; - 83CBBA601A601EAA00E9B192 /* RCTBridge.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA5F1A601EAA00E9B192 /* RCTBridge.m */; }; - 83CBBA691A601EF300E9B192 /* RCTEventDispatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA661A601EF300E9B192 /* RCTEventDispatcher.m */; }; - 83CBBA981A6020BB00E9B192 /* RCTTouchHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBA971A6020BB00E9B192 /* RCTTouchHandler.m */; }; - 83CBBACC1A6023D300E9B192 /* RCTConvert.m in Sources */ = {isa = PBXBuildFile; fileRef = 83CBBACB1A6023D300E9B192 /* RCTConvert.m */; }; - 8507BBBE21EDACC200AEAFCA /* JSCExecutorFactory.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8507BBBC21EDACC200AEAFCA /* JSCExecutorFactory.mm */; }; - 8507BBBF21EDACC200AEAFCA /* JSCExecutorFactory.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8507BBBC21EDACC200AEAFCA /* JSCExecutorFactory.mm */; }; - 8507BBC021EDACC200AEAFCA /* JSCExecutorFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 8507BBBD21EDACC200AEAFCA /* JSCExecutorFactory.h */; }; - 8507BBC121EDACC200AEAFCA /* JSCExecutorFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 8507BBBD21EDACC200AEAFCA /* JSCExecutorFactory.h */; }; - A2440AA21DF8D854006E7BFC /* RCTReloadCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = A2440AA01DF8D854006E7BFC /* RCTReloadCommand.h */; }; - A2440AA31DF8D854006E7BFC /* RCTReloadCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = A2440AA11DF8D854006E7BFC /* RCTReloadCommand.m */; }; - A2440AA41DF8D865006E7BFC /* RCTReloadCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = A2440AA01DF8D854006E7BFC /* RCTReloadCommand.h */; }; - AC70D2E91DE489E4002E6351 /* RCTJavaScriptLoader.mm in Sources */ = {isa = PBXBuildFile; fileRef = AC70D2E81DE489E4002E6351 /* RCTJavaScriptLoader.mm */; }; - B233E6EA1D2D845D00BC68BA /* RCTI18nManager.m in Sources */ = {isa = PBXBuildFile; fileRef = B233E6E91D2D845D00BC68BA /* RCTI18nManager.m */; }; - B95154321D1B34B200FE7B80 /* RCTActivityIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = B95154311D1B34B200FE7B80 /* RCTActivityIndicatorView.m */; }; - BA0501AD2109DCF200A6BBC4 /* ReactMarker.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = 13DA8A2F2097A90A00276ED4 /* ReactMarker.h */; }; - BA0501AE2109DD0600A6BBC4 /* JSExecutor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E223624320875A8000108244 /* JSExecutor.cpp */; }; - C60128AB1F3D1258009DF9FF /* RCTCxxConvert.h in Headers */ = {isa = PBXBuildFile; fileRef = C60128A91F3D1258009DF9FF /* RCTCxxConvert.h */; }; - C60128AC1F3D1258009DF9FF /* RCTCxxConvert.h in Headers */ = {isa = PBXBuildFile; fileRef = C60128A91F3D1258009DF9FF /* RCTCxxConvert.h */; }; - C60128AD1F3D1258009DF9FF /* RCTCxxConvert.m in Sources */ = {isa = PBXBuildFile; fileRef = C60128AA1F3D1258009DF9FF /* RCTCxxConvert.m */; }; - C60128AE1F3D1258009DF9FF /* RCTCxxConvert.m in Sources */ = {isa = PBXBuildFile; fileRef = C60128AA1F3D1258009DF9FF /* RCTCxxConvert.m */; }; - C606692E1F3CC60500E67165 /* RCTModuleMethod.mm in Sources */ = {isa = PBXBuildFile; fileRef = C606692D1F3CC60500E67165 /* RCTModuleMethod.mm */; }; - C606692F1F3CC60500E67165 /* RCTModuleMethod.mm in Sources */ = {isa = PBXBuildFile; fileRef = C606692D1F3CC60500E67165 /* RCTModuleMethod.mm */; }; - C60669361F3CCF1B00E67165 /* RCTManagedPointer.mm in Sources */ = {isa = PBXBuildFile; fileRef = C60669351F3CCF1B00E67165 /* RCTManagedPointer.mm */; }; - C60669371F3CCF1B00E67165 /* RCTManagedPointer.mm in Sources */ = {isa = PBXBuildFile; fileRef = C60669351F3CCF1B00E67165 /* RCTManagedPointer.mm */; }; - C654505E1F3BD9280090799B /* RCTManagedPointer.h in Headers */ = {isa = PBXBuildFile; fileRef = C654505D1F3BD9280090799B /* RCTManagedPointer.h */; }; - C654505F1F3BD9280090799B /* RCTManagedPointer.h in Headers */ = {isa = PBXBuildFile; fileRef = C654505D1F3BD9280090799B /* RCTManagedPointer.h */; }; - C669D8981F72E3DE006748EB /* RAMBundleRegistry.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = C6D380181F71D75B00621378 /* RAMBundleRegistry.h */; }; - C6D3801A1F71D76100621378 /* RAMBundleRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = C6D380181F71D75B00621378 /* RAMBundleRegistry.h */; }; - C6D3801B1F71D76200621378 /* RAMBundleRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = C6D380181F71D75B00621378 /* RAMBundleRegistry.h */; }; - C6D3801C1F71D76700621378 /* RAMBundleRegistry.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6D380191F71D75B00621378 /* RAMBundleRegistry.cpp */; }; - C6D3801D1F71D76800621378 /* RAMBundleRegistry.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6D380191F71D75B00621378 /* RAMBundleRegistry.cpp */; }; - CF2731C01E7B8DE40044CA4F /* RCTDeviceInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = CF2731BE1E7B8DE40044CA4F /* RCTDeviceInfo.h */; }; - CF2731C11E7B8DE40044CA4F /* RCTDeviceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = CF2731BF1E7B8DE40044CA4F /* RCTDeviceInfo.m */; }; - CF2731C21E7B8DEF0044CA4F /* RCTDeviceInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = CF2731BE1E7B8DE40044CA4F /* RCTDeviceInfo.h */; }; - CF2731C31E7B8DF30044CA4F /* RCTDeviceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = CF2731BF1E7B8DE40044CA4F /* RCTDeviceInfo.m */; }; - E223624420875A8000108244 /* JSExecutor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E223624320875A8000108244 /* JSExecutor.cpp */; }; - E7711C7A2238455400FCF26D /* RCTSurfacePresenterStub.h in Headers */ = {isa = PBXBuildFile; fileRef = 589515DF2231AD9C0036BDE0 /* RCTSurfacePresenterStub.h */; }; - E9B20B7B1B500126007A2DA7 /* RCTAccessibilityManager.m in Sources */ = {isa = PBXBuildFile; fileRef = E9B20B7A1B500126007A2DA7 /* RCTAccessibilityManager.m */; }; - EBF21BBC1FC498270052F4D5 /* InspectorInterfaces.h in Headers */ = {isa = PBXBuildFile; fileRef = EBF21BBA1FC498270052F4D5 /* InspectorInterfaces.h */; }; - EBF21BBE1FC498630052F4D5 /* InspectorInterfaces.h in Headers */ = {isa = PBXBuildFile; fileRef = EBF21BBA1FC498270052F4D5 /* InspectorInterfaces.h */; }; - EBF21BFB1FC498FC0052F4D5 /* InspectorInterfaces.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EBF21BBA1FC498270052F4D5 /* InspectorInterfaces.h */; }; - EBF21BFC1FC4990B0052F4D5 /* InspectorInterfaces.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EBF21BBB1FC498270052F4D5 /* InspectorInterfaces.cpp */; }; - EBF21BFE1FC499840052F4D5 /* InspectorInterfaces.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EBF21BBA1FC498270052F4D5 /* InspectorInterfaces.h */; }; - EBF21BFF1FC4998E0052F4D5 /* InspectorInterfaces.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EBF21BBB1FC498270052F4D5 /* InspectorInterfaces.cpp */; }; - ED296F82214C973700B7C4FE /* libjsinspector-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EBF21BFA1FC4989A0052F4D5 /* libjsinspector-tvOS.a */; }; - ED296FB7214C9A9A00B7C4FE /* JSIDynamic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDEBC6DA214B3F6800DD5AC8 /* JSIDynamic.cpp */; }; - ED296FB8214C9A9A00B7C4FE /* jsi.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDEBC6DB214B3F6800DD5AC8 /* jsi.cpp */; }; - ED296FB9214C9AC200B7C4FE /* JSCRuntime.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDEBC6DD214B3F6800DD5AC8 /* JSCRuntime.cpp */; }; - ED296FBC214C9B0400B7C4FE /* jsi-inl.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6D9214B3F6800DD5AC8 /* jsi-inl.h */; }; - ED296FBF214C9B0400B7C4FE /* JSIDynamic.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6DC214B3F6800DD5AC8 /* JSIDynamic.h */; }; - ED296FC1214C9B0400B7C4FE /* JSCRuntime.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6DE214B3F6800DD5AC8 /* JSCRuntime.h */; }; - ED296FC3214C9B0400B7C4FE /* instrumentation.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6E0214B3F6800DD5AC8 /* instrumentation.h */; }; - ED296FC4214C9B0400B7C4FE /* jsi.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6E1214B3F6800DD5AC8 /* jsi.h */; }; - ED296FC5214C9B3E00B7C4FE /* jsi-inl.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6D9214B3F6800DD5AC8 /* jsi-inl.h */; }; - ED296FC6214C9B4400B7C4FE /* JSIDynamic.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6DC214B3F6800DD5AC8 /* JSIDynamic.h */; }; - ED296FC7214C9B4B00B7C4FE /* instrumentation.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6E0214B3F6800DD5AC8 /* instrumentation.h */; }; - ED296FC8214C9B5200B7C4FE /* jsi.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6E1214B3F6800DD5AC8 /* jsi.h */; }; - ED296FCB214C9B6C00B7C4FE /* libjsi-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ED296FB6214C9A0900B7C4FE /* libjsi-tvOS.a */; }; - ED29703E2150126E00B7C4FE /* AtomicIntrusiveLinkedList.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D849C1E273B5600323FB7 /* AtomicIntrusiveLinkedList.h */; }; - ED2970422150126E00B7C4FE /* Conv.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D84A01E273B5600323FB7 /* Conv.h */; }; - ED2970432150126E00B7C4FE /* dynamic-inl.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D84A11E273B5600323FB7 /* dynamic-inl.h */; }; - ED2970452150126E00B7C4FE /* dynamic.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D84A31E273B5600323FB7 /* dynamic.h */; }; - ED2970462150126E00B7C4FE /* Exception.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D84A41E273B5600323FB7 /* Exception.h */; }; - ED2970482150126E00B7C4FE /* json.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D84A81E273B5600323FB7 /* json.h */; }; - ED2970492150126E00B7C4FE /* Memory.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D84A91E273B5600323FB7 /* Memory.h */; }; - ED29704A2150126E00B7C4FE /* MoveWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D84AA1E273B5600323FB7 /* MoveWrapper.h */; }; - ED29704B2150126E00B7C4FE /* Optional.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D84AB1E273B5600323FB7 /* Optional.h */; }; - ED29704C2150126E00B7C4FE /* ScopeGuard.h in Headers */ = {isa = PBXBuildFile; fileRef = 139D84AC1E273B5600323FB7 /* ScopeGuard.h */; }; - ED29704F2150199F00B7C4FE /* JSCRuntime.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6DE214B3F6800DD5AC8 /* JSCRuntime.h */; }; - ED297050215019B400B7C4FE /* instrumentation.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6E0214B3F6800DD5AC8 /* instrumentation.h */; }; - ED297067215023D800B7C4FE /* libjsiexecutor-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ED296FEE214C9CF800B7C4FE /* libjsiexecutor-tvOS.a */; }; - ED6189692155BBF70000C9A7 /* JSIExecutor.h in Headers */ = {isa = PBXBuildFile; fileRef = ED6189672155BBF70000C9A7 /* JSIExecutor.h */; }; - ED61896A2155BBF70000C9A7 /* JSIExecutor.h in Headers */ = {isa = PBXBuildFile; fileRef = ED6189672155BBF70000C9A7 /* JSIExecutor.h */; }; - ED61896B2155BBF70000C9A7 /* JSINativeModules.h in Headers */ = {isa = PBXBuildFile; fileRef = ED6189682155BBF70000C9A7 /* JSINativeModules.h */; }; - ED61896C2155BBF70000C9A7 /* JSINativeModules.h in Headers */ = {isa = PBXBuildFile; fileRef = ED6189682155BBF70000C9A7 /* JSINativeModules.h */; }; - ED7286BC2155C62000C26ABF /* JSIExecutor.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = ED6189672155BBF70000C9A7 /* JSIExecutor.h */; }; - ED7286BD2155C62000C26ABF /* JSINativeModules.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = ED6189682155BBF70000C9A7 /* JSINativeModules.h */; }; - ED7286BE2155C62B00C26ABF /* JSIExecutor.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = ED6189672155BBF70000C9A7 /* JSIExecutor.h */; }; - ED7286BF2155C62B00C26ABF /* JSINativeModules.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = ED6189682155BBF70000C9A7 /* JSINativeModules.h */; }; - EDDA711D2164285A00B2D070 /* JSINativeModules.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDDA711B2164285A00B2D070 /* JSINativeModules.cpp */; }; - EDDA711E2164285A00B2D070 /* JSINativeModules.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDDA711B2164285A00B2D070 /* JSINativeModules.cpp */; }; - EDDA711F2164285A00B2D070 /* JSIExecutor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDDA711C2164285A00B2D070 /* JSIExecutor.cpp */; }; - EDDA71202164285A00B2D070 /* JSIExecutor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDDA711C2164285A00B2D070 /* JSIExecutor.cpp */; }; - EDEBC6E2214B3F6800DD5AC8 /* jsi-inl.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6D9214B3F6800DD5AC8 /* jsi-inl.h */; }; - EDEBC6E3214B3F6800DD5AC8 /* JSIDynamic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDEBC6DA214B3F6800DD5AC8 /* JSIDynamic.cpp */; }; - EDEBC6E4214B3F6800DD5AC8 /* jsi.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDEBC6DB214B3F6800DD5AC8 /* jsi.cpp */; }; - EDEBC6E5214B3F6800DD5AC8 /* JSIDynamic.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6DC214B3F6800DD5AC8 /* JSIDynamic.h */; }; - EDEBC6E6214B3F6800DD5AC8 /* JSCRuntime.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EDEBC6DD214B3F6800DD5AC8 /* JSCRuntime.cpp */; }; - EDEBC6E7214B3F6800DD5AC8 /* JSCRuntime.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6DE214B3F6800DD5AC8 /* JSCRuntime.h */; }; - EDEBC6E8214B3F6800DD5AC8 /* instrumentation.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6E0214B3F6800DD5AC8 /* instrumentation.h */; }; - EDEBC6E9214B3F6800DD5AC8 /* jsi.h in Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6E1214B3F6800DD5AC8 /* jsi.h */; }; - EDEBC71A214B40A300DD5AC8 /* libjsi.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EDEBC6D6214B3E7000DD5AC8 /* libjsi.a */; }; - EDEBC71C214B40F900DD5AC8 /* jsi-inl.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6D9214B3F6800DD5AC8 /* jsi-inl.h */; }; - EDEBC71D214B40F900DD5AC8 /* JSIDynamic.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6DC214B3F6800DD5AC8 /* JSIDynamic.h */; }; - EDEBC71E214B40F900DD5AC8 /* JSCRuntime.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6DE214B3F6800DD5AC8 /* JSCRuntime.h */; }; - EDEBC71F214B40F900DD5AC8 /* jsi.h in Copy Headers */ = {isa = PBXBuildFile; fileRef = EDEBC6E1214B3F6800DD5AC8 /* jsi.h */; }; - EDEBC7DF214C705700DD5AC8 /* libjsiexecutor.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EDEBC73B214B45A300DD5AC8 /* libjsiexecutor.a */; }; - EDEBC7E0214C709200DD5AC8 /* libjsinspector.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EBF21BDC1FC498900052F4D5 /* libjsinspector.a */; }; - F1EFDA50201F661000EE6E4C /* RCTUIUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = F1EFDA4E201F660F00EE6E4C /* RCTUIUtils.m */; }; - FEFAAC9E1FDB89B50057BBE0 /* RCTRedBoxExtraDataViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FEFAAC9C1FDB89B40057BBE0 /* RCTRedBoxExtraDataViewController.m */; }; - FEFAAC9F1FDB89B50057BBE0 /* RCTRedBoxExtraDataViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = FEFAAC9D1FDB89B40057BBE0 /* RCTRedBoxExtraDataViewController.h */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 1320081C1E283DCB00F0C457 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 139D7E871E25C6D100323FB7; - remoteInfo = "double-conversion"; - }; - 3D0574561DE5FF9600184BB4 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3D3CD9261DE5FBEE00167DC4; - remoteInfo = "cxxreact-tvOS"; - }; - 3D383D651EBD27DB005632C8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3D383D3D1EBD27B9005632C8; - remoteInfo = "double-conversion-tvOS"; - }; - 3D3CD94B1DE5FCE700167DC4 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3D3CD9191DE5FBEC00167DC4; - remoteInfo = cxxreact; - }; - ED296F7D214C957300B7C4FE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EDEBC6BA214B3E7000DD5AC8; - remoteInfo = jsi; - }; - ED296F80214C971800B7C4FE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EBF21BDD1FC4989A0052F4D5; - remoteInfo = "jsinspector-tvOS"; - }; - ED296F96214C996500B7C4FE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3D383D3D1EBD27B9005632C8; - remoteInfo = "double-conversion-tvOS"; - }; - ED296FC9214C9B6200B7C4FE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = ED296F98214C9A0900B7C4FE; - remoteInfo = "jsi-tvOS"; - }; - ED296FF7214C9EAA00B7C4FE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3D383D211EBD27B6005632C8; - remoteInfo = "third-party-tvOS"; - }; - ED296FFB214C9EC000B7C4FE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3D3CD9261DE5FBEE00167DC4; - remoteInfo = "cxxreact-tvOS"; - }; - ED296FFD214C9EC600B7C4FE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = ED296F98214C9A0900B7C4FE; - remoteInfo = "jsi-tvOS"; - }; - ED29704D215012C700B7C4FE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3D383D3D1EBD27B9005632C8; - remoteInfo = "double-conversion-tvOS"; - }; - ED2970652150237300B7C4FE /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = ED296FD0214C9CF800B7C4FE; - remoteInfo = "jsiexecutor-tvOS"; - }; - EDEBC74A214B46A700DD5AC8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EDEBC724214B45A300DD5AC8; - remoteInfo = jsiexecutor; - }; - EDEBC74E214B477400DD5AC8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EDEBC6BA214B3E7000DD5AC8; - remoteInfo = jsi; - }; - EDEBC7CB214C516800DD5AC8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 139D7E871E25C6D100323FB7; - remoteInfo = "double-conversion"; - }; - EDEBC7CD214C523F00DD5AC8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 3D3CD9191DE5FBEC00167DC4; - remoteInfo = cxxreact; - }; - EDEBC7D2214C528C00DD5AC8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 139D7ECD1E25DB7D00323FB7; - remoteInfo = "third-party"; - }; - EDEBC7D6214C52FD00DD5AC8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 139D7E871E25C6D100323FB7; - remoteInfo = "double-conversion"; - }; - EDEBC7D8214C628300DD5AC8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; - proxyType = 1; - remoteGlobalIDString = EBF21BBF1FC498900052F4D5; - remoteInfo = jsinspector; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 139D7E861E25C6D100323FB7 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = "include/$(PRODUCT_NAME)"; - dstSubfolderSpec = 16; - files = ( - 19F61BFA1E8495CD00571D81 /* bignum-dtoa.h in CopyFiles */, - 19F61BFB1E8495CD00571D81 /* bignum.h in CopyFiles */, - 19F61BFC1E8495CD00571D81 /* cached-powers.h in CopyFiles */, - 19F61BFD1E8495CD00571D81 /* diy-fp.h in CopyFiles */, - 19F61BFE1E8495CD00571D81 /* double-conversion.h in CopyFiles */, - 19F61BFF1E8495CD00571D81 /* fast-dtoa.h in CopyFiles */, - 19F61C001E8495CD00571D81 /* fixed-dtoa.h in CopyFiles */, - 19F61C011E8495CD00571D81 /* ieee.h in CopyFiles */, - 19F61C021E8495CD00571D81 /* strtod.h in CopyFiles */, - 19F61C031E8495CD00571D81 /* utils.h in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D302E191DF8249100D6DDAE /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/React; - dstSubfolderSpec = 16; - files = ( - 0EA924D02237686F004AB895 /* RCTSurfacePresenterStub.h in Copy Headers */, - 591F78DF202ADB97004A668C /* RCTLayout.h in Copy Headers */, - 59EDBCC31FDF4E55003573DE /* RCTScrollableProtocol.h in Copy Headers */, - 59EDBCC51FDF4E55003573DE /* RCTScrollContentView.h in Copy Headers */, - 59EDBCC71FDF4E55003573DE /* RCTScrollView.h in Copy Headers */, - 59EDBCC81FDF4E55003573DE /* RCTScrollViewManager.h in Copy Headers */, - 594F0A411FD233BD007FBE96 /* RCTSurface.h in Copy Headers */, - 594F0A421FD233BD007FBE96 /* RCTSurfaceDelegate.h in Copy Headers */, - 594F0A431FD233BD007FBE96 /* RCTSurfaceRootShadowView.h in Copy Headers */, - 594F0A441FD233BD007FBE96 /* RCTSurfaceRootShadowViewDelegate.h in Copy Headers */, - 594F0A451FD233BD007FBE96 /* RCTSurfaceRootView.h in Copy Headers */, - 594F0A461FD233BD007FBE96 /* RCTSurfaceStage.h in Copy Headers */, - 594F0A471FD233BD007FBE96 /* RCTSurfaceView.h in Copy Headers */, - 594F0A481FD233BD007FBE96 /* RCTSurfaceHostingView.h in Copy Headers */, - 594F0A491FD233BD007FBE96 /* RCTSurfaceSizeMeasureMode.h in Copy Headers */, - 59500D481F71C67600B122B7 /* RCTUIManagerUtils.h in Copy Headers */, - 3D0E37901F1CC5E100DCAC9F /* RCTWebSocketModule.h in Copy Headers */, - 5960C1BF1F0804F50066FD5B /* RCTLayoutAnimation.h in Copy Headers */, - 5960C1C01F0804F50066FD5B /* RCTLayoutAnimationGroup.h in Copy Headers */, - 59EB6DC01EBD70130072A5E7 /* RCTUIManagerObserverCoordinator.h in Copy Headers */, - 59B1EBCA1EBD47520047B19B /* RCTShadowView+Layout.h in Copy Headers */, - 3D0B84271EC0B45400B2BD8E /* RCTLinkingManager.h in Copy Headers */, - 3D0B84251EC0B42600B2BD8E /* RCTNetworking.h in Copy Headers */, - 3D0B84261EC0B42600B2BD8E /* RCTNetworkTask.h in Copy Headers */, - 3D0B84231EC0B40D00B2BD8E /* RCTImageLoader.h in Copy Headers */, - 3D0B84241EC0B40D00B2BD8E /* RCTImageStoreManager.h in Copy Headers */, - 3D0B84221EC0B3F600B2BD8E /* RCTResizeMode.h in Copy Headers */, - 3D383D201EBD27AF005632C8 /* RCTBridge+Private.h in Copy Headers */, - 3D7BFD351EA8E43F008DFB7A /* RCTDevSettings.h in Copy Headers */, - 3D7BFD331EA8E433008DFB7A /* RCTPackagerClient.h in Copy Headers */, - 3DA981EA1E5B0F7F004F2374 /* RCTAccessibilityManager.h in Copy Headers */, - 3DA981EB1E5B0F7F004F2374 /* RCTAlertManager.h in Copy Headers */, - 3DA981EC1E5B0F7F004F2374 /* RCTAppState.h in Copy Headers */, - 3DA981ED1E5B0F7F004F2374 /* RCTAsyncLocalStorage.h in Copy Headers */, - 3DA981EE1E5B0F7F004F2374 /* RCTClipboard.h in Copy Headers */, - 3DA981EF1E5B0F7F004F2374 /* RCTDevLoadingView.h in Copy Headers */, - 3DA981F01E5B0F7F004F2374 /* RCTDevMenu.h in Copy Headers */, - 3DA981F11E5B0F7F004F2374 /* RCTEventEmitter.h in Copy Headers */, - 3DA981F21E5B0F7F004F2374 /* RCTExceptionsManager.h in Copy Headers */, - 3DA981F31E5B0F7F004F2374 /* RCTI18nManager.h in Copy Headers */, - 3DA981F41E5B0F7F004F2374 /* RCTI18nUtil.h in Copy Headers */, - 3DA981F51E5B0F7F004F2374 /* RCTKeyboardObserver.h in Copy Headers */, - 3DA981F61E5B0F7F004F2374 /* RCTRedBox.h in Copy Headers */, - 3DA981F71E5B0F7F004F2374 /* RCTSourceCode.h in Copy Headers */, - 3DA981F81E5B0F7F004F2374 /* RCTStatusBarManager.h in Copy Headers */, - 3DA981F91E5B0F7F004F2374 /* RCTTiming.h in Copy Headers */, - 3DA981FA1E5B0F7F004F2374 /* RCTUIManager.h in Copy Headers */, - 3DA981FB1E5B0F7F004F2374 /* RCTFPSGraph.h in Copy Headers */, - 3DA981FD1E5B0F7F004F2374 /* RCTMacros.h in Copy Headers */, - 3DA981FE1E5B0F7F004F2374 /* RCTProfile.h in Copy Headers */, - 3DA981FF1E5B0F7F004F2374 /* RCTActivityIndicatorView.h in Copy Headers */, - 3DA982001E5B0F7F004F2374 /* RCTActivityIndicatorViewManager.h in Copy Headers */, - 3DA982011E5B0F7F004F2374 /* RCTAnimationType.h in Copy Headers */, - 3DA982021E5B0F7F004F2374 /* RCTAutoInsetsProtocol.h in Copy Headers */, - 3DA982031E5B0F7F004F2374 /* RCTBorderDrawing.h in Copy Headers */, - 3DA982041E5B0F7F004F2374 /* RCTBorderStyle.h in Copy Headers */, - 3DA982051E5B0F7F004F2374 /* RCTComponent.h in Copy Headers */, - 3DA982061E5B0F7F004F2374 /* RCTComponentData.h in Copy Headers */, - 3DA982071E5B0F7F004F2374 /* RCTConvert+CoreLocation.h in Copy Headers */, - 3DA9820C1E5B0F7F004F2374 /* RCTFont.h in Copy Headers */, - 3DA982111E5B0F7F004F2374 /* RCTModalHostView.h in Copy Headers */, - 3DA982121E5B0F7F004F2374 /* RCTModalHostViewController.h in Copy Headers */, - 3DA982131E5B0F7F004F2374 /* RCTModalHostViewManager.h in Copy Headers */, - 3DA982181E5B0F7F004F2374 /* RCTPicker.h in Copy Headers */, - 3DA982191E5B0F7F004F2374 /* RCTPickerManager.h in Copy Headers */, - 3DA9821A1E5B0F7F004F2374 /* RCTPointerEvents.h in Copy Headers */, - 3DA9821B1E5B0F7F004F2374 /* RCTProgressViewManager.h in Copy Headers */, - 3DA9821C1E5B0F7F004F2374 /* RCTRefreshControl.h in Copy Headers */, - 3DA9821D1E5B0F7F004F2374 /* RCTRefreshControlManager.h in Copy Headers */, - 3DA9821E1E5B0F7F004F2374 /* RCTRootShadowView.h in Copy Headers */, - 3DA982241E5B0F7F004F2374 /* RCTSegmentedControl.h in Copy Headers */, - 3DA982251E5B0F7F004F2374 /* RCTSegmentedControlManager.h in Copy Headers */, - 3DA982261E5B0F7F004F2374 /* RCTShadowView.h in Copy Headers */, - 3DA982271E5B0F7F004F2374 /* RCTSlider.h in Copy Headers */, - 3DA982281E5B0F7F004F2374 /* RCTSliderManager.h in Copy Headers */, - 3DA982291E5B0F7F004F2374 /* RCTSwitch.h in Copy Headers */, - 3DA9822A1E5B0F7F004F2374 /* RCTSwitchManager.h in Copy Headers */, - 3DA9822F1E5B0F7F004F2374 /* RCTTextDecorationLineType.h in Copy Headers */, - 3DA982301E5B0F7F004F2374 /* RCTTVView.h in Copy Headers */, - 3DA982311E5B0F7F004F2374 /* RCTView.h in Copy Headers */, - 3DA982331E5B0F7F004F2374 /* RCTViewManager.h in Copy Headers */, - 3DA982341E5B0F7F004F2374 /* RCTWebView.h in Copy Headers */, - 3DA982351E5B0F7F004F2374 /* RCTWebViewManager.h in Copy Headers */, - 3DA982361E5B0F7F004F2374 /* RCTWrapperViewController.h in Copy Headers */, - 3DA982381E5B0F7F004F2374 /* UIView+React.h in Copy Headers */, - 3DA981BF1E5B0F29004F2374 /* RCTAssert.h in Copy Headers */, - 3DA981C01E5B0F29004F2374 /* RCTBridge.h in Copy Headers */, - 3DA981C21E5B0F29004F2374 /* RCTBridgeDelegate.h in Copy Headers */, - 3DA981C31E5B0F29004F2374 /* RCTBridgeMethod.h in Copy Headers */, - 3DA981C41E5B0F29004F2374 /* RCTBridgeModule.h in Copy Headers */, - 3DA981C51E5B0F29004F2374 /* RCTBundleURLProvider.h in Copy Headers */, - 3DA981C61E5B0F29004F2374 /* RCTConvert.h in Copy Headers */, - 3DA981C71E5B0F29004F2374 /* RCTDefines.h in Copy Headers */, - 3DA981C81E5B0F29004F2374 /* RCTDisplayLink.h in Copy Headers */, - 3DA981C91E5B0F29004F2374 /* RCTErrorCustomizer.h in Copy Headers */, - 3DA981CA1E5B0F29004F2374 /* RCTErrorInfo.h in Copy Headers */, - 3DA981CB1E5B0F29004F2374 /* RCTEventDispatcher.h in Copy Headers */, - 3DA981CC1E5B0F29004F2374 /* RCTFrameUpdate.h in Copy Headers */, - 3DA981CD1E5B0F29004F2374 /* RCTImageSource.h in Copy Headers */, - 3DA981CE1E5B0F29004F2374 /* RCTInvalidating.h in Copy Headers */, - 3DA981CF1E5B0F29004F2374 /* RCTJavaScriptExecutor.h in Copy Headers */, - 3DA981D01E5B0F29004F2374 /* RCTJavaScriptLoader.h in Copy Headers */, - 3DA981D11E5B0F29004F2374 /* RCTJSStackFrame.h in Copy Headers */, - 3DA981D21E5B0F29004F2374 /* RCTKeyCommands.h in Copy Headers */, - 3DA981D31E5B0F29004F2374 /* RCTLog.h in Copy Headers */, - 3DA981D41E5B0F29004F2374 /* RCTModuleData.h in Copy Headers */, - 3DA981D51E5B0F29004F2374 /* RCTModuleMethod.h in Copy Headers */, - 3DA981D61E5B0F29004F2374 /* RCTMultipartDataTask.h in Copy Headers */, - 3DA981D71E5B0F29004F2374 /* RCTMultipartStreamReader.h in Copy Headers */, - 3DA981D81E5B0F29004F2374 /* RCTNullability.h in Copy Headers */, - 3DA981D91E5B0F29004F2374 /* RCTParserUtils.h in Copy Headers */, - 3DA981DA1E5B0F29004F2374 /* RCTPerformanceLogger.h in Copy Headers */, - 3DA981DB1E5B0F29004F2374 /* RCTPlatform.h in Copy Headers */, - 3DA981DC1E5B0F29004F2374 /* RCTReloadCommand.h in Copy Headers */, - 3DA981DD1E5B0F29004F2374 /* RCTRootContentView.h in Copy Headers */, - 3DA981DE1E5B0F29004F2374 /* RCTRootView.h in Copy Headers */, - 3DA981DF1E5B0F29004F2374 /* RCTRootViewDelegate.h in Copy Headers */, - 3DA981E11E5B0F29004F2374 /* RCTTouchEvent.h in Copy Headers */, - 3DA981E21E5B0F29004F2374 /* RCTTouchHandler.h in Copy Headers */, - 3DA981E31E5B0F29004F2374 /* RCTURLRequestDelegate.h in Copy Headers */, - 3DA981E41E5B0F29004F2374 /* RCTURLRequestHandler.h in Copy Headers */, - 3DA981E51E5B0F29004F2374 /* RCTUtils.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; - 3D302F1B1DF8263300D6DDAE /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/cxxreact; - dstSubfolderSpec = 16; - files = ( - BA0501AD2109DCF200A6BBC4 /* ReactMarker.h in Copy Headers */, - 598FD1921F816A2A006C54CB /* RAMBundleRegistry.h in Copy Headers */, - 3DA9823B1E5B1053004F2374 /* CxxModule.h in Copy Headers */, - 3DA9823C1E5B1053004F2374 /* CxxNativeModule.h in Copy Headers */, - 3DA9823D1E5B1053004F2374 /* JSExecutor.h in Copy Headers */, - 3DA982401E5B1053004F2374 /* Instance.h in Copy Headers */, - 3DA982411E5B1053004F2374 /* JsArgumentHelpers-inl.h in Copy Headers */, - 3DA982421E5B1053004F2374 /* JsArgumentHelpers.h in Copy Headers */, - 3DA982431E5B1053004F2374 /* JSBigString.h in Copy Headers */, - 3DA982441E5B1053004F2374 /* JSBundleType.h in Copy Headers */, - 3DA9824E1E5B1053004F2374 /* JSIndexedRAMBundle.h in Copy Headers */, - 3DA9824F1E5B1053004F2374 /* JSModulesUnbundle.h in Copy Headers */, - 3DA982501E5B1053004F2374 /* MessageQueueThread.h in Copy Headers */, - 3DA982511E5B1053004F2374 /* MethodCall.h in Copy Headers */, - 3DA982521E5B1053004F2374 /* ModuleRegistry.h in Copy Headers */, - 3DA982531E5B1053004F2374 /* NativeModule.h in Copy Headers */, - 3DA982541E5B1053004F2374 /* NativeToJsBridge.h in Copy Headers */, - 3DA982571E5B1053004F2374 /* RecoverableError.h in Copy Headers */, - 3DA982581E5B1053004F2374 /* SampleCxxModule.h in Copy Headers */, - 3DA982591E5B1053004F2374 /* SystraceSection.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; - 3D383D491EBD27B9005632C8 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = "include/$(PRODUCT_NAME)"; - dstSubfolderSpec = 16; - files = ( - 3D383D4A1EBD27B9005632C8 /* bignum-dtoa.h in CopyFiles */, - 3D383D4B1EBD27B9005632C8 /* bignum.h in CopyFiles */, - 3D383D4C1EBD27B9005632C8 /* cached-powers.h in CopyFiles */, - 3D383D4D1EBD27B9005632C8 /* diy-fp.h in CopyFiles */, - 3D383D4E1EBD27B9005632C8 /* double-conversion.h in CopyFiles */, - 3D383D4F1EBD27B9005632C8 /* fast-dtoa.h in CopyFiles */, - 3D383D501EBD27B9005632C8 /* fixed-dtoa.h in CopyFiles */, - 3D383D511EBD27B9005632C8 /* ieee.h in CopyFiles */, - 3D383D521EBD27B9005632C8 /* strtod.h in CopyFiles */, - 3D383D531EBD27B9005632C8 /* utils.h in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D80D91E1DF6FA530028D040 /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/React; - dstSubfolderSpec = 16; - files = ( - 589515E12231ADE00036BDE0 /* RCTSurfacePresenterStub.h in Copy Headers */, - 39C50FF92046EACF00CEE534 /* RCTVersion.h in Copy Headers */, - 591F78DE202ADB8F004A668C /* RCTLayout.h in Copy Headers */, - 59EDBCBD1FDF4E43003573DE /* RCTScrollableProtocol.h in Copy Headers */, - 59EDBCBF1FDF4E43003573DE /* RCTScrollContentView.h in Copy Headers */, - 59EDBCC11FDF4E43003573DE /* RCTScrollView.h in Copy Headers */, - 59EDBCC21FDF4E43003573DE /* RCTScrollViewManager.h in Copy Headers */, - 594F0A381FD233A2007FBE96 /* RCTSurface.h in Copy Headers */, - 594F0A391FD233A2007FBE96 /* RCTSurfaceDelegate.h in Copy Headers */, - 594F0A3A1FD233A2007FBE96 /* RCTSurfaceRootShadowView.h in Copy Headers */, - 594F0A3B1FD233A2007FBE96 /* RCTSurfaceRootShadowViewDelegate.h in Copy Headers */, - 594F0A3C1FD233A2007FBE96 /* RCTSurfaceRootView.h in Copy Headers */, - 594F0A3D1FD233A2007FBE96 /* RCTSurfaceStage.h in Copy Headers */, - 594F0A3E1FD233A2007FBE96 /* RCTSurfaceView.h in Copy Headers */, - 594F0A3F1FD233A2007FBE96 /* RCTSurfaceHostingView.h in Copy Headers */, - 594F0A401FD233A2007FBE96 /* RCTSurfaceSizeMeasureMode.h in Copy Headers */, - 59500D471F71C66700B122B7 /* RCTUIManagerUtils.h in Copy Headers */, - 3D0E378F1F1CC5CF00DCAC9F /* RCTWebSocketModule.h in Copy Headers */, - 5960C1BD1F0804DF0066FD5B /* RCTLayoutAnimation.h in Copy Headers */, - 5960C1BE1F0804DF0066FD5B /* RCTLayoutAnimationGroup.h in Copy Headers */, - 59EB6DBF1EBD6FFC0072A5E7 /* RCTUIManagerObserverCoordinator.h in Copy Headers */, - 59B1EBC91EBD46250047B19B /* RCTShadowView+Layout.h in Copy Headers */, - 3D383D1F1EBD27A8005632C8 /* RCTBridge+Private.h in Copy Headers */, - 3D7BFD311EA8E41F008DFB7A /* RCTPackagerClient.h in Copy Headers */, - 3D7BFD291EA8E37B008DFB7A /* RCTDevSettings.h in Copy Headers */, - 3D80D91F1DF6FA890028D040 /* RCTImageLoader.h in Copy Headers */, - 3D80D9201DF6FA890028D040 /* RCTImageStoreManager.h in Copy Headers */, - 3D80D9211DF6FA890028D040 /* RCTResizeMode.h in Copy Headers */, - 3D80D9221DF6FA890028D040 /* RCTLinkingManager.h in Copy Headers */, - 3D80D9231DF6FA890028D040 /* RCTNetworking.h in Copy Headers */, - 3D80D9241DF6FA890028D040 /* RCTNetworkTask.h in Copy Headers */, - 3D80D9251DF6FA890028D040 /* RCTPushNotificationManager.h in Copy Headers */, - 3D80D9261DF6FA890028D040 /* RCTAssert.h in Copy Headers */, - 3D80D9271DF6FA890028D040 /* RCTBridge.h in Copy Headers */, - 3D80D9291DF6FA890028D040 /* RCTBridgeDelegate.h in Copy Headers */, - 3D80D92A1DF6FA890028D040 /* RCTBridgeMethod.h in Copy Headers */, - 3D80D92B1DF6FA890028D040 /* RCTBridgeModule.h in Copy Headers */, - 3D80D92C1DF6FA890028D040 /* RCTBundleURLProvider.h in Copy Headers */, - 3D80D92D1DF6FA890028D040 /* RCTConvert.h in Copy Headers */, - 3D80D92E1DF6FA890028D040 /* RCTDefines.h in Copy Headers */, - 3D80D92F1DF6FA890028D040 /* RCTDisplayLink.h in Copy Headers */, - 3D80D9301DF6FA890028D040 /* RCTErrorCustomizer.h in Copy Headers */, - 3D80D9311DF6FA890028D040 /* RCTErrorInfo.h in Copy Headers */, - 3D80D9321DF6FA890028D040 /* RCTEventDispatcher.h in Copy Headers */, - 3D80D9331DF6FA890028D040 /* RCTFrameUpdate.h in Copy Headers */, - 3D80D9341DF6FA890028D040 /* RCTImageSource.h in Copy Headers */, - 3D80D9351DF6FA890028D040 /* RCTInvalidating.h in Copy Headers */, - 3D80D9361DF6FA890028D040 /* RCTJavaScriptExecutor.h in Copy Headers */, - 3D80D9371DF6FA890028D040 /* RCTJavaScriptLoader.h in Copy Headers */, - 3D80D9381DF6FA890028D040 /* RCTJSStackFrame.h in Copy Headers */, - 3D80D9391DF6FA890028D040 /* RCTKeyCommands.h in Copy Headers */, - 3D80D93A1DF6FA890028D040 /* RCTLog.h in Copy Headers */, - 3D80D93B1DF6FA890028D040 /* RCTModuleData.h in Copy Headers */, - 3D80D93C1DF6FA890028D040 /* RCTModuleMethod.h in Copy Headers */, - 3D80D93D1DF6FA890028D040 /* RCTMultipartDataTask.h in Copy Headers */, - 3D80D93E1DF6FA890028D040 /* RCTMultipartStreamReader.h in Copy Headers */, - 3D80D93F1DF6FA890028D040 /* RCTNullability.h in Copy Headers */, - 3D80D9401DF6FA890028D040 /* RCTParserUtils.h in Copy Headers */, - 3D80D9411DF6FA890028D040 /* RCTPerformanceLogger.h in Copy Headers */, - 3D80D9421DF6FA890028D040 /* RCTPlatform.h in Copy Headers */, - 3D80D9431DF6FA890028D040 /* RCTRootView.h in Copy Headers */, - 3D80D9441DF6FA890028D040 /* RCTRootViewDelegate.h in Copy Headers */, - 3D80D9461DF6FA890028D040 /* RCTTouchEvent.h in Copy Headers */, - 3D80D9471DF6FA890028D040 /* RCTTouchHandler.h in Copy Headers */, - 3D80D9481DF6FA890028D040 /* RCTURLRequestDelegate.h in Copy Headers */, - 3D80D9491DF6FA890028D040 /* RCTURLRequestHandler.h in Copy Headers */, - 3D80D94A1DF6FA890028D040 /* RCTUtils.h in Copy Headers */, - 3D80D9501DF6FA890028D040 /* RCTAccessibilityManager.h in Copy Headers */, - 3D80D9511DF6FA890028D040 /* RCTAlertManager.h in Copy Headers */, - 3D80D9521DF6FA890028D040 /* RCTAppState.h in Copy Headers */, - 3D80D9531DF6FA890028D040 /* RCTAsyncLocalStorage.h in Copy Headers */, - 3D80D9541DF6FA890028D040 /* RCTClipboard.h in Copy Headers */, - 3D80D9551DF6FA890028D040 /* RCTDevLoadingView.h in Copy Headers */, - 3D80D9561DF6FA890028D040 /* RCTDevMenu.h in Copy Headers */, - 3D80D9571DF6FA890028D040 /* RCTEventEmitter.h in Copy Headers */, - 3D80D9581DF6FA890028D040 /* RCTExceptionsManager.h in Copy Headers */, - 3D80D9591DF6FA890028D040 /* RCTI18nManager.h in Copy Headers */, - 3D80D95A1DF6FA890028D040 /* RCTI18nUtil.h in Copy Headers */, - 3D80D95B1DF6FA890028D040 /* RCTKeyboardObserver.h in Copy Headers */, - 3D80D95C1DF6FA890028D040 /* RCTRedBox.h in Copy Headers */, - 3D80D95D1DF6FA890028D040 /* RCTSourceCode.h in Copy Headers */, - 3D80D95E1DF6FA890028D040 /* RCTStatusBarManager.h in Copy Headers */, - 3D80D95F1DF6FA890028D040 /* RCTTiming.h in Copy Headers */, - 3D80D9601DF6FA890028D040 /* RCTUIManager.h in Copy Headers */, - 3D80D9611DF6FA890028D040 /* RCTFPSGraph.h in Copy Headers */, - 3D80D9631DF6FA890028D040 /* RCTMacros.h in Copy Headers */, - 3D80D9641DF6FA890028D040 /* RCTProfile.h in Copy Headers */, - 3D80D9651DF6FA890028D040 /* RCTActivityIndicatorView.h in Copy Headers */, - 3D80D9661DF6FA890028D040 /* RCTActivityIndicatorViewManager.h in Copy Headers */, - 3D80D9671DF6FA890028D040 /* RCTAnimationType.h in Copy Headers */, - 3D80D9681DF6FA890028D040 /* RCTAutoInsetsProtocol.h in Copy Headers */, - 3D80D9691DF6FA890028D040 /* RCTBorderDrawing.h in Copy Headers */, - 3D80D96A1DF6FA890028D040 /* RCTBorderStyle.h in Copy Headers */, - 3D80D96B1DF6FA890028D040 /* RCTComponent.h in Copy Headers */, - 3D80D96C1DF6FA890028D040 /* RCTComponentData.h in Copy Headers */, - 3D80D96D1DF6FA890028D040 /* RCTConvert+CoreLocation.h in Copy Headers */, - 3D80D9711DF6FA890028D040 /* RCTFont.h in Copy Headers */, - 3D80D9761DF6FA890028D040 /* RCTModalHostView.h in Copy Headers */, - 3D80D9771DF6FA890028D040 /* RCTModalHostViewController.h in Copy Headers */, - 3D80D9781DF6FA890028D040 /* RCTModalHostViewManager.h in Copy Headers */, - 3D80D97D1DF6FA890028D040 /* RCTPicker.h in Copy Headers */, - 3D80D97E1DF6FA890028D040 /* RCTPickerManager.h in Copy Headers */, - 3D80D97F1DF6FA890028D040 /* RCTPointerEvents.h in Copy Headers */, - 3D80D9801DF6FA890028D040 /* RCTProgressViewManager.h in Copy Headers */, - 3D80D9811DF6FA890028D040 /* RCTRefreshControl.h in Copy Headers */, - 3D80D9821DF6FA890028D040 /* RCTRefreshControlManager.h in Copy Headers */, - 3D80D9831DF6FA890028D040 /* RCTRootShadowView.h in Copy Headers */, - 3D80D9871DF6FA890028D040 /* RCTSegmentedControl.h in Copy Headers */, - 3D80D9881DF6FA890028D040 /* RCTSegmentedControlManager.h in Copy Headers */, - 3D80D9891DF6FA890028D040 /* RCTShadowView.h in Copy Headers */, - 3D80D98A1DF6FA890028D040 /* RCTSlider.h in Copy Headers */, - 3D80D98B1DF6FA890028D040 /* RCTSliderManager.h in Copy Headers */, - 3D80D98C1DF6FA890028D040 /* RCTSwitch.h in Copy Headers */, - 3D80D98D1DF6FA890028D040 /* RCTSwitchManager.h in Copy Headers */, - 3D80D9921DF6FA890028D040 /* RCTTextDecorationLineType.h in Copy Headers */, - 3D80D9931DF6FA890028D040 /* RCTView.h in Copy Headers */, - 3D80D9951DF6FA890028D040 /* RCTViewManager.h in Copy Headers */, - 3D80D9961DF6FA890028D040 /* RCTWebView.h in Copy Headers */, - 3D80D9971DF6FA890028D040 /* RCTWebViewManager.h in Copy Headers */, - 3D80D9981DF6FA890028D040 /* RCTWrapperViewController.h in Copy Headers */, - 3D80D99A1DF6FA890028D040 /* UIView+React.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; - 3D80DAB91DF821710028D040 /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/cxxreact; - dstSubfolderSpec = 16; - files = ( - 133EA4E52098F6E30035B1D8 /* ReactMarker.h in Copy Headers */, - C669D8981F72E3DE006748EB /* RAMBundleRegistry.h in Copy Headers */, - 3DA981A01E5B0E34004F2374 /* CxxModule.h in Copy Headers */, - 3DA981A11E5B0E34004F2374 /* CxxNativeModule.h in Copy Headers */, - 3DA981A21E5B0E34004F2374 /* JSExecutor.h in Copy Headers */, - 3DA981A51E5B0E34004F2374 /* Instance.h in Copy Headers */, - 3DA981A61E5B0E34004F2374 /* JsArgumentHelpers-inl.h in Copy Headers */, - 3DA981A71E5B0E34004F2374 /* JsArgumentHelpers.h in Copy Headers */, - 3DA981A81E5B0E34004F2374 /* JSBigString.h in Copy Headers */, - 3DA981A91E5B0E34004F2374 /* JSBundleType.h in Copy Headers */, - 3DA981B31E5B0E34004F2374 /* JSIndexedRAMBundle.h in Copy Headers */, - 3DA981B41E5B0E34004F2374 /* JSModulesUnbundle.h in Copy Headers */, - 3DA981B51E5B0E34004F2374 /* MessageQueueThread.h in Copy Headers */, - 3DA981B61E5B0E34004F2374 /* MethodCall.h in Copy Headers */, - 3DA981B71E5B0E34004F2374 /* ModuleRegistry.h in Copy Headers */, - 3DA981B81E5B0E34004F2374 /* NativeModule.h in Copy Headers */, - 3DA981B91E5B0E34004F2374 /* NativeToJsBridge.h in Copy Headers */, - 3DA981BC1E5B0E34004F2374 /* RecoverableError.h in Copy Headers */, - 3DA981BD1E5B0E34004F2374 /* SampleCxxModule.h in Copy Headers */, - 3DA981BE1E5B0E34004F2374 /* SystraceSection.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; - EBF21BCB1FC498900052F4D5 /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/jsinspector; - dstSubfolderSpec = 16; - files = ( - EBF21BFB1FC498FC0052F4D5 /* InspectorInterfaces.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; - EBF21BE91FC4989A0052F4D5 /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/jsinspector; - dstSubfolderSpec = 16; - files = ( - EBF21BFE1FC499840052F4D5 /* InspectorInterfaces.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; - ED296FA4214C9A0900B7C4FE /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/jsi; - dstSubfolderSpec = 16; - files = ( - ED29704F2150199F00B7C4FE /* JSCRuntime.h in Copy Headers */, - ED296FC8214C9B5200B7C4FE /* jsi.h in Copy Headers */, - ED296FC7214C9B4B00B7C4FE /* instrumentation.h in Copy Headers */, - ED296FC6214C9B4400B7C4FE /* JSIDynamic.h in Copy Headers */, - ED296FC5214C9B3E00B7C4FE /* jsi-inl.h in Copy Headers */, - 4F56C93A2216A3B700DB9F3F /* jsilib.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; - ED296FDC214C9CF800B7C4FE /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = include/jsireact; - dstSubfolderSpec = 16; - files = ( - ED7286BE2155C62B00C26ABF /* JSIExecutor.h in Copy Headers */, - ED7286BF2155C62B00C26ABF /* JSINativeModules.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; - EDEBC6C6214B3E7000DD5AC8 /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 12; - dstPath = include/jsi; - dstSubfolderSpec = 16; - files = ( - ED297050215019B400B7C4FE /* instrumentation.h in Copy Headers */, - EDEBC71C214B40F900DD5AC8 /* jsi-inl.h in Copy Headers */, - EDEBC71D214B40F900DD5AC8 /* JSIDynamic.h in Copy Headers */, - EDEBC71E214B40F900DD5AC8 /* JSCRuntime.h in Copy Headers */, - EDEBC71F214B40F900DD5AC8 /* jsi.h in Copy Headers */, - 4F56C93922167A4D00DB9F3F /* jsilib.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; - EDEBC72F214B45A300DD5AC8 /* Copy Headers */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 12; - dstPath = include/jsireact; - dstSubfolderSpec = 16; - files = ( - ED7286BC2155C62000C26ABF /* JSIExecutor.h in Copy Headers */, - ED7286BD2155C62000C26ABF /* JSINativeModules.h in Copy Headers */, - ); - name = "Copy Headers"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 000E6CE91AB0E97F000CDF4D /* RCTSourceCode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSourceCode.h; sourceTree = ""; }; - 000E6CEA1AB0E980000CDF4D /* RCTSourceCode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSourceCode.m; sourceTree = ""; }; - 001BFCCE1D8381DE008E587E /* RCTMultipartStreamReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTMultipartStreamReader.h; sourceTree = ""; }; - 001BFCCF1D8381DE008E587E /* RCTMultipartStreamReader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTMultipartStreamReader.m; sourceTree = ""; }; - 006FC4121D9B20820057AAAD /* RCTMultipartDataTask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTMultipartDataTask.h; sourceTree = ""; }; - 006FC4131D9B20820057AAAD /* RCTMultipartDataTask.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTMultipartDataTask.m; sourceTree = ""; }; - 008341F41D1DB34400876D9A /* RCTJSStackFrame.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTJSStackFrame.m; sourceTree = ""; }; - 008341F51D1DB34400876D9A /* RCTJSStackFrame.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTJSStackFrame.h; sourceTree = ""; }; - 0EEEA8DE2239002200A8C82D /* RCTSurfacePresenterStub.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTSurfacePresenterStub.m; sourceTree = ""; }; - 1304439F1E3FEAA900D93A67 /* RCTFollyConvert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RCTFollyConvert.h; path = CxxUtils/RCTFollyConvert.h; sourceTree = ""; }; - 130443A01E3FEAA900D93A67 /* RCTFollyConvert.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = RCTFollyConvert.mm; path = CxxUtils/RCTFollyConvert.mm; sourceTree = ""; }; - 130443C31E401A8C00D93A67 /* RCTConvert+Transform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RCTConvert+Transform.h"; sourceTree = ""; }; - 130443C41E401A8C00D93A67 /* RCTConvert+Transform.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "RCTConvert+Transform.m"; sourceTree = ""; }; - 130443D61E401AD800D93A67 /* RCTTVView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTTVView.h; sourceTree = ""; }; - 130443D71E401AD800D93A67 /* RCTTVView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTTVView.m; sourceTree = ""; }; - 130E3D861E6A082100ACE484 /* RCTDevSettings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTDevSettings.h; sourceTree = ""; }; - 130E3D871E6A082100ACE484 /* RCTDevSettings.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTDevSettings.mm; sourceTree = ""; }; - 13134C741E296B2A00B9F3CB /* RCTCxxBridge.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTCxxBridge.mm; sourceTree = ""; }; - 13134C771E296B2A00B9F3CB /* RCTMessageThread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTMessageThread.h; sourceTree = ""; }; - 13134C781E296B2A00B9F3CB /* RCTMessageThread.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTMessageThread.mm; sourceTree = ""; }; - 13134C7B1E296B2A00B9F3CB /* RCTObjcExecutor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTObjcExecutor.h; sourceTree = ""; }; - 13134C7C1E296B2A00B9F3CB /* RCTObjcExecutor.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTObjcExecutor.mm; sourceTree = ""; }; - 13134C7E1E296B2A00B9F3CB /* RCTCxxMethod.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTCxxMethod.h; sourceTree = ""; }; - 13134C7F1E296B2A00B9F3CB /* RCTCxxMethod.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTCxxMethod.mm; sourceTree = ""; }; - 13134C801E296B2A00B9F3CB /* RCTCxxModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTCxxModule.h; sourceTree = ""; }; - 13134C811E296B2A00B9F3CB /* RCTCxxModule.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTCxxModule.mm; sourceTree = ""; }; - 13134C821E296B2A00B9F3CB /* RCTCxxUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTCxxUtils.h; sourceTree = ""; }; - 13134C831E296B2A00B9F3CB /* RCTCxxUtils.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTCxxUtils.mm; sourceTree = ""; }; - 131B6AF01AF1093D00FFC3E0 /* RCTSegmentedControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSegmentedControl.h; sourceTree = ""; }; - 131B6AF11AF1093D00FFC3E0 /* RCTSegmentedControl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSegmentedControl.m; sourceTree = ""; }; - 131B6AF21AF1093D00FFC3E0 /* RCTSegmentedControlManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSegmentedControlManager.h; sourceTree = ""; }; - 131B6AF31AF1093D00FFC3E0 /* RCTSegmentedControlManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSegmentedControlManager.m; sourceTree = ""; }; - 133CAE8C1B8E5CFD00F6AD92 /* RCTDatePicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTDatePicker.h; sourceTree = ""; }; - 133CAE8D1B8E5CFD00F6AD92 /* RCTDatePicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTDatePicker.m; sourceTree = ""; }; - 13442BF21AA90E0B0037E5B0 /* RCTAnimationType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTAnimationType.h; sourceTree = ""; }; - 13442BF31AA90E0B0037E5B0 /* RCTPointerEvents.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTPointerEvents.h; sourceTree = ""; }; - 13456E911ADAD2DE009F94A7 /* RCTConvert+CoreLocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RCTConvert+CoreLocation.h"; sourceTree = ""; }; - 13456E921ADAD2DE009F94A7 /* RCTConvert+CoreLocation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "RCTConvert+CoreLocation.m"; sourceTree = ""; }; - 1345A83A1B265A0E00583190 /* RCTURLRequestDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTURLRequestDelegate.h; sourceTree = ""; }; - 1345A83B1B265A0E00583190 /* RCTURLRequestHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTURLRequestHandler.h; sourceTree = ""; }; - 134D63C21F1FEC4B008872B5 /* RCTCxxBridgeDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTCxxBridgeDelegate.h; sourceTree = ""; }; - 13513F3A1B1F43F400FCE529 /* RCTProgressViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTProgressViewManager.h; sourceTree = ""; }; - 13513F3B1B1F43F400FCE529 /* RCTProgressViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTProgressViewManager.m; sourceTree = ""; }; - 13723B4E1A82FD3C00F88898 /* RCTStatusBarManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTStatusBarManager.h; sourceTree = ""; }; - 13723B4F1A82FD3C00F88898 /* RCTStatusBarManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTStatusBarManager.m; sourceTree = ""; }; - 1372B7081AB030C200659ED6 /* RCTAppState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTAppState.h; sourceTree = ""; }; - 1372B7091AB030C200659ED6 /* RCTAppState.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTAppState.m; sourceTree = ""; }; - 1384E2061E806D4E00545659 /* RCTNativeModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTNativeModule.h; sourceTree = ""; }; - 1384E2071E806D4E00545659 /* RCTNativeModule.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTNativeModule.mm; sourceTree = ""; }; - 139D7E391E25C5A300323FB7 /* bignum-dtoa.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "bignum-dtoa.cc"; path = "src/bignum-dtoa.cc"; sourceTree = ""; }; - 139D7E3A1E25C5A300323FB7 /* bignum-dtoa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "bignum-dtoa.h"; path = "src/bignum-dtoa.h"; sourceTree = ""; }; - 139D7E3B1E25C5A300323FB7 /* bignum.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = bignum.cc; path = src/bignum.cc; sourceTree = ""; }; - 139D7E3C1E25C5A300323FB7 /* bignum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = bignum.h; path = src/bignum.h; sourceTree = ""; }; - 139D7E3D1E25C5A300323FB7 /* cached-powers.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "cached-powers.cc"; path = "src/cached-powers.cc"; sourceTree = ""; }; - 139D7E3E1E25C5A300323FB7 /* cached-powers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "cached-powers.h"; path = "src/cached-powers.h"; sourceTree = ""; }; - 139D7E3F1E25C5A300323FB7 /* diy-fp.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "diy-fp.cc"; path = "src/diy-fp.cc"; sourceTree = ""; }; - 139D7E401E25C5A300323FB7 /* diy-fp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "diy-fp.h"; path = "src/diy-fp.h"; sourceTree = ""; }; - 139D7E411E25C5A300323FB7 /* double-conversion.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "double-conversion.cc"; path = "src/double-conversion.cc"; sourceTree = ""; }; - 139D7E421E25C5A300323FB7 /* double-conversion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "double-conversion.h"; path = "src/double-conversion.h"; sourceTree = ""; }; - 139D7E431E25C5A300323FB7 /* fast-dtoa.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "fast-dtoa.cc"; path = "src/fast-dtoa.cc"; sourceTree = ""; }; - 139D7E441E25C5A300323FB7 /* fast-dtoa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "fast-dtoa.h"; path = "src/fast-dtoa.h"; sourceTree = ""; }; - 139D7E451E25C5A300323FB7 /* fixed-dtoa.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "fixed-dtoa.cc"; path = "src/fixed-dtoa.cc"; sourceTree = ""; }; - 139D7E461E25C5A300323FB7 /* fixed-dtoa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "fixed-dtoa.h"; path = "src/fixed-dtoa.h"; sourceTree = ""; }; - 139D7E471E25C5A300323FB7 /* ieee.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ieee.h; path = src/ieee.h; sourceTree = ""; }; - 139D7E481E25C5A300323FB7 /* strtod.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = strtod.cc; path = src/strtod.cc; sourceTree = ""; }; - 139D7E491E25C5A300323FB7 /* strtod.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = strtod.h; path = src/strtod.h; sourceTree = ""; }; - 139D7E4A1E25C5A300323FB7 /* utils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = utils.h; path = src/utils.h; sourceTree = ""; }; - 139D7E881E25C6D100323FB7 /* libdouble-conversion.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libdouble-conversion.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 139D7ECE1E25DB7D00323FB7 /* libthird-party.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libthird-party.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 139D7ED81E25DBDC00323FB7 /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = config.h; path = "../third-party/glog-0.3.5/src/config.h"; sourceTree = ""; }; - 139D7ED91E25DBDC00323FB7 /* demangle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = demangle.h; path = "../third-party/glog-0.3.5/src/demangle.h"; sourceTree = ""; }; - 139D7EDA1E25DBDC00323FB7 /* logging.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = logging.cc; path = "../third-party/glog-0.3.5/src/logging.cc"; sourceTree = ""; }; - 139D7EDB1E25DBDC00323FB7 /* raw_logging.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = raw_logging.cc; path = "../third-party/glog-0.3.5/src/raw_logging.cc"; sourceTree = ""; }; - 139D7EDC1E25DBDC00323FB7 /* signalhandler.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = signalhandler.cc; path = "../third-party/glog-0.3.5/src/signalhandler.cc"; sourceTree = ""; }; - 139D7EDD1E25DBDC00323FB7 /* stacktrace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = stacktrace.h; path = "../third-party/glog-0.3.5/src/stacktrace.h"; sourceTree = ""; }; - 139D7EDE1E25DBDC00323FB7 /* symbolize.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = symbolize.cc; path = "../third-party/glog-0.3.5/src/symbolize.cc"; sourceTree = ""; }; - 139D7EDF1E25DBDC00323FB7 /* symbolize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = symbolize.h; path = "../third-party/glog-0.3.5/src/symbolize.h"; sourceTree = ""; }; - 139D7EE01E25DBDC00323FB7 /* utilities.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = utilities.cc; path = "../third-party/glog-0.3.5/src/utilities.cc"; sourceTree = ""; }; - 139D7EE11E25DBDC00323FB7 /* utilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = utilities.h; path = "../third-party/glog-0.3.5/src/utilities.h"; sourceTree = ""; }; - 139D7EE21E25DBDC00323FB7 /* vlog_is_on.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = vlog_is_on.cc; path = "../third-party/glog-0.3.5/src/vlog_is_on.cc"; sourceTree = ""; }; - 139D7F081E25DE3700323FB7 /* demangle.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = demangle.cc; path = "../third-party/glog-0.3.5/src/demangle.cc"; sourceTree = ""; }; - 139D7F111E25DEC900323FB7 /* log_severity.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = log_severity.h; sourceTree = ""; }; - 139D7F121E25DEC900323FB7 /* logging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = logging.h; sourceTree = ""; }; - 139D7F141E25DEC900323FB7 /* raw_logging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = raw_logging.h; sourceTree = ""; }; - 139D7F161E25DEC900323FB7 /* stl_logging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = stl_logging.h; sourceTree = ""; }; - 139D7F181E25DEC900323FB7 /* vlog_is_on.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = vlog_is_on.h; sourceTree = ""; }; - 139D849C1E273B5600323FB7 /* AtomicIntrusiveLinkedList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AtomicIntrusiveLinkedList.h; path = folly/AtomicIntrusiveLinkedList.h; sourceTree = ""; }; - 139D849F1E273B5600323FB7 /* Conv.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Conv.cpp; path = folly/Conv.cpp; sourceTree = ""; }; - 139D84A01E273B5600323FB7 /* Conv.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Conv.h; path = folly/Conv.h; sourceTree = ""; }; - 139D84A11E273B5600323FB7 /* dynamic-inl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "dynamic-inl.h"; path = "folly/dynamic-inl.h"; sourceTree = ""; }; - 139D84A21E273B5600323FB7 /* dynamic.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = dynamic.cpp; path = folly/dynamic.cpp; sourceTree = ""; }; - 139D84A31E273B5600323FB7 /* dynamic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = dynamic.h; path = folly/dynamic.h; sourceTree = ""; }; - 139D84A41E273B5600323FB7 /* Exception.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Exception.h; path = folly/Exception.h; sourceTree = ""; }; - 139D84A71E273B5600323FB7 /* json.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = json.cpp; path = folly/json.cpp; sourceTree = ""; }; - 139D84A81E273B5600323FB7 /* json.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = json.h; path = folly/json.h; sourceTree = ""; }; - 139D84A91E273B5600323FB7 /* Memory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Memory.h; path = folly/Memory.h; sourceTree = ""; }; - 139D84AA1E273B5600323FB7 /* MoveWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MoveWrapper.h; path = folly/MoveWrapper.h; sourceTree = ""; }; - 139D84AB1E273B5600323FB7 /* Optional.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Optional.h; path = folly/Optional.h; sourceTree = ""; }; - 139D84AC1E273B5600323FB7 /* ScopeGuard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ScopeGuard.h; path = folly/ScopeGuard.h; sourceTree = ""; }; - 13A0C2851B74F71200B29F6F /* RCTDevLoadingView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTDevLoadingView.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 13A0C2861B74F71200B29F6F /* RCTDevLoadingView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTDevLoadingView.m; sourceTree = ""; }; - 13A0C2871B74F71200B29F6F /* RCTDevMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTDevMenu.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 13A0C2881B74F71200B29F6F /* RCTDevMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTDevMenu.m; sourceTree = ""; }; - 13A1F71C1A75392D00D3D453 /* RCTKeyCommands.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTKeyCommands.h; sourceTree = ""; }; - 13A1F71D1A75392D00D3D453 /* RCTKeyCommands.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTKeyCommands.m; sourceTree = ""; }; - 13A6E20C1C19AA0C00845B82 /* RCTParserUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTParserUtils.h; sourceTree = ""; }; - 13A6E20D1C19AA0C00845B82 /* RCTParserUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTParserUtils.m; sourceTree = ""; }; - 13A6E20F1C19ABC700845B82 /* RCTNullability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTNullability.h; sourceTree = ""; }; - 13AB90BF1B6FA36700713B4F /* RCTComponentData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTComponentData.h; sourceTree = ""; }; - 13AB90C01B6FA36700713B4F /* RCTComponentData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTComponentData.m; sourceTree = ""; }; - 13AF1F851AE6E777005F5298 /* RCTDefines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTDefines.h; sourceTree = ""; }; - 13AF20431AE707F8005F5298 /* RCTSlider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSlider.h; sourceTree = ""; }; - 13AF20441AE707F9005F5298 /* RCTSlider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSlider.m; sourceTree = ""; }; - 13AFBCA11C07287B00BBAEAA /* RCTBridgeMethod.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTBridgeMethod.h; sourceTree = ""; }; - 13AFBCA21C07287B00BBAEAA /* RCTRootViewDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRootViewDelegate.h; sourceTree = ""; }; - 13B07FE71A69327A00A75B9A /* RCTAlertManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTAlertManager.h; sourceTree = ""; }; - 13B07FE81A69327A00A75B9A /* RCTAlertManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTAlertManager.m; sourceTree = ""; }; - 13B07FE91A69327A00A75B9A /* RCTExceptionsManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTExceptionsManager.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 13B07FEA1A69327A00A75B9A /* RCTExceptionsManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTExceptionsManager.m; sourceTree = ""; }; - 13B07FED1A69327A00A75B9A /* RCTTiming.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTTiming.h; sourceTree = ""; }; - 13B07FEE1A69327A00A75B9A /* RCTTiming.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTTiming.m; sourceTree = ""; }; - 13B080181A69489C00A75B9A /* RCTActivityIndicatorViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTActivityIndicatorViewManager.h; sourceTree = ""; }; - 13B080191A69489C00A75B9A /* RCTActivityIndicatorViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTActivityIndicatorViewManager.m; sourceTree = ""; }; - 13B080231A694A8400A75B9A /* RCTWrapperViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTWrapperViewController.h; sourceTree = ""; }; - 13B080241A694A8400A75B9A /* RCTWrapperViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTWrapperViewController.m; sourceTree = ""; }; - 13BB3D001BECD54500932C10 /* RCTImageSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTImageSource.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 13BB3D011BECD54500932C10 /* RCTImageSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTImageSource.m; sourceTree = ""; }; - 13BCE8071C99CB9D00DD7AAD /* RCTRootShadowView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRootShadowView.h; sourceTree = ""; }; - 13BCE8081C99CB9D00DD7AAD /* RCTRootShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRootShadowView.m; sourceTree = ""; }; - 13C156011AB1A2840079392D /* RCTWebView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTWebView.h; sourceTree = ""; }; - 13C156021AB1A2840079392D /* RCTWebView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTWebView.m; sourceTree = ""; }; - 13C156031AB1A2840079392D /* RCTWebViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTWebViewManager.h; sourceTree = ""; }; - 13C156041AB1A2840079392D /* RCTWebViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTWebViewManager.m; sourceTree = ""; }; - 13C325261AA63B6A0048765F /* RCTAutoInsetsProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTAutoInsetsProtocol.h; sourceTree = ""; }; - 13C325281AA63B6A0048765F /* RCTComponent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTComponent.h; sourceTree = ""; }; - 13CC8A801B17642100940AE7 /* RCTBorderDrawing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTBorderDrawing.h; sourceTree = ""; }; - 13CC8A811B17642100940AE7 /* RCTBorderDrawing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTBorderDrawing.m; sourceTree = ""; }; - 13D033611C1837FE0021DC29 /* RCTClipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTClipboard.h; sourceTree = ""; }; - 13D033621C1837FE0021DC29 /* RCTClipboard.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTClipboard.m; sourceTree = ""; }; - 13D9FEE91CDCCECF00158BD7 /* RCTEventEmitter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTEventEmitter.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 13D9FEEA1CDCCECF00158BD7 /* RCTEventEmitter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTEventEmitter.m; sourceTree = ""; }; - 13D9FEEC1CDCD93000158BD7 /* RCTKeyboardObserver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTKeyboardObserver.h; sourceTree = ""; }; - 13D9FEED1CDCD93000158BD7 /* RCTKeyboardObserver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTKeyboardObserver.m; sourceTree = ""; }; - 13DA8A2F2097A90A00276ED4 /* ReactMarker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReactMarker.h; sourceTree = ""; }; - 13DA8A302097A90B00276ED4 /* ReactMarker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ReactMarker.cpp; sourceTree = ""; }; - 13E067481A70F434002CDEE1 /* RCTUIManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTUIManager.h; sourceTree = ""; }; - 13E067491A70F434002CDEE1 /* RCTUIManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTUIManager.m; sourceTree = ""; }; - 13E0674B1A70F44B002CDEE1 /* RCTShadowView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTShadowView.h; sourceTree = ""; }; - 13E0674D1A70F44B002CDEE1 /* RCTViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTViewManager.h; sourceTree = ""; }; - 13E0674E1A70F44B002CDEE1 /* RCTViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTViewManager.m; sourceTree = ""; }; - 13E0674F1A70F44B002CDEE1 /* RCTView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTView.h; sourceTree = ""; }; - 13E067501A70F44B002CDEE1 /* RCTView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTView.m; sourceTree = ""; }; - 13E067531A70F44B002CDEE1 /* UIView+React.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+React.h"; sourceTree = ""; }; - 13E067541A70F44B002CDEE1 /* UIView+React.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+React.m"; sourceTree = ""; }; - 13F17A831B8493E5007D4C75 /* RCTRedBox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRedBox.h; sourceTree = ""; }; - 13F17A841B8493E5007D4C75 /* RCTRedBox.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRedBox.m; sourceTree = ""; }; - 13F887521E2971C500C3C7A1 /* Demangle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Demangle.h; path = folly/Demangle.h; sourceTree = ""; }; - 13F887541E2971C500C3C7A1 /* Unicode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Unicode.cpp; path = folly/Unicode.cpp; sourceTree = ""; }; - 14200DA81AC179B3008EE6BA /* RCTJavaScriptLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTJavaScriptLoader.h; sourceTree = ""; }; - 142014171B32094000CC17BA /* RCTPerformanceLogger.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTPerformanceLogger.m; sourceTree = ""; }; - 142014181B32094000CC17BA /* RCTPerformanceLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTPerformanceLogger.h; sourceTree = ""; }; - 1436DD071ADE7AA000A5ED7D /* RCTFrameUpdate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTFrameUpdate.h; sourceTree = ""; }; - 1450FF801BCFF28A00208362 /* RCTProfile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTProfile.h; sourceTree = ""; }; - 1450FF811BCFF28A00208362 /* RCTProfile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTProfile.m; sourceTree = ""; }; - 1450FF821BCFF28A00208362 /* RCTProfileTrampoline-arm.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = "RCTProfileTrampoline-arm.S"; sourceTree = ""; }; - 1450FF831BCFF28A00208362 /* RCTProfileTrampoline-arm64.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = "RCTProfileTrampoline-arm64.S"; sourceTree = ""; }; - 1450FF851BCFF28A00208362 /* RCTProfileTrampoline-x86_64.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = "RCTProfileTrampoline-x86_64.S"; sourceTree = ""; }; - 1482F9E61B55B927000ADFF3 /* RCTBridgeDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTBridgeDelegate.h; sourceTree = ""; }; - 14A43DB81C1F849600794BC8 /* RCTBridge+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RCTBridge+Private.h"; sourceTree = ""; }; - 14BF717F1C04793D00C97D0C /* RCTProfileTrampoline-i386.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = "RCTProfileTrampoline-i386.S"; sourceTree = ""; }; - 14BF71811C04795500C97D0C /* RCTMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTMacros.h; sourceTree = ""; }; - 14C2CA6F1B3AC63800E6CBB2 /* RCTModuleMethod.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTModuleMethod.h; sourceTree = ""; }; - 14C2CA721B3AC64300E6CBB2 /* RCTModuleData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTModuleData.h; sourceTree = ""; }; - 14C2CA731B3AC64300E6CBB2 /* RCTModuleData.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTModuleData.mm; sourceTree = ""; }; - 14C2CA751B3AC64F00E6CBB2 /* RCTFrameUpdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTFrameUpdate.m; sourceTree = ""; }; - 14F362071AABD06A001CE568 /* RCTSwitch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSwitch.h; sourceTree = ""; }; - 14F362081AABD06A001CE568 /* RCTSwitch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSwitch.m; sourceTree = ""; }; - 14F362091AABD06A001CE568 /* RCTSwitchManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSwitchManager.h; sourceTree = ""; }; - 14F3620A1AABD06A001CE568 /* RCTSwitchManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSwitchManager.m; sourceTree = ""; }; - 14F484541AABFCE100FDF6B9 /* RCTSliderManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSliderManager.h; sourceTree = ""; }; - 14F484551AABFCE100FDF6B9 /* RCTSliderManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSliderManager.m; sourceTree = ""; }; - 14F7A0EB1BDA3B3C003C6C10 /* RCTPerfMonitor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTPerfMonitor.m; sourceTree = ""; }; - 14F7A0EE1BDA714B003C6C10 /* RCTFPSGraph.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTFPSGraph.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 14F7A0EF1BDA714B003C6C10 /* RCTFPSGraph.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTFPSGraph.m; sourceTree = ""; }; - 191E3EBC1C29D9AF00C180A6 /* RCTRefreshControlManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRefreshControlManager.h; sourceTree = ""; }; - 191E3EBD1C29D9AF00C180A6 /* RCTRefreshControlManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRefreshControlManager.m; sourceTree = ""; }; - 191E3EBF1C29DC3800C180A6 /* RCTRefreshControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRefreshControl.h; sourceTree = ""; }; - 191E3EC01C29DC3800C180A6 /* RCTRefreshControl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRefreshControl.m; sourceTree = ""; }; - 199B8A6E1F44DB16005DEF67 /* RCTVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTVersion.h; sourceTree = ""; }; - 27B958731E57587D0096647A /* JSBigString.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSBigString.cpp; sourceTree = ""; }; - 2D2A28131D9B038B00D4039D /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 352DCFEE1D19F4C20056D623 /* RCTI18nUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTI18nUtil.h; sourceTree = ""; }; - 352DCFEF1D19F4C20056D623 /* RCTI18nUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTI18nUtil.m; sourceTree = ""; }; - 391E86A21C623EC800009732 /* RCTTouchEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTTouchEvent.m; sourceTree = ""; }; - 391E86A31C623EC800009732 /* RCTTouchEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTTouchEvent.h; sourceTree = ""; }; - 39C50FFA2046EE3500CEE534 /* RCTVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTVersion.m; sourceTree = ""; }; - 3D0B84281EC0B49400B2BD8E /* RCTTVRemoteHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTTVRemoteHandler.h; sourceTree = ""; }; - 3D0B84291EC0B49400B2BD8E /* RCTTVRemoteHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTTVRemoteHandler.m; sourceTree = ""; }; - 3D0E37891F1CC40000DCAC9F /* RCTWebSocketModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RCTWebSocketModule.h; path = WebSocket/RCTWebSocketModule.h; sourceTree = ""; }; - 3D1E68D81CABD13900DD7465 /* RCTDisplayLink.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTDisplayLink.h; sourceTree = ""; }; - 3D1E68D91CABD13900DD7465 /* RCTDisplayLink.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTDisplayLink.m; sourceTree = ""; }; - 3D1FA07A1DE4F2EA00E03CC6 /* RCTNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTNetworking.h; sourceTree = ""; }; - 3D1FA07B1DE4F2EA00E03CC6 /* RCTNetworkTask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTNetworkTask.h; sourceTree = ""; }; - 3D1FA0831DE4F3A000E03CC6 /* RCTImageLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTImageLoader.h; sourceTree = ""; }; - 3D1FA0841DE4F3A000E03CC6 /* RCTImageStoreManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTImageStoreManager.h; sourceTree = ""; }; - 3D1FA0851DE4F3A000E03CC6 /* RCTResizeMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTResizeMode.h; sourceTree = ""; }; - 3D1FA08B1DE4F4DD00E03CC6 /* RCTLinkingManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTLinkingManager.h; sourceTree = ""; }; - 3D1FA08D1DE4F4EE00E03CC6 /* RCTPushNotificationManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RCTPushNotificationManager.h; path = PushNotificationIOS/RCTPushNotificationManager.h; sourceTree = ""; }; - 3D37B5801D522B190042D5B5 /* RCTFont.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTFont.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 3D37B5811D522B190042D5B5 /* RCTFont.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTFont.mm; sourceTree = ""; }; - 3D383D3C1EBD27B6005632C8 /* libthird-party.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libthird-party.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3D383D621EBD27B9005632C8 /* libdouble-conversion.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libdouble-conversion.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3D3CD8F51DE5FB2300167DC4 /* JSBundleType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSBundleType.h; sourceTree = ""; }; - 3D3CD9251DE5FBEC00167DC4 /* libcxxreact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libcxxreact.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 3D3CD9321DE5FBEE00167DC4 /* libcxxreact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libcxxreact.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 3D7454781E54757500E74ADD /* JSBigString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSBigString.h; sourceTree = ""; }; - 3D7454791E54757500E74ADD /* RecoverableError.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RecoverableError.h; sourceTree = ""; }; - 3D7454B31E54786200E74ADD /* NSDataBigString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSDataBigString.h; sourceTree = ""; }; - 3D7749421DC1065C007EC8D8 /* RCTPlatform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTPlatform.h; sourceTree = ""; }; - 3D7749431DC1065C007EC8D8 /* RCTPlatform.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTPlatform.m; sourceTree = ""; }; - 3D7AA9C31E548CD5001955CF /* NSDataBigString.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = NSDataBigString.mm; sourceTree = ""; }; - 3D7BFD0B1EA8E351008DFB7A /* RCTPackagerClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTPackagerClient.h; sourceTree = ""; }; - 3D7BFD0C1EA8E351008DFB7A /* RCTPackagerClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTPackagerClient.m; sourceTree = ""; }; - 3D7BFD0F1EA8E351008DFB7A /* RCTPackagerConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTPackagerConnection.h; sourceTree = ""; }; - 3D7BFD101EA8E351008DFB7A /* RCTPackagerConnection.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTPackagerConnection.mm; sourceTree = ""; }; - 3D7BFD2B1EA8E3FA008DFB7A /* RCTReconnectingWebSocket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RCTReconnectingWebSocket.h; path = WebSocket/RCTReconnectingWebSocket.h; sourceTree = ""; }; - 3D7BFD2C1EA8E3FA008DFB7A /* RCTSRWebSocket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RCTSRWebSocket.h; path = WebSocket/RCTSRWebSocket.h; sourceTree = ""; }; - 3D92B0A71E03699D0018521A /* CxxModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CxxModule.h; sourceTree = ""; }; - 3D92B0A81E03699D0018521A /* CxxNativeModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CxxNativeModule.cpp; sourceTree = ""; }; - 3D92B0A91E03699D0018521A /* CxxNativeModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CxxNativeModule.h; sourceTree = ""; }; - 3D92B0AB1E03699D0018521A /* JSExecutor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSExecutor.h; sourceTree = ""; }; - 3D92B0AE1E03699D0018521A /* Instance.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Instance.cpp; sourceTree = ""; }; - 3D92B0AF1E03699D0018521A /* Instance.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Instance.h; sourceTree = ""; }; - 3D92B0B01E03699D0018521A /* JsArgumentHelpers-inl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "JsArgumentHelpers-inl.h"; sourceTree = ""; }; - 3D92B0B11E03699D0018521A /* JsArgumentHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JsArgumentHelpers.h; sourceTree = ""; }; - 3D92B0C61E03699D0018521A /* JSIndexedRAMBundle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSIndexedRAMBundle.cpp; sourceTree = ""; }; - 3D92B0C71E03699D0018521A /* JSIndexedRAMBundle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSIndexedRAMBundle.h; sourceTree = ""; }; - 3D92B0C81E03699D0018521A /* JSModulesUnbundle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSModulesUnbundle.h; sourceTree = ""; }; - 3D92B0C91E03699D0018521A /* MessageQueueThread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MessageQueueThread.h; sourceTree = ""; }; - 3D92B0CA1E03699D0018521A /* MethodCall.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MethodCall.cpp; sourceTree = ""; }; - 3D92B0CB1E03699D0018521A /* MethodCall.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MethodCall.h; sourceTree = ""; }; - 3D92B0CC1E03699D0018521A /* ModuleRegistry.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ModuleRegistry.cpp; sourceTree = ""; }; - 3D92B0CD1E03699D0018521A /* ModuleRegistry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ModuleRegistry.h; sourceTree = ""; }; - 3D92B0CE1E03699D0018521A /* NativeModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NativeModule.h; sourceTree = ""; }; - 3D92B0CF1E03699D0018521A /* NativeToJsBridge.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NativeToJsBridge.cpp; sourceTree = ""; }; - 3D92B0D01E03699D0018521A /* NativeToJsBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NativeToJsBridge.h; sourceTree = ""; }; - 3D92B0D31E03699D0018521A /* SampleCxxModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SampleCxxModule.cpp; sourceTree = ""; }; - 3D92B0D41E03699D0018521A /* SampleCxxModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SampleCxxModule.h; sourceTree = ""; }; - 3D92B0D51E03699D0018521A /* SystraceSection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SystraceSection.h; sourceTree = ""; }; - 3EDCA8A21D3591E700450C31 /* RCTErrorCustomizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTErrorCustomizer.h; sourceTree = ""; }; - 3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTErrorInfo.h; sourceTree = ""; }; - 3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTErrorInfo.m; sourceTree = ""; }; - 4F56C93722167A4800DB9F3F /* jsilib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsilib.h; sourceTree = ""; }; - 50E98FE621460B0D00CD9289 /* RCTWKWebViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTWKWebViewManager.m; sourceTree = ""; }; - 50E98FE721460B0D00CD9289 /* RCTWKWebView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTWKWebView.h; sourceTree = ""; }; - 50E98FE821460B0D00CD9289 /* RCTWKWebView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTWKWebView.m; sourceTree = ""; }; - 50E98FE921460B0D00CD9289 /* RCTWKWebViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTWKWebViewManager.h; sourceTree = ""; }; - 5335D5401FE81A4700883D58 /* RCTShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTShadowView.m; sourceTree = ""; }; - 53D123831FBF1D49001B8A10 /* libyoga.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libyoga.a; path = "../../../../../../../../../Library/Developer/Xcode/DerivedData/yoga-hdfifpwsinitsibujacpiefkjfdy/Build/Products/Debug/libyoga.a"; sourceTree = ""; }; - 58114A121AAE854800E7D092 /* RCTPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTPicker.h; sourceTree = ""; }; - 58114A131AAE854800E7D092 /* RCTPicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTPicker.m; sourceTree = ""; }; - 58114A141AAE854800E7D092 /* RCTPickerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTPickerManager.h; sourceTree = ""; }; - 58114A151AAE854800E7D092 /* RCTPickerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTPickerManager.m; sourceTree = ""; }; - 58114A4E1AAE93D500E7D092 /* RCTAsyncLocalStorage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTAsyncLocalStorage.m; sourceTree = ""; }; - 58114A4F1AAE93D500E7D092 /* RCTAsyncLocalStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTAsyncLocalStorage.h; sourceTree = ""; }; - 589515DF2231AD9C0036BDE0 /* RCTSurfacePresenterStub.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfacePresenterStub.h; sourceTree = ""; }; - 58C571BF1AA56C1900CDF9C8 /* RCTDatePickerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTDatePickerManager.m; sourceTree = ""; }; - 58C571C01AA56C1900CDF9C8 /* RCTDatePickerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTDatePickerManager.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 590D7BFB1EBD458B00D8A370 /* RCTShadowView+Layout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RCTShadowView+Layout.h"; sourceTree = ""; }; - 590D7BFC1EBD458B00D8A370 /* RCTShadowView+Layout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "RCTShadowView+Layout.m"; sourceTree = ""; }; - 591F78D8202ADB21004A668C /* RCTLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTLayout.m; sourceTree = ""; }; - 591F78D9202ADB22004A668C /* RCTLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTLayout.h; sourceTree = ""; }; - 5925356920084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTSurfaceSizeMeasureMode.mm; sourceTree = ""; }; - 59283C9F1FD67320000EAAB9 /* RCTSurfaceStage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSurfaceStage.m; sourceTree = ""; }; - 594F0A2F1FD23228007FBE96 /* RCTSurfaceHostingView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfaceHostingView.h; sourceTree = ""; }; - 594F0A301FD23228007FBE96 /* RCTSurfaceHostingView.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTSurfaceHostingView.mm; sourceTree = ""; }; - 594F0A311FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfaceSizeMeasureMode.h; sourceTree = ""; }; - 59500D411F71C63700B122B7 /* RCTUIManagerUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTUIManagerUtils.h; sourceTree = ""; }; - 59500D421F71C63F00B122B7 /* RCTUIManagerUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTUIManagerUtils.m; sourceTree = ""; }; - 5960C1B11F0804A00066FD5B /* RCTLayoutAnimation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTLayoutAnimation.h; sourceTree = ""; }; - 5960C1B21F0804A00066FD5B /* RCTLayoutAnimation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTLayoutAnimation.m; sourceTree = ""; }; - 5960C1B31F0804A00066FD5B /* RCTLayoutAnimationGroup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTLayoutAnimationGroup.h; sourceTree = ""; }; - 5960C1B41F0804A00066FD5B /* RCTLayoutAnimationGroup.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTLayoutAnimationGroup.m; sourceTree = ""; }; - 597633341F4E021D005BE8A4 /* RCTShadowView+Internal.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "RCTShadowView+Internal.m"; sourceTree = ""; }; - 597633351F4E021D005BE8A4 /* RCTShadowView+Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RCTShadowView+Internal.h"; sourceTree = ""; }; - 599FAA2A1FB274970058CCF6 /* RCTSurface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurface.h; sourceTree = ""; }; - 599FAA2B1FB274970058CCF6 /* RCTSurface.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTSurface.mm; sourceTree = ""; }; - 599FAA2C1FB274970058CCF6 /* RCTSurfaceDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfaceDelegate.h; sourceTree = ""; }; - 599FAA2D1FB274970058CCF6 /* RCTSurfaceRootShadowView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfaceRootShadowView.h; sourceTree = ""; }; - 599FAA2E1FB274970058CCF6 /* RCTSurfaceRootShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSurfaceRootShadowView.m; sourceTree = ""; }; - 599FAA2F1FB274970058CCF6 /* RCTSurfaceRootShadowViewDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfaceRootShadowViewDelegate.h; sourceTree = ""; }; - 599FAA301FB274970058CCF6 /* RCTSurfaceRootView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfaceRootView.h; sourceTree = ""; }; - 599FAA311FB274970058CCF6 /* RCTSurfaceRootView.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTSurfaceRootView.mm; sourceTree = ""; }; - 599FAA321FB274970058CCF6 /* RCTSurfaceStage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfaceStage.h; sourceTree = ""; }; - 599FAA331FB274970058CCF6 /* RCTSurfaceView+Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RCTSurfaceView+Internal.h"; sourceTree = ""; }; - 599FAA341FB274970058CCF6 /* RCTSurfaceView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSurfaceView.h; sourceTree = ""; }; - 599FAA351FB274970058CCF6 /* RCTSurfaceView.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTSurfaceView.mm; sourceTree = ""; }; - 59A7B9FB1E577DBF0068EDBF /* RCTRootContentView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRootContentView.h; sourceTree = ""; }; - 59A7B9FC1E577DBF0068EDBF /* RCTRootContentView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRootContentView.m; sourceTree = ""; }; - 59D031E51F8353D3008361F0 /* RCTSafeAreaShadowView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSafeAreaShadowView.h; sourceTree = ""; }; - 59D031E61F8353D3008361F0 /* RCTSafeAreaShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSafeAreaShadowView.m; sourceTree = ""; }; - 59D031E71F8353D3008361F0 /* RCTSafeAreaView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSafeAreaView.h; sourceTree = ""; }; - 59D031E81F8353D3008361F0 /* RCTSafeAreaView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSafeAreaView.m; sourceTree = ""; }; - 59D031E91F8353D3008361F0 /* RCTSafeAreaViewLocalData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSafeAreaViewLocalData.h; sourceTree = ""; }; - 59D031EA1F8353D3008361F0 /* RCTSafeAreaViewLocalData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSafeAreaViewLocalData.m; sourceTree = ""; }; - 59D031EB1F8353D3008361F0 /* RCTSafeAreaViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTSafeAreaViewManager.h; sourceTree = ""; }; - 59D031EC1F8353D3008361F0 /* RCTSafeAreaViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTSafeAreaViewManager.m; sourceTree = ""; }; - 59E6049C1FE9CCE100BD90C5 /* RCTScrollContentShadowView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTScrollContentShadowView.h; sourceTree = ""; }; - 59E6049D1FE9CCE200BD90C5 /* RCTScrollContentViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTScrollContentViewManager.m; sourceTree = ""; }; - 59E6049E1FE9CCE200BD90C5 /* RCTScrollContentShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTScrollContentShadowView.m; sourceTree = ""; }; - 59E6049F1FE9CCE200BD90C5 /* RCTScrollContentViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTScrollContentViewManager.h; sourceTree = ""; }; - 59EB6DB91EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTUIManagerObserverCoordinator.h; sourceTree = ""; }; - 59EB6DBA1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTUIManagerObserverCoordinator.mm; sourceTree = ""; }; - 59EDBC9C1FDF4E0C003573DE /* RCTScrollableProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTScrollableProtocol.h; sourceTree = ""; }; - 59EDBC9F1FDF4E0C003573DE /* RCTScrollContentView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTScrollContentView.h; sourceTree = ""; }; - 59EDBCA01FDF4E0C003573DE /* RCTScrollContentView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTScrollContentView.m; sourceTree = ""; }; - 59EDBCA31FDF4E0C003573DE /* RCTScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTScrollView.h; sourceTree = ""; }; - 59EDBCA41FDF4E0C003573DE /* RCTScrollView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTScrollView.m; sourceTree = ""; }; - 59EDBCA51FDF4E0C003573DE /* RCTScrollViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTScrollViewManager.h; sourceTree = ""; }; - 59EDBCA61FDF4E0C003573DE /* RCTScrollViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTScrollViewManager.m; sourceTree = ""; }; - 657734821EE834C900A0E9EA /* RCTInspectorDevServerHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTInspectorDevServerHelper.h; sourceTree = ""; }; - 657734831EE834C900A0E9EA /* RCTInspectorDevServerHelper.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTInspectorDevServerHelper.mm; sourceTree = ""; }; - 6577348A1EE8354A00A0E9EA /* RCTInspector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RCTInspector.h; path = Inspector/RCTInspector.h; sourceTree = ""; }; - 6577348B1EE8354A00A0E9EA /* RCTInspector.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = RCTInspector.mm; path = Inspector/RCTInspector.mm; sourceTree = ""; }; - 6577348C1EE8354A00A0E9EA /* RCTInspectorPackagerConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RCTInspectorPackagerConnection.h; path = Inspector/RCTInspectorPackagerConnection.h; sourceTree = ""; }; - 6577348D1EE8354A00A0E9EA /* RCTInspectorPackagerConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RCTInspectorPackagerConnection.m; path = Inspector/RCTInspectorPackagerConnection.m; sourceTree = ""; }; - 66CD94AD1F1045E700CB3C7C /* RCTMaskedView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTMaskedView.h; sourceTree = ""; }; - 66CD94AE1F1045E700CB3C7C /* RCTMaskedView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTMaskedView.m; sourceTree = ""; }; - 66CD94AF1F1045E700CB3C7C /* RCTMaskedViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTMaskedViewManager.h; sourceTree = ""; }; - 66CD94B01F1045E700CB3C7C /* RCTMaskedViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTMaskedViewManager.m; sourceTree = ""; }; - 68EFE4EC1CF6EB3000A1DE13 /* RCTBundleURLProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTBundleURLProvider.h; sourceTree = ""; }; - 68EFE4ED1CF6EB3900A1DE13 /* RCTBundleURLProvider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTBundleURLProvider.m; sourceTree = ""; }; - 6A15FB0C1BDF663500531DFB /* RCTRootViewInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRootViewInternal.h; sourceTree = ""; }; - 6D4C7F85224946B900CBB1EC /* libYogaDev.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libYogaDev.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 6D4C7FAF2249479200CBB1EC /* libYogaDev.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libYogaDev.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "third-party(Yoga).xcconfig"; sourceTree = ""; }; - 6DCB224522493AF10041DDBC /* Demangle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Demangle.cpp; path = folly/Demangle.cpp; sourceTree = ""; }; - 830213F31A654E0800B993E6 /* RCTBridgeModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTBridgeModule.h; sourceTree = ""; }; - 830A229C1A66C68A008503DA /* RCTRootView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRootView.h; sourceTree = ""; }; - 830A229D1A66C68A008503DA /* RCTRootView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRootView.m; sourceTree = ""; }; - 83281383217EB70800574D55 /* MallocImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = MallocImpl.cpp; path = folly/memory/detail/MallocImpl.cpp; sourceTree = ""; }; - 83281386217EB73400574D55 /* String.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = String.cpp; path = folly/String.cpp; sourceTree = ""; }; - 83281389217EB74C00574D55 /* json_pointer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = json_pointer.cpp; path = folly/json_pointer.cpp; sourceTree = ""; }; - 8328138C217EB75C00574D55 /* ColdClass.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ColdClass.cpp; path = folly/lang/ColdClass.cpp; sourceTree = ""; }; - 83281392217EB77C00574D55 /* SpookyHashV2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SpookyHashV2.cpp; path = folly/hash/SpookyHashV2.cpp; sourceTree = ""; }; - 83281395217EB78F00574D55 /* F14Table.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = F14Table.cpp; path = folly/container/detail/F14Table.cpp; sourceTree = ""; }; - 83281398217EB79D00574D55 /* ScopeGuard.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ScopeGuard.cpp; path = folly/ScopeGuard.cpp; sourceTree = ""; }; - 83392EB11B6634E10013B15F /* RCTModalHostViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTModalHostViewController.h; sourceTree = ""; }; - 83392EB21B6634E10013B15F /* RCTModalHostViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModalHostViewController.m; sourceTree = ""; }; - 833D02B9217EBCFA00A23750 /* Assume.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Assume.cpp; path = folly/lang/Assume.cpp; sourceTree = ""; }; - 833D02BC217EBD2600A23750 /* Format.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Format.cpp; path = folly/Format.cpp; sourceTree = ""; }; - 83A1FE8A1B62640A00BE0E65 /* RCTModalHostView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTModalHostView.h; sourceTree = ""; }; - 83A1FE8B1B62640A00BE0E65 /* RCTModalHostView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModalHostView.m; sourceTree = ""; }; - 83A1FE8D1B62643A00BE0E65 /* RCTModalHostViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTModalHostViewManager.h; sourceTree = ""; }; - 83A1FE8E1B62643A00BE0E65 /* RCTModalHostViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModalHostViewManager.m; sourceTree = ""; }; - 83CBBA2E1A601D0E00E9B192 /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 83CBBA4A1A601E3B00E9B192 /* RCTAssert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTAssert.h; sourceTree = ""; }; - 83CBBA4B1A601E3B00E9B192 /* RCTAssert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTAssert.m; sourceTree = ""; }; - 83CBBA4C1A601E3B00E9B192 /* RCTInvalidating.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTInvalidating.h; sourceTree = ""; }; - 83CBBA4D1A601E3B00E9B192 /* RCTLog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTLog.h; sourceTree = ""; }; - 83CBBA4E1A601E3B00E9B192 /* RCTLog.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTLog.mm; sourceTree = ""; }; - 83CBBA4F1A601E3B00E9B192 /* RCTUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTUtils.h; sourceTree = ""; }; - 83CBBA501A601E3B00E9B192 /* RCTUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTUtils.m; sourceTree = ""; }; - 83CBBA5E1A601EAA00E9B192 /* RCTBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTBridge.h; sourceTree = ""; }; - 83CBBA5F1A601EAA00E9B192 /* RCTBridge.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTBridge.m; sourceTree = ""; }; - 83CBBA631A601ECA00E9B192 /* RCTJavaScriptExecutor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTJavaScriptExecutor.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 83CBBA651A601EF300E9B192 /* RCTEventDispatcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTEventDispatcher.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 83CBBA661A601EF300E9B192 /* RCTEventDispatcher.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTEventDispatcher.m; sourceTree = ""; }; - 83CBBA961A6020BB00E9B192 /* RCTTouchHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTTouchHandler.h; sourceTree = ""; }; - 83CBBA971A6020BB00E9B192 /* RCTTouchHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTTouchHandler.m; sourceTree = ""; }; - 83CBBACA1A6023D300E9B192 /* RCTConvert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTConvert.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - 83CBBACB1A6023D300E9B192 /* RCTConvert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTConvert.m; sourceTree = ""; }; - 83F15A171B7CC46900F10295 /* UIView+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIView+Private.h"; sourceTree = ""; }; - 8507BBBC21EDACC200AEAFCA /* JSCExecutorFactory.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = JSCExecutorFactory.mm; sourceTree = ""; }; - 8507BBBD21EDACC200AEAFCA /* JSCExecutorFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCExecutorFactory.h; sourceTree = ""; }; - A2440AA01DF8D854006E7BFC /* RCTReloadCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTReloadCommand.h; sourceTree = ""; }; - A2440AA11DF8D854006E7BFC /* RCTReloadCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTReloadCommand.m; sourceTree = ""; }; - AC70D2E81DE489E4002E6351 /* RCTJavaScriptLoader.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTJavaScriptLoader.mm; sourceTree = ""; }; - AC70D2EB1DE48A22002E6351 /* JSBundleType.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSBundleType.cpp; sourceTree = ""; }; - ACDD3FDA1BC7430D00E7DE33 /* RCTBorderStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTBorderStyle.h; sourceTree = ""; }; - B233E6E81D2D843200BC68BA /* RCTI18nManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = RCTI18nManager.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; - B233E6E91D2D845D00BC68BA /* RCTI18nManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTI18nManager.m; sourceTree = ""; }; - B95154301D1B34B200FE7B80 /* RCTActivityIndicatorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTActivityIndicatorView.h; sourceTree = ""; }; - B95154311D1B34B200FE7B80 /* RCTActivityIndicatorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTActivityIndicatorView.m; sourceTree = ""; }; - C60128A91F3D1258009DF9FF /* RCTCxxConvert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTCxxConvert.h; sourceTree = ""; }; - C60128AA1F3D1258009DF9FF /* RCTCxxConvert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTCxxConvert.m; sourceTree = ""; }; - C606692D1F3CC60500E67165 /* RCTModuleMethod.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTModuleMethod.mm; sourceTree = ""; }; - C60669351F3CCF1B00E67165 /* RCTManagedPointer.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTManagedPointer.mm; sourceTree = ""; }; - C654505D1F3BD9280090799B /* RCTManagedPointer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTManagedPointer.h; sourceTree = ""; }; - C6D380181F71D75B00621378 /* RAMBundleRegistry.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RAMBundleRegistry.h; sourceTree = ""; }; - C6D380191F71D75B00621378 /* RAMBundleRegistry.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = RAMBundleRegistry.cpp; sourceTree = ""; }; - CF2731BE1E7B8DE40044CA4F /* RCTDeviceInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTDeviceInfo.h; sourceTree = ""; }; - CF2731BF1E7B8DE40044CA4F /* RCTDeviceInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTDeviceInfo.m; sourceTree = ""; }; - E223624320875A8000108244 /* JSExecutor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSExecutor.cpp; sourceTree = ""; }; - E3BBC8EB1ADE6F47001BBD81 /* RCTTextDecorationLineType.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTTextDecorationLineType.h; sourceTree = ""; }; - E9B20B791B500126007A2DA7 /* RCTAccessibilityManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTAccessibilityManager.h; sourceTree = ""; }; - E9B20B7A1B500126007A2DA7 /* RCTAccessibilityManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTAccessibilityManager.m; sourceTree = ""; }; - EBF21BBA1FC498270052F4D5 /* InspectorInterfaces.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorInterfaces.h; sourceTree = ""; }; - EBF21BBB1FC498270052F4D5 /* InspectorInterfaces.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorInterfaces.cpp; sourceTree = ""; }; - EBF21BDC1FC498900052F4D5 /* libjsinspector.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libjsinspector.a; sourceTree = BUILT_PRODUCTS_DIR; }; - EBF21BFA1FC4989A0052F4D5 /* libjsinspector-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libjsinspector-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - ED296FB6214C9A0900B7C4FE /* libjsi-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libjsi-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - ED296FEE214C9CF800B7C4FE /* libjsiexecutor-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libjsiexecutor-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - ED6189672155BBF70000C9A7 /* JSIExecutor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSIExecutor.h; path = jsireact/JSIExecutor.h; sourceTree = ""; }; - ED6189682155BBF70000C9A7 /* JSINativeModules.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSINativeModules.h; path = jsireact/JSINativeModules.h; sourceTree = ""; }; - EDDA711B2164285A00B2D070 /* JSINativeModules.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSINativeModules.cpp; path = jsireact/JSINativeModules.cpp; sourceTree = ""; }; - EDDA711C2164285A00B2D070 /* JSIExecutor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSIExecutor.cpp; path = jsireact/JSIExecutor.cpp; sourceTree = ""; }; - EDEBC6D6214B3E7000DD5AC8 /* libjsi.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libjsi.a; sourceTree = BUILT_PRODUCTS_DIR; }; - EDEBC6D9214B3F6800DD5AC8 /* jsi-inl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "jsi-inl.h"; sourceTree = ""; }; - EDEBC6DA214B3F6800DD5AC8 /* JSIDynamic.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSIDynamic.cpp; sourceTree = ""; }; - EDEBC6DB214B3F6800DD5AC8 /* jsi.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsi.cpp; sourceTree = ""; }; - EDEBC6DC214B3F6800DD5AC8 /* JSIDynamic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSIDynamic.h; sourceTree = ""; }; - EDEBC6DD214B3F6800DD5AC8 /* JSCRuntime.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCRuntime.cpp; sourceTree = ""; }; - EDEBC6DE214B3F6800DD5AC8 /* JSCRuntime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCRuntime.h; sourceTree = ""; }; - EDEBC6DF214B3F6800DD5AC8 /* BUCK */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = BUCK; sourceTree = ""; }; - EDEBC6E0214B3F6800DD5AC8 /* instrumentation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = instrumentation.h; sourceTree = ""; }; - EDEBC6E1214B3F6800DD5AC8 /* jsi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsi.h; sourceTree = ""; }; - EDEBC73B214B45A300DD5AC8 /* libjsiexecutor.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libjsiexecutor.a; sourceTree = BUILT_PRODUCTS_DIR; }; - EDEBC740214B463000DD5AC8 /* BUCK */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = BUCK; sourceTree = ""; }; - EDEBC750214B47E100DD5AC8 /* JSDeltaBundleClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDeltaBundleClient.cpp; sourceTree = ""; }; - EDEBC751214B47E100DD5AC8 /* JSDeltaBundleClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDeltaBundleClient.h; sourceTree = ""; }; - EDEBC752214B47E100DD5AC8 /* SharedProxyCxxModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SharedProxyCxxModule.h; sourceTree = ""; }; - EDEBC757214C284000DD5AC8 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; - F1EFDA4E201F660F00EE6E4C /* RCTUIUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTUIUtils.m; sourceTree = ""; }; - F1EFDA4F201F660F00EE6E4C /* RCTUIUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTUIUtils.h; sourceTree = ""; }; - FEFAAC9C1FDB89B40057BBE0 /* RCTRedBoxExtraDataViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRedBoxExtraDataViewController.m; sourceTree = ""; }; - FEFAAC9D1FDB89B40057BBE0 /* RCTRedBoxExtraDataViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRedBoxExtraDataViewController.h; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 3D3C08881DE342EE00C268FA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - EDEBC7E0214C709200DD5AC8 /* libjsinspector.a in Frameworks */, - 3D3CD9411DE5FC5300167DC4 /* libcxxreact.a in Frameworks */, - EDEBC71A214B40A300DD5AC8 /* libjsi.a in Frameworks */, - EDEBC7DF214C705700DD5AC8 /* libjsiexecutor.a in Frameworks */, - 6D4C7F86224946B900CBB1EC /* libYogaDev.a in Frameworks */, - 3D383D6D1EBD2940005632C8 /* libdouble-conversion.a in Frameworks */, - 3D383D6F1EBD2940005632C8 /* libthird-party.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D3C088B1DE342FE00C268FA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ED297067215023D800B7C4FE /* libjsiexecutor-tvOS.a in Frameworks */, - ED296FCB214C9B6C00B7C4FE /* libjsi-tvOS.a in Frameworks */, - 6D4C7FB02249479200CBB1EC /* libYogaDev.a in Frameworks */, - ED296F82214C973700B7C4FE /* libjsinspector-tvOS.a in Frameworks */, - 2D1D83CE1F74E2DA00615550 /* libdouble-conversion.a in Frameworks */, - 3D383D721EBD2949005632C8 /* libthird-party.a in Frameworks */, - 3D8ED92C1E5B120100D83D20 /* libcxxreact.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ED296FCE214C9CB400B7C4FE /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ED296FF5214C9E7C00B7C4FE /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EDEBC756214C283300DD5AC8 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EDEBC79A214C2A7000DD5AC8 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 1304439E1E3FEA8B00D93A67 /* CxxUtils */ = { - isa = PBXGroup; - children = ( - 1304439F1E3FEAA900D93A67 /* RCTFollyConvert.h */, - 130443A01E3FEAA900D93A67 /* RCTFollyConvert.mm */, - ); - name = CxxUtils; - sourceTree = ""; - }; - 13134C721E296B2A00B9F3CB /* CxxBridge */ = { - isa = PBXGroup; - children = ( - 134D63C21F1FEC4B008872B5 /* RCTCxxBridgeDelegate.h */, - 3D7454B31E54786200E74ADD /* NSDataBigString.h */, - 3D7AA9C31E548CD5001955CF /* NSDataBigString.mm */, - 13134C741E296B2A00B9F3CB /* RCTCxxBridge.mm */, - 13134C771E296B2A00B9F3CB /* RCTMessageThread.h */, - 13134C781E296B2A00B9F3CB /* RCTMessageThread.mm */, - 13134C7B1E296B2A00B9F3CB /* RCTObjcExecutor.h */, - 13134C7C1E296B2A00B9F3CB /* RCTObjcExecutor.mm */, - 8507BBBD21EDACC200AEAFCA /* JSCExecutorFactory.h */, - 8507BBBC21EDACC200AEAFCA /* JSCExecutorFactory.mm */, - ); - path = CxxBridge; - sourceTree = ""; - }; - 13134C7D1E296B2A00B9F3CB /* CxxModule */ = { - isa = PBXGroup; - children = ( - 1384E2061E806D4E00545659 /* RCTNativeModule.h */, - 1384E2071E806D4E00545659 /* RCTNativeModule.mm */, - 13134C7E1E296B2A00B9F3CB /* RCTCxxMethod.h */, - 13134C7F1E296B2A00B9F3CB /* RCTCxxMethod.mm */, - 13134C801E296B2A00B9F3CB /* RCTCxxModule.h */, - 13134C811E296B2A00B9F3CB /* RCTCxxModule.mm */, - 13134C821E296B2A00B9F3CB /* RCTCxxUtils.h */, - 13134C831E296B2A00B9F3CB /* RCTCxxUtils.mm */, - ); - path = CxxModule; - sourceTree = ""; - }; - 139D7E381E25C55B00323FB7 /* double-conversion */ = { - isa = PBXGroup; - children = ( - 139D7E391E25C5A300323FB7 /* bignum-dtoa.cc */, - 139D7E3A1E25C5A300323FB7 /* bignum-dtoa.h */, - 139D7E3B1E25C5A300323FB7 /* bignum.cc */, - 139D7E3C1E25C5A300323FB7 /* bignum.h */, - 139D7E3D1E25C5A300323FB7 /* cached-powers.cc */, - 139D7E3E1E25C5A300323FB7 /* cached-powers.h */, - 139D7E3F1E25C5A300323FB7 /* diy-fp.cc */, - 139D7E401E25C5A300323FB7 /* diy-fp.h */, - 139D7E411E25C5A300323FB7 /* double-conversion.cc */, - 139D7E421E25C5A300323FB7 /* double-conversion.h */, - 139D7E431E25C5A300323FB7 /* fast-dtoa.cc */, - 139D7E441E25C5A300323FB7 /* fast-dtoa.h */, - 139D7E451E25C5A300323FB7 /* fixed-dtoa.cc */, - 139D7E461E25C5A300323FB7 /* fixed-dtoa.h */, - 139D7E471E25C5A300323FB7 /* ieee.h */, - 139D7E481E25C5A300323FB7 /* strtod.cc */, - 139D7E491E25C5A300323FB7 /* strtod.h */, - 139D7E4A1E25C5A300323FB7 /* utils.h */, - ); - name = "double-conversion"; - path = "../js/react-native-github/third-party/double-conversion-1.1.6"; - sourceTree = ""; - }; - 139D7ED71E25DB9200323FB7 /* glog */ = { - isa = PBXGroup; - children = ( - 139D7F101E25DEC900323FB7 /* glog */, - 139D7ED81E25DBDC00323FB7 /* config.h */, - 139D7F081E25DE3700323FB7 /* demangle.cc */, - 139D7ED91E25DBDC00323FB7 /* demangle.h */, - 139D7EDA1E25DBDC00323FB7 /* logging.cc */, - 139D7EDB1E25DBDC00323FB7 /* raw_logging.cc */, - 139D7EDC1E25DBDC00323FB7 /* signalhandler.cc */, - 139D7EDD1E25DBDC00323FB7 /* stacktrace.h */, - 139D7EDE1E25DBDC00323FB7 /* symbolize.cc */, - 139D7EDF1E25DBDC00323FB7 /* symbolize.h */, - 139D7EE01E25DBDC00323FB7 /* utilities.cc */, - 139D7EE11E25DBDC00323FB7 /* utilities.h */, - 139D7EE21E25DBDC00323FB7 /* vlog_is_on.cc */, - ); - name = glog; - path = "../js/react-native-github/React"; - sourceTree = ""; - }; - 139D7F101E25DEC900323FB7 /* glog */ = { - isa = PBXGroup; - children = ( - 139D7F111E25DEC900323FB7 /* log_severity.h */, - 139D7F121E25DEC900323FB7 /* logging.h */, - 139D7F141E25DEC900323FB7 /* raw_logging.h */, - 139D7F161E25DEC900323FB7 /* stl_logging.h */, - 139D7F181E25DEC900323FB7 /* vlog_is_on.h */, - ); - name = glog; - path = "../third-party/glog-0.3.5/src/glog"; - sourceTree = ""; - }; - 139D849B1E2739EC00323FB7 /* folly */ = { - isa = PBXGroup; - children = ( - 6DCB224522493AF10041DDBC /* Demangle.cpp */, - 833D02B9217EBCFA00A23750 /* Assume.cpp */, - 139D849C1E273B5600323FB7 /* AtomicIntrusiveLinkedList.h */, - 8328138C217EB75C00574D55 /* ColdClass.cpp */, - 139D849F1E273B5600323FB7 /* Conv.cpp */, - 139D84A01E273B5600323FB7 /* Conv.h */, - 13F887521E2971C500C3C7A1 /* Demangle.h */, - 139D84A11E273B5600323FB7 /* dynamic-inl.h */, - 139D84A21E273B5600323FB7 /* dynamic.cpp */, - 139D84A31E273B5600323FB7 /* dynamic.h */, - 139D84A41E273B5600323FB7 /* Exception.h */, - 83281395217EB78F00574D55 /* F14Table.cpp */, - 833D02BC217EBD2600A23750 /* Format.cpp */, - 83281389217EB74C00574D55 /* json_pointer.cpp */, - 139D84A71E273B5600323FB7 /* json.cpp */, - 139D84A81E273B5600323FB7 /* json.h */, - 83281383217EB70800574D55 /* MallocImpl.cpp */, - 139D84A91E273B5600323FB7 /* Memory.h */, - 139D84AA1E273B5600323FB7 /* MoveWrapper.h */, - 139D84AB1E273B5600323FB7 /* Optional.h */, - 83281398217EB79D00574D55 /* ScopeGuard.cpp */, - 139D84AC1E273B5600323FB7 /* ScopeGuard.h */, - 83281392217EB77C00574D55 /* SpookyHashV2.cpp */, - 83281386217EB73400574D55 /* String.cpp */, - 13F887541E2971C500C3C7A1 /* Unicode.cpp */, - ); - name = folly; - path = "../js/react-native-github/third-party/folly-2018.10.22.00"; - sourceTree = ""; - }; - 13B07FE01A69315300A75B9A /* Modules */ = { - isa = PBXGroup; - children = ( - E9B20B791B500126007A2DA7 /* RCTAccessibilityManager.h */, - E9B20B7A1B500126007A2DA7 /* RCTAccessibilityManager.m */, - 13B07FE71A69327A00A75B9A /* RCTAlertManager.h */, - 13B07FE81A69327A00A75B9A /* RCTAlertManager.m */, - 1372B7081AB030C200659ED6 /* RCTAppState.h */, - 1372B7091AB030C200659ED6 /* RCTAppState.m */, - 58114A4F1AAE93D500E7D092 /* RCTAsyncLocalStorage.h */, - 58114A4E1AAE93D500E7D092 /* RCTAsyncLocalStorage.m */, - 13D033611C1837FE0021DC29 /* RCTClipboard.h */, - 13D033621C1837FE0021DC29 /* RCTClipboard.m */, - CF2731BE1E7B8DE40044CA4F /* RCTDeviceInfo.h */, - CF2731BF1E7B8DE40044CA4F /* RCTDeviceInfo.m */, - 130E3D861E6A082100ACE484 /* RCTDevSettings.h */, - 130E3D871E6A082100ACE484 /* RCTDevSettings.mm */, - 13D9FEE91CDCCECF00158BD7 /* RCTEventEmitter.h */, - 13D9FEEA1CDCCECF00158BD7 /* RCTEventEmitter.m */, - 13B07FE91A69327A00A75B9A /* RCTExceptionsManager.h */, - 13B07FEA1A69327A00A75B9A /* RCTExceptionsManager.m */, - B233E6E81D2D843200BC68BA /* RCTI18nManager.h */, - B233E6E91D2D845D00BC68BA /* RCTI18nManager.m */, - 352DCFEE1D19F4C20056D623 /* RCTI18nUtil.h */, - 352DCFEF1D19F4C20056D623 /* RCTI18nUtil.m */, - 13D9FEEC1CDCD93000158BD7 /* RCTKeyboardObserver.h */, - 13D9FEED1CDCD93000158BD7 /* RCTKeyboardObserver.m */, - 5960C1B11F0804A00066FD5B /* RCTLayoutAnimation.h */, - 5960C1B21F0804A00066FD5B /* RCTLayoutAnimation.m */, - 5960C1B31F0804A00066FD5B /* RCTLayoutAnimationGroup.h */, - 5960C1B41F0804A00066FD5B /* RCTLayoutAnimationGroup.m */, - 13F17A831B8493E5007D4C75 /* RCTRedBox.h */, - 13F17A841B8493E5007D4C75 /* RCTRedBox.m */, - FEFAAC9D1FDB89B40057BBE0 /* RCTRedBoxExtraDataViewController.h */, - FEFAAC9C1FDB89B40057BBE0 /* RCTRedBoxExtraDataViewController.m */, - 000E6CE91AB0E97F000CDF4D /* RCTSourceCode.h */, - 000E6CEA1AB0E980000CDF4D /* RCTSourceCode.m */, - 13723B4E1A82FD3C00F88898 /* RCTStatusBarManager.h */, - 13723B4F1A82FD3C00F88898 /* RCTStatusBarManager.m */, - 589515DF2231AD9C0036BDE0 /* RCTSurfacePresenterStub.h */, - 0EEEA8DE2239002200A8C82D /* RCTSurfacePresenterStub.m */, - 13B07FED1A69327A00A75B9A /* RCTTiming.h */, - 13B07FEE1A69327A00A75B9A /* RCTTiming.m */, - 13E067481A70F434002CDEE1 /* RCTUIManager.h */, - 13E067491A70F434002CDEE1 /* RCTUIManager.m */, - 59EB6DB91EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h */, - 59EB6DBA1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.mm */, - 59500D411F71C63700B122B7 /* RCTUIManagerUtils.h */, - 59500D421F71C63F00B122B7 /* RCTUIManagerUtils.m */, - ); - path = Modules; - sourceTree = ""; - }; - 13B07FF31A6947C200A75B9A /* Views */ = { - isa = PBXGroup; - children = ( - 50E98FE721460B0D00CD9289 /* RCTWKWebView.h */, - 50E98FE821460B0D00CD9289 /* RCTWKWebView.m */, - 50E98FE921460B0D00CD9289 /* RCTWKWebViewManager.h */, - 50E98FE621460B0D00CD9289 /* RCTWKWebViewManager.m */, - B95154301D1B34B200FE7B80 /* RCTActivityIndicatorView.h */, - B95154311D1B34B200FE7B80 /* RCTActivityIndicatorView.m */, - 13B080181A69489C00A75B9A /* RCTActivityIndicatorViewManager.h */, - 13B080191A69489C00A75B9A /* RCTActivityIndicatorViewManager.m */, - 13442BF21AA90E0B0037E5B0 /* RCTAnimationType.h */, - 13C325261AA63B6A0048765F /* RCTAutoInsetsProtocol.h */, - 13CC8A801B17642100940AE7 /* RCTBorderDrawing.h */, - 13CC8A811B17642100940AE7 /* RCTBorderDrawing.m */, - ACDD3FDA1BC7430D00E7DE33 /* RCTBorderStyle.h */, - 13C325281AA63B6A0048765F /* RCTComponent.h */, - 13AB90BF1B6FA36700713B4F /* RCTComponentData.h */, - 13AB90C01B6FA36700713B4F /* RCTComponentData.m */, - 13456E911ADAD2DE009F94A7 /* RCTConvert+CoreLocation.h */, - 13456E921ADAD2DE009F94A7 /* RCTConvert+CoreLocation.m */, - 130443C31E401A8C00D93A67 /* RCTConvert+Transform.h */, - 130443C41E401A8C00D93A67 /* RCTConvert+Transform.m */, - 133CAE8C1B8E5CFD00F6AD92 /* RCTDatePicker.h */, - 133CAE8D1B8E5CFD00F6AD92 /* RCTDatePicker.m */, - 58C571C01AA56C1900CDF9C8 /* RCTDatePickerManager.h */, - 58C571BF1AA56C1900CDF9C8 /* RCTDatePickerManager.m */, - 3D37B5801D522B190042D5B5 /* RCTFont.h */, - 3D37B5811D522B190042D5B5 /* RCTFont.mm */, - 591F78D9202ADB22004A668C /* RCTLayout.h */, - 591F78D8202ADB21004A668C /* RCTLayout.m */, - 66CD94AD1F1045E700CB3C7C /* RCTMaskedView.h */, - 66CD94AE1F1045E700CB3C7C /* RCTMaskedView.m */, - 66CD94AF1F1045E700CB3C7C /* RCTMaskedViewManager.h */, - 66CD94B01F1045E700CB3C7C /* RCTMaskedViewManager.m */, - 83A1FE8A1B62640A00BE0E65 /* RCTModalHostView.h */, - 83A1FE8B1B62640A00BE0E65 /* RCTModalHostView.m */, - 83392EB11B6634E10013B15F /* RCTModalHostViewController.h */, - 83392EB21B6634E10013B15F /* RCTModalHostViewController.m */, - 83A1FE8D1B62643A00BE0E65 /* RCTModalHostViewManager.h */, - 83A1FE8E1B62643A00BE0E65 /* RCTModalHostViewManager.m */, - 58114A121AAE854800E7D092 /* RCTPicker.h */, - 58114A131AAE854800E7D092 /* RCTPicker.m */, - 58114A141AAE854800E7D092 /* RCTPickerManager.h */, - 58114A151AAE854800E7D092 /* RCTPickerManager.m */, - 13442BF31AA90E0B0037E5B0 /* RCTPointerEvents.h */, - 13513F3A1B1F43F400FCE529 /* RCTProgressViewManager.h */, - 13513F3B1B1F43F400FCE529 /* RCTProgressViewManager.m */, - 191E3EBF1C29DC3800C180A6 /* RCTRefreshControl.h */, - 191E3EC01C29DC3800C180A6 /* RCTRefreshControl.m */, - 191E3EBC1C29D9AF00C180A6 /* RCTRefreshControlManager.h */, - 191E3EBD1C29D9AF00C180A6 /* RCTRefreshControlManager.m */, - 13BCE8071C99CB9D00DD7AAD /* RCTRootShadowView.h */, - 13BCE8081C99CB9D00DD7AAD /* RCTRootShadowView.m */, - 131B6AF01AF1093D00FFC3E0 /* RCTSegmentedControl.h */, - 131B6AF11AF1093D00FFC3E0 /* RCTSegmentedControl.m */, - 131B6AF21AF1093D00FFC3E0 /* RCTSegmentedControlManager.h */, - 131B6AF31AF1093D00FFC3E0 /* RCTSegmentedControlManager.m */, - 13E0674B1A70F44B002CDEE1 /* RCTShadowView.h */, - 5335D5401FE81A4700883D58 /* RCTShadowView.m */, - 597633351F4E021D005BE8A4 /* RCTShadowView+Internal.h */, - 597633341F4E021D005BE8A4 /* RCTShadowView+Internal.m */, - 590D7BFB1EBD458B00D8A370 /* RCTShadowView+Layout.h */, - 590D7BFC1EBD458B00D8A370 /* RCTShadowView+Layout.m */, - 13AF20431AE707F8005F5298 /* RCTSlider.h */, - 13AF20441AE707F9005F5298 /* RCTSlider.m */, - 14F484541AABFCE100FDF6B9 /* RCTSliderManager.h */, - 14F484551AABFCE100FDF6B9 /* RCTSliderManager.m */, - 14F362071AABD06A001CE568 /* RCTSwitch.h */, - 14F362081AABD06A001CE568 /* RCTSwitch.m */, - 14F362091AABD06A001CE568 /* RCTSwitchManager.h */, - 14F3620A1AABD06A001CE568 /* RCTSwitchManager.m */, - E3BBC8EB1ADE6F47001BBD81 /* RCTTextDecorationLineType.h */, - 130443D61E401AD800D93A67 /* RCTTVView.h */, - 130443D71E401AD800D93A67 /* RCTTVView.m */, - 13E0674F1A70F44B002CDEE1 /* RCTView.h */, - 13E067501A70F44B002CDEE1 /* RCTView.m */, - 13E0674D1A70F44B002CDEE1 /* RCTViewManager.h */, - 13E0674E1A70F44B002CDEE1 /* RCTViewManager.m */, - 13C156011AB1A2840079392D /* RCTWebView.h */, - 13C156021AB1A2840079392D /* RCTWebView.m */, - 13C156031AB1A2840079392D /* RCTWebViewManager.h */, - 13C156041AB1A2840079392D /* RCTWebViewManager.m */, - 13B080231A694A8400A75B9A /* RCTWrapperViewController.h */, - 13B080241A694A8400A75B9A /* RCTWrapperViewController.m */, - 59D031E41F8353D3008361F0 /* SafeAreaView */, - 59EDBC9B1FDF4E0C003573DE /* ScrollView */, - 83F15A171B7CC46900F10295 /* UIView+Private.h */, - 13E067531A70F44B002CDEE1 /* UIView+React.h */, - 13E067541A70F44B002CDEE1 /* UIView+React.m */, - ); - path = Views; - sourceTree = ""; - }; - 1450FF7F1BCFF28A00208362 /* Profiler */ = { - isa = PBXGroup; - children = ( - 14F7A0EE1BDA714B003C6C10 /* RCTFPSGraph.h */, - 14F7A0EF1BDA714B003C6C10 /* RCTFPSGraph.m */, - 14BF71811C04795500C97D0C /* RCTMacros.h */, - 14F7A0EB1BDA3B3C003C6C10 /* RCTPerfMonitor.m */, - 1450FF801BCFF28A00208362 /* RCTProfile.h */, - 1450FF811BCFF28A00208362 /* RCTProfile.m */, - 1450FF821BCFF28A00208362 /* RCTProfileTrampoline-arm.S */, - 1450FF831BCFF28A00208362 /* RCTProfileTrampoline-arm64.S */, - 14BF717F1C04793D00C97D0C /* RCTProfileTrampoline-i386.S */, - 1450FF851BCFF28A00208362 /* RCTProfileTrampoline-x86_64.S */, - ); - path = Profiler; - sourceTree = ""; - }; - 3D10A3C71DDF3CED004A0F9D /* ReactCommon */ = { - isa = PBXGroup; - children = ( - EDEBC73C214B463000DD5AC8 /* jsiexecutor */, - EDEBC6D8214B3F6800DD5AC8 /* jsi */, - AC70D2EA1DE489FC002E6351 /* cxxreact */, - EBF21BB91FC497DA0052F4D5 /* jsinspector */, - ); - name = ReactCommon; - path = "../js/react-native-github/ReactCommon"; - sourceTree = ""; - }; - 3D1FA0781DE4F2CD00E03CC6 /* Libraries */ = { - isa = PBXGroup; - children = ( - 3D1FA0821DE4F36600E03CC6 /* Image */, - 3D1FA0891DE4F4B900E03CC6 /* LinkingIOS */, - 3D1FA0791DE4F2D200E03CC6 /* Network */, - 3D1FA08A1DE4F4D600E03CC6 /* PushNotificationIOS */, - 3D7BFD2A1EA8E3D3008DFB7A /* WebSocket */, - ); - name = Libraries; - path = "../js/react-native-github/Libraries"; - sourceTree = ""; - }; - 3D1FA0791DE4F2D200E03CC6 /* Network */ = { - isa = PBXGroup; - children = ( - 3D1FA07A1DE4F2EA00E03CC6 /* RCTNetworking.h */, - 3D1FA07B1DE4F2EA00E03CC6 /* RCTNetworkTask.h */, - ); - path = Network; - sourceTree = ""; - }; - 3D1FA0821DE4F36600E03CC6 /* Image */ = { - isa = PBXGroup; - children = ( - 3D1FA0831DE4F3A000E03CC6 /* RCTImageLoader.h */, - 3D1FA0841DE4F3A000E03CC6 /* RCTImageStoreManager.h */, - 3D1FA0851DE4F3A000E03CC6 /* RCTResizeMode.h */, - ); - path = Image; - sourceTree = ""; - }; - 3D1FA0891DE4F4B900E03CC6 /* LinkingIOS */ = { - isa = PBXGroup; - children = ( - 3D1FA08B1DE4F4DD00E03CC6 /* RCTLinkingManager.h */, - ); - path = LinkingIOS; - sourceTree = ""; - }; - 3D1FA08A1DE4F4D600E03CC6 /* PushNotificationIOS */ = { - isa = PBXGroup; - children = ( - 3D1FA08D1DE4F4EE00E03CC6 /* RCTPushNotificationManager.h */, - ); - name = PushNotificationIOS; - sourceTree = ""; - }; - 3D7BFD0A1EA8E2D1008DFB7A /* DevSupport */ = { - isa = PBXGroup; - children = ( - 657734821EE834C900A0E9EA /* RCTInspectorDevServerHelper.h */, - 657734831EE834C900A0E9EA /* RCTInspectorDevServerHelper.mm */, - 13A0C2851B74F71200B29F6F /* RCTDevLoadingView.h */, - 13A0C2861B74F71200B29F6F /* RCTDevLoadingView.m */, - 13A0C2871B74F71200B29F6F /* RCTDevMenu.h */, - 13A0C2881B74F71200B29F6F /* RCTDevMenu.m */, - 3D7BFD0B1EA8E351008DFB7A /* RCTPackagerClient.h */, - 3D7BFD0C1EA8E351008DFB7A /* RCTPackagerClient.m */, - 3D7BFD0F1EA8E351008DFB7A /* RCTPackagerConnection.h */, - 3D7BFD101EA8E351008DFB7A /* RCTPackagerConnection.mm */, - ); - path = DevSupport; - sourceTree = ""; - }; - 3D7BFD2A1EA8E3D3008DFB7A /* WebSocket */ = { - isa = PBXGroup; - children = ( - 3D0E37891F1CC40000DCAC9F /* RCTWebSocketModule.h */, - 3D7BFD2B1EA8E3FA008DFB7A /* RCTReconnectingWebSocket.h */, - 3D7BFD2C1EA8E3FA008DFB7A /* RCTSRWebSocket.h */, - ); - name = WebSocket; - sourceTree = ""; - }; - 3D92B1151E036A690018521A /* ThirdParty */ = { - isa = PBXGroup; - children = ( - 139D849B1E2739EC00323FB7 /* folly */, - 139D7ED71E25DB9200323FB7 /* glog */, - 139D7E381E25C55B00323FB7 /* double-conversion */, - ); - name = ThirdParty; - sourceTree = ""; - }; - 53D123821FBF1D49001B8A10 /* Frameworks */ = { - isa = PBXGroup; - children = ( - EDEBC757214C284000DD5AC8 /* JavaScriptCore.framework */, - 53D123831FBF1D49001B8A10 /* libyoga.a */, - 6D4C7FAF2249479200CBB1EC /* libYogaDev.a */, - 6D4C7F85224946B900CBB1EC /* libYogaDev.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - 594F0A2E1FD23228007FBE96 /* SurfaceHostingView */ = { - isa = PBXGroup; - children = ( - 594F0A2F1FD23228007FBE96 /* RCTSurfaceHostingView.h */, - 594F0A301FD23228007FBE96 /* RCTSurfaceHostingView.mm */, - 594F0A311FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h */, - 5925356920084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm */, - ); - path = SurfaceHostingView; - sourceTree = ""; - }; - 599FAA291FB274970058CCF6 /* Surface */ = { - isa = PBXGroup; - children = ( - 599FAA2A1FB274970058CCF6 /* RCTSurface.h */, - 599FAA2B1FB274970058CCF6 /* RCTSurface.mm */, - 599FAA2C1FB274970058CCF6 /* RCTSurfaceDelegate.h */, - 599FAA2D1FB274970058CCF6 /* RCTSurfaceRootShadowView.h */, - 599FAA2E1FB274970058CCF6 /* RCTSurfaceRootShadowView.m */, - 599FAA2F1FB274970058CCF6 /* RCTSurfaceRootShadowViewDelegate.h */, - 599FAA301FB274970058CCF6 /* RCTSurfaceRootView.h */, - 599FAA311FB274970058CCF6 /* RCTSurfaceRootView.mm */, - 599FAA321FB274970058CCF6 /* RCTSurfaceStage.h */, - 59283C9F1FD67320000EAAB9 /* RCTSurfaceStage.m */, - 599FAA341FB274970058CCF6 /* RCTSurfaceView.h */, - 599FAA351FB274970058CCF6 /* RCTSurfaceView.mm */, - 599FAA331FB274970058CCF6 /* RCTSurfaceView+Internal.h */, - 594F0A2E1FD23228007FBE96 /* SurfaceHostingView */, - ); - path = Surface; - sourceTree = ""; - }; - 59D031E41F8353D3008361F0 /* SafeAreaView */ = { - isa = PBXGroup; - children = ( - 59D031E51F8353D3008361F0 /* RCTSafeAreaShadowView.h */, - 59D031E61F8353D3008361F0 /* RCTSafeAreaShadowView.m */, - 59D031E71F8353D3008361F0 /* RCTSafeAreaView.h */, - 59D031E81F8353D3008361F0 /* RCTSafeAreaView.m */, - 59D031E91F8353D3008361F0 /* RCTSafeAreaViewLocalData.h */, - 59D031EA1F8353D3008361F0 /* RCTSafeAreaViewLocalData.m */, - 59D031EB1F8353D3008361F0 /* RCTSafeAreaViewManager.h */, - 59D031EC1F8353D3008361F0 /* RCTSafeAreaViewManager.m */, - ); - path = SafeAreaView; - sourceTree = ""; - }; - 59EDBC9B1FDF4E0C003573DE /* ScrollView */ = { - isa = PBXGroup; - children = ( - 59EDBC9C1FDF4E0C003573DE /* RCTScrollableProtocol.h */, - 59E6049C1FE9CCE100BD90C5 /* RCTScrollContentShadowView.h */, - 59E6049E1FE9CCE200BD90C5 /* RCTScrollContentShadowView.m */, - 59EDBC9F1FDF4E0C003573DE /* RCTScrollContentView.h */, - 59EDBCA01FDF4E0C003573DE /* RCTScrollContentView.m */, - 59E6049F1FE9CCE200BD90C5 /* RCTScrollContentViewManager.h */, - 59E6049D1FE9CCE200BD90C5 /* RCTScrollContentViewManager.m */, - 59EDBCA31FDF4E0C003573DE /* RCTScrollView.h */, - 59EDBCA41FDF4E0C003573DE /* RCTScrollView.m */, - 59EDBCA51FDF4E0C003573DE /* RCTScrollViewManager.h */, - 59EDBCA61FDF4E0C003573DE /* RCTScrollViewManager.m */, - ); - path = ScrollView; - sourceTree = ""; - }; - 657734881EE8352500A0E9EA /* Inspector */ = { - isa = PBXGroup; - children = ( - 6577348A1EE8354A00A0E9EA /* RCTInspector.h */, - 6577348B1EE8354A00A0E9EA /* RCTInspector.mm */, - 6577348C1EE8354A00A0E9EA /* RCTInspectorPackagerConnection.h */, - 6577348D1EE8354A00A0E9EA /* RCTInspectorPackagerConnection.m */, - ); - name = Inspector; - sourceTree = ""; - }; - 83CBB9F61A601CBA00E9B192 = { - isa = PBXGroup; - children = ( - 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */, - 83CBBA2F1A601D0F00E9B192 /* React */, - 3D10A3C71DDF3CED004A0F9D /* ReactCommon */, - 3D1FA0781DE4F2CD00E03CC6 /* Libraries */, - 3D92B1151E036A690018521A /* ThirdParty */, - 83CBBA001A601CBA00E9B192 /* Products */, - 53D123821FBF1D49001B8A10 /* Frameworks */, - ); - indentWidth = 2; - sourceTree = ""; - tabWidth = 2; - usesTabs = 0; - }; - 83CBBA001A601CBA00E9B192 /* Products */ = { - isa = PBXGroup; - children = ( - 83CBBA2E1A601D0E00E9B192 /* libReact.a */, - 2D2A28131D9B038B00D4039D /* libReact.a */, - 3D3CD9251DE5FBEC00167DC4 /* libcxxreact.a */, - 3D3CD9321DE5FBEE00167DC4 /* libcxxreact.a */, - 139D7E881E25C6D100323FB7 /* libdouble-conversion.a */, - 139D7ECE1E25DB7D00323FB7 /* libthird-party.a */, - 3D383D3C1EBD27B6005632C8 /* libthird-party.a */, - 3D383D621EBD27B9005632C8 /* libdouble-conversion.a */, - EBF21BDC1FC498900052F4D5 /* libjsinspector.a */, - EBF21BFA1FC4989A0052F4D5 /* libjsinspector-tvOS.a */, - EDEBC6D6214B3E7000DD5AC8 /* libjsi.a */, - EDEBC73B214B45A300DD5AC8 /* libjsiexecutor.a */, - ED296FB6214C9A0900B7C4FE /* libjsi-tvOS.a */, - ED296FEE214C9CF800B7C4FE /* libjsiexecutor-tvOS.a */, - ); - name = Products; - sourceTree = ""; - }; - 83CBBA2F1A601D0F00E9B192 /* React */ = { - isa = PBXGroup; - children = ( - 83CBBA491A601E3B00E9B192 /* Base */, - 13134C721E296B2A00B9F3CB /* CxxBridge */, - 13134C7D1E296B2A00B9F3CB /* CxxModule */, - 1304439E1E3FEA8B00D93A67 /* CxxUtils */, - 3D7BFD0A1EA8E2D1008DFB7A /* DevSupport */, - 657734881EE8352500A0E9EA /* Inspector */, - 13B07FE01A69315300A75B9A /* Modules */, - 1450FF7F1BCFF28A00208362 /* Profiler */, - F1EFDA4D201F660F00EE6E4C /* UIUtils */, - 13B07FF31A6947C200A75B9A /* Views */, - ); - name = React; - path = "../js/react-native-github/React"; - sourceTree = ""; - }; - 83CBBA491A601E3B00E9B192 /* Base */ = { - isa = PBXGroup; - children = ( - 83CBBA4A1A601E3B00E9B192 /* RCTAssert.h */, - 83CBBA4B1A601E3B00E9B192 /* RCTAssert.m */, - 83CBBA5E1A601EAA00E9B192 /* RCTBridge.h */, - 83CBBA5F1A601EAA00E9B192 /* RCTBridge.m */, - 14A43DB81C1F849600794BC8 /* RCTBridge+Private.h */, - 1482F9E61B55B927000ADFF3 /* RCTBridgeDelegate.h */, - 13AFBCA11C07287B00BBAEAA /* RCTBridgeMethod.h */, - 830213F31A654E0800B993E6 /* RCTBridgeModule.h */, - 68EFE4EC1CF6EB3000A1DE13 /* RCTBundleURLProvider.h */, - 68EFE4ED1CF6EB3900A1DE13 /* RCTBundleURLProvider.m */, - 83CBBACA1A6023D300E9B192 /* RCTConvert.h */, - 83CBBACB1A6023D300E9B192 /* RCTConvert.m */, - C60128A91F3D1258009DF9FF /* RCTCxxConvert.h */, - C60128AA1F3D1258009DF9FF /* RCTCxxConvert.m */, - 13AF1F851AE6E777005F5298 /* RCTDefines.h */, - 3D1E68D81CABD13900DD7465 /* RCTDisplayLink.h */, - 3D1E68D91CABD13900DD7465 /* RCTDisplayLink.m */, - 3EDCA8A21D3591E700450C31 /* RCTErrorCustomizer.h */, - 3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */, - 3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */, - 83CBBA651A601EF300E9B192 /* RCTEventDispatcher.h */, - 83CBBA661A601EF300E9B192 /* RCTEventDispatcher.m */, - 1436DD071ADE7AA000A5ED7D /* RCTFrameUpdate.h */, - 14C2CA751B3AC64F00E6CBB2 /* RCTFrameUpdate.m */, - 13BB3D001BECD54500932C10 /* RCTImageSource.h */, - 13BB3D011BECD54500932C10 /* RCTImageSource.m */, - 83CBBA4C1A601E3B00E9B192 /* RCTInvalidating.h */, - 83CBBA631A601ECA00E9B192 /* RCTJavaScriptExecutor.h */, - 14200DA81AC179B3008EE6BA /* RCTJavaScriptLoader.h */, - AC70D2E81DE489E4002E6351 /* RCTJavaScriptLoader.mm */, - 008341F51D1DB34400876D9A /* RCTJSStackFrame.h */, - 008341F41D1DB34400876D9A /* RCTJSStackFrame.m */, - 13A1F71C1A75392D00D3D453 /* RCTKeyCommands.h */, - 13A1F71D1A75392D00D3D453 /* RCTKeyCommands.m */, - 83CBBA4D1A601E3B00E9B192 /* RCTLog.h */, - 83CBBA4E1A601E3B00E9B192 /* RCTLog.mm */, - C654505D1F3BD9280090799B /* RCTManagedPointer.h */, - C60669351F3CCF1B00E67165 /* RCTManagedPointer.mm */, - 14C2CA721B3AC64300E6CBB2 /* RCTModuleData.h */, - 14C2CA731B3AC64300E6CBB2 /* RCTModuleData.mm */, - 14C2CA6F1B3AC63800E6CBB2 /* RCTModuleMethod.h */, - C606692D1F3CC60500E67165 /* RCTModuleMethod.mm */, - 006FC4121D9B20820057AAAD /* RCTMultipartDataTask.h */, - 006FC4131D9B20820057AAAD /* RCTMultipartDataTask.m */, - 001BFCCE1D8381DE008E587E /* RCTMultipartStreamReader.h */, - 001BFCCF1D8381DE008E587E /* RCTMultipartStreamReader.m */, - 13A6E20F1C19ABC700845B82 /* RCTNullability.h */, - 13A6E20C1C19AA0C00845B82 /* RCTParserUtils.h */, - 13A6E20D1C19AA0C00845B82 /* RCTParserUtils.m */, - 142014181B32094000CC17BA /* RCTPerformanceLogger.h */, - 142014171B32094000CC17BA /* RCTPerformanceLogger.m */, - 3D7749421DC1065C007EC8D8 /* RCTPlatform.h */, - 3D7749431DC1065C007EC8D8 /* RCTPlatform.m */, - A2440AA01DF8D854006E7BFC /* RCTReloadCommand.h */, - A2440AA11DF8D854006E7BFC /* RCTReloadCommand.m */, - 59A7B9FB1E577DBF0068EDBF /* RCTRootContentView.h */, - 59A7B9FC1E577DBF0068EDBF /* RCTRootContentView.m */, - 830A229C1A66C68A008503DA /* RCTRootView.h */, - 830A229D1A66C68A008503DA /* RCTRootView.m */, - 13AFBCA21C07287B00BBAEAA /* RCTRootViewDelegate.h */, - 6A15FB0C1BDF663500531DFB /* RCTRootViewInternal.h */, - 391E86A31C623EC800009732 /* RCTTouchEvent.h */, - 391E86A21C623EC800009732 /* RCTTouchEvent.m */, - 83CBBA961A6020BB00E9B192 /* RCTTouchHandler.h */, - 83CBBA971A6020BB00E9B192 /* RCTTouchHandler.m */, - 3D0B84281EC0B49400B2BD8E /* RCTTVRemoteHandler.h */, - 3D0B84291EC0B49400B2BD8E /* RCTTVRemoteHandler.m */, - 1345A83A1B265A0E00583190 /* RCTURLRequestDelegate.h */, - 1345A83B1B265A0E00583190 /* RCTURLRequestHandler.h */, - 83CBBA4F1A601E3B00E9B192 /* RCTUtils.h */, - 83CBBA501A601E3B00E9B192 /* RCTUtils.m */, - 199B8A6E1F44DB16005DEF67 /* RCTVersion.h */, - 39C50FFA2046EE3500CEE534 /* RCTVersion.m */, - 599FAA291FB274970058CCF6 /* Surface */, - ); - path = Base; - sourceTree = ""; - }; - AC70D2EA1DE489FC002E6351 /* cxxreact */ = { - isa = PBXGroup; - children = ( - EDEBC750214B47E100DD5AC8 /* JSDeltaBundleClient.cpp */, - EDEBC751214B47E100DD5AC8 /* JSDeltaBundleClient.h */, - EDEBC752214B47E100DD5AC8 /* SharedProxyCxxModule.h */, - 13DA8A302097A90B00276ED4 /* ReactMarker.cpp */, - 13DA8A2F2097A90A00276ED4 /* ReactMarker.h */, - E223624320875A8000108244 /* JSExecutor.cpp */, - 3D92B0A71E03699D0018521A /* CxxModule.h */, - 3D92B0A81E03699D0018521A /* CxxNativeModule.cpp */, - 3D92B0A91E03699D0018521A /* CxxNativeModule.h */, - 3D92B0AE1E03699D0018521A /* Instance.cpp */, - 3D92B0AF1E03699D0018521A /* Instance.h */, - 3D92B0B01E03699D0018521A /* JsArgumentHelpers-inl.h */, - 3D92B0B11E03699D0018521A /* JsArgumentHelpers.h */, - 27B958731E57587D0096647A /* JSBigString.cpp */, - 3D7454781E54757500E74ADD /* JSBigString.h */, - AC70D2EB1DE48A22002E6351 /* JSBundleType.cpp */, - 3D3CD8F51DE5FB2300167DC4 /* JSBundleType.h */, - 3D92B0AB1E03699D0018521A /* JSExecutor.h */, - 3D92B0C61E03699D0018521A /* JSIndexedRAMBundle.cpp */, - 3D92B0C71E03699D0018521A /* JSIndexedRAMBundle.h */, - 3D92B0C81E03699D0018521A /* JSModulesUnbundle.h */, - 3D92B0C91E03699D0018521A /* MessageQueueThread.h */, - 3D92B0CA1E03699D0018521A /* MethodCall.cpp */, - 3D92B0CB1E03699D0018521A /* MethodCall.h */, - 3D92B0CC1E03699D0018521A /* ModuleRegistry.cpp */, - 3D92B0CD1E03699D0018521A /* ModuleRegistry.h */, - 3D92B0CE1E03699D0018521A /* NativeModule.h */, - 3D92B0CF1E03699D0018521A /* NativeToJsBridge.cpp */, - 3D92B0D01E03699D0018521A /* NativeToJsBridge.h */, - C6D380191F71D75B00621378 /* RAMBundleRegistry.cpp */, - C6D380181F71D75B00621378 /* RAMBundleRegistry.h */, - 3D7454791E54757500E74ADD /* RecoverableError.h */, - 3D92B0D31E03699D0018521A /* SampleCxxModule.cpp */, - 3D92B0D41E03699D0018521A /* SampleCxxModule.h */, - 3D92B0D51E03699D0018521A /* SystraceSection.h */, - ); - path = cxxreact; - sourceTree = ""; - }; - EBF21BB91FC497DA0052F4D5 /* jsinspector */ = { - isa = PBXGroup; - children = ( - EBF21BBB1FC498270052F4D5 /* InspectorInterfaces.cpp */, - EBF21BBA1FC498270052F4D5 /* InspectorInterfaces.h */, - ); - path = jsinspector; - sourceTree = ""; - }; - ED6189662155BBDD0000C9A7 /* jsireact */ = { - isa = PBXGroup; - children = ( - EDDA711C2164285A00B2D070 /* JSIExecutor.cpp */, - EDDA711B2164285A00B2D070 /* JSINativeModules.cpp */, - ED6189672155BBF70000C9A7 /* JSIExecutor.h */, - ED6189682155BBF70000C9A7 /* JSINativeModules.h */, - ); - name = jsireact; - sourceTree = ""; - }; - EDEBC6D8214B3F6800DD5AC8 /* jsi */ = { - isa = PBXGroup; - children = ( - EDEBC6D9214B3F6800DD5AC8 /* jsi-inl.h */, - EDEBC6DA214B3F6800DD5AC8 /* JSIDynamic.cpp */, - EDEBC6DB214B3F6800DD5AC8 /* jsi.cpp */, - EDEBC6DC214B3F6800DD5AC8 /* JSIDynamic.h */, - EDEBC6DD214B3F6800DD5AC8 /* JSCRuntime.cpp */, - EDEBC6DE214B3F6800DD5AC8 /* JSCRuntime.h */, - EDEBC6DF214B3F6800DD5AC8 /* BUCK */, - EDEBC6E0214B3F6800DD5AC8 /* instrumentation.h */, - EDEBC6E1214B3F6800DD5AC8 /* jsi.h */, - 4F56C93722167A4800DB9F3F /* jsilib.h */, - ); - path = jsi; - sourceTree = ""; - }; - EDEBC73C214B463000DD5AC8 /* jsiexecutor */ = { - isa = PBXGroup; - children = ( - ED6189662155BBDD0000C9A7 /* jsireact */, - EDEBC740214B463000DD5AC8 /* BUCK */, - ); - path = jsiexecutor; - sourceTree = ""; - }; - F1EFDA4D201F660F00EE6E4C /* UIUtils */ = { - isa = PBXGroup; - children = ( - F1EFDA4F201F660F00EE6E4C /* RCTUIUtils.h */, - F1EFDA4E201F660F00EE6E4C /* RCTUIUtils.m */, - ); - path = UIUtils; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 139D7EA41E25C7BD00323FB7 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 139D7EA51E25C85300323FB7 /* bignum-dtoa.h in Headers */, - 139D7EA61E25C85300323FB7 /* bignum.h in Headers */, - 139D7EA71E25C85300323FB7 /* cached-powers.h in Headers */, - 139D7EA81E25C85300323FB7 /* diy-fp.h in Headers */, - 139D7EA91E25C85300323FB7 /* double-conversion.h in Headers */, - 139D7EAA1E25C85300323FB7 /* fast-dtoa.h in Headers */, - 139D7EAB1E25C85300323FB7 /* fixed-dtoa.h in Headers */, - 139D7EAC1E25C85300323FB7 /* ieee.h in Headers */, - 139D7EAD1E25C85300323FB7 /* strtod.h in Headers */, - 139D7EAE1E25C85300323FB7 /* utils.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D302F231DF828D100D6DDAE /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 3DA982391E5B0F8A004F2374 /* UIView+Private.h in Headers */, - 13134C8D1E296B2A00B9F3CB /* RCTMessageThread.h in Headers */, - 130443DE1E401B0D00D93A67 /* RCTTVView.h in Headers */, - 3D7AA9C51E548CDB001955CF /* NSDataBigString.h in Headers */, - 5960C1BA1F0804A00066FD5B /* RCTLayoutAnimationGroup.h in Headers */, - 13134C991E296B2A00B9F3CB /* RCTCxxMethod.h in Headers */, - 3D302F471DF828F800D6DDAE /* RCTPlatform.h in Headers */, - 13134C951E296B2A00B9F3CB /* RCTObjcExecutor.h in Headers */, - 590D7BFE1EBD458B00D8A370 /* RCTShadowView+Layout.h in Headers */, - 13134C9D1E296B2A00B9F3CB /* RCTCxxModule.h in Headers */, - 66CD94B61F1045E700CB3C7C /* RCTMaskedViewManager.h in Headers */, - 130443A31E3FEAAE00D93A67 /* RCTFollyConvert.h in Headers */, - 3D7BFD1E1EA8E351008DFB7A /* RCTPackagerConnection.h in Headers */, - 3D302F241DF828F800D6DDAE /* RCTImageLoader.h in Headers */, - 3D302F251DF828F800D6DDAE /* RCTImageStoreManager.h in Headers */, - C60128AC1F3D1258009DF9FF /* RCTCxxConvert.h in Headers */, - 3D302F261DF828F800D6DDAE /* RCTResizeMode.h in Headers */, - 3D302F271DF828F800D6DDAE /* RCTLinkingManager.h in Headers */, - 3D7BFD161EA8E351008DFB7A /* RCTPackagerClient.h in Headers */, - 3D302F281DF828F800D6DDAE /* RCTNetworking.h in Headers */, - 3D302F291DF828F800D6DDAE /* RCTNetworkTask.h in Headers */, - 3D7BFD2E1EA8E3FA008DFB7A /* RCTReconnectingWebSocket.h in Headers */, - 3D302F2A1DF828F800D6DDAE /* RCTPushNotificationManager.h in Headers */, - 3D302F2B1DF828F800D6DDAE /* RCTAssert.h in Headers */, - 3D302F2C1DF828F800D6DDAE /* RCTBridge.h in Headers */, - 3D302F2D1DF828F800D6DDAE /* RCTBridge+Private.h in Headers */, - 3D302F2E1DF828F800D6DDAE /* RCTBridgeDelegate.h in Headers */, - 3D302F2F1DF828F800D6DDAE /* RCTBridgeMethod.h in Headers */, - 130E3D8A1E6A083600ACE484 /* RCTDevSettings.h in Headers */, - 8507BBC121EDACC200AEAFCA /* JSCExecutorFactory.h in Headers */, - 3D0E378E1F1CC59100DCAC9F /* RCTWebSocketModule.h in Headers */, - 3D302F301DF828F800D6DDAE /* RCTBridgeModule.h in Headers */, - 3D302F311DF828F800D6DDAE /* RCTBundleURLProvider.h in Headers */, - 3D302F321DF828F800D6DDAE /* RCTConvert.h in Headers */, - 3D302F331DF828F800D6DDAE /* RCTDefines.h in Headers */, - 3D302F341DF828F800D6DDAE /* RCTDisplayLink.h in Headers */, - 3D302F351DF828F800D6DDAE /* RCTErrorCustomizer.h in Headers */, - 3D302F361DF828F800D6DDAE /* RCTErrorInfo.h in Headers */, - 3D302F371DF828F800D6DDAE /* RCTEventDispatcher.h in Headers */, - 594F0A371FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h in Headers */, - 3D302F381DF828F800D6DDAE /* RCTFrameUpdate.h in Headers */, - 3D302F391DF828F800D6DDAE /* RCTImageSource.h in Headers */, - 597633391F4E021D005BE8A4 /* RCTShadowView+Internal.h in Headers */, - 3D302F3A1DF828F800D6DDAE /* RCTInvalidating.h in Headers */, - 3D302F3B1DF828F800D6DDAE /* RCTJavaScriptExecutor.h in Headers */, - 59D031F61F8353D3008361F0 /* RCTSafeAreaViewLocalData.h in Headers */, - 3D302F3C1DF828F800D6DDAE /* RCTJavaScriptLoader.h in Headers */, - 3D302F3D1DF828F800D6DDAE /* RCTJSStackFrame.h in Headers */, - 599FAA491FB274980058CCF6 /* RCTSurfaceView+Internal.h in Headers */, - 59EDBCB61FDF4E0C003573DE /* RCTScrollView.h in Headers */, - 3D302F3E1DF828F800D6DDAE /* RCTKeyCommands.h in Headers */, - 599FAA411FB274980058CCF6 /* RCTSurfaceRootShadowViewDelegate.h in Headers */, - 3D302F3F1DF828F800D6DDAE /* RCTLog.h in Headers */, - 599FAA431FB274980058CCF6 /* RCTSurfaceRootView.h in Headers */, - 3D302F401DF828F800D6DDAE /* RCTModuleData.h in Headers */, - 5960C1B61F0804A00066FD5B /* RCTLayoutAnimation.h in Headers */, - 3D302F411DF828F800D6DDAE /* RCTModuleMethod.h in Headers */, - 3D302F421DF828F800D6DDAE /* RCTMultipartDataTask.h in Headers */, - 3D302F431DF828F800D6DDAE /* RCTMultipartStreamReader.h in Headers */, - 199B8A761F44DEDA005DEF67 /* RCTVersion.h in Headers */, - 3D302F441DF828F800D6DDAE /* RCTNullability.h in Headers */, - 3D302F451DF828F800D6DDAE /* RCTParserUtils.h in Headers */, - 3D302F461DF828F800D6DDAE /* RCTPerformanceLogger.h in Headers */, - 3D302F481DF828F800D6DDAE /* RCTRootView.h in Headers */, - 3D302F491DF828F800D6DDAE /* RCTRootViewDelegate.h in Headers */, - 3D302F4A1DF828F800D6DDAE /* RCTRootViewInternal.h in Headers */, - 3D302F4B1DF828F800D6DDAE /* RCTTouchEvent.h in Headers */, - 591F78DD202ADB22004A668C /* RCTLayout.h in Headers */, - 59D031F21F8353D3008361F0 /* RCTSafeAreaView.h in Headers */, - 3D302F4C1DF828F800D6DDAE /* RCTTouchHandler.h in Headers */, - 3D302F4D1DF828F800D6DDAE /* RCTURLRequestDelegate.h in Headers */, - 3D302F4E1DF828F800D6DDAE /* RCTURLRequestHandler.h in Headers */, - 59500D441F71C63F00B122B7 /* RCTUIManagerUtils.h in Headers */, - 3D302F4F1DF828F800D6DDAE /* RCTUtils.h in Headers */, - E7711C7A2238455400FCF26D /* RCTSurfacePresenterStub.h in Headers */, - 59D031FA1F8353D3008361F0 /* RCTSafeAreaViewManager.h in Headers */, - 3D302F551DF828F800D6DDAE /* RCTAccessibilityManager.h in Headers */, - 3D302F561DF828F800D6DDAE /* RCTAlertManager.h in Headers */, - 3D302F571DF828F800D6DDAE /* RCTAppState.h in Headers */, - 3D302F581DF828F800D6DDAE /* RCTAsyncLocalStorage.h in Headers */, - 59D031EE1F8353D3008361F0 /* RCTSafeAreaShadowView.h in Headers */, - 3D302F591DF828F800D6DDAE /* RCTClipboard.h in Headers */, - 3D302F5A1DF828F800D6DDAE /* RCTDevLoadingView.h in Headers */, - 59EDBCBA1FDF4E0C003573DE /* RCTScrollViewManager.h in Headers */, - 3D0B842A1EC0B49400B2BD8E /* RCTTVRemoteHandler.h in Headers */, - 3D302F5B1DF828F800D6DDAE /* RCTDevMenu.h in Headers */, - 657734921EE8356100A0E9EA /* RCTInspector.h in Headers */, - 3D302F5C1DF828F800D6DDAE /* RCTEventEmitter.h in Headers */, - 3D302F5D1DF828F800D6DDAE /* RCTExceptionsManager.h in Headers */, - 599FAA4B1FB274980058CCF6 /* RCTSurfaceView.h in Headers */, - 599FAA3D1FB274980058CCF6 /* RCTSurfaceRootShadowView.h in Headers */, - 3D302F5E1DF828F800D6DDAE /* RCTI18nManager.h in Headers */, - 3D302F5F1DF828F800D6DDAE /* RCTI18nUtil.h in Headers */, - 3D302F601DF828F800D6DDAE /* RCTKeyboardObserver.h in Headers */, - 3D302F611DF828F800D6DDAE /* RCTRedBox.h in Headers */, - 3D302F621DF828F800D6DDAE /* RCTSourceCode.h in Headers */, - 3D302F631DF828F800D6DDAE /* RCTStatusBarManager.h in Headers */, - 3DCE52F31FEAB10600613583 /* RCTRedBoxExtraDataViewController.h in Headers */, - 3D302F641DF828F800D6DDAE /* RCTTiming.h in Headers */, - 3D302F651DF828F800D6DDAE /* RCTUIManager.h in Headers */, - 599FAA3B1FB274980058CCF6 /* RCTSurfaceDelegate.h in Headers */, - 3D302F661DF828F800D6DDAE /* RCTFPSGraph.h in Headers */, - 3D302F681DF828F800D6DDAE /* RCTMacros.h in Headers */, - 3D302F691DF828F800D6DDAE /* RCTProfile.h in Headers */, - 3D302F6A1DF828F800D6DDAE /* RCTActivityIndicatorView.h in Headers */, - 3D302F6B1DF828F800D6DDAE /* RCTActivityIndicatorViewManager.h in Headers */, - 3D7BFD301EA8E3FA008DFB7A /* RCTSRWebSocket.h in Headers */, - 59EDBCA81FDF4E0C003573DE /* RCTScrollableProtocol.h in Headers */, - 3D302F6C1DF828F800D6DDAE /* RCTAnimationType.h in Headers */, - 657734871EE834E000A0E9EA /* RCTInspectorDevServerHelper.h in Headers */, - 3D302F6D1DF828F800D6DDAE /* RCTAutoInsetsProtocol.h in Headers */, - 3D302F6E1DF828F800D6DDAE /* RCTBorderDrawing.h in Headers */, - 3D302F6F1DF828F800D6DDAE /* RCTBorderStyle.h in Headers */, - 3D302F701DF828F800D6DDAE /* RCTComponent.h in Headers */, - 3D302F711DF828F800D6DDAE /* RCTComponentData.h in Headers */, - 3D302F721DF828F800D6DDAE /* RCTConvert+CoreLocation.h in Headers */, - 3D302F761DF828F800D6DDAE /* RCTFont.h in Headers */, - 3D302F7B1DF828F800D6DDAE /* RCTModalHostView.h in Headers */, - 1384E20A1E806D5700545659 /* RCTNativeModule.h in Headers */, - 3D302F7C1DF828F800D6DDAE /* RCTModalHostViewController.h in Headers */, - 3D302F7D1DF828F800D6DDAE /* RCTModalHostViewManager.h in Headers */, - 594F0A331FD23228007FBE96 /* RCTSurfaceHostingView.h in Headers */, - 130443DD1E401AF500D93A67 /* RCTConvert+Transform.h in Headers */, - 134D63C41F1FEC65008872B5 /* RCTCxxBridgeDelegate.h in Headers */, - 3D302F841DF828F800D6DDAE /* RCTPointerEvents.h in Headers */, - 59EB6DBC1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h in Headers */, - 657734941EE8356100A0E9EA /* RCTInspectorPackagerConnection.h in Headers */, - 3D302F851DF828F800D6DDAE /* RCTProgressViewManager.h in Headers */, - 3D302F861DF828F800D6DDAE /* RCTRefreshControl.h in Headers */, - EBF21BBE1FC498630052F4D5 /* InspectorInterfaces.h in Headers */, - C654505F1F3BD9280090799B /* RCTManagedPointer.h in Headers */, - 3D302F871DF828F800D6DDAE /* RCTRefreshControlManager.h in Headers */, - A2440AA41DF8D865006E7BFC /* RCTReloadCommand.h in Headers */, - 3D302F881DF828F800D6DDAE /* RCTRootShadowView.h in Headers */, - CF2731C21E7B8DEF0044CA4F /* RCTDeviceInfo.h in Headers */, - 599FAA371FB274980058CCF6 /* RCTSurface.h in Headers */, - 3D302F8C1DF828F800D6DDAE /* RCTSegmentedControl.h in Headers */, - 66CD94B21F1045E700CB3C7C /* RCTMaskedView.h in Headers */, - 3D302F8D1DF828F800D6DDAE /* RCTSegmentedControlManager.h in Headers */, - 3D302F8E1DF828F800D6DDAE /* RCTShadowView.h in Headers */, - 59E604A11FE9CCE300BD90C5 /* RCTScrollContentShadowView.h in Headers */, - 3D302F8F1DF828F800D6DDAE /* RCTSlider.h in Headers */, - 3D302F901DF828F800D6DDAE /* RCTSliderManager.h in Headers */, - 3D302F911DF828F800D6DDAE /* RCTSwitch.h in Headers */, - 3D302F921DF828F800D6DDAE /* RCTSwitchManager.h in Headers */, - 59EDBCAE1FDF4E0C003573DE /* RCTScrollContentView.h in Headers */, - 59E604A71FE9CCE300BD90C5 /* RCTScrollContentViewManager.h in Headers */, - 3D302F971DF828F800D6DDAE /* RCTTextDecorationLineType.h in Headers */, - 3D302F981DF828F800D6DDAE /* RCTView.h in Headers */, - 3D302F9A1DF828F800D6DDAE /* RCTViewManager.h in Headers */, - 3D302F9D1DF828F800D6DDAE /* RCTWrapperViewController.h in Headers */, - 3D302F9F1DF828F800D6DDAE /* UIView+React.h in Headers */, - 599FAA471FB274980058CCF6 /* RCTSurfaceStage.h in Headers */, - 13134CA11E296B2A00B9F3CB /* RCTCxxUtils.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D3030211DF8294400D6DDAE /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 13DA8A322097A90B00276ED4 /* ReactMarker.h in Headers */, - 3D74547E1E54759A00E74ADD /* JSModulesUnbundle.h in Headers */, - C6D3801B1F71D76200621378 /* RAMBundleRegistry.h in Headers */, - 27595AD51E575C7800CCE2B1 /* NativeToJsBridge.h in Headers */, - 27595AC41E575C7800CCE2B1 /* Instance.h in Headers */, - 27595AD11E575C7800CCE2B1 /* MessageQueueThread.h in Headers */, - 3D7454811E5475AF00E74ADD /* RecoverableError.h in Headers */, - 27595AC51E575C7800CCE2B1 /* JsArgumentHelpers-inl.h in Headers */, - 27595AD81E575C7800CCE2B1 /* SystraceSection.h in Headers */, - 27595AC61E575C7800CCE2B1 /* JsArgumentHelpers.h in Headers */, - 27595AD71E575C7800CCE2B1 /* SampleCxxModule.h in Headers */, - 27595AD21E575C7800CCE2B1 /* MethodCall.h in Headers */, - 3D3030221DF8294C00D6DDAE /* JSBundleType.h in Headers */, - 3D74547D1E54758900E74ADD /* JSBigString.h in Headers */, - 27595ABF1E575C7800CCE2B1 /* CxxModule.h in Headers */, - 27595AD41E575C7800CCE2B1 /* NativeModule.h in Headers */, - 27595AC01E575C7800CCE2B1 /* CxxNativeModule.h in Headers */, - 27595AD01E575C7800CCE2B1 /* JSIndexedRAMBundle.h in Headers */, - 27595AD31E575C7800CCE2B1 /* ModuleRegistry.h in Headers */, - 27595AC11E575C7800CCE2B1 /* JSExecutor.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D383D541EBD27B9005632C8 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 3D383D551EBD27B9005632C8 /* bignum-dtoa.h in Headers */, - 3D383D561EBD27B9005632C8 /* bignum.h in Headers */, - 3D383D571EBD27B9005632C8 /* cached-powers.h in Headers */, - 3D383D581EBD27B9005632C8 /* diy-fp.h in Headers */, - 3D383D591EBD27B9005632C8 /* double-conversion.h in Headers */, - 3D383D5A1EBD27B9005632C8 /* fast-dtoa.h in Headers */, - 3D383D5B1EBD27B9005632C8 /* fixed-dtoa.h in Headers */, - 3D383D5C1EBD27B9005632C8 /* ieee.h in Headers */, - 3D383D5D1EBD27B9005632C8 /* strtod.h in Headers */, - 3D383D5E1EBD27B9005632C8 /* utils.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D3CD91A1DE5FBEC00167DC4 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 13DA8A312097A90B00276ED4 /* ReactMarker.h in Headers */, - 3D74547F1E54759E00E74ADD /* JSModulesUnbundle.h in Headers */, - C6D3801A1F71D76100621378 /* RAMBundleRegistry.h in Headers */, - 27595ABA1E575C7800CCE2B1 /* NativeToJsBridge.h in Headers */, - 27595AA91E575C7800CCE2B1 /* Instance.h in Headers */, - 27595AB61E575C7800CCE2B1 /* MessageQueueThread.h in Headers */, - 3D7454801E5475AF00E74ADD /* RecoverableError.h in Headers */, - 27595AAA1E575C7800CCE2B1 /* JsArgumentHelpers-inl.h in Headers */, - 27595ABD1E575C7800CCE2B1 /* SystraceSection.h in Headers */, - 27595AAB1E575C7800CCE2B1 /* JsArgumentHelpers.h in Headers */, - 27595ABC1E575C7800CCE2B1 /* SampleCxxModule.h in Headers */, - 27595AB71E575C7800CCE2B1 /* MethodCall.h in Headers */, - 3D74547C1E54758900E74ADD /* JSBigString.h in Headers */, - 27595AA41E575C7800CCE2B1 /* CxxModule.h in Headers */, - 27595AB91E575C7800CCE2B1 /* NativeModule.h in Headers */, - 3D3CD9451DE5FC7100167DC4 /* JSBundleType.h in Headers */, - 27595AA51E575C7800CCE2B1 /* CxxNativeModule.h in Headers */, - 27595AB51E575C7800CCE2B1 /* JSIndexedRAMBundle.h in Headers */, - 27595AB81E575C7800CCE2B1 /* ModuleRegistry.h in Headers */, - 27595AA61E575C7800CCE2B1 /* JSExecutor.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D80DA181DF820500028D040 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 3D80DA191DF820620028D040 /* RCTImageLoader.h in Headers */, - C654505E1F3BD9280090799B /* RCTManagedPointer.h in Headers */, - 13134C941E296B2A00B9F3CB /* RCTObjcExecutor.h in Headers */, - 199B8A6F1F44DB16005DEF67 /* RCTVersion.h in Headers */, - 3D80DA1A1DF820620028D040 /* RCTImageStoreManager.h in Headers */, - 130443A11E3FEAA900D93A67 /* RCTFollyConvert.h in Headers */, - 3D80DA1B1DF820620028D040 /* RCTResizeMode.h in Headers */, - 3D80DA1C1DF820620028D040 /* RCTLinkingManager.h in Headers */, - 3D80DA1D1DF820620028D040 /* RCTNetworking.h in Headers */, - 3D80DA1E1DF820620028D040 /* RCTNetworkTask.h in Headers */, - 657734841EE834C900A0E9EA /* RCTInspectorDevServerHelper.h in Headers */, - 3D80DA1F1DF820620028D040 /* RCTPushNotificationManager.h in Headers */, - 3D80DA201DF820620028D040 /* RCTAssert.h in Headers */, - 3D80DA211DF820620028D040 /* RCTBridge.h in Headers */, - 3D80DA221DF820620028D040 /* RCTBridge+Private.h in Headers */, - 599FAA461FB274980058CCF6 /* RCTSurfaceStage.h in Headers */, - 599FAA361FB274980058CCF6 /* RCTSurface.h in Headers */, - 3D80DA231DF820620028D040 /* RCTBridgeDelegate.h in Headers */, - 3D80DA241DF820620028D040 /* RCTBridgeMethod.h in Headers */, - 3D7BFD151EA8E351008DFB7A /* RCTPackagerClient.h in Headers */, - 3D80DA251DF820620028D040 /* RCTBridgeModule.h in Headers */, - 3D80DA261DF820620028D040 /* RCTBundleURLProvider.h in Headers */, - 599FAA401FB274980058CCF6 /* RCTSurfaceRootShadowViewDelegate.h in Headers */, - 5960C1B51F0804A00066FD5B /* RCTLayoutAnimation.h in Headers */, - 3D80DA271DF820620028D040 /* RCTConvert.h in Headers */, - 3D80DA281DF820620028D040 /* RCTDefines.h in Headers */, - 3D80DA291DF820620028D040 /* RCTDisplayLink.h in Headers */, - 597633381F4E021D005BE8A4 /* RCTShadowView+Internal.h in Headers */, - 3D80DA2A1DF820620028D040 /* RCTErrorCustomizer.h in Headers */, - 3D80DA2B1DF820620028D040 /* RCTErrorInfo.h in Headers */, - 1384E2081E806D4E00545659 /* RCTNativeModule.h in Headers */, - 50E98FED21460B0D00CD9289 /* RCTWKWebViewManager.h in Headers */, - 3D7BFD2D1EA8E3FA008DFB7A /* RCTReconnectingWebSocket.h in Headers */, - 3D80DA2C1DF820620028D040 /* RCTEventDispatcher.h in Headers */, - 3D80DA2D1DF820620028D040 /* RCTFrameUpdate.h in Headers */, - 3D80DA2E1DF820620028D040 /* RCTImageSource.h in Headers */, - 3D80DA2F1DF820620028D040 /* RCTInvalidating.h in Headers */, - 599FAA3A1FB274980058CCF6 /* RCTSurfaceDelegate.h in Headers */, - 3D80DA301DF820620028D040 /* RCTJavaScriptExecutor.h in Headers */, - 3DCE53281FEAB23100613583 /* RCTDatePicker.h in Headers */, - 50E98FEB21460B0D00CD9289 /* RCTWKWebView.h in Headers */, - 3D80DA311DF820620028D040 /* RCTJavaScriptLoader.h in Headers */, - 130E3D881E6A082100ACE484 /* RCTDevSettings.h in Headers */, - 3D80DA321DF820620028D040 /* RCTJSStackFrame.h in Headers */, - 130443DC1E401AF400D93A67 /* RCTConvert+Transform.h in Headers */, - 3D80DA331DF820620028D040 /* RCTKeyCommands.h in Headers */, - 3D80DA341DF820620028D040 /* RCTLog.h in Headers */, - 3D80DA351DF820620028D040 /* RCTModuleData.h in Headers */, - 3D80DA361DF820620028D040 /* RCTModuleMethod.h in Headers */, - 3D80DA371DF820620028D040 /* RCTMultipartDataTask.h in Headers */, - 3D80DA381DF820620028D040 /* RCTMultipartStreamReader.h in Headers */, - 594F0A361FD23228007FBE96 /* RCTSurfaceSizeMeasureMode.h in Headers */, - 3D80DA391DF820620028D040 /* RCTNullability.h in Headers */, - 3D80DA3A1DF820620028D040 /* RCTParserUtils.h in Headers */, - 599FAA421FB274980058CCF6 /* RCTSurfaceRootView.h in Headers */, - 59D031F91F8353D3008361F0 /* RCTSafeAreaViewManager.h in Headers */, - 3D80DA3B1DF820620028D040 /* RCTPerformanceLogger.h in Headers */, - 59D031F51F8353D3008361F0 /* RCTSafeAreaViewLocalData.h in Headers */, - 3D80DA3C1DF820620028D040 /* RCTPlatform.h in Headers */, - 3D80DA3D1DF820620028D040 /* RCTRootView.h in Headers */, - 59EDBCB91FDF4E0C003573DE /* RCTScrollViewManager.h in Headers */, - 59EDBCB51FDF4E0C003573DE /* RCTScrollView.h in Headers */, - 3D80DA3E1DF820620028D040 /* RCTRootViewDelegate.h in Headers */, - 3D80DA3F1DF820620028D040 /* RCTRootViewInternal.h in Headers */, - 3D80DA401DF820620028D040 /* RCTTouchEvent.h in Headers */, - 3D80DA411DF820620028D040 /* RCTTouchHandler.h in Headers */, - 59E604A61FE9CCE300BD90C5 /* RCTScrollContentViewManager.h in Headers */, - 13134C8C1E296B2A00B9F3CB /* RCTMessageThread.h in Headers */, - 59EB6DBB1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h in Headers */, - 3D80DA421DF820620028D040 /* RCTURLRequestDelegate.h in Headers */, - 3D80DA431DF820620028D040 /* RCTURLRequestHandler.h in Headers */, - 3D80DA441DF820620028D040 /* RCTUtils.h in Headers */, - 13134C981E296B2A00B9F3CB /* RCTCxxMethod.h in Headers */, - 3D80DA4A1DF820620028D040 /* RCTAccessibilityManager.h in Headers */, - 3D80DA4B1DF820620028D040 /* RCTAlertManager.h in Headers */, - 3D80DA4C1DF820620028D040 /* RCTAppState.h in Headers */, - 3D80DA4D1DF820620028D040 /* RCTAsyncLocalStorage.h in Headers */, - 3D80DA4E1DF820620028D040 /* RCTClipboard.h in Headers */, - 3D80DA4F1DF820620028D040 /* RCTDevLoadingView.h in Headers */, - 3D80DA501DF820620028D040 /* RCTDevMenu.h in Headers */, - 3D80DA511DF820620028D040 /* RCTEventEmitter.h in Headers */, - 59A7B9FD1E577DBF0068EDBF /* RCTRootContentView.h in Headers */, - 3D80DA521DF820620028D040 /* RCTExceptionsManager.h in Headers */, - 3DCE532A1FEAB23100613583 /* RCTDatePickerManager.h in Headers */, - 3D80DA531DF820620028D040 /* RCTI18nManager.h in Headers */, - 3D7BFD2F1EA8E3FA008DFB7A /* RCTSRWebSocket.h in Headers */, - 3D80DA541DF820620028D040 /* RCTI18nUtil.h in Headers */, - 3D80DA551DF820620028D040 /* RCTKeyboardObserver.h in Headers */, - 3D80DA561DF820620028D040 /* RCTRedBox.h in Headers */, - 3D80DA571DF820620028D040 /* RCTSourceCode.h in Headers */, - EBF21BBC1FC498270052F4D5 /* InspectorInterfaces.h in Headers */, - 3D80DA581DF820620028D040 /* RCTStatusBarManager.h in Headers */, - 3D80DA591DF820620028D040 /* RCTTiming.h in Headers */, - 3D80DA5A1DF820620028D040 /* RCTUIManager.h in Headers */, - 3D80DA5B1DF820620028D040 /* RCTFPSGraph.h in Headers */, - FEFAAC9F1FDB89B50057BBE0 /* RCTRedBoxExtraDataViewController.h in Headers */, - 59E604A01FE9CCE300BD90C5 /* RCTScrollContentShadowView.h in Headers */, - 3D80DA5D1DF820620028D040 /* RCTMacros.h in Headers */, - 3D80DA5E1DF820620028D040 /* RCTProfile.h in Headers */, - 3D80DA5F1DF820620028D040 /* RCTActivityIndicatorView.h in Headers */, - 3D80DA601DF820620028D040 /* RCTActivityIndicatorViewManager.h in Headers */, - 59500D431F71C63F00B122B7 /* RCTUIManagerUtils.h in Headers */, - 5960C1B91F0804A00066FD5B /* RCTLayoutAnimationGroup.h in Headers */, - CF2731C01E7B8DE40044CA4F /* RCTDeviceInfo.h in Headers */, - 3D80DA611DF820620028D040 /* RCTAnimationType.h in Headers */, - 3D0E378A1F1CC40000DCAC9F /* RCTWebSocketModule.h in Headers */, - 3D80DA621DF820620028D040 /* RCTAutoInsetsProtocol.h in Headers */, - C60128AB1F3D1258009DF9FF /* RCTCxxConvert.h in Headers */, - 589515E02231AD9C0036BDE0 /* RCTSurfacePresenterStub.h in Headers */, - 59EDBCAD1FDF4E0C003573DE /* RCTScrollContentView.h in Headers */, - 59EDBCA71FDF4E0C003573DE /* RCTScrollableProtocol.h in Headers */, - 591F78DC202ADB22004A668C /* RCTLayout.h in Headers */, - 3D80DA631DF820620028D040 /* RCTBorderDrawing.h in Headers */, - 3D80DA641DF820620028D040 /* RCTBorderStyle.h in Headers */, - 3D80DA651DF820620028D040 /* RCTComponent.h in Headers */, - 3D80DA661DF820620028D040 /* RCTComponentData.h in Headers */, - 3DA9819E1E5B0DBB004F2374 /* NSDataBigString.h in Headers */, - 59D031F11F8353D3008361F0 /* RCTSafeAreaView.h in Headers */, - 3D80DA671DF820620028D040 /* RCTConvert+CoreLocation.h in Headers */, - 66CD94B11F1045E700CB3C7C /* RCTMaskedView.h in Headers */, - 3D80DA6B1DF820620028D040 /* RCTFont.h in Headers */, - 3D80DA701DF820620028D040 /* RCTModalHostView.h in Headers */, - 3D80DA711DF820620028D040 /* RCTModalHostViewController.h in Headers */, - 3D80DA721DF820620028D040 /* RCTModalHostViewManager.h in Headers */, - 13134C9C1E296B2A00B9F3CB /* RCTCxxModule.h in Headers */, - 594F0A321FD23228007FBE96 /* RCTSurfaceHostingView.h in Headers */, - 3D80DA771DF820620028D040 /* RCTPicker.h in Headers */, - 3D80DA781DF820620028D040 /* RCTPickerManager.h in Headers */, - 3D80DA791DF820620028D040 /* RCTPointerEvents.h in Headers */, - 3D80DA7A1DF820620028D040 /* RCTProgressViewManager.h in Headers */, - 3D80DA7B1DF820620028D040 /* RCTRefreshControl.h in Headers */, - A2440AA21DF8D854006E7BFC /* RCTReloadCommand.h in Headers */, - 3D80DA7C1DF820620028D040 /* RCTRefreshControlManager.h in Headers */, - 59D031ED1F8353D3008361F0 /* RCTSafeAreaShadowView.h in Headers */, - 3D80DA7D1DF820620028D040 /* RCTRootShadowView.h in Headers */, - 134D63C31F1FEC4B008872B5 /* RCTCxxBridgeDelegate.h in Headers */, - 657734901EE8354A00A0E9EA /* RCTInspectorPackagerConnection.h in Headers */, - 3D7BFD1D1EA8E351008DFB7A /* RCTPackagerConnection.h in Headers */, - 3D80DA811DF820620028D040 /* RCTSegmentedControl.h in Headers */, - 599FAA3C1FB274980058CCF6 /* RCTSurfaceRootShadowView.h in Headers */, - 3D80DA821DF820620028D040 /* RCTSegmentedControlManager.h in Headers */, - 3D80DA831DF820620028D040 /* RCTShadowView.h in Headers */, - 3D80DA841DF820620028D040 /* RCTSlider.h in Headers */, - 3D80DA851DF820620028D040 /* RCTSliderManager.h in Headers */, - 3D80DA861DF820620028D040 /* RCTSwitch.h in Headers */, - 3D80DA871DF820620028D040 /* RCTSwitchManager.h in Headers */, - 66CD94B51F1045E700CB3C7C /* RCTMaskedViewManager.h in Headers */, - 3D80DA8C1DF820620028D040 /* RCTTextDecorationLineType.h in Headers */, - 6577348E1EE8354A00A0E9EA /* RCTInspector.h in Headers */, - 3D80DA8D1DF820620028D040 /* RCTView.h in Headers */, - 8507BBC021EDACC200AEAFCA /* JSCExecutorFactory.h in Headers */, - 590D7BFD1EBD458B00D8A370 /* RCTShadowView+Layout.h in Headers */, - 3D80DA8F1DF820620028D040 /* RCTViewManager.h in Headers */, - 13134CA01E296B2A00B9F3CB /* RCTCxxUtils.h in Headers */, - 599FAA4A1FB274980058CCF6 /* RCTSurfaceView.h in Headers */, - 3D80DA901DF820620028D040 /* RCTWebView.h in Headers */, - 3D80DA911DF820620028D040 /* RCTWebViewManager.h in Headers */, - 3D80DA921DF820620028D040 /* RCTWrapperViewController.h in Headers */, - 3D80DA931DF820620028D040 /* UIView+Private.h in Headers */, - 3D80DA941DF820620028D040 /* UIView+React.h in Headers */, - 599FAA481FB274980058CCF6 /* RCTSurfaceView+Internal.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EBF21BC41FC498900052F4D5 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EBF21BE21FC4989A0052F4D5 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ED296F99214C9A0900B7C4FE /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ED296FBC214C9B0400B7C4FE /* jsi-inl.h in Headers */, - ED296FBF214C9B0400B7C4FE /* JSIDynamic.h in Headers */, - ED296FC1214C9B0400B7C4FE /* JSCRuntime.h in Headers */, - ED296FC3214C9B0400B7C4FE /* instrumentation.h in Headers */, - ED296FC4214C9B0400B7C4FE /* jsi.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ED296FD1214C9CF800B7C4FE /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ED61896C2155BBF70000C9A7 /* JSINativeModules.h in Headers */, - ED61896A2155BBF70000C9A7 /* JSIExecutor.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ED2970382150123E00B7C4FE /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ED29703E2150126E00B7C4FE /* AtomicIntrusiveLinkedList.h in Headers */, - ED2970422150126E00B7C4FE /* Conv.h in Headers */, - ED2970432150126E00B7C4FE /* dynamic-inl.h in Headers */, - ED2970452150126E00B7C4FE /* dynamic.h in Headers */, - ED2970462150126E00B7C4FE /* Exception.h in Headers */, - ED2970482150126E00B7C4FE /* json.h in Headers */, - ED2970492150126E00B7C4FE /* Memory.h in Headers */, - ED29704A2150126E00B7C4FE /* MoveWrapper.h in Headers */, - ED29704B2150126E00B7C4FE /* Optional.h in Headers */, - ED29704C2150126E00B7C4FE /* ScopeGuard.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EDEBC6BB214B3E7000DD5AC8 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - EDEBC6E9214B3F6800DD5AC8 /* jsi.h in Headers */, - 4F56C93822167A4800DB9F3F /* jsilib.h in Headers */, - EDEBC6E7214B3F6800DD5AC8 /* JSCRuntime.h in Headers */, - EDEBC6E5214B3F6800DD5AC8 /* JSIDynamic.h in Headers */, - EDEBC6E2214B3F6800DD5AC8 /* jsi-inl.h in Headers */, - EDEBC6E8214B3F6800DD5AC8 /* instrumentation.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EDEBC729214B45A300DD5AC8 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ED61896B2155BBF70000C9A7 /* JSINativeModules.h in Headers */, - ED6189692155BBF70000C9A7 /* JSIExecutor.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 139D7E871E25C6D100323FB7 /* double-conversion */ = { - isa = PBXNativeTarget; - buildConfigurationList = 139D7E8E1E25C6D100323FB7 /* Build configuration list for PBXNativeTarget "double-conversion" */; - buildPhases = ( - 190EE32F1E6A43DE00A8543A /* Install Third Party */, - 139D7EA41E25C7BD00323FB7 /* Headers */, - 139D7E841E25C6D100323FB7 /* Sources */, - 139D7E861E25C6D100323FB7 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "double-conversion"; - productName = ThirdParty; - productReference = 139D7E881E25C6D100323FB7 /* libdouble-conversion.a */; - productType = "com.apple.product-type.library.static"; - }; - 139D7ECD1E25DB7D00323FB7 /* third-party */ = { - isa = PBXNativeTarget; - buildConfigurationList = 139D7ED41E25DB7D00323FB7 /* Build configuration list for PBXNativeTarget "third-party" */; - buildPhases = ( - 139D7ECA1E25DB7D00323FB7 /* Sources */, - ); - buildRules = ( - ); - dependencies = ( - 1320081D1E283DCB00F0C457 /* PBXTargetDependency */, - ); - name = "third-party"; - productName = "third-party"; - productReference = 139D7ECE1E25DB7D00323FB7 /* libthird-party.a */; - productType = "com.apple.product-type.library.static"; - }; - 2D2A28121D9B038B00D4039D /* React-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2D2A281B1D9B038B00D4039D /* Build configuration list for PBXNativeTarget "React-tvOS" */; - buildPhases = ( - 2D6948301DA3088700B3FA97 /* Start Packager */, - 3D302F231DF828D100D6DDAE /* Headers */, - 3D302E191DF8249100D6DDAE /* Copy Headers */, - 2D2A280F1D9B038B00D4039D /* Sources */, - 2D6948201DA3042200B3FA97 /* Include RCTJSCProfiler */, - 3D3C088B1DE342FE00C268FA /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ED2970662150237300B7C4FE /* PBXTargetDependency */, - ED296FCA214C9B6200B7C4FE /* PBXTargetDependency */, - ED296F81214C971800B7C4FE /* PBXTargetDependency */, - 3D0574571DE5FF9600184BB4 /* PBXTargetDependency */, - ); - name = "React-tvOS"; - productName = "React-tvOS"; - productReference = 2D2A28131D9B038B00D4039D /* libReact.a */; - productType = "com.apple.product-type.library.static"; - }; - 3D383D211EBD27B6005632C8 /* third-party-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3D383D391EBD27B6005632C8 /* Build configuration list for PBXNativeTarget "third-party-tvOS" */; - buildPhases = ( - 3D383D241EBD27B6005632C8 /* Sources */, - ED2970382150123E00B7C4FE /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - 3D383D661EBD27DB005632C8 /* PBXTargetDependency */, - ); - name = "third-party-tvOS"; - productName = "third-party"; - productReference = 3D383D3C1EBD27B6005632C8 /* libthird-party.a */; - productType = "com.apple.product-type.library.static"; - }; - 3D383D3D1EBD27B9005632C8 /* double-conversion-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3D383D5F1EBD27B9005632C8 /* Build configuration list for PBXNativeTarget "double-conversion-tvOS" */; - buildPhases = ( - 3D383D3E1EBD27B9005632C8 /* Install Third Party */, - 3D383D541EBD27B9005632C8 /* Headers */, - 3D383D3F1EBD27B9005632C8 /* Sources */, - 3D383D491EBD27B9005632C8 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "double-conversion-tvOS"; - productName = ThirdParty; - productReference = 3D383D621EBD27B9005632C8 /* libdouble-conversion.a */; - productType = "com.apple.product-type.library.static"; - }; - 3D3CD9191DE5FBEC00167DC4 /* cxxreact */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3D3CD9221DE5FBEC00167DC4 /* Build configuration list for PBXNativeTarget "cxxreact" */; - buildPhases = ( - 3D3CD91A1DE5FBEC00167DC4 /* Headers */, - 3D80DAB91DF821710028D040 /* Copy Headers */, - 3D3CD91F1DE5FBEC00167DC4 /* Sources */, - ); - buildRules = ( - ); - dependencies = ( - EDEBC7D7214C52FD00DD5AC8 /* PBXTargetDependency */, - ); - name = cxxreact; - productName = React; - productReference = 3D3CD9251DE5FBEC00167DC4 /* libcxxreact.a */; - productType = "com.apple.product-type.library.static"; - }; - 3D3CD9261DE5FBEE00167DC4 /* cxxreact-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 3D3CD92F1DE5FBEE00167DC4 /* Build configuration list for PBXNativeTarget "cxxreact-tvOS" */; - buildPhases = ( - 3D3030211DF8294400D6DDAE /* Headers */, - 3D302F1B1DF8263300D6DDAE /* Copy Headers */, - 3D3CD92C1DE5FBEE00167DC4 /* Sources */, - ); - buildRules = ( - ); - dependencies = ( - ED296F97214C996500B7C4FE /* PBXTargetDependency */, - ); - name = "cxxreact-tvOS"; - productName = "React-tvOS"; - productReference = 3D3CD9321DE5FBEE00167DC4 /* libcxxreact.a */; - productType = "com.apple.product-type.library.static"; - }; - 83CBBA2D1A601D0E00E9B192 /* React */ = { - isa = PBXNativeTarget; - buildConfigurationList = 83CBBA3F1A601D0F00E9B192 /* Build configuration list for PBXNativeTarget "React" */; - buildPhases = ( - 006B79A01A781F38006873D1 /* Start Packager */, - 3D80DA181DF820500028D040 /* Headers */, - 3D80D91E1DF6FA530028D040 /* Copy Headers */, - 83CBBA2A1A601D0E00E9B192 /* Sources */, - 142C4F7F1B582EA6001F0B58 /* Include RCTJSCProfiler */, - 3D3C08881DE342EE00C268FA /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - EDEBC74F214B477400DD5AC8 /* PBXTargetDependency */, - EDEBC7D9214C628300DD5AC8 /* PBXTargetDependency */, - EDEBC74B214B46A700DD5AC8 /* PBXTargetDependency */, - 3D3CD94C1DE5FCE700167DC4 /* PBXTargetDependency */, - ); - name = React; - productName = React; - productReference = 83CBBA2E1A601D0E00E9B192 /* libReact.a */; - productType = "com.apple.product-type.library.static"; - }; - EBF21BBF1FC498900052F4D5 /* jsinspector */ = { - isa = PBXNativeTarget; - buildConfigurationList = EBF21BD91FC498900052F4D5 /* Build configuration list for PBXNativeTarget "jsinspector" */; - buildPhases = ( - EBF21BC41FC498900052F4D5 /* Headers */, - EBF21BCB1FC498900052F4D5 /* Copy Headers */, - EBF21BD31FC498900052F4D5 /* Sources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = jsinspector; - productName = React; - productReference = EBF21BDC1FC498900052F4D5 /* libjsinspector.a */; - productType = "com.apple.product-type.library.static"; - }; - EBF21BDD1FC4989A0052F4D5 /* jsinspector-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = EBF21BF71FC4989A0052F4D5 /* Build configuration list for PBXNativeTarget "jsinspector-tvOS" */; - buildPhases = ( - EBF21BE21FC4989A0052F4D5 /* Headers */, - EBF21BE91FC4989A0052F4D5 /* Copy Headers */, - EBF21BF11FC4989A0052F4D5 /* Sources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "jsinspector-tvOS"; - productName = "React-tvOS"; - productReference = EBF21BFA1FC4989A0052F4D5 /* libjsinspector-tvOS.a */; - productType = "com.apple.product-type.library.static"; - }; - ED296F98214C9A0900B7C4FE /* jsi-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = ED296FB3214C9A0900B7C4FE /* Build configuration list for PBXNativeTarget "jsi-tvOS" */; - buildPhases = ( - ED296F99214C9A0900B7C4FE /* Headers */, - ED296FA4214C9A0900B7C4FE /* Copy Headers */, - ED296FA9214C9A0900B7C4FE /* Sources */, - ED296FCE214C9CB400B7C4FE /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ED29704E215012C700B7C4FE /* PBXTargetDependency */, - ); - name = "jsi-tvOS"; - productName = "React-tvOS"; - productReference = ED296FB6214C9A0900B7C4FE /* libjsi-tvOS.a */; - productType = "com.apple.product-type.library.static"; - }; - ED296FD0214C9CF800B7C4FE /* jsiexecutor-tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = ED296FEB214C9CF800B7C4FE /* Build configuration list for PBXNativeTarget "jsiexecutor-tvOS" */; - buildPhases = ( - ED296FD1214C9CF800B7C4FE /* Headers */, - ED296FDC214C9CF800B7C4FE /* Copy Headers */, - ED296FE1214C9CF800B7C4FE /* Sources */, - ED296FF5214C9E7C00B7C4FE /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ED296FFE214C9EC600B7C4FE /* PBXTargetDependency */, - ED296FFC214C9EC000B7C4FE /* PBXTargetDependency */, - ED296FF8214C9EAA00B7C4FE /* PBXTargetDependency */, - ); - name = "jsiexecutor-tvOS"; - productName = "React-tvOS"; - productReference = ED296FEE214C9CF800B7C4FE /* libjsiexecutor-tvOS.a */; - productType = "com.apple.product-type.library.static"; - }; - EDEBC6BA214B3E7000DD5AC8 /* jsi */ = { - isa = PBXNativeTarget; - buildConfigurationList = EDEBC6D3214B3E7000DD5AC8 /* Build configuration list for PBXNativeTarget "jsi" */; - buildPhases = ( - EDEBC6BB214B3E7000DD5AC8 /* Headers */, - EDEBC6C6214B3E7000DD5AC8 /* Copy Headers */, - EDEBC6CA214B3E7000DD5AC8 /* Sources */, - EDEBC756214C283300DD5AC8 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - EDEBC7CC214C516800DD5AC8 /* PBXTargetDependency */, - ); - name = jsi; - productName = React; - productReference = EDEBC6D6214B3E7000DD5AC8 /* libjsi.a */; - productType = "com.apple.product-type.library.static"; - }; - EDEBC724214B45A300DD5AC8 /* jsiexecutor */ = { - isa = PBXNativeTarget; - buildConfigurationList = EDEBC738214B45A300DD5AC8 /* Build configuration list for PBXNativeTarget "jsiexecutor" */; - buildPhases = ( - EDEBC729214B45A300DD5AC8 /* Headers */, - EDEBC72F214B45A300DD5AC8 /* Copy Headers */, - EDEBC734214B45A300DD5AC8 /* Sources */, - EDEBC79A214C2A7000DD5AC8 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ED296F7E214C957300B7C4FE /* PBXTargetDependency */, - EDEBC7D3214C528C00DD5AC8 /* PBXTargetDependency */, - EDEBC7CE214C523F00DD5AC8 /* PBXTargetDependency */, - ); - name = jsiexecutor; - productName = React; - productReference = EDEBC73B214B45A300DD5AC8 /* libjsiexecutor.a */; - productType = "com.apple.product-type.library.static"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 83CBB9F71A601CBA00E9B192 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0940; - ORGANIZATIONNAME = Facebook; - TargetAttributes = { - 139D7E871E25C6D100323FB7 = { - CreatedOnToolsVersion = 8.1; - }; - 139D7ECD1E25DB7D00323FB7 = { - CreatedOnToolsVersion = 8.1; - }; - 2D2A28121D9B038B00D4039D = { - CreatedOnToolsVersion = 8.0; - }; - 83CBBA2D1A601D0E00E9B192 = { - CreatedOnToolsVersion = 6.1.1; - }; - }; - }; - buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactYoga" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 83CBB9F61A601CBA00E9B192; - productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 83CBBA2D1A601D0E00E9B192 /* React */, - 2D2A28121D9B038B00D4039D /* React-tvOS */, - 3D3CD9191DE5FBEC00167DC4 /* cxxreact */, - 3D3CD9261DE5FBEE00167DC4 /* cxxreact-tvOS */, - EBF21BBF1FC498900052F4D5 /* jsinspector */, - EBF21BDD1FC4989A0052F4D5 /* jsinspector-tvOS */, - 139D7ECD1E25DB7D00323FB7 /* third-party */, - 3D383D211EBD27B6005632C8 /* third-party-tvOS */, - 139D7E871E25C6D100323FB7 /* double-conversion */, - 3D383D3D1EBD27B9005632C8 /* double-conversion-tvOS */, - EDEBC6BA214B3E7000DD5AC8 /* jsi */, - EDEBC724214B45A300DD5AC8 /* jsiexecutor */, - ED296F98214C9A0900B7C4FE /* jsi-tvOS */, - ED296FD0214C9CF800B7C4FE /* jsiexecutor-tvOS */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXShellScriptBuildPhase section */ - 006B79A01A781F38006873D1 /* Start Packager */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Start Packager"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../js/react-native-github/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] && [ \"$CONFIGURATION\" == \"Debug\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../js/react-native-github/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; - showEnvVarsInLog = 0; - }; - 142C4F7F1B582EA6001F0B58 /* Include RCTJSCProfiler */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Include RCTJSCProfiler"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "if [[ \"$CONFIGURATION\" == \"Debug\" ]] && [[ -d \"/tmp/RCTJSCProfiler\" ]]; then\n find \"${CONFIGURATION_BUILD_DIR}\" -name '*.app' | xargs -I{} sh -c 'cp -r /tmp/RCTJSCProfiler \"$1\"' -- {}\nfi\n"; - showEnvVarsInLog = 0; - }; - 190EE32F1E6A43DE00A8543A /* Install Third Party */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "../scripts/ios-install-third-party.sh", - ); - name = "Install Third Party"; - outputPaths = ( - "../third-party/glog-0.3.5/src/config.h", - "../third-party/glog-0.3.5/src/demangle.cc", - "../third-party/glog-0.3.5/src/demangle.h", - "../third-party/glog-0.3.5/src/logging.cc", - "../third-party/glog-0.3.5/src/raw_logging.cc", - "../third-party/glog-0.3.5/src/signalhandler.cc", - "../third-party/glog-0.3.5/src/stacktrace.h", - "../third-party/glog-0.3.5/src/symbolize.cc", - "../third-party/glog-0.3.5/src/symbolize.h", - "../third-party/glog-0.3.5/src/utilities.cc", - "../third-party/glog-0.3.5/src/utilities.h", - "../third-party/glog-0.3.5/src/vlog_is_on.cc", - "../third-party/glog-0.3.5/src/glog/log_severity.h", - "../third-party/glog-0.3.5/src/glog/logging.h", - "../third-party/glog-0.3.5/src/glog/raw_logging.h", - "../third-party/glog-0.3.5/src/glog/stl_logging.h", - "../third-party/glog-0.3.5/src/glog/vlog_is_on.h", - "../third-party/folly-2018.10.22.00/folly/memory/detail/MallocImpl.cpp", - "../third-party/folly-2018.10.22.00/folly/Demangle.cpp", - "../third-party/folly-2018.10.22.00/folly/Unicode.cpp", - "../third-party/folly-2018.10.22.00/folly/AtomicIntrusiveLinkedList.h", - "../third-party/folly-2018.10.22.00/folly/Conv.cpp", - "../third-party/folly-2018.10.22.00/folly/Conv.h", - "../third-party/folly-2018.10.22.00/folly/dynamic-inl.h", - "../third-party/folly-2018.10.22.00/folly/dynamic.cpp", - "../third-party/folly-2018.10.22.00/folly/dynamic.h", - "../third-party/folly-2018.10.22.00/folly/Exception.h", - "../third-party/folly-2018.10.22.00/folly/json.cpp", - "../third-party/folly-2018.10.22.00/folly/json.h", - "../third-party/folly-2018.10.22.00/folly/Memory.h", - "../third-party/folly-2018.10.22.00/folly/MoveWrapper.h", - "../third-party/folly-2018.10.22.00/folly/Optional.h", - "../third-party/folly-2018.10.22.00/folly/ScopeGuard.h", - "../third-party/folly-2018.10.22.00/folly/json_pointer.cpp", - "../third-party/folly-2018.10.22.00/folly/String.cpp", - "../third-party/folly-2018.10.22.00/folly/detail/Demangle.cpp", - "../third-party/folly-2018.10.22.00/folly/hash/SpookyHashV2.cpp", - "../third-party/folly-2018.10.22.00/folly/lang/ColdClass.cpp", - "../third-party/folly-2018.10.22.00/folly/container/detail/F14Table.cpp", - "../third-party/folly-2018.10.22.00/folly/ScopeGuard.cpp", - "../third-party/folly-2018.10.22.00/folly/lang/Assume.cpp", - "../third-party/folly-2018.10.22.00/folly/Format.cpp", - "../third-party/double-conversion-1.1.6/src/bignum-dtoa.cc", - "../third-party/double-conversion-1.1.6/src/bignum-dtoa.h", - "../third-party/double-conversion-1.1.6/src/bignum.cc", - "../third-party/double-conversion-1.1.6/src/bignum.h", - "../third-party/double-conversion-1.1.6/src/cached-powers.cc", - "../third-party/double-conversion-1.1.6/src/cached-powers.h", - "../third-party/double-conversion-1.1.6/src/diy-fp.cc", - "../third-party/double-conversion-1.1.6/src/diy-fp.h", - "../third-party/double-conversion-1.1.6/src/double-conversion.cc", - "../third-party/double-conversion-1.1.6/src/double-conversion.h", - "../third-party/double-conversion-1.1.6/src/fast-dtoa.cc", - "../third-party/double-conversion-1.1.6/src/fast-dtoa.h", - "../third-party/double-conversion-1.1.6/src/fixed-dtoa.cc", - "../third-party/double-conversion-1.1.6/src/fixed-dtoa.h", - "../third-party/double-conversion-1.1.6/src/ieee.h", - "../third-party/double-conversion-1.1.6/src/strtod.cc", - "../third-party/double-conversion-1.1.6/src/strtod.h", - "../third-party/double-conversion-1.1.6/src/utils.h", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "cd \"$SRCROOT/../js/react-native-github\"\nexec ./scripts/ios-install-third-party.sh\n"; - }; - 2D6948201DA3042200B3FA97 /* Include RCTJSCProfiler */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Include RCTJSCProfiler"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "if [[ \"$CONFIGURATION\" == \"Debug\" ]] && [[ -d \"/tmp/RCTJSCProfiler\" ]]; then\nfind \"${CONFIGURATION_BUILD_DIR}\" -name '*.app' | xargs -I{} sh -c 'cp -r /tmp/RCTJSCProfiler \"$1\"' -- {}\nfi\n"; - showEnvVarsInLog = 0; - }; - 2D6948301DA3088700B3FA97 /* Start Packager */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Start Packager"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "if [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\nif nc -w 5 -z localhost 8081 ; then\nif ! curl -s \"http://localhost:8081/status\" | grep -q \"packager-status:running\" ; then\necho \"Port 8081 already in use, packager is either not running or not running correctly\"\nexit 2\nfi\nelse\nopen \"$SRCROOT/../js/react-native-github/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\nfi\nfi\n"; - showEnvVarsInLog = 0; - }; - 3D383D3E1EBD27B9005632C8 /* Install Third Party */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Install Third Party"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "cd \"$SRCROOT/../js/react-native-github\"\nexec ./scripts/ios-install-third-party.sh\n"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 139D7E841E25C6D100323FB7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 139D7E911E25C70B00323FB7 /* bignum-dtoa.cc in Sources */, - 139D7E931E25C70B00323FB7 /* bignum.cc in Sources */, - 139D7E951E25C70B00323FB7 /* cached-powers.cc in Sources */, - 139D7E971E25C70B00323FB7 /* diy-fp.cc in Sources */, - 139D7E991E25C70B00323FB7 /* double-conversion.cc in Sources */, - 139D7E9B1E25C70B00323FB7 /* fast-dtoa.cc in Sources */, - 139D7E9D1E25C70B00323FB7 /* fixed-dtoa.cc in Sources */, - 139D7EA01E25C70B00323FB7 /* strtod.cc in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 139D7ECA1E25DB7D00323FB7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 139D84B01E273B5600323FB7 /* Conv.cpp in Sources */, - 139D7F031E25DE1100323FB7 /* raw_logging.cc in Sources */, - 83281387217EB73400574D55 /* String.cpp in Sources */, - 139D7F041E25DE1100323FB7 /* signalhandler.cc in Sources */, - 833D02BD217EBD2600A23750 /* Format.cpp in Sources */, - 833D02BA217EBCFA00A23750 /* Assume.cpp in Sources */, - 139D84B11E273B5600323FB7 /* dynamic.cpp in Sources */, - 139D7F061E25DE1100323FB7 /* utilities.cc in Sources */, - 8328138D217EB75C00574D55 /* ColdClass.cpp in Sources */, - 139D7F051E25DE1100323FB7 /* symbolize.cc in Sources */, - 139D7F071E25DE1100323FB7 /* vlog_is_on.cc in Sources */, - 13F8875A1E2971D400C3C7A1 /* Unicode.cpp in Sources */, - 139D7F091E25DE3700323FB7 /* demangle.cc in Sources */, - 83281399217EB79D00574D55 /* ScopeGuard.cpp in Sources */, - 83281393217EB77D00574D55 /* SpookyHashV2.cpp in Sources */, - 13F887581E2971D400C3C7A1 /* Demangle.h in Sources */, - 139D7F021E25DE1100323FB7 /* logging.cc in Sources */, - 83281396217EB79000574D55 /* F14Table.cpp in Sources */, - 83281384217EB70900574D55 /* MallocImpl.cpp in Sources */, - 8328138A217EB74C00574D55 /* json_pointer.cpp in Sources */, - 139D84B31E273B5600323FB7 /* json.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2D2A280F1D9B038B00D4039D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3DC159E41E83E1AE007B1282 /* RCTRootContentView.m in Sources */, - 3D80D91B1DF6F8200028D040 /* RCTPlatform.m in Sources */, - 2D0EB9F32021067800CAF88A /* RCTUIUtils.m in Sources */, - 2DD0EFE11DA84F2800B0C975 /* RCTStatusBarManager.m in Sources */, - 2D3B5EC91D9B095C00451313 /* RCTBorderDrawing.m in Sources */, - 66CD94B81F1045E700CB3C7C /* RCTMaskedViewManager.m in Sources */, - 2D3B5E991D9B089A00451313 /* RCTDisplayLink.m in Sources */, - 2D3B5EA11D9B08B600451313 /* RCTModuleData.mm in Sources */, - 3DCE52F41FEAB10D00613583 /* RCTRedBoxExtraDataViewController.m in Sources */, - 590D7C001EBD458B00D8A370 /* RCTShadowView+Layout.m in Sources */, - 2D3B5EAE1D9B08F800451313 /* RCTEventEmitter.m in Sources */, - 2D3B5ECA1D9B095F00451313 /* RCTComponentData.m in Sources */, - 2D3B5EA31D9B08BE00451313 /* RCTParserUtils.m in Sources */, - 59500D461F71C63F00B122B7 /* RCTUIManagerUtils.m in Sources */, - 599FAA4D1FB274980058CCF6 /* RCTSurfaceView.mm in Sources */, - 2D3B5EA01D9B08B200451313 /* RCTLog.mm in Sources */, - 5960C1BC1F0804A00066FD5B /* RCTLayoutAnimationGroup.m in Sources */, - 2D3B5ECF1D9B096F00451313 /* RCTFont.mm in Sources */, - 2D3B5ED51D9B098000451313 /* RCTModalHostViewController.m in Sources */, - 39C50FFC2046EE3500CEE534 /* RCTVersion.m in Sources */, - 2D3B5EBC1D9B092600451313 /* RCTKeyboardObserver.m in Sources */, - 657734931EE8356100A0E9EA /* RCTInspector.mm in Sources */, - 59EB6DBE1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.mm in Sources */, - 2D3B5E971D9B089000451313 /* RCTBridge.m in Sources */, - 2D3B5E9B1D9B08A000451313 /* RCTFrameUpdate.m in Sources */, - 2D3B5EE41D9B09BB00451313 /* RCTSegmentedControlManager.m in Sources */, - 59EDBCB81FDF4E0C003573DE /* RCTScrollView.m in Sources */, - 13134C9F1E296B2A00B9F3CB /* RCTCxxModule.mm in Sources */, - 2D3B5EE31D9B09B700451313 /* RCTSegmentedControl.m in Sources */, - 130443A41E3FEAC600D93A67 /* RCTFollyConvert.mm in Sources */, - 3D7BFD201EA8E351008DFB7A /* RCTPackagerConnection.mm in Sources */, - 59E604A51FE9CCE300BD90C5 /* RCTScrollContentShadowView.m in Sources */, - 5960C1B81F0804A00066FD5B /* RCTLayoutAnimation.m in Sources */, - 2D3B5EB71D9B091800451313 /* RCTRedBox.m in Sources */, - 3D7AA9C61E548CDD001955CF /* NSDataBigString.mm in Sources */, - 13134C8F1E296B2A00B9F3CB /* RCTMessageThread.mm in Sources */, - 0EEEA8E02239002200A8C82D /* RCTSurfacePresenterStub.m in Sources */, - 2D3B5EAF1D9B08FB00451313 /* RCTAccessibilityManager.m in Sources */, - 2D3B5EF11D9B09E700451313 /* UIView+React.m in Sources */, - 2D3B5E931D9B087300451313 /* RCTErrorInfo.m in Sources */, - C60669371F3CCF1B00E67165 /* RCTManagedPointer.mm in Sources */, - 2D3B5EE01D9B09AD00451313 /* RCTRootShadowView.m in Sources */, - 2D3B5EBA1D9B092100451313 /* RCTI18nUtil.m in Sources */, - 2D3B5EB41D9B090A00451313 /* RCTDevLoadingView.m in Sources */, - 3D0B842C1EC0B4EA00B2BD8E /* RCTTVView.m in Sources */, - 2D3B5EEF1D9B09DC00451313 /* RCTViewManager.m in Sources */, - 13134C971E296B2A00B9F3CB /* RCTObjcExecutor.mm in Sources */, - 594F0A351FD23228007FBE96 /* RCTSurfaceHostingView.mm in Sources */, - 130E3D8B1E6A083900ACE484 /* RCTDevSettings.mm in Sources */, - 2D3B5E951D9B087C00451313 /* RCTAssert.m in Sources */, - 59D031F81F8353D3008361F0 /* RCTSafeAreaViewLocalData.m in Sources */, - 2D3B5EB61D9B091400451313 /* RCTExceptionsManager.m in Sources */, - 2D3B5ED41D9B097D00451313 /* RCTModalHostView.m in Sources */, - 599FAA391FB274980058CCF6 /* RCTSurface.mm in Sources */, - C606692F1F3CC60500E67165 /* RCTModuleMethod.mm in Sources */, - 2D3B5E9F1D9B08AF00451313 /* RCTKeyCommands.m in Sources */, - 2D3B5EA51D9B08C700451313 /* RCTRootView.m in Sources */, - 13134C871E296B2A00B9F3CB /* RCTCxxBridge.mm in Sources */, - CF2731C31E7B8DF30044CA4F /* RCTDeviceInfo.m in Sources */, - 599FAA3F1FB274980058CCF6 /* RCTSurfaceRootShadowView.m in Sources */, - 597633371F4E021D005BE8A4 /* RCTShadowView+Internal.m in Sources */, - 2D3B5EB11D9B090100451313 /* RCTAppState.m in Sources */, - 59E604A31FE9CCE300BD90C5 /* RCTScrollContentViewManager.m in Sources */, - 1384E20B1E806D5B00545659 /* RCTNativeModule.mm in Sources */, - 2D3B5EC21D9B093B00451313 /* RCTProfile.m in Sources */, - 2D3B5ECB1D9B096200451313 /* RCTConvert+CoreLocation.m in Sources */, - 2D3B5EEE1D9B09DA00451313 /* RCTView.m in Sources */, - 2D3B5E981D9B089500451313 /* RCTConvert.m in Sources */, - 3D7BFD181EA8E351008DFB7A /* RCTPackagerClient.m in Sources */, - 2D3B5EA71D9B08CE00451313 /* RCTTouchHandler.m in Sources */, - 8507BBBF21EDACC200AEAFCA /* JSCExecutorFactory.mm in Sources */, - 59D031F01F8353D3008361F0 /* RCTSafeAreaShadowView.m in Sources */, - 5925356B20084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm in Sources */, - 3D05745A1DE5FFF500184BB4 /* RCTJavaScriptLoader.mm in Sources */, - 2D3B5EA41D9B08C200451313 /* RCTPerformanceLogger.m in Sources */, - 3DCE53251FEAB1E000613583 /* RCTShadowView.m in Sources */, - 2D3B5E9E1D9B08AD00451313 /* RCTJSStackFrame.m in Sources */, - 13134CA31E296B2A00B9F3CB /* RCTCxxUtils.mm in Sources */, - 59D031F41F8353D3008361F0 /* RCTSafeAreaView.m in Sources */, - 2D3B5E941D9B087900451313 /* RCTBundleURLProvider.m in Sources */, - 2D3B5EB81D9B091B00451313 /* RCTSourceCode.m in Sources */, - 591F78DB202ADB22004A668C /* RCTLayout.m in Sources */, - 2D3B5EB51D9B091100451313 /* RCTDevMenu.m in Sources */, - 2D3B5EBD1D9B092A00451313 /* RCTTiming.m in Sources */, - 2D3B5EA81D9B08D300451313 /* RCTUtils.m in Sources */, - 599FAA451FB274980058CCF6 /* RCTSurfaceRootView.mm in Sources */, - 2D3B5EC81D9B095800451313 /* RCTActivityIndicatorViewManager.m in Sources */, - 3DCD185D1DF978E7007FE5A1 /* RCTReloadCommand.m in Sources */, - 130443DB1E401ADD00D93A67 /* RCTConvert+Transform.m in Sources */, - 2D3B5EC61D9B095000451313 /* RCTProfileTrampoline-x86_64.S in Sources */, - 2D3B5EA61D9B08CA00451313 /* RCTTouchEvent.m in Sources */, - 2D8C2E331DA40441000EE098 /* RCTMultipartStreamReader.m in Sources */, - 59EDBCBC1FDF4E0C003573DE /* RCTScrollViewManager.m in Sources */, - 59EDBCB01FDF4E0C003573DE /* RCTScrollContentView.m in Sources */, - 2D3B5EF01D9B09E300451313 /* RCTWrapperViewController.m in Sources */, - 2D3B5EB01D9B08FE00451313 /* RCTAlertManager.m in Sources */, - 13134C9B1E296B2A00B9F3CB /* RCTCxxMethod.mm in Sources */, - 2D3B5E9C1D9B08A300451313 /* RCTImageSource.m in Sources */, - 2D3B5EC31D9B094800451313 /* RCTProfileTrampoline-arm.S in Sources */, - 3D0B842B1EC0B49400B2BD8E /* RCTTVRemoteHandler.m in Sources */, - 657734861EE834D900A0E9EA /* RCTInspectorDevServerHelper.mm in Sources */, - 66CD94B41F1045E700CB3C7C /* RCTMaskedView.m in Sources */, - 2D74EAFA1DAE9590003B751B /* RCTMultipartDataTask.m in Sources */, - 2D3B5EC51D9B094D00451313 /* RCTProfileTrampoline-i386.S in Sources */, - 657734951EE8356100A0E9EA /* RCTInspectorPackagerConnection.m in Sources */, - 59283CA11FD67321000EAAB9 /* RCTSurfaceStage.m in Sources */, - 2D3B5EC41D9B094B00451313 /* RCTProfileTrampoline-arm64.S in Sources */, - 2D3B5EBB1D9B092300451313 /* RCTI18nManager.m in Sources */, - 2D3B5EBE1D9B092D00451313 /* RCTUIManager.m in Sources */, - C60128AE1F3D1258009DF9FF /* RCTCxxConvert.m in Sources */, - 2D3B5EDD1D9B09A300451313 /* RCTProgressViewManager.m in Sources */, - 2D3B5EC11D9B093900451313 /* RCTFPSGraph.m in Sources */, - 2D3B5E9A1D9B089D00451313 /* RCTEventDispatcher.m in Sources */, - 2D3B5ED61D9B098400451313 /* RCTModalHostViewManager.m in Sources */, - 2D3B5EC71D9B095600451313 /* RCTActivityIndicatorView.m in Sources */, - 2D3B5EB21D9B090300451313 /* RCTAsyncLocalStorage.m in Sources */, - 59D031FC1F8353D3008361F0 /* RCTSafeAreaViewManager.m in Sources */, - 2D3B5EC01D9B093600451313 /* RCTPerfMonitor.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D383D241EBD27B6005632C8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3D383D251EBD27B6005632C8 /* Conv.cpp in Sources */, - 3D383D271EBD27B6005632C8 /* raw_logging.cc in Sources */, - 83281388217EB73400574D55 /* String.cpp in Sources */, - 3D383D281EBD27B6005632C8 /* signalhandler.cc in Sources */, - 833D02BE217EBD2600A23750 /* Format.cpp in Sources */, - 833D02BB217EBCFA00A23750 /* Assume.cpp in Sources */, - 3D383D291EBD27B6005632C8 /* dynamic.cpp in Sources */, - 3D383D2A1EBD27B6005632C8 /* utilities.cc in Sources */, - 8328138E217EB75C00574D55 /* ColdClass.cpp in Sources */, - 3D383D2D1EBD27B6005632C8 /* symbolize.cc in Sources */, - 3D383D2E1EBD27B6005632C8 /* vlog_is_on.cc in Sources */, - 3D383D2F1EBD27B6005632C8 /* Unicode.cpp in Sources */, - 3D383D301EBD27B6005632C8 /* demangle.cc in Sources */, - 8328139A217EB79D00574D55 /* ScopeGuard.cpp in Sources */, - 83281394217EB77D00574D55 /* SpookyHashV2.cpp in Sources */, - 3D383D311EBD27B6005632C8 /* Demangle.h in Sources */, - 3D383D331EBD27B6005632C8 /* logging.cc in Sources */, - 83281397217EB79000574D55 /* F14Table.cpp in Sources */, - 83281385217EB71200574D55 /* MallocImpl.cpp in Sources */, - 8328138B217EB74C00574D55 /* json_pointer.cpp in Sources */, - 3D383D341EBD27B6005632C8 /* json.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D383D3F1EBD27B9005632C8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3D383D401EBD27B9005632C8 /* bignum-dtoa.cc in Sources */, - 3D383D411EBD27B9005632C8 /* bignum.cc in Sources */, - 3D383D421EBD27B9005632C8 /* cached-powers.cc in Sources */, - 3D383D431EBD27B9005632C8 /* diy-fp.cc in Sources */, - 3D383D441EBD27B9005632C8 /* double-conversion.cc in Sources */, - 3D383D451EBD27B9005632C8 /* fast-dtoa.cc in Sources */, - 3D383D461EBD27B9005632C8 /* fixed-dtoa.cc in Sources */, - 3D383D471EBD27B9005632C8 /* strtod.cc in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D3CD91F1DE5FBEC00167DC4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3DC159E51E83E1E9007B1282 /* JSBigString.cpp in Sources */, - 13F8877B1E29726200C3C7A1 /* JSIndexedRAMBundle.cpp in Sources */, - 13F8877D1E29726200C3C7A1 /* ModuleRegistry.cpp in Sources */, - C6D3801C1F71D76700621378 /* RAMBundleRegistry.cpp in Sources */, - 13F8876E1E29726200C3C7A1 /* CxxNativeModule.cpp in Sources */, - 13DA8A332097A90B00276ED4 /* ReactMarker.cpp in Sources */, - 13F887711E29726200C3C7A1 /* JSBundleType.cpp in Sources */, - 13F8877C1E29726200C3C7A1 /* MethodCall.cpp in Sources */, - 13F887701E29726200C3C7A1 /* Instance.cpp in Sources */, - 13F8877E1E29726200C3C7A1 /* NativeToJsBridge.cpp in Sources */, - 13F887801E29726200C3C7A1 /* SampleCxxModule.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 3D3CD92C1DE5FBEE00167DC4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - BA0501AE2109DD0600A6BBC4 /* JSExecutor.cpp in Sources */, - 3DC159E61E83E1FA007B1282 /* JSBigString.cpp in Sources */, - 13F8878E1E29726300C3C7A1 /* JSIndexedRAMBundle.cpp in Sources */, - 13F887901E29726300C3C7A1 /* ModuleRegistry.cpp in Sources */, - C6D3801D1F71D76800621378 /* RAMBundleRegistry.cpp in Sources */, - 13DA8A342097A90B00276ED4 /* ReactMarker.cpp in Sources */, - 13F887841E29726300C3C7A1 /* Instance.cpp in Sources */, - 3D80D9181DF6F7A80028D040 /* JSBundleType.cpp in Sources */, - 13F8878F1E29726300C3C7A1 /* MethodCall.cpp in Sources */, - 13F887911E29726300C3C7A1 /* NativeToJsBridge.cpp in Sources */, - 13F887821E29726300C3C7A1 /* CxxNativeModule.cpp in Sources */, - 13F887931E29726300C3C7A1 /* SampleCxxModule.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 83CBBA2A1A601D0E00E9B192 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 13134C9A1E296B2A00B9F3CB /* RCTCxxMethod.mm in Sources */, - E223624420875A8000108244 /* JSExecutor.cpp in Sources */, - 59500D451F71C63F00B122B7 /* RCTUIManagerUtils.m in Sources */, - 597633361F4E021D005BE8A4 /* RCTShadowView+Internal.m in Sources */, - 13723B501A82FD3C00F88898 /* RCTStatusBarManager.m in Sources */, - 000E6CEB1AB0E980000CDF4D /* RCTSourceCode.m in Sources */, - 001BFCD01D8381DE008E587E /* RCTMultipartStreamReader.m in Sources */, - 14C2CA761B3AC64F00E6CBB2 /* RCTFrameUpdate.m in Sources */, - 594F0A341FD23228007FBE96 /* RCTSurfaceHostingView.mm in Sources */, - 13134C861E296B2A00B9F3CB /* RCTCxxBridge.mm in Sources */, - 13B07FEF1A69327A00A75B9A /* RCTAlertManager.m in Sources */, - 599FAA4C1FB274980058CCF6 /* RCTSurfaceView.mm in Sources */, - 352DCFF01D19F4C20056D623 /* RCTI18nUtil.m in Sources */, - 66CD94B71F1045E700CB3C7C /* RCTMaskedViewManager.m in Sources */, - 008341F61D1DB34400876D9A /* RCTJSStackFrame.m in Sources */, - 13134C961E296B2A00B9F3CB /* RCTObjcExecutor.mm in Sources */, - 59D031FB1F8353D3008361F0 /* RCTSafeAreaViewManager.m in Sources */, - 83CBBACC1A6023D300E9B192 /* RCTConvert.m in Sources */, - 131B6AF41AF1093D00FFC3E0 /* RCTSegmentedControl.m in Sources */, - 830A229E1A66C68A008503DA /* RCTRootView.m in Sources */, - 8507BBBE21EDACC200AEAFCA /* JSCExecutorFactory.mm in Sources */, - 13B07FF01A69327A00A75B9A /* RCTExceptionsManager.m in Sources */, - 13A0C28A1B74F71200B29F6F /* RCTDevMenu.m in Sources */, - 13BCE8091C99CB9D00DD7AAD /* RCTRootShadowView.m in Sources */, - 006FC4141D9B20820057AAAD /* RCTMultipartDataTask.m in Sources */, - 13CC8A821B17642100940AE7 /* RCTBorderDrawing.m in Sources */, - C60128AD1F3D1258009DF9FF /* RCTCxxConvert.m in Sources */, - 3DCE53291FEAB23100613583 /* RCTDatePicker.m in Sources */, - 0EEEA8DF2239002200A8C82D /* RCTSurfacePresenterStub.m in Sources */, - 50E98FEA21460B0D00CD9289 /* RCTWKWebViewManager.m in Sources */, - 83CBBA511A601E3B00E9B192 /* RCTAssert.m in Sources */, - 59EB6DBD1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.mm in Sources */, - 59E604A21FE9CCE300BD90C5 /* RCTScrollContentViewManager.m in Sources */, - 13AF20451AE707F9005F5298 /* RCTSlider.m in Sources */, - 130443A21E3FEAA900D93A67 /* RCTFollyConvert.mm in Sources */, - 58114A501AAE93D500E7D092 /* RCTAsyncLocalStorage.m in Sources */, - 657734851EE834C900A0E9EA /* RCTInspectorDevServerHelper.mm in Sources */, - 130E3D891E6A082100ACE484 /* RCTDevSettings.mm in Sources */, - 59283CA01FD67321000EAAB9 /* RCTSurfaceStage.m in Sources */, - 13513F3C1B1F43F400FCE529 /* RCTProgressViewManager.m in Sources */, - 14F7A0F01BDA714B003C6C10 /* RCTFPSGraph.m in Sources */, - 3D7BFD171EA8E351008DFB7A /* RCTPackagerClient.m in Sources */, - 14F3620D1AABD06A001CE568 /* RCTSwitch.m in Sources */, - 13134C8E1E296B2A00B9F3CB /* RCTMessageThread.mm in Sources */, - 599FAA381FB274980058CCF6 /* RCTSurface.mm in Sources */, - 59D031EF1F8353D3008361F0 /* RCTSafeAreaShadowView.m in Sources */, - 3D1E68DB1CABD13900DD7465 /* RCTDisplayLink.m in Sources */, - 14F3620E1AABD06A001CE568 /* RCTSwitchManager.m in Sources */, - 13B080201A69489C00A75B9A /* RCTActivityIndicatorViewManager.m in Sources */, - 13E067561A70F44B002CDEE1 /* RCTViewManager.m in Sources */, - 6DCB224622493AF10041DDBC /* Demangle.cpp in Sources */, - 13BB3D021BECD54500932C10 /* RCTImageSource.m in Sources */, - 13134CA21E296B2A00B9F3CB /* RCTCxxUtils.mm in Sources */, - C606692E1F3CC60500E67165 /* RCTModuleMethod.mm in Sources */, - 1450FF8A1BCFF28A00208362 /* RCTProfileTrampoline-x86_64.S in Sources */, - 13D9FEEB1CDCCECF00158BD7 /* RCTEventEmitter.m in Sources */, - 599FAA3E1FB274980058CCF6 /* RCTSurfaceRootShadowView.m in Sources */, - AC70D2E91DE489E4002E6351 /* RCTJavaScriptLoader.mm in Sources */, - 39C50FFB2046EE3500CEE534 /* RCTVersion.m in Sources */, - 14F7A0EC1BDA3B3C003C6C10 /* RCTPerfMonitor.m in Sources */, - 5960C1B71F0804A00066FD5B /* RCTLayoutAnimation.m in Sources */, - 13134C9E1E296B2A00B9F3CB /* RCTCxxModule.mm in Sources */, - 59E604A41FE9CCE300BD90C5 /* RCTScrollContentShadowView.m in Sources */, - 1450FF881BCFF28A00208362 /* RCTProfileTrampoline-arm64.S in Sources */, - 13E41EEB1C05CA0B00CD8DAC /* RCTProfileTrampoline-i386.S in Sources */, - 3D37B5821D522B190042D5B5 /* RCTFont.mm in Sources */, - 59EDBCB71FDF4E0C003573DE /* RCTScrollView.m in Sources */, - 59EDBCBB1FDF4E0C003573DE /* RCTScrollViewManager.m in Sources */, - 599FAA441FB274980058CCF6 /* RCTSurfaceRootView.mm in Sources */, - C60669361F3CCF1B00E67165 /* RCTManagedPointer.mm in Sources */, - 13B080261A694A8400A75B9A /* RCTWrapperViewController.m in Sources */, - A2440AA31DF8D854006E7BFC /* RCTReloadCommand.m in Sources */, - 6577348F1EE8354A00A0E9EA /* RCTInspector.mm in Sources */, - E9B20B7B1B500126007A2DA7 /* RCTAccessibilityManager.m in Sources */, - 13A0C2891B74F71200B29F6F /* RCTDevLoadingView.m in Sources */, - 13B07FF21A69327A00A75B9A /* RCTTiming.m in Sources */, - 1372B70A1AB030C200659ED6 /* RCTAppState.m in Sources */, - 59A7B9FE1E577DBF0068EDBF /* RCTRootContentView.m in Sources */, - 13E067591A70F44B002CDEE1 /* UIView+React.m in Sources */, - 591F78DA202ADB22004A668C /* RCTLayout.m in Sources */, - FEFAAC9E1FDB89B50057BBE0 /* RCTRedBoxExtraDataViewController.m in Sources */, - 14F484561AABFCE100FDF6B9 /* RCTSliderManager.m in Sources */, - CF2731C11E7B8DE40044CA4F /* RCTDeviceInfo.m in Sources */, - 3D7AA9C41E548CD5001955CF /* NSDataBigString.mm in Sources */, - 13D033631C1837FE0021DC29 /* RCTClipboard.m in Sources */, - 14C2CA741B3AC64300E6CBB2 /* RCTModuleData.mm in Sources */, - 142014191B32094000CC17BA /* RCTPerformanceLogger.m in Sources */, - 83CBBA981A6020BB00E9B192 /* RCTTouchHandler.m in Sources */, - 3EDCA8A51D3591E700450C31 /* RCTErrorInfo.m in Sources */, - 83CBBA521A601E3B00E9B192 /* RCTLog.mm in Sources */, - 13A6E20E1C19AA0C00845B82 /* RCTParserUtils.m in Sources */, - 59D031F71F8353D3008361F0 /* RCTSafeAreaViewLocalData.m in Sources */, - 13E067571A70F44B002CDEE1 /* RCTView.m in Sources */, - 3D7749441DC1065C007EC8D8 /* RCTPlatform.m in Sources */, - 59EDBCAF1FDF4E0C003573DE /* RCTScrollContentView.m in Sources */, - 13D9FEEE1CDCD93000158BD7 /* RCTKeyboardObserver.m in Sources */, - B233E6EA1D2D845D00BC68BA /* RCTI18nManager.m in Sources */, - 3D7BFD1F1EA8E351008DFB7A /* RCTPackagerConnection.mm in Sources */, - 13456E931ADAD2DE009F94A7 /* RCTConvert+CoreLocation.m in Sources */, - 13A1F71E1A75392D00D3D453 /* RCTKeyCommands.m in Sources */, - 83CBBA531A601E3B00E9B192 /* RCTUtils.m in Sources */, - 130443C61E401A8C00D93A67 /* RCTConvert+Transform.m in Sources */, - 191E3EC11C29DC3800C180A6 /* RCTRefreshControl.m in Sources */, - 3DCE532B1FEAB23100613583 /* RCTDatePickerManager.m in Sources */, - 13C156051AB1A2840079392D /* RCTWebView.m in Sources */, - 83CBBA601A601EAA00E9B192 /* RCTBridge.m in Sources */, - 50E98FEC21460B0D00CD9289 /* RCTWKWebView.m in Sources */, - 590D7BFF1EBD458B00D8A370 /* RCTShadowView+Layout.m in Sources */, - 5335D5411FE81A4700883D58 /* RCTShadowView.m in Sources */, - 66CD94B31F1045E700CB3C7C /* RCTMaskedView.m in Sources */, - 13C156061AB1A2840079392D /* RCTWebViewManager.m in Sources */, - 58114A161AAE854800E7D092 /* RCTPicker.m in Sources */, - 83A1FE8C1B62640A00BE0E65 /* RCTModalHostView.m in Sources */, - 5925356A20084D0600DD584B /* RCTSurfaceSizeMeasureMode.mm in Sources */, - 1450FF871BCFF28A00208362 /* RCTProfileTrampoline-arm.S in Sources */, - 131B6AF51AF1093D00FFC3E0 /* RCTSegmentedControlManager.m in Sources */, - 58114A171AAE854800E7D092 /* RCTPickerManager.m in Sources */, - 191E3EBE1C29D9AF00C180A6 /* RCTRefreshControlManager.m in Sources */, - 657734911EE8354A00A0E9EA /* RCTInspectorPackagerConnection.m in Sources */, - 68EFE4EE1CF6EB3900A1DE13 /* RCTBundleURLProvider.m in Sources */, - B95154321D1B34B200FE7B80 /* RCTActivityIndicatorView.m in Sources */, - 5960C1BB1F0804A00066FD5B /* RCTLayoutAnimationGroup.m in Sources */, - 13F17A851B8493E5007D4C75 /* RCTRedBox.m in Sources */, - 59D031F31F8353D3008361F0 /* RCTSafeAreaView.m in Sources */, - 83392EB31B6634E10013B15F /* RCTModalHostViewController.m in Sources */, - 83CBBA691A601EF300E9B192 /* RCTEventDispatcher.m in Sources */, - 83A1FE8F1B62643A00BE0E65 /* RCTModalHostViewManager.m in Sources */, - 13E0674A1A70F434002CDEE1 /* RCTUIManager.m in Sources */, - 1384E2091E806D4E00545659 /* RCTNativeModule.mm in Sources */, - 391E86A41C623EC800009732 /* RCTTouchEvent.m in Sources */, - 1450FF861BCFF28A00208362 /* RCTProfile.m in Sources */, - 13AB90C11B6FA36700713B4F /* RCTComponentData.m in Sources */, - F1EFDA50201F661000EE6E4C /* RCTUIUtils.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EBF21BD31FC498900052F4D5 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - EBF21BFC1FC4990B0052F4D5 /* InspectorInterfaces.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EBF21BF11FC4989A0052F4D5 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - EBF21BFF1FC4998E0052F4D5 /* InspectorInterfaces.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ED296FA9214C9A0900B7C4FE /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ED296FB9214C9AC200B7C4FE /* JSCRuntime.cpp in Sources */, - ED296FB7214C9A9A00B7C4FE /* JSIDynamic.cpp in Sources */, - ED296FB8214C9A9A00B7C4FE /* jsi.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ED296FE1214C9CF800B7C4FE /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - EDDA711E2164285A00B2D070 /* JSINativeModules.cpp in Sources */, - EDDA71202164285A00B2D070 /* JSIExecutor.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EDEBC6CA214B3E7000DD5AC8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - EDEBC6E6214B3F6800DD5AC8 /* JSCRuntime.cpp in Sources */, - EDEBC6E4214B3F6800DD5AC8 /* jsi.cpp in Sources */, - EDEBC6E3214B3F6800DD5AC8 /* JSIDynamic.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EDEBC734214B45A300DD5AC8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - EDDA711D2164285A00B2D070 /* JSINativeModules.cpp in Sources */, - EDDA711F2164285A00B2D070 /* JSIExecutor.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 1320081D1E283DCB00F0C457 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 139D7E871E25C6D100323FB7 /* double-conversion */; - targetProxy = 1320081C1E283DCB00F0C457 /* PBXContainerItemProxy */; - }; - 3D0574571DE5FF9600184BB4 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3D3CD9261DE5FBEE00167DC4 /* cxxreact-tvOS */; - targetProxy = 3D0574561DE5FF9600184BB4 /* PBXContainerItemProxy */; - }; - 3D383D661EBD27DB005632C8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3D383D3D1EBD27B9005632C8 /* double-conversion-tvOS */; - targetProxy = 3D383D651EBD27DB005632C8 /* PBXContainerItemProxy */; - }; - 3D3CD94C1DE5FCE700167DC4 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3D3CD9191DE5FBEC00167DC4 /* cxxreact */; - targetProxy = 3D3CD94B1DE5FCE700167DC4 /* PBXContainerItemProxy */; - }; - ED296F7E214C957300B7C4FE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = EDEBC6BA214B3E7000DD5AC8 /* jsi */; - targetProxy = ED296F7D214C957300B7C4FE /* PBXContainerItemProxy */; - }; - ED296F81214C971800B7C4FE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = EBF21BDD1FC4989A0052F4D5 /* jsinspector-tvOS */; - targetProxy = ED296F80214C971800B7C4FE /* PBXContainerItemProxy */; - }; - ED296F97214C996500B7C4FE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3D383D3D1EBD27B9005632C8 /* double-conversion-tvOS */; - targetProxy = ED296F96214C996500B7C4FE /* PBXContainerItemProxy */; - }; - ED296FCA214C9B6200B7C4FE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = ED296F98214C9A0900B7C4FE /* jsi-tvOS */; - targetProxy = ED296FC9214C9B6200B7C4FE /* PBXContainerItemProxy */; - }; - ED296FF8214C9EAA00B7C4FE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3D383D211EBD27B6005632C8 /* third-party-tvOS */; - targetProxy = ED296FF7214C9EAA00B7C4FE /* PBXContainerItemProxy */; - }; - ED296FFC214C9EC000B7C4FE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3D3CD9261DE5FBEE00167DC4 /* cxxreact-tvOS */; - targetProxy = ED296FFB214C9EC000B7C4FE /* PBXContainerItemProxy */; - }; - ED296FFE214C9EC600B7C4FE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = ED296F98214C9A0900B7C4FE /* jsi-tvOS */; - targetProxy = ED296FFD214C9EC600B7C4FE /* PBXContainerItemProxy */; - }; - ED29704E215012C700B7C4FE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3D383D3D1EBD27B9005632C8 /* double-conversion-tvOS */; - targetProxy = ED29704D215012C700B7C4FE /* PBXContainerItemProxy */; - }; - ED2970662150237300B7C4FE /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = ED296FD0214C9CF800B7C4FE /* jsiexecutor-tvOS */; - targetProxy = ED2970652150237300B7C4FE /* PBXContainerItemProxy */; - }; - EDEBC74B214B46A700DD5AC8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = EDEBC724214B45A300DD5AC8 /* jsiexecutor */; - targetProxy = EDEBC74A214B46A700DD5AC8 /* PBXContainerItemProxy */; - }; - EDEBC74F214B477400DD5AC8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = EDEBC6BA214B3E7000DD5AC8 /* jsi */; - targetProxy = EDEBC74E214B477400DD5AC8 /* PBXContainerItemProxy */; - }; - EDEBC7CC214C516800DD5AC8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 139D7E871E25C6D100323FB7 /* double-conversion */; - targetProxy = EDEBC7CB214C516800DD5AC8 /* PBXContainerItemProxy */; - }; - EDEBC7CE214C523F00DD5AC8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 3D3CD9191DE5FBEC00167DC4 /* cxxreact */; - targetProxy = EDEBC7CD214C523F00DD5AC8 /* PBXContainerItemProxy */; - }; - EDEBC7D3214C528C00DD5AC8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 139D7ECD1E25DB7D00323FB7 /* third-party */; - targetProxy = EDEBC7D2214C528C00DD5AC8 /* PBXContainerItemProxy */; - }; - EDEBC7D7214C52FD00DD5AC8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 139D7E871E25C6D100323FB7 /* double-conversion */; - targetProxy = EDEBC7D6214C52FD00DD5AC8 /* PBXContainerItemProxy */; - }; - EDEBC7D9214C628300DD5AC8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = EBF21BBF1FC498900052F4D5 /* jsinspector */; - targetProxy = EDEBC7D8214C628300DD5AC8 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 139D7E8F1E25C6D100323FB7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - GCC_WARN_SHADOW = NO; - OTHER_LDFLAGS = "-ObjC"; - PRIVATE_HEADERS_FOLDER_PATH = "/usr/local/include/double-conversion"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - }; - name = Debug; - }; - 139D7E901E25C6D100323FB7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_WARN_SHADOW = NO; - OTHER_LDFLAGS = "-ObjC"; - PRIVATE_HEADERS_FOLDER_PATH = "/usr/local/include/double-conversion"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - }; - name = Release; - }; - 139D7ED51E25DB7D00323FB7 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = NO; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 139D7ED61E25DB7D00323FB7 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = NO; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 2D2A28191D9B038B00D4039D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = React; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/React; - SDKROOT = appletvos; - }; - name = Debug; - }; - 2D2A281A1D9B038B00D4039D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = React; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/React; - SDKROOT = appletvos; - }; - name = Release; - }; - 3D383D3A1EBD27B6005632C8 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = NO; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "third-party"; - SDKROOT = appletvos; - SKIP_INSTALL = YES; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Debug; - }; - 3D383D3B1EBD27B6005632C8 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = NO; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "third-party"; - SDKROOT = appletvos; - SKIP_INSTALL = YES; - USER_HEADER_SEARCH_PATHS = ""; - }; - name = Release; - }; - 3D383D601EBD27B9005632C8 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - GCC_WARN_SHADOW = NO; - OTHER_LDFLAGS = "-ObjC"; - PRIVATE_HEADERS_FOLDER_PATH = "/usr/local/include/double-conversion"; - PRODUCT_NAME = "double-conversion"; - SDKROOT = appletvos; - SKIP_INSTALL = YES; - }; - name = Debug; - }; - 3D383D611EBD27B9005632C8 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_WARN_SHADOW = NO; - OTHER_LDFLAGS = "-ObjC"; - PRIVATE_HEADERS_FOLDER_PATH = "/usr/local/include/double-conversion"; - PRODUCT_NAME = "double-conversion"; - SDKROOT = appletvos; - SKIP_INSTALL = YES; - }; - name = Release; - }; - 3D3CD9231DE5FBEC00167DC4 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/cxxreact; - RUN_CLANG_STATIC_ANALYZER = YES; - }; - name = Debug; - }; - 3D3CD9241DE5FBEC00167DC4 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/cxxreact; - RUN_CLANG_STATIC_ANALYZER = NO; - }; - name = Release; - }; - 3D3CD9301DE5FBEE00167DC4 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = cxxreact; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/cxxreact; - SDKROOT = appletvos; - }; - name = Debug; - }; - 3D3CD9311DE5FBEE00167DC4 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = cxxreact; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/cxxreact; - SDKROOT = appletvos; - }; - name = Release; - }; - 83CBBA201A601CBA00E9B192 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "RCT_DEBUG=1", - "RCT_DEV=1", - "RCT_NSASSERT=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; - GCC_WARN_SHADOW = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TVOS_DEPLOYMENT_TARGET = 9.2; - WARNING_CFLAGS = ( - "-Wextra", - "-Wall", - "-Wno-semicolon-before-method-body", - ); - }; - name = Debug; - }; - 83CBBA211A601CBA00E9B192 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_PREPROCESSOR_DEFINITIONS = ""; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; - GCC_WARN_SHADOW = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TVOS_DEPLOYMENT_TARGET = 9.2; - VALIDATE_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wextra", - "-Wall", - "-Wno-semicolon-before-method-body", - ); - }; - name = Release; - }; - 83CBBA401A601D0F00E9B192 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "RCT_DEBUG=1", - "RCT_DEV=1", - "RCT_NSASSERT=1", - "RCT_METRO_PORT=${RCT_METRO_PORT}", - ); - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = ( - "-ObjC", - "-weak_framework", - WebKit, - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/React; - RUN_CLANG_STATIC_ANALYZER = YES; - }; - name = Debug; - }; - 83CBBA411A601D0F00E9B192 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_PREPROCESSOR_DEFINITIONS = ( - "$(inherited)", - "RCT_METRO_PORT=${RCT_METRO_PORT}", - ); - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = ( - "-ObjC", - "-weak_framework", - WebKit, - ); - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/React; - RUN_CLANG_STATIC_ANALYZER = NO; - }; - name = Release; - }; - EBF21BDA1FC498900052F4D5 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsinspector; - RUN_CLANG_STATIC_ANALYZER = YES; - }; - name = Debug; - }; - EBF21BDB1FC498900052F4D5 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsinspector; - RUN_CLANG_STATIC_ANALYZER = NO; - }; - name = Release; - }; - EBF21BF81FC4989A0052F4D5 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsinspector; - SDKROOT = appletvos; - }; - name = Debug; - }; - EBF21BF91FC4989A0052F4D5 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsinspector; - SDKROOT = appletvos; - }; - name = Release; - }; - ED296FB4214C9A0900B7C4FE /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_CFLAGS = ( - "-DFOLLY_NO_CONFIG", - "-DFOLLY_MOBILE=1", - "-DFOLLY_USE_LIBCPP=1", - ); - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsi; - SDKROOT = appletvos; - }; - name = Debug; - }; - ED296FB5214C9A0900B7C4FE /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_CFLAGS = ( - "-DFOLLY_NO_CONFIG", - "-DFOLLY_MOBILE=1", - "-DFOLLY_USE_LIBCPP=1", - ); - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsi; - SDKROOT = appletvos; - }; - name = Release; - }; - ED296FEC214C9CF800B7C4FE /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_CFLAGS = ( - "-DFOLLY_NO_CONFIG", - "-DFOLLY_MOBILE=1", - "-DFOLLY_USE_LIBCPP=1", - ); - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsireact; - SDKROOT = appletvos; - }; - name = Debug; - }; - ED296FED214C9CF800B7C4FE /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_WARN_COMMA = NO; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_NO_COMMON_BLOCKS = YES; - OTHER_CFLAGS = ( - "-DFOLLY_NO_CONFIG", - "-DFOLLY_MOBILE=1", - "-DFOLLY_USE_LIBCPP=1", - ); - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsireact; - SDKROOT = appletvos; - }; - name = Release; - }; - EDEBC6D4214B3E7000DD5AC8 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsi; - RUN_CLANG_STATIC_ANALYZER = YES; - }; - name = Debug; - }; - EDEBC6D5214B3E7000DD5AC8 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsi; - RUN_CLANG_STATIC_ANALYZER = NO; - }; - name = Release; - }; - EDEBC739214B45A300DD5AC8 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsireact; - RUN_CLANG_STATIC_ANALYZER = YES; - }; - name = Debug; - }; - EDEBC73A214B45A300DD5AC8 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6DCB22442249333B0041DDBC /* third-party(Yoga).xcconfig */; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; - CLANG_STATIC_ANALYZER_MODE = deep; - CLANG_WARN_COMMA = NO; - GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; - GCC_WARN_ABOUT_MISSING_NEWLINE = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - PUBLIC_HEADERS_FOLDER_PATH = /usr/local/include/jsireact; - RUN_CLANG_STATIC_ANALYZER = NO; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 139D7E8E1E25C6D100323FB7 /* Build configuration list for PBXNativeTarget "double-conversion" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 139D7E8F1E25C6D100323FB7 /* Debug */, - 139D7E901E25C6D100323FB7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 139D7ED41E25DB7D00323FB7 /* Build configuration list for PBXNativeTarget "third-party" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 139D7ED51E25DB7D00323FB7 /* Debug */, - 139D7ED61E25DB7D00323FB7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2D2A281B1D9B038B00D4039D /* Build configuration list for PBXNativeTarget "React-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2D2A28191D9B038B00D4039D /* Debug */, - 2D2A281A1D9B038B00D4039D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 3D383D391EBD27B6005632C8 /* Build configuration list for PBXNativeTarget "third-party-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 3D383D3A1EBD27B6005632C8 /* Debug */, - 3D383D3B1EBD27B6005632C8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 3D383D5F1EBD27B9005632C8 /* Build configuration list for PBXNativeTarget "double-conversion-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 3D383D601EBD27B9005632C8 /* Debug */, - 3D383D611EBD27B9005632C8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 3D3CD9221DE5FBEC00167DC4 /* Build configuration list for PBXNativeTarget "cxxreact" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 3D3CD9231DE5FBEC00167DC4 /* Debug */, - 3D3CD9241DE5FBEC00167DC4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 3D3CD92F1DE5FBEE00167DC4 /* Build configuration list for PBXNativeTarget "cxxreact-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 3D3CD9301DE5FBEE00167DC4 /* Debug */, - 3D3CD9311DE5FBEE00167DC4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactYoga" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 83CBBA201A601CBA00E9B192 /* Debug */, - 83CBBA211A601CBA00E9B192 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 83CBBA3F1A601D0F00E9B192 /* Build configuration list for PBXNativeTarget "React" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 83CBBA401A601D0F00E9B192 /* Debug */, - 83CBBA411A601D0F00E9B192 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - EBF21BD91FC498900052F4D5 /* Build configuration list for PBXNativeTarget "jsinspector" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - EBF21BDA1FC498900052F4D5 /* Debug */, - EBF21BDB1FC498900052F4D5 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - EBF21BF71FC4989A0052F4D5 /* Build configuration list for PBXNativeTarget "jsinspector-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - EBF21BF81FC4989A0052F4D5 /* Debug */, - EBF21BF91FC4989A0052F4D5 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - ED296FB3214C9A0900B7C4FE /* Build configuration list for PBXNativeTarget "jsi-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - ED296FB4214C9A0900B7C4FE /* Debug */, - ED296FB5214C9A0900B7C4FE /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - ED296FEB214C9CF800B7C4FE /* Build configuration list for PBXNativeTarget "jsiexecutor-tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - ED296FEC214C9CF800B7C4FE /* Debug */, - ED296FED214C9CF800B7C4FE /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - EDEBC6D3214B3E7000DD5AC8 /* Build configuration list for PBXNativeTarget "jsi" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - EDEBC6D4214B3E7000DD5AC8 /* Debug */, - EDEBC6D5214B3E7000DD5AC8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - EDEBC738214B45A300DD5AC8 /* Build configuration list for PBXNativeTarget "jsiexecutor" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - EDEBC739214B45A300DD5AC8 /* Debug */, - EDEBC73A214B45A300DD5AC8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; -} diff --git a/Yoga.podspec b/Yoga.podspec index 2b09977d..4ba88080 100644 --- a/Yoga.podspec +++ b/Yoga.podspec @@ -1,8 +1,9 @@ -# Copyright (c) Facebook, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. + Pod::Spec.new do |spec| spec.name = 'Yoga' spec.version = '1.14.0' @@ -29,10 +30,11 @@ Pod::Spec.new do |spec| '-fexceptions', '-Wall', '-Werror', - '-std=c++1y', + '-Wextra', + '-std=c++14', '-fPIC' ] - spec.source_files = 'yoga/**/*.{c,h,cpp}' - spec.public_header_files = 'yoga/{Yoga,YGEnums,YGMacros,YGNode,YGStyle,YGValue}.h' + spec.source_files = 'yoga/**/*.{h,cpp}' + spec.public_header_files = 'yoga/{Yoga,YGEnums,YGMacros,YGValue}.h' end diff --git a/YogaDev.xcworkspace/contents.xcworkspacedata b/YogaDev.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 3d71e110..00000000 --- a/YogaDev.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/YogaDev.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/YogaDev.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/YogaDev.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/YogaDev/YogaDev.xcodeproj/project.pbxproj b/YogaDev/YogaDev.xcodeproj/project.pbxproj deleted file mode 100644 index ad2546ff..00000000 --- a/YogaDev/YogaDev.xcodeproj/project.pbxproj +++ /dev/null @@ -1,350 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 6D4C7FA42249476900CBB1EC /* YGMarker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F892249476700CBB1EC /* YGMarker.cpp */; }; - 6D4C7FA52249476900CBB1EC /* YGValue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F8B2249476700CBB1EC /* YGValue.cpp */; }; - 6D4C7FA62249476900CBB1EC /* YGLayout.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F902249476700CBB1EC /* YGLayout.cpp */; }; - 6D4C7FA72249476900CBB1EC /* YGNodePrint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F922249476700CBB1EC /* YGNodePrint.cpp */; }; - 6D4C7FA82249476900CBB1EC /* YGStyle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F992249476800CBB1EC /* YGStyle.cpp */; }; - 6D4C7FA92249476900CBB1EC /* log.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F9A2249476800CBB1EC /* log.cpp */; }; - 6D4C7FAA2249476900CBB1EC /* YGNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F9B2249476800CBB1EC /* YGNode.cpp */; }; - 6D4C7FAB2249476900CBB1EC /* Yoga.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F9C2249476800CBB1EC /* Yoga.cpp */; }; - 6D4C7FAC2249476900CBB1EC /* Utils.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F9D2249476800CBB1EC /* Utils.cpp */; }; - 6D4C7FAD2249476900CBB1EC /* YGEnums.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7F9E2249476800CBB1EC /* YGEnums.cpp */; }; - 6D4C7FAE2249476900CBB1EC /* YGConfig.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6D4C7FA32249476800CBB1EC /* YGConfig.cpp */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 6D4C7F76224945B200CBB1EC /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = "include/$(PRODUCT_NAME)"; - dstSubfolderSpec = 16; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 6D4C7F78224945B200CBB1EC /* libYogaDev.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libYogaDev.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 6D4C7F892249476700CBB1EC /* YGMarker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = YGMarker.cpp; path = ../yoga/YGMarker.cpp; sourceTree = ""; }; - 6D4C7F8A2249476700CBB1EC /* Utils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Utils.h; path = ../yoga/Utils.h; sourceTree = ""; }; - 6D4C7F8B2249476700CBB1EC /* YGValue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = YGValue.cpp; path = ../yoga/YGValue.cpp; sourceTree = ""; }; - 6D4C7F8C2249476700CBB1EC /* instrumentation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = instrumentation.h; path = ../yoga/instrumentation.h; sourceTree = ""; }; - 6D4C7F8D2249476700CBB1EC /* YGStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGStyle.h; path = ../yoga/YGStyle.h; sourceTree = ""; }; - 6D4C7F8E2249476700CBB1EC /* YGNodePrint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGNodePrint.h; path = ../yoga/YGNodePrint.h; sourceTree = ""; }; - 6D4C7F8F2249476700CBB1EC /* YGMarker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGMarker.h; path = ../yoga/YGMarker.h; sourceTree = ""; }; - 6D4C7F902249476700CBB1EC /* YGLayout.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = YGLayout.cpp; path = ../yoga/YGLayout.cpp; sourceTree = ""; }; - 6D4C7F912249476700CBB1EC /* YGEnums.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGEnums.h; path = ../yoga/YGEnums.h; sourceTree = ""; }; - 6D4C7F922249476700CBB1EC /* YGNodePrint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = YGNodePrint.cpp; path = ../yoga/YGNodePrint.cpp; sourceTree = ""; }; - 6D4C7F932249476700CBB1EC /* YGMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGMacros.h; path = ../yoga/YGMacros.h; sourceTree = ""; }; - 6D4C7F942249476700CBB1EC /* log.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = log.h; path = ../yoga/log.h; sourceTree = ""; }; - 6D4C7F952249476800CBB1EC /* YGFloatOptional.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGFloatOptional.h; path = ../yoga/YGFloatOptional.h; sourceTree = ""; }; - 6D4C7F962249476800CBB1EC /* YGNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGNode.h; path = ../yoga/YGNode.h; sourceTree = ""; }; - 6D4C7F972249476800CBB1EC /* YGLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGLayout.h; path = ../yoga/YGLayout.h; sourceTree = ""; }; - 6D4C7F982249476800CBB1EC /* CompactValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CompactValue.h; path = ../yoga/CompactValue.h; sourceTree = ""; }; - 6D4C7F992249476800CBB1EC /* YGStyle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = YGStyle.cpp; path = ../yoga/YGStyle.cpp; sourceTree = ""; }; - 6D4C7F9A2249476800CBB1EC /* log.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = log.cpp; path = ../yoga/log.cpp; sourceTree = ""; }; - 6D4C7F9B2249476800CBB1EC /* YGNode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = YGNode.cpp; path = ../yoga/YGNode.cpp; sourceTree = ""; }; - 6D4C7F9C2249476800CBB1EC /* Yoga.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Yoga.cpp; path = ../yoga/Yoga.cpp; sourceTree = ""; }; - 6D4C7F9D2249476800CBB1EC /* Utils.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Utils.cpp; path = ../yoga/Utils.cpp; sourceTree = ""; }; - 6D4C7F9E2249476800CBB1EC /* YGEnums.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = YGEnums.cpp; path = ../yoga/YGEnums.cpp; sourceTree = ""; }; - 6D4C7F9F2249476800CBB1EC /* Yoga-internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "Yoga-internal.h"; path = "../yoga/Yoga-internal.h"; sourceTree = ""; }; - 6D4C7FA02249476800CBB1EC /* YGValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGValue.h; path = ../yoga/YGValue.h; sourceTree = ""; }; - 6D4C7FA12249476800CBB1EC /* Yoga.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Yoga.h; path = ../yoga/Yoga.h; sourceTree = ""; }; - 6D4C7FA22249476800CBB1EC /* YGConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = YGConfig.h; path = ../yoga/YGConfig.h; sourceTree = ""; }; - 6D4C7FA32249476800CBB1EC /* YGConfig.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = YGConfig.cpp; path = ../yoga/YGConfig.cpp; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 6D4C7F75224945B200CBB1EC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 6D4C7F6F224945B200CBB1EC = { - isa = PBXGroup; - children = ( - 6D4C7F982249476800CBB1EC /* CompactValue.h */, - 6D4C7F8C2249476700CBB1EC /* instrumentation.h */, - 6D4C7F9A2249476800CBB1EC /* log.cpp */, - 6D4C7F942249476700CBB1EC /* log.h */, - 6D4C7F9D2249476800CBB1EC /* Utils.cpp */, - 6D4C7F8A2249476700CBB1EC /* Utils.h */, - 6D4C7FA32249476800CBB1EC /* YGConfig.cpp */, - 6D4C7FA22249476800CBB1EC /* YGConfig.h */, - 6D4C7F9E2249476800CBB1EC /* YGEnums.cpp */, - 6D4C7F912249476700CBB1EC /* YGEnums.h */, - 6D4C7F952249476800CBB1EC /* YGFloatOptional.h */, - 6D4C7F902249476700CBB1EC /* YGLayout.cpp */, - 6D4C7F972249476800CBB1EC /* YGLayout.h */, - 6D4C7F932249476700CBB1EC /* YGMacros.h */, - 6D4C7F892249476700CBB1EC /* YGMarker.cpp */, - 6D4C7F8F2249476700CBB1EC /* YGMarker.h */, - 6D4C7F9B2249476800CBB1EC /* YGNode.cpp */, - 6D4C7F962249476800CBB1EC /* YGNode.h */, - 6D4C7F922249476700CBB1EC /* YGNodePrint.cpp */, - 6D4C7F8E2249476700CBB1EC /* YGNodePrint.h */, - 6D4C7F992249476800CBB1EC /* YGStyle.cpp */, - 6D4C7F8D2249476700CBB1EC /* YGStyle.h */, - 6D4C7F8B2249476700CBB1EC /* YGValue.cpp */, - 6D4C7FA02249476800CBB1EC /* YGValue.h */, - 6D4C7F9F2249476800CBB1EC /* Yoga-internal.h */, - 6D4C7F9C2249476800CBB1EC /* Yoga.cpp */, - 6D4C7FA12249476800CBB1EC /* Yoga.h */, - 6D4C7F79224945B200CBB1EC /* Products */, - ); - sourceTree = ""; - }; - 6D4C7F79224945B200CBB1EC /* Products */ = { - isa = PBXGroup; - children = ( - 6D4C7F78224945B200CBB1EC /* libYogaDev.a */, - ); - name = Products; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 6D4C7F77224945B200CBB1EC /* YogaDev */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6D4C7F81224945B200CBB1EC /* Build configuration list for PBXNativeTarget "YogaDev" */; - buildPhases = ( - 6D4C7F74224945B200CBB1EC /* Sources */, - 6D4C7F75224945B200CBB1EC /* Frameworks */, - 6D4C7F76224945B200CBB1EC /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = YogaDev; - productName = YogaDev; - productReference = 6D4C7F78224945B200CBB1EC /* libYogaDev.a */; - productType = "com.apple.product-type.library.static"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 6D4C7F70224945B200CBB1EC /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1010; - ORGANIZATIONNAME = "Will Wilson"; - TargetAttributes = { - 6D4C7F77224945B200CBB1EC = { - CreatedOnToolsVersion = 10.1; - }; - }; - }; - buildConfigurationList = 6D4C7F73224945B200CBB1EC /* Build configuration list for PBXProject "YogaDev" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 6D4C7F6F224945B200CBB1EC; - productRefGroup = 6D4C7F79224945B200CBB1EC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 6D4C7F77224945B200CBB1EC /* YogaDev */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXSourcesBuildPhase section */ - 6D4C7F74224945B200CBB1EC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6D4C7FAD2249476900CBB1EC /* YGEnums.cpp in Sources */, - 6D4C7FAE2249476900CBB1EC /* YGConfig.cpp in Sources */, - 6D4C7FAA2249476900CBB1EC /* YGNode.cpp in Sources */, - 6D4C7FAB2249476900CBB1EC /* Yoga.cpp in Sources */, - 6D4C7FA92249476900CBB1EC /* log.cpp in Sources */, - 6D4C7FA62249476900CBB1EC /* YGLayout.cpp in Sources */, - 6D4C7FAC2249476900CBB1EC /* Utils.cpp in Sources */, - 6D4C7FA82249476900CBB1EC /* YGStyle.cpp in Sources */, - 6D4C7FA42249476900CBB1EC /* YGMarker.cpp in Sources */, - 6D4C7FA52249476900CBB1EC /* YGValue.cpp in Sources */, - 6D4C7FA72249476900CBB1EC /* YGNodePrint.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 6D4C7F7F224945B200CBB1EC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.1; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 6D4C7F80224945B200CBB1EC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.1; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 6D4C7F82224945B200CBB1EC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 6D4C7F83224945B200CBB1EC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 6D4C7F73224945B200CBB1EC /* Build configuration list for PBXProject "YogaDev" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6D4C7F7F224945B200CBB1EC /* Debug */, - 6D4C7F80224945B200CBB1EC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6D4C7F81224945B200CBB1EC /* Build configuration list for PBXNativeTarget "YogaDev" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6D4C7F82224945B200CBB1EC /* Debug */, - 6D4C7F83224945B200CBB1EC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 6D4C7F70224945B200CBB1EC /* Project object */; -} diff --git a/YogaKit.podspec b/YogaKit.podspec index 4fee15ec..ac6a5b09 100644 --- a/YogaKit.podspec +++ b/YogaKit.podspec @@ -1,4 +1,4 @@ -# Copyright (c) Facebook, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/YogaKit/BUCK b/YogaKit/BUCK deleted file mode 100644 index acefcdb3..00000000 --- a/YogaKit/BUCK +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. -load("//tools/build_defs/oss:yoga_defs.bzl", "subdir_glob", "yoga_apple_library", "yoga_apple_test", "yoga_dep") - -COMPILER_FLAGS = [ - "-fobjc-arc", - "-Wconditional-uninitialized", - "-Wdangling-else", - "-Wdeprecated-declarations", - "-Wimplicit-retain-self", - "-Wincomplete-implementation", - "-Wobjc-method-access", - "-Wobjc-missing-super-calls", - "-Wmismatched-return-types", - "-Wreturn-type", - "-Wno-global-constructors", - "-Wno-shadow", - "-Wunused-const-variable", - "-Wunused-function", - "-Wunused-property-ivar", - "-Wunused-result", - "-Wunused-value", -] - -yoga_apple_library( - name = "YogaKit", - srcs = glob(["Source/**/*.m"]), - header_namespace = "", - exported_headers = subdir_glob( - [ - ("", "Source/**/*.h"), - ("Source", "**/*.h"), - ], - prefix = "YogaKit", - ), - compiler_flags = COMPILER_FLAGS, - frameworks = [ - "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework", - "$SDKROOT/System/Library/Frameworks/Foundation.framework", - "$SDKROOT/System/Library/Frameworks/UIKit.framework", - ], - header_path_prefix = "", - link_whole = True, - modular = True, - module_name = "YogaKit", - visibility = ["PUBLIC"], - deps = [ - yoga_dep(":yoga"), - ], -) - -yoga_apple_test( - name = "YogaKitTests", - srcs = glob(["Tests/**/*.m"]), - compiler_flags = COMPILER_FLAGS, - frameworks = [ - "$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework", - "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework", - ], - info_plist = "Tests/Info.plist", - visibility = ["PUBLIC"], - deps = [ - ":YogaKit", - ], -) diff --git a/YogaKit/README.md b/YogaKit/README.md index 1de8084f..a5d70543 100644 --- a/YogaKit/README.md +++ b/YogaKit/README.md @@ -12,9 +12,8 @@ pod 'YogaKit', '~> 1.7' ``` ## Getting Started -Checkout the docs [here](https://facebook.github.io/yoga/docs/api/yogakit/). -We also have a sample project. To try it out, clone this repo and open `YogaKitSample.xcodeproj` in the [YogaKitSample](https://github.com/facebook/yoga/tree/main/YogaKit/YogaKitSample) directory. +We have a sample project. To try it out, clone this repo and open `YogaKitSample.xcodeproj` in the [YogaKitSample](https://github.com/facebook/yoga/tree/main/YogaKit/YogaKitSample) directory. ## Contributing We welcome all pull-requests! At Facebook we sync the open source version of `YogaKit` daily, so we're always testing the latest changes. diff --git a/YogaKit/Source/UIView+Yoga.h b/YogaKit/Source/UIView+Yoga.h index 4c85dcc4..63168519 100644 --- a/YogaKit/Source/UIView+Yoga.h +++ b/YogaKit/Source/UIView+Yoga.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/Source/UIView+Yoga.m b/YogaKit/Source/UIView+Yoga.m index e472c9c7..d64b387a 100644 --- a/YogaKit/Source/UIView+Yoga.m +++ b/YogaKit/Source/UIView+Yoga.m @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/Source/YGLayout+Private.h b/YogaKit/Source/YGLayout+Private.h index 0588d950..63fd8c79 100644 --- a/YogaKit/Source/YGLayout+Private.h +++ b/YogaKit/Source/YGLayout+Private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/Source/YGLayout.h b/YogaKit/Source/YGLayout.h index 5a60f95e..20751406 100644 --- a/YogaKit/Source/YGLayout.h +++ b/YogaKit/Source/YGLayout.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/Source/YGLayout.m b/YogaKit/Source/YGLayout.m index 4a95a5ca..638a81da 100644 --- a/YogaKit/Source/YGLayout.m +++ b/YogaKit/Source/YGLayout.m @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -175,6 +175,7 @@ static YGConfigRef globalConfig; globalConfig = YGConfigNew(); YGConfigSetExperimentalFeatureEnabled( globalConfig, YGExperimentalFeatureWebFlexBasis, true); + YGConfigSetErrata(globalConfig, YGErrataClassic); YGConfigSetPointScaleFactor(globalConfig, [UIScreen mainScreen].scale); } @@ -285,6 +286,10 @@ YG_VALUE_PROPERTY(maxWidth, MaxWidth) YG_VALUE_PROPERTY(maxHeight, MaxHeight) YG_PROPERTY(CGFloat, aspectRatio, AspectRatio) +YG_EDGE_PROPERTY(columnGap, ColumnGap, Gap, YGGutterColumn) +YG_EDGE_PROPERTY(rowGap, RowGap, Gap, YGGutterRow) +YG_EDGE_PROPERTY(gap, Gap, Gap, YGGutterAll) + #pragma mark - Layout and Sizing - (YGDirection)resolvedDirection { diff --git a/YogaKit/Source/YGLayoutExtensions.swift b/YogaKit/Source/YGLayoutExtensions.swift index 2157c0ff..8962ba33 100644 --- a/YogaKit/Source/YGLayoutExtensions.swift +++ b/YogaKit/Source/YGLayoutExtensions.swift @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/Tests/YogaKitTests.m b/YogaKit/Tests/YogaKitTests.m index 29b02be6..34f6018d 100644 --- a/YogaKit/Tests/YogaKitTests.m +++ b/YogaKit/Tests/YogaKitTests.m @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -252,6 +252,10 @@ } - (void)testFrameAndOriginPlacement { + // https://www.internalfb.com/intern/test/562950017690956 + XCTSkip( + @"TODO: this test fails with actual dimensions off by 1px from expected"); + const CGSize containerSize = CGSizeMake(320, 50); UIView* container = [[UIView alloc] diff --git a/YogaKit/YogaKitSample/YogaKitSample/AppDelegate.swift b/YogaKit/YogaKitSample/YogaKitSample/AppDelegate.swift index b96cf0b2..0685a73f 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/AppDelegate.swift +++ b/YogaKit/YogaKitSample/YogaKitSample/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/YogaKitSample/YogaKitSample/ExamplesViewController.swift b/YogaKit/YogaKitSample/YogaKitSample/ExamplesViewController.swift index 914623ac..d5aa793f 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/ExamplesViewController.swift +++ b/YogaKit/YogaKitSample/YogaKitSample/ExamplesViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/YogaKitSample/YogaKitSample/SwiftViewController.swift b/YogaKit/YogaKitSample/YogaKitSample/SwiftViewController.swift index ad8ee49e..0535bc8e 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/SwiftViewController.swift +++ b/YogaKit/YogaKitSample/YogaKitSample/SwiftViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/YogaKitSample/YogaKitSample/ViewController.m b/YogaKit/YogaKitSample/YogaKitSample/ViewController.m index dedf03d2..b0b54d93 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/ViewController.m +++ b/YogaKit/YogaKitSample/YogaKitSample/ViewController.m @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/YogaKitSample/YogaKitSample/ViewControllers/BasicViewController.swift b/YogaKit/YogaKitSample/YogaKitSample/ViewControllers/BasicViewController.swift index deb7dc85..424433e6 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/ViewControllers/BasicViewController.swift +++ b/YogaKit/YogaKitSample/YogaKitSample/ViewControllers/BasicViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/YogaKitSample/YogaKitSample/ViewControllers/LayoutInclusionViewController.swift b/YogaKit/YogaKitSample/YogaKitSample/ViewControllers/LayoutInclusionViewController.swift index 32cb39a4..2b51d915 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/ViewControllers/LayoutInclusionViewController.swift +++ b/YogaKit/YogaKitSample/YogaKitSample/ViewControllers/LayoutInclusionViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/YogaKit/YogaKitSample/YogaKitSample/Views/SingleLabelCollectionCell.swift b/YogaKit/YogaKitSample/YogaKitSample/Views/SingleLabelCollectionCell.swift index 50fa9042..29baf1ac 100644 --- a/YogaKit/YogaKitSample/YogaKitSample/Views/SingleLabelCollectionCell.swift +++ b/YogaKit/YogaKitSample/YogaKitSample/Views/SingleLabelCollectionCell.swift @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/android/BUCK b/android/BUCK deleted file mode 100644 index 72548072..00000000 --- a/android/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -load("//tools/build_defs/oss:yoga_defs.bzl", "ANDROID_JAVA_TARGET", "ANDROID_RES_TARGET", "JAVA_TARGET", "PROGUARD_ANNOTATIONS_TARGET", "yoga_android_aar", "yoga_android_resource") - -yoga_android_aar( - name = "android", - enable_relinker = True, - manifest_skeleton = "src/main/AndroidManifest.xml", - visibility = [ - "PUBLIC", - ], - deps = [ - ANDROID_JAVA_TARGET, - ANDROID_RES_TARGET, - JAVA_TARGET, - PROGUARD_ANNOTATIONS_TARGET, - ], -) - -yoga_android_resource( - name = "res", - package = "com.facebook.yoga.android", - res = "src/main/res", - visibility = [ - "PUBLIC", - ], -) diff --git a/android/README.md b/android/README.md index caa6468f..9a143c8c 100644 --- a/android/README.md +++ b/android/README.md @@ -4,11 +4,11 @@ YogaLayout is available via jcenter: - compile 'com.facebook.yoga.android:yoga-layout:1.2.0' + implementation 'com.facebook.yoga.android:yoga-layout:1.16.0' ## Getting Started -Check out the docs [here](https://facebook.github.io/yoga/docs/api/android/). +Check out the docs [here](https://yogalayout.com/getting-started/standalone/). We also have a sample project. To try it, clone the repo and run (with a device attached) diff --git a/android/build.gradle b/android/build.gradle index a29aac17..c142282e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,13 +1,18 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -apply plugin: 'com.android.library' +plugins { + id("com.android.library") + id("publish") +} android { + namespace 'com.facebook.yoga.android' + compileSdkVersion rootProject.compileSdkVersion buildToolsVersion rootProject.buildToolsVersion ndkVersion rootProject.ndkVersion @@ -21,6 +26,13 @@ android { targetCompatibility rootProject.targetCompatibilityVersion sourceCompatibility rootProject.sourceCompatibilityVersion } + + publishing { + multipleVariants { + withSourcesJar() + includeBuildTypeValues('debug', 'release') + } + } } dependencies { @@ -32,5 +44,3 @@ dependencies { tasks.withType(Javadoc).all { enabled = false } - -apply plugin: 'com.vanniktech.maven.publish' diff --git a/android/gradle.properties b/android/gradle.properties deleted file mode 100644 index 76b74e27..00000000 --- a/android/gradle.properties +++ /dev/null @@ -1,12 +0,0 @@ -# -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the LICENSE -# file in the root directory of this source tree. -# - -GROUP=com.facebook.yoga.android -POM_NAME=YogaLayout -POM_DESCRIPTION=YogaLayout -POM_ARTIFACT_ID=yoga-layout -POM_PACKAGING=aar diff --git a/android/sample/AndroidManifest.xml b/android/sample/AndroidManifest.xml deleted file mode 100644 index a47e1e0d..00000000 --- a/android/sample/AndroidManifest.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/android/sample/BUCK b/android/sample/BUCK deleted file mode 100644 index 0989fcd6..00000000 --- a/android/sample/BUCK +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2014-present, Facebook, Inc. -# All rights reserved. -# -# This source code is licensed under the license found in the -# LICENSE-examples file in the root directory of this source tree. - -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load("//tools/build_defs/oss:yoga_defs.bzl", "ANDROID_RES_TARGET", "ANDROID_SAMPLE_JAVA_TARGET", "ANDROID_SAMPLE_RES_TARGET", "yoga_android_binary", "yoga_android_resource") - -yoga_android_binary( - name = "sample", - keystore = ":debug_keystore", - manifest = "AndroidManifest.xml", - deps = [ - ANDROID_SAMPLE_JAVA_TARGET, - ANDROID_SAMPLE_RES_TARGET, - ], -) - -yoga_android_resource( - name = "res", - package = "com.facebook.samples.yoga", - res = "res", - visibility = [ - "PUBLIC", - ], - deps = [ - ANDROID_RES_TARGET, - ], -) - -fb_native.keystore( - name = "debug_keystore", - properties = "debug.keystore.properties", - store = "debug.keystore", -) diff --git a/android/sample/debug.keystore b/android/sample/debug.keystore deleted file mode 100644 index 3df12b5d..00000000 Binary files a/android/sample/debug.keystore and /dev/null differ diff --git a/android/sample/debug.keystore.properties b/android/sample/debug.keystore.properties deleted file mode 100644 index 3c06c8e4..00000000 --- a/android/sample/debug.keystore.properties +++ /dev/null @@ -1,3 +0,0 @@ -key.alias=androiddebugkey -key.store.password=android -key.alias.password=android diff --git a/android/sample/java/com/facebook/samples/yoga/BUCK b/android/sample/java/com/facebook/samples/yoga/BUCK deleted file mode 100644 index 502c19f3..00000000 --- a/android/sample/java/com/facebook/samples/yoga/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the license found in the -# LICENSE-examples file in the root directory of this source tree. - -load("//tools/build_defs/oss:yoga_defs.bzl", "ANDROID_JAVA_TARGET", "ANDROID_SAMPLE_RES_TARGET", "ANDROID_SUPPORT_TARGET", "APPCOMPAT_TARGET", "SOLOADER_TARGET", "yoga_android_library") - -yoga_android_library( - name = "yoga", - srcs = glob(["**/*.java"]), - autoglob = False, - visibility = [ - "PUBLIC", - ], - deps = [ - ANDROID_JAVA_TARGET, - ANDROID_SAMPLE_RES_TARGET, - ANDROID_SUPPORT_TARGET, - APPCOMPAT_TARGET, - SOLOADER_TARGET, - ], -) diff --git a/android/sample/res/menu/action_bar_benchmark.xml b/android/sample/res/menu/action_bar_benchmark.xml deleted file mode 100644 index 618f6f37..00000000 --- a/android/sample/res/menu/action_bar_benchmark.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - diff --git a/android/sample/res/menu/action_bar_home.xml b/android/sample/res/menu/action_bar_home.xml deleted file mode 100644 index 9fb78394..00000000 --- a/android/sample/res/menu/action_bar_home.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index dd2d58c6..7513275a 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -2,21 +2,12 @@ - - - + diff --git a/android/src/main/java/com/facebook/yoga/android/BUCK b/android/src/main/java/com/facebook/yoga/android/BUCK deleted file mode 100644 index 20408c78..00000000 --- a/android/src/main/java/com/facebook/yoga/android/BUCK +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -load("//tools/build_defs/oss:yoga_defs.bzl", "ANDROID_RES_TARGET", "INFER_ANNOTATIONS_TARGET", "JAVA_TARGET", "JSR_305_TARGET", "SOLOADER_TARGET", "yoga_android_library") - -yoga_android_library( - name = "android", - srcs = glob(["**/*.java"]), - autoglob = False, - visibility = [ - "PUBLIC", - ], - deps = [ - ANDROID_RES_TARGET, - INFER_ANNOTATIONS_TARGET, - JAVA_TARGET, - JSR_305_TARGET, - SOLOADER_TARGET, - ], -) diff --git a/android/src/main/java/com/facebook/yoga/android/VirtualYogaLayout.java b/android/src/main/java/com/facebook/yoga/android/VirtualYogaLayout.java index 876df1d4..c8ad1c3c 100644 --- a/android/src/main/java/com/facebook/yoga/android/VirtualYogaLayout.java +++ b/android/src/main/java/com/facebook/yoga/android/VirtualYogaLayout.java @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/android/src/main/java/com/facebook/yoga/android/YogaLayout.java b/android/src/main/java/com/facebook/yoga/android/YogaLayout.java index c6e921ef..beee6a99 100644 --- a/android/src/main/java/com/facebook/yoga/android/YogaLayout.java +++ b/android/src/main/java/com/facebook/yoga/android/YogaLayout.java @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/android/src/main/java/com/facebook/yoga/android/YogaViewLayoutFactory.java b/android/src/main/java/com/facebook/yoga/android/YogaViewLayoutFactory.java index 8d7b7120..e8645351 100644 --- a/android/src/main/java/com/facebook/yoga/android/YogaViewLayoutFactory.java +++ b/android/src/main/java/com/facebook/yoga/android/YogaViewLayoutFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/android/src/main/res/values/attrs.xml b/android/src/main/res/values/attrs.xml index e30ba54f..3fca9997 100644 --- a/android/src/main/res/values/attrs.xml +++ b/android/src/main/res/values/attrs.xml @@ -2,7 +2,7 @@ @@ -130,8 +130,14 @@ - - + + + + + + diff --git a/benchmark/BUCK b/benchmark/BUCK deleted file mode 100644 index dbfd5229..00000000 --- a/benchmark/BUCK +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. -load("//tools/build_defs/oss:yoga_defs.bzl", "subdir_glob", "yoga_cxx_binary", "yoga_dep") - -yoga_cxx_binary( - name = "benchmark", - srcs = glob(["*.c"]), - headers = subdir_glob([("", "*.h")]), - header_namespace = "", - compiler_flags = [ - "-fno-omit-frame-pointer", - "-fexceptions", - "-Wall", - "-Werror", - "-O3", - "-std=c11", - ], - visibility = ["PUBLIC"], - deps = [ - yoga_dep(":yoga"), - ], -) diff --git a/benchmark/CMakeLists.txt b/benchmark/CMakeLists.txt new file mode 100644 index 00000000..ff06fa1e --- /dev/null +++ b/benchmark/CMakeLists.txt @@ -0,0 +1,19 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + + +cmake_minimum_required(VERSION 3.13...3.26) +project(benchmark) +set(CMAKE_VERBOSE_MAKEFILE on) + +set(YOGA_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/..) +include(${YOGA_ROOT}/cmake/project-defaults.cmake) + +add_subdirectory(${YOGA_ROOT}/yoga ${CMAKE_CURRENT_BINARY_DIR}/yoga) + +file(GLOB SOURCES CONFIGURE_DEPENDS + ${CMAKE_CURRENT_SOURCE_DIR}/*.c) +add_executable(benchmark ${SOURCES}) +target_link_libraries(benchmark yogacore) diff --git a/benchmark/YGBenchmark.c b/benchmark/YGBenchmark.c index 82dbe02c..ff1f6646 100644 --- a/benchmark/YGBenchmark.c +++ b/benchmark/YGBenchmark.c @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -17,6 +17,8 @@ #define YGBENCHMARKS(BLOCK) \ int main(int argc, char const* argv[]) { \ + (void) argc; \ + (void) argv; \ clock_t __start; \ clock_t __endTimes[NUM_REPETITIONS]; \ { BLOCK } \ @@ -78,9 +80,10 @@ static YGSize _measure( YGMeasureMode widthMode, float height, YGMeasureMode heightMode) { + (void) node; return (YGSize){ .width = widthMode == YGMeasureModeUndefined ? 10 : width, - .height = heightMode == YGMeasureModeUndefined ? 10 : width, + .height = heightMode == YGMeasureModeUndefined ? 10 : height, }; } diff --git a/build-logic/build.gradle.kts b/build-logic/build.gradle.kts new file mode 100644 index 00000000..451a20b6 --- /dev/null +++ b/build-logic/build.gradle.kts @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +plugins { `kotlin-dsl` } + +repositories { + mavenCentral() + gradlePluginPortal() +} diff --git a/build-logic/src/main/kotlin/publish.gradle.kts b/build-logic/src/main/kotlin/publish.gradle.kts new file mode 100644 index 00000000..01cd9de3 --- /dev/null +++ b/build-logic/src/main/kotlin/publish.gradle.kts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +plugins { + id("maven-publish") + id("signing") +} + +group = "com.facebook.yoga" + +if ("USE_SNAPSHOT".byProperty.toBoolean()) { + version = "${"VERSION_NAME".byProperty}-SNAPSHOT" +} else { + version = "VERSION_NAME".byProperty.toString() +} + +publishing { + publications { + register("default") { + groupId = project.group.toString() + artifactId = project.name + version = project.version.toString() + afterEvaluate { from(components["default"]) } + pom { + description.set("A cross-platform layout engine which implements Flexbox.") + name.set(project.name) + url.set("https://github.com/facebook/yoga.git") + licenses { + license { + name.set("MIT License") + url.set("https://github.com/facebook/yoga/blob/main/LICENSE") + distribution.set("repo") + } + } + developers { + developer { + id.set("Meta Open Source") + name.set("Meta Open Source") + email.set("opensource@meta.com") + } + } + scm { url.set("scm:git:git@github.com:facebook/yoga.git") } + } + } + } +} + +val signingKey = "SIGNING_KEY".byProperty +val signingPwd = "SIGNING_PWD".byProperty + +if (signingKey.isNullOrBlank() || signingPwd.isNullOrBlank()) { + logger.info("Signing disabled as the GPG key was not found") +} else { + logger.info("GPG Key found - Signing enabled") +} + +signing { + useInMemoryPgpKeys(signingKey, signingPwd) + sign(publishing.publications) + isRequired = !(signingKey.isNullOrBlank() || signingPwd.isNullOrBlank()) +} + +// Fix for https://youtrack.jetbrains.com/issue/KT-46466/ +// On Gradle 8+, the signing task is not correctly wired to the publishing tasks. +// This requires a fix on KGP that is currently pending. +val signingTasks = tasks.withType() + +tasks.withType().configureEach { dependsOn(signingTasks) } + +val String.byProperty: String? + get() = providers.gradleProperty(this).orNull diff --git a/build.gradle b/build.gradle index 26610432..29fb537f 100644 --- a/build.gradle +++ b/build.gradle @@ -1,67 +1,51 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -// Top-level build file where you can add configuration options common to all sub-projects/modules. +plugins { + id("com.android.library") version "8.0.1" apply false + id("com.android.application") version "8.0.1" apply false + id("io.github.gradle-nexus.publish-plugin") version "1.3.0" +} -buildscript { +allprojects { repositories { google() mavenCentral() } - dependencies { - classpath 'com.android.tools.build:gradle:4.2.1' - classpath 'com.vanniktech:gradle-maven-publish-plugin:0.15.1' - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } } -allprojects { - repositories { - google() - mavenCentral() - } +group = "com.facebook.yoga" + +if (project.hasProperty("USE_SNAPSHOT") && project.property("USE_SNAPSHOT").toBoolean()) { + version = getProperty("VERSION_NAME") + "-SNAPSHOT" +} else { + version = getProperty("VERSION_NAME") +} + +def sonatypeUsername = findProperty("SONATYPE_USERNAME")?.toString() +def sonatypePassword = findProperty("SONATYPE_PASSWORD")?.toString() + +nexusPublishing { + repositories { + sonatype { + username.set(sonatypeUsername) + password.set(sonatypePassword) + } + } } ext { - minSdkVersion = 14 - targetSdkVersion = 29 - compileSdkVersion = 29 - buildToolsVersion = '30.0.2' - ndkVersion = '21.3.6528147' - sourceCompatibilityVersion = JavaVersion.VERSION_1_7 - targetCompatibilityVersion = JavaVersion.VERSION_1_7 -} - -// If you have an idea on how to avoid this, please get in touch or -// answer https://stackoverflow.com/questions/43867014/how-to-use-the-gradle-ndk-build-to-compile-for-the-host-machine. -task copyNativeLibs(type: Copy, dependsOn: ':buckBuildNative') { - from "${rootDir}/buck-out/gen/java/tests#default,shared-library-symlink-tree/" - include '*.so' - include '*.dylib' - into "$buildDir/jniLibs" -} - -task buckBuildNative(type: Exec) { - workingDir rootDir - environment BUCKVERSION: 'last' - commandLine 'buck', 'build', '//java/...' -} - -allprojects { - afterEvaluate { - tasks.withType(Test) { - dependsOn copyNativeLibs - def libDir = "${rootDir}/build/jniLibs" - systemProperty 'java.library.path', libDir - environment 'LD_LIBRARY_PATH', libDir - environment 'DYLD_LIBRARY_PATH', libDir - } - } + buildToolsVersion = "33.0.0" + ndkVersion = "23.1.7779620" + minSdkVersion = 21 + compileSdkVersion = 33 + targetSdkVersion = 33 + sourceCompatibilityVersion = JavaVersion.VERSION_1_8 + targetCompatibilityVersion = JavaVersion.VERSION_1_8 } task clean(type: Delete) { diff --git a/cmake/project-defaults.cmake b/cmake/project-defaults.cmake new file mode 100644 index 00000000..b6b37bcc --- /dev/null +++ b/cmake/project-defaults.cmake @@ -0,0 +1,51 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_VISIBILITY_PRESET hidden) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + +add_compile_definitions($<$:DEBUG>) + +if(MSVC) + +add_compile_options( + # Don't omit frame pointers (e.g. for crash dumps) + /Oy- + # "Standard C++ exception handling" (C++ stack unwinding including extern c) + /EHsc + # Enable warnings and warnings as errors + /W3 + /WX + # Disable RTTI + $<$:/GR-> + # Use /O2 (Maximize Speed) + $<$:/O2>) + +else() + +add_compile_options( + # Don't omit frame pointers (e.g. for crash dumps) + -fno-omit-frame-pointer + # Enable exception handling + -fexceptions + # Enable warnings and warnings as errors + -Wall + -Wextra + -Werror + # Disable RTTI + $<$:-fno-rtti> + # Use -O2 (prioritize speed) + $<$:-O2> + # Enable separate sections per function/data item + $<$:-ffunction-sections> + $<$:-fdata-sections>) + +add_link_options( + # Discard unused sections + $<$:$<$:-Wl,--gc-sections>> + $<$:$<$:-Wl,-dead_strip>>) + +endif() diff --git a/csharp/Mac/run-tests.sh b/cmake/yoga-config.cmake.in old mode 100755 new mode 100644 similarity index 58% rename from csharp/Mac/run-tests.sh rename to cmake/yoga-config.cmake.in index 5f88262a..80b2dc51 --- a/csharp/Mac/run-tests.sh +++ b/cmake/yoga-config.cmake.in @@ -1,7 +1,10 @@ -#!/bin/sh # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -./csharp/Mac/Facebook.Yoga.Mac.Tests/bin/Release/Facebook.Yoga.Mac.Tests.app/Contents/MacOS/Facebook.Yoga.Mac.Tests +@PACKAGE_INIT@ + +include("${CMAKE_CURRENT_LIST_DIR}/yogaTargets.cmake") + +check_required_components(yoga) \ No newline at end of file diff --git a/csharp/.gitignore b/csharp/.gitignore deleted file mode 100644 index 0f3547e3..00000000 --- a/csharp/.gitignore +++ /dev/null @@ -1,272 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ - -# Visual Studio 2015 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUNIT -*.VisualState.xml -TestResult.xml -tests/Facebook.Yoga/NUnit-[0-9\.]*/ -tests/Facebook.Yoga/YogaTest.dll -tests/Facebook.Yoga/YogaTest.dll.mdb -tests/Facebook.Yoga/libyoga.dylib - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# DNX -project.lock.json -project.fragment.lock.json -artifacts/ - -*_i.c -*_p.c -*_i.h -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# TODO: Comment the next line if you want to checkin your web deploy settings -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# The packages folder can be ignored because of Package Restore -**/packages/* -# except build/, which is used as an MSBuild target. -!**/packages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/packages/repositories.config -# NuGet v3's project.json files produces more ignoreable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -node_modules/ -orleans.codegen.cs - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -*.mdf -*.ldf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# JetBrains Rider -.idea/ -*.sln.iml - -# CodeRush -.cr/ - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# local buck build -lib/ diff --git a/csharp/.hgignore b/csharp/.hgignore deleted file mode 100644 index 0f3547e3..00000000 --- a/csharp/.hgignore +++ /dev/null @@ -1,272 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ - -# Visual Studio 2015 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUNIT -*.VisualState.xml -TestResult.xml -tests/Facebook.Yoga/NUnit-[0-9\.]*/ -tests/Facebook.Yoga/YogaTest.dll -tests/Facebook.Yoga/YogaTest.dll.mdb -tests/Facebook.Yoga/libyoga.dylib - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# DNX -project.lock.json -project.fragment.lock.json -artifacts/ - -*_i.c -*_p.c -*_i.h -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# TODO: Comment the next line if you want to checkin your web deploy settings -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# The packages folder can be ignored because of Package Restore -**/packages/* -# except build/, which is used as an MSBuild target. -!**/packages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/packages/repositories.config -# NuGet v3's project.json files produces more ignoreable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -node_modules/ -orleans.codegen.cs - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -*.mdf -*.ldf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# JetBrains Rider -.idea/ -*.sln.iml - -# CodeRush -.cr/ - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# local buck build -lib/ diff --git a/csharp/Android/.gitignore b/csharp/Android/.gitignore deleted file mode 100644 index c3af8579..00000000 --- a/csharp/Android/.gitignore +++ /dev/null @@ -1 +0,0 @@ -lib/ diff --git a/csharp/Android/Facebook.Yoga.Android.Tests/Facebook.Yoga.Android.Tests.csproj b/csharp/Android/Facebook.Yoga.Android.Tests/Facebook.Yoga.Android.Tests.csproj deleted file mode 100644 index 876ebb52..00000000 --- a/csharp/Android/Facebook.Yoga.Android.Tests/Facebook.Yoga.Android.Tests.csproj +++ /dev/null @@ -1,63 +0,0 @@ - - - - Debug - AnyCPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6} - {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - Facebook.Yoga.Android.Tests - Facebook.Yoga.Android.Tests - v7.1 - True - Resources\Resource.designer.cs - Resource - Resources - Assets - true - Properties\AndroidManifest.xml - - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - None - - - true - pdbonly - true - bin\Release - prompt - 4 - true - false - - - - - - - - - - - - - - - - - - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363} - Facebook.Yoga.Android - - - - - \ No newline at end of file diff --git a/csharp/Android/Facebook.Yoga.Android.Tests/MainActivity.cs b/csharp/Android/Facebook.Yoga.Android.Tests/MainActivity.cs deleted file mode 100644 index a741a231..00000000 --- a/csharp/Android/Facebook.Yoga.Android.Tests/MainActivity.cs +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System.Reflection; -using Android.App; -using Android.OS; -using Xamarin.Android.NUnitLite; - -namespace Facebook.Yoga.Android.Tests -{ - [Activity(Label = "Facebook.Yoga.Android.Tests", MainLauncher = true)] - public class MainActivity : TestSuiteActivity - { - protected override void OnCreate(Bundle bundle) - { - AddTest(Assembly.GetExecutingAssembly()); - base.OnCreate(bundle); - } - } -} diff --git a/csharp/Android/Facebook.Yoga.Android.Tests/Properties/AndroidManifest.xml b/csharp/Android/Facebook.Yoga.Android.Tests/Properties/AndroidManifest.xml deleted file mode 100644 index fd00462f..00000000 --- a/csharp/Android/Facebook.Yoga.Android.Tests/Properties/AndroidManifest.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/csharp/Android/Facebook.Yoga.Android.Tests/Resources/Resource.designer.cs b/csharp/Android/Facebook.Yoga.Android.Tests/Resources/Resource.designer.cs deleted file mode 100644 index e69de29b..00000000 diff --git a/csharp/Android/Facebook.Yoga.Android.sln b/csharp/Android/Facebook.Yoga.Android.sln deleted file mode 100644 index 46e57ed9..00000000 --- a/csharp/Android/Facebook.Yoga.Android.sln +++ /dev/null @@ -1,33 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Android.Tests", "Facebook.Yoga.Android.Tests\Facebook.Yoga.Android.Tests.csproj", "{2021459E-8FB1-44A4-89F1-E291769CD2C6}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Android", "Facebook.Yoga.Android\Facebook.Yoga.Android.csproj", "{EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{4804A8E6-E7B7-4F9E-A446-3DE8E73DB38A}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Release|Any CPU.Build.0 = Release|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {91C42D32-291D-4B72-90B4-551663D60B8B} = {4804A8E6-E7B7-4F9E-A446-3DE8E73DB38A} - {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {4804A8E6-E7B7-4F9E-A446-3DE8E73DB38A} - EndGlobalSection -EndGlobal diff --git a/csharp/Android/Facebook.Yoga.Android/CustomBuildAction.targets b/csharp/Android/Facebook.Yoga.Android/CustomBuildAction.targets deleted file mode 100644 index 7ee8767c..00000000 --- a/csharp/Android/Facebook.Yoga.Android/CustomBuildAction.targets +++ /dev/null @@ -1,20 +0,0 @@ - - - - NativeLibraryARMV7;NativeLibraryX86;$(BuildDependsOn) - - - - - - - - - - - diff --git a/csharp/Android/Facebook.Yoga.Android/Facebook.Yoga.Android.csproj b/csharp/Android/Facebook.Yoga.Android/Facebook.Yoga.Android.csproj deleted file mode 100644 index a1ed6989..00000000 --- a/csharp/Android/Facebook.Yoga.Android/Facebook.Yoga.Android.csproj +++ /dev/null @@ -1,64 +0,0 @@ - - - - Debug - AnyCPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363} - {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - Facebook.Yoga.Android - Facebook.Yoga - v7.1 - Resources\Resource.designer.cs - Resource - Resources - Assets - true - - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - None - arm64-v8a;armeabi;armeabi-v7a;x86 - - - true - pdbonly - true - bin\Release - prompt - 4 - true - false - - - - - - - - - - - - - - - - - Always - - - Always - - - - - - \ No newline at end of file diff --git a/csharp/Android/Facebook.Yoga.Android/Resources/Resource.designer.cs b/csharp/Android/Facebook.Yoga.Android/Resources/Resource.designer.cs deleted file mode 100644 index e69de29b..00000000 diff --git a/csharp/BUCK b/csharp/BUCK deleted file mode 100644 index 81b570e5..00000000 --- a/csharp/BUCK +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") -load( - "//tools/build_defs/oss:yoga_defs.bzl", - "BASE_COMPILER_FLAGS", - "yoga_apple_binary", - "yoga_cxx_library", - "yoga_dep", -) - -COMPILER_FLAGS = BASE_COMPILER_FLAGS + ["-std=c++11"] - -fb_native.csharp_library( - name = "yogalibnet46", - srcs = glob(["**/*.cs"]), - dll_name = "Facebook.Yoga.dll", - framework_ver = "net46", -) - -fb_native.csharp_library( - name = "yogalibnet45", - srcs = glob(["**/*.cs"]), - dll_name = "Facebook.Yoga.dll", - framework_ver = "net45", -) - -yoga_cxx_library( - name = "yoganet", - srcs = ["Yoga/YGInterop.cpp"], - compiler_flags = COMPILER_FLAGS, - link_style = "static", - link_whole = True, - soname = "libyoga.$(ext)", - visibility = ["PUBLIC"], - deps = [yoga_dep(":yoga")], -) - -yoga_apple_binary() diff --git a/csharp/Facebook.Yoga.Xamarin.sln b/csharp/Facebook.Yoga.Xamarin.sln deleted file mode 100644 index 3b5f07a1..00000000 --- a/csharp/Facebook.Yoga.Xamarin.sln +++ /dev/null @@ -1,130 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Android", "Android", "{B674A497-DC8E-4286-A889-0C004235AA18}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "iOS", "iOS", "{AC14A7DE-A180-46EC-8A88-77F60E73A099}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{09905D88-652D-4A72-8521-6CB1AF347795}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "macOS", "macOS", "{9BDE3670-188E-470F-9B89-CEC0EB042AB5}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.iOS", "iOS\Facebook.Yoga.iOS\Facebook.Yoga.iOS.csproj", "{128FB32A-C4A1-4363-BF06-0A36E700B7FA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.iOS.Tests", "iOS\Facebook.Yoga.iOS.Tests\Facebook.Yoga.iOS.Tests.csproj", "{FCF0BE59-AE56-4D4F-8524-94532B2DFC71}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Android", "Android\Facebook.Yoga.Android\Facebook.Yoga.Android.csproj", "{EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Android.Tests", "Android\Facebook.Yoga.Android.Tests\Facebook.Yoga.Android.Tests.csproj", "{2021459E-8FB1-44A4-89F1-E291769CD2C6}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuspec", "nuspec", "{2C3685DB-91B9-4207-9446-1C513DB36978}" - ProjectSection(SolutionItems) = preProject - nuget\Facebook.Yoga.dll.config = nuget\Facebook.Yoga.dll.config - nuget\Facebook.Yoga.nuspec = nuget\Facebook.Yoga.nuspec - nuget\Facebook.Yoga.OSX.targets = nuget\Facebook.Yoga.OSX.targets - nuget\Facebook.Yoga.targets = nuget\Facebook.Yoga.targets - nuget\Facebook.Yoga.Universal.targets = nuget\Facebook.Yoga.Universal.targets - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Mac", "Mac\Facebook.Yoga.Mac.csproj", "{19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Mac.Tests", "Mac\Facebook.Yoga.Mac.Tests\Facebook.Yoga.Mac.Tests.csproj", "{9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - Debug|iPhoneSimulator = Debug|iPhoneSimulator - Release|iPhone = Release|iPhone - Release|iPhoneSimulator = Release|iPhoneSimulator - Debug|iPhone = Debug|iPhone - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|Any CPU.Build.0 = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhone.ActiveCfg = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhone.Build.0 = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhoneSimulator.Build.0 = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhone.ActiveCfg = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhone.Build.0 = Debug|Any CPU - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|Any CPU.ActiveCfg = Release|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|Any CPU.Build.0 = Release|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|iPhone.ActiveCfg = Release|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|iPhone.Build.0 = Release|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|iPhone.ActiveCfg = Debug|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|iPhone.Build.0 = Debug|iPhone - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Release|Any CPU.Build.0 = Release|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Release|iPhone.ActiveCfg = Release|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Release|iPhone.Build.0 = Release|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Release|iPhoneSimulator.Build.0 = Release|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Debug|iPhone.ActiveCfg = Debug|Any CPU - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363}.Debug|iPhone.Build.0 = Debug|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Release|Any CPU.Build.0 = Release|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Release|iPhone.ActiveCfg = Release|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Release|iPhone.Build.0 = Release|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Release|iPhoneSimulator.Build.0 = Release|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Debug|iPhone.ActiveCfg = Debug|Any CPU - {2021459E-8FB1-44A4-89F1-E291769CD2C6}.Debug|iPhone.Build.0 = Debug|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Debug|Any CPU.Build.0 = Debug|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Release|Any CPU.ActiveCfg = Release|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Release|Any CPU.Build.0 = Release|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Release|iPhone.ActiveCfg = Release|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Release|iPhone.Build.0 = Release|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Release|iPhoneSimulator.Build.0 = Release|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Debug|iPhone.ActiveCfg = Debug|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Debug|iPhone.Build.0 = Debug|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Release|Any CPU.Build.0 = Release|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Release|iPhone.ActiveCfg = Release|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Release|iPhone.Build.0 = Release|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Release|iPhoneSimulator.Build.0 = Release|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Debug|iPhone.ActiveCfg = Debug|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Debug|iPhone.Build.0 = Debug|Any CPU - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {128FB32A-C4A1-4363-BF06-0A36E700B7FA} = {AC14A7DE-A180-46EC-8A88-77F60E73A099} - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71} = {AC14A7DE-A180-46EC-8A88-77F60E73A099} - {91C42D32-291D-4B72-90B4-551663D60B8B} = {09905D88-652D-4A72-8521-6CB1AF347795} - {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {09905D88-652D-4A72-8521-6CB1AF347795} - {EDF7CF8B-5640-4E1D-A2C7-E4BC8BE44363} = {B674A497-DC8E-4286-A889-0C004235AA18} - {2021459E-8FB1-44A4-89F1-E291769CD2C6} = {B674A497-DC8E-4286-A889-0C004235AA18} - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71} = {9BDE3670-188E-470F-9B89-CEC0EB042AB5} - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77} = {9BDE3670-188E-470F-9B89-CEC0EB042AB5} - EndGlobalSection -EndGlobal diff --git a/csharp/Facebook.Yoga/BaselineFunction.cs b/csharp/Facebook.Yoga/BaselineFunction.cs deleted file mode 100644 index 383c7a91..00000000 --- a/csharp/Facebook.Yoga/BaselineFunction.cs +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public delegate float BaselineFunction(YogaNode node, float width, float height); -} diff --git a/csharp/Facebook.Yoga/Facebook.Yoga.Shared.projitems b/csharp/Facebook.Yoga/Facebook.Yoga.Shared.projitems deleted file mode 100644 index cf020c6c..00000000 --- a/csharp/Facebook.Yoga/Facebook.Yoga.Shared.projitems +++ /dev/null @@ -1,45 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - 91c42d32-291d-4b72-90b4-551663d60b8b - - - Facebook.Yoga.Shared - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/csharp/Facebook.Yoga/Facebook.Yoga.Shared.shproj b/csharp/Facebook.Yoga/Facebook.Yoga.Shared.shproj deleted file mode 100644 index 6d2da463..00000000 --- a/csharp/Facebook.Yoga/Facebook.Yoga.Shared.shproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - 91c42d32-291d-4b72-90b4-551663d60b8b - 14.0 - - - - - - - - diff --git a/csharp/Facebook.Yoga/Logger.cs b/csharp/Facebook.Yoga/Logger.cs deleted file mode 100644 index 631e1b79..00000000 --- a/csharp/Facebook.Yoga/Logger.cs +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public delegate void Logger( - YogaConfig config, - YogaNode node, - YogaLogLevel level, - string message); -} diff --git a/csharp/Facebook.Yoga/MeasureFunction.cs b/csharp/Facebook.Yoga/MeasureFunction.cs deleted file mode 100644 index 4ec65c06..00000000 --- a/csharp/Facebook.Yoga/MeasureFunction.cs +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public delegate YogaSize MeasureFunction( - YogaNode node, - float width, - YogaMeasureMode widthMode, - float height, - YogaMeasureMode heightMode); -} diff --git a/csharp/Facebook.Yoga/MeasureOutput.cs b/csharp/Facebook.Yoga/MeasureOutput.cs deleted file mode 100644 index 6f9a0226..00000000 --- a/csharp/Facebook.Yoga/MeasureOutput.cs +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public class MeasureOutput - { - public static YogaSize Make(float width, float height) - { - return new YogaSize { width = width, height = height}; - } - } -} diff --git a/csharp/Facebook.Yoga/Native.cs b/csharp/Facebook.Yoga/Native.cs deleted file mode 100644 index 0ad2bcda..00000000 --- a/csharp/Facebook.Yoga/Native.cs +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Runtime.InteropServices; - -namespace Facebook.Yoga -{ - internal static class Native - { -#if (UNITY_IOS && !UNITY_EDITOR) || __IOS__ - private const string DllName = "__Internal"; -#else - private const string DllName = "yoga"; -#endif - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGInteropSetLogger( - [MarshalAs(UnmanagedType.FunctionPtr)] YogaLogger logger); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YGNodeHandle YGNodeNew(); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YGNodeHandle YGNodeNewWithConfig(YGConfigHandle config); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeFree(IntPtr node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeReset(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YGConfigHandle YGConfigGetDefault(); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YGConfigHandle YGConfigNew(); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGConfigFree(IntPtr node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern int YGConfigGetInstanceCount(); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGConfigSetExperimentalFeatureEnabled( - YGConfigHandle config, - YogaExperimentalFeature feature, - bool enabled); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern bool YGConfigIsExperimentalFeatureEnabled( - YGConfigHandle config, - YogaExperimentalFeature feature); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGConfigSetUseWebDefaults( - YGConfigHandle config, - bool useWebDefaults); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern bool YGConfigGetUseWebDefaults(YGConfigHandle config); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGConfigSetUseLegacyStretchBehaviour( - YGConfigHandle config, - bool useLegacyStretchBehavior); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern bool YGConfigGetUseLegacyStretchBehaviour(YGConfigHandle config); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGConfigSetPointScaleFactor( - YGConfigHandle config, - float pixelsInPoint); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeInsertChild( - YGNodeHandle node, - YGNodeHandle child, - uint index); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeRemoveChild(YGNodeHandle node, YGNodeHandle child); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeSetIsReferenceBaseline( - YGNodeHandle node, - bool isReferenceBaseline); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern bool YGNodeIsReferenceBaseline(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeCalculateLayout( - YGNodeHandle node, - float availableWidth, - float availableHeight, - YogaDirection parentDirection); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeMarkDirty(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool YGNodeIsDirty(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodePrint(YGNodeHandle node, YogaPrintOptions options); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeCopyStyle(YGNodeHandle dstNode, YGNodeHandle srcNode); - -#region YG_NODE_PROPERTY - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeSetMeasureFunc( - YGNodeHandle node, - [MarshalAs(UnmanagedType.FunctionPtr)] YogaMeasureFunc measureFunc); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeSetBaselineFunc( - YGNodeHandle node, - [MarshalAs(UnmanagedType.FunctionPtr)] YogaBaselineFunc baselineFunc); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeSetHasNewLayout( - YGNodeHandle node, - [MarshalAs(UnmanagedType.I1)] bool hasNewLayout); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool YGNodeGetHasNewLayout(YGNodeHandle node); - -#endregion - -#region YG_NODE_STYLE_PROPERTY - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetDirection(YGNodeHandle node, YogaDirection direction); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaDirection YGNodeStyleGetDirection(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetFlexDirection(YGNodeHandle node, YogaFlexDirection flexDirection); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaFlexDirection YGNodeStyleGetFlexDirection(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetJustifyContent(YGNodeHandle node, YogaJustify justifyContent); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaJustify YGNodeStyleGetJustifyContent(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetAlignContent(YGNodeHandle node, YogaAlign alignContent); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaAlign YGNodeStyleGetAlignContent(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetAlignItems(YGNodeHandle node, YogaAlign alignItems); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaAlign YGNodeStyleGetAlignItems(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetAlignSelf(YGNodeHandle node, YogaAlign alignSelf); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaAlign YGNodeStyleGetAlignSelf(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetPositionType(YGNodeHandle node, YogaPositionType positionType); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaPositionType YGNodeStyleGetPositionType(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetFlexWrap(YGNodeHandle node, YogaWrap flexWrap); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaWrap YGNodeStyleGetFlexWrap(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetOverflow(YGNodeHandle node, YogaOverflow flexWrap); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaOverflow YGNodeStyleGetOverflow(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetDisplay(YGNodeHandle node, YogaDisplay display); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaDisplay YGNodeStyleGetDisplay(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetFlex(YGNodeHandle node, float flex); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetFlexGrow(YGNodeHandle node, float flexGrow); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeStyleGetFlexGrow(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetFlexShrink(YGNodeHandle node, float flexShrink); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeStyleGetFlexShrink(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetFlexBasis(YGNodeHandle node, float flexBasis); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetFlexBasisPercent(YGNodeHandle node, float flexBasis); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetFlexBasisAuto(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetFlexBasis(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetWidth(YGNodeHandle node, float width); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetWidthPercent(YGNodeHandle node, float width); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetWidthAuto(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetWidth(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetHeight(YGNodeHandle node, float height); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetHeightPercent(YGNodeHandle node, float height); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetHeightAuto(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetHeight(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMinWidth(YGNodeHandle node, float minWidth); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMinWidthPercent(YGNodeHandle node, float minWidth); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetMinWidth(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMinHeight(YGNodeHandle node, float minHeight); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMinHeightPercent(YGNodeHandle node, float minHeight); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetMinHeight(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMaxWidth(YGNodeHandle node, float maxWidth); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMaxWidthPercent(YGNodeHandle node, float maxWidth); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetMaxWidth(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMaxHeight(YGNodeHandle node, float maxHeight); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMaxHeightPercent(YGNodeHandle node, float maxHeight); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetMaxHeight(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetAspectRatio(YGNodeHandle node, float aspectRatio); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeStyleGetAspectRatio(YGNodeHandle node); - -#endregion - -#region YG_NODE_STYLE_EDGE_PROPERTY - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetPosition(YGNodeHandle node, YogaEdge edge, float position); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetPositionPercent(YGNodeHandle node, YogaEdge edge, float position); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetPosition(YGNodeHandle node, YogaEdge edge); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMargin(YGNodeHandle node, YogaEdge edge, float margin); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMarginPercent(YGNodeHandle node, YogaEdge edge, float margin); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetMarginAuto(YGNodeHandle node, YogaEdge edge); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetMargin(YGNodeHandle node, YogaEdge edge); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetPadding(YGNodeHandle node, YogaEdge edge, float padding); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetPaddingPercent(YGNodeHandle node, YogaEdge edge, float padding); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaValue YGNodeStyleGetPadding(YGNodeHandle node, YogaEdge edge); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeStyleSetBorder(YGNodeHandle node, YogaEdge edge, float border); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeStyleGetBorder(YGNodeHandle node, YogaEdge edge); - -#endregion - -#region YG_NODE_LAYOUT_PROPERTY - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeLayoutGetLeft(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeLayoutGetTop(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeLayoutGetRight(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeLayoutGetBottom(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeLayoutGetWidth(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeLayoutGetHeight(YGNodeHandle node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeLayoutGetMargin(YGNodeHandle node, YogaEdge edge); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern float YGNodeLayoutGetPadding(YGNodeHandle node, YogaEdge edge); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern YogaDirection YGNodeLayoutGetDirection(YGNodeHandle node); - -#endregion - -#region Context - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr YGNodeGetContext(IntPtr node); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGNodeSetContext(IntPtr node, IntPtr managed); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr YGConfigGetContext(IntPtr config); - - [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] - public static extern void YGConfigSetContext(IntPtr config, IntPtr managed); - -#endregion - } -} diff --git a/csharp/Facebook.Yoga/YGConfigHandle.cs b/csharp/Facebook.Yoga/YGConfigHandle.cs deleted file mode 100644 index 3724f816..00000000 --- a/csharp/Facebook.Yoga/YGConfigHandle.cs +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Runtime.InteropServices; - -namespace Facebook.Yoga -{ - internal class YGConfigHandle : SafeHandle - { - internal static readonly YGConfigHandle Default = Native.YGConfigGetDefault(); - private GCHandle _managedConfigHandle; - - private YGConfigHandle() : base(IntPtr.Zero, true) - { - } - - public override bool IsInvalid - { - get - { - return this.handle == IntPtr.Zero; - } - } - - protected override bool ReleaseHandle() - { - if (this.handle != Default.handle) - { - ReleaseManaged(); - if (!IsInvalid) - { - Native.YGConfigFree(this.handle); - } - } - GC.KeepAlive(this); - return true; - } - - public void SetContext(YogaConfig config) - { - if (!_managedConfigHandle.IsAllocated) - { -#if UNITY_5_4_OR_NEWER - // Weak causes 'GCHandle value belongs to a different domain' error - _managedConfigHandle = GCHandle.Alloc(config); -#else - _managedConfigHandle = GCHandle.Alloc(config, GCHandleType.Weak); -#endif - var managedConfigPtr = GCHandle.ToIntPtr(_managedConfigHandle); - Native.YGConfigSetContext(this.handle, managedConfigPtr); - } - } - - private void ReleaseManaged() - { - if (_managedConfigHandle.IsAllocated) - { - _managedConfigHandle.Free(); - } - } - - public static YogaConfig GetManaged(IntPtr unmanagedConfigPtr) - { - if (unmanagedConfigPtr != IntPtr.Zero) - { - var managedConfigPtr = Native.YGConfigGetContext(unmanagedConfigPtr); - var config = GCHandle.FromIntPtr(managedConfigPtr).Target as YogaConfig; - if (config == null) - { - throw new InvalidOperationException("YogaConfig is already deallocated"); - } - return config; - } - return null; - } - } -} diff --git a/csharp/Facebook.Yoga/YGNodeHandle.cs b/csharp/Facebook.Yoga/YGNodeHandle.cs deleted file mode 100644 index 28f4daf9..00000000 --- a/csharp/Facebook.Yoga/YGNodeHandle.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Runtime.InteropServices; - -namespace Facebook.Yoga -{ - internal class YGNodeHandle : SafeHandle - { - private GCHandle _managedNodeHandle; - - private YGNodeHandle() : base(IntPtr.Zero, true) - { - } - - public override bool IsInvalid - { - get - { - return this.handle == IntPtr.Zero; - } - } - - protected override bool ReleaseHandle() - { - ReleaseManaged(); - if (!IsInvalid) - { - Native.YGNodeFree(this.handle); - GC.KeepAlive(this); - } - return true; - } - - public void SetContext(YogaNode node) - { - if (!_managedNodeHandle.IsAllocated) - { -#if UNITY_5_4_OR_NEWER - // Weak causes 'GCHandle value belongs to a different domain' error - _managedNodeHandle = GCHandle.Alloc(node); -#else - _managedNodeHandle = GCHandle.Alloc(node, GCHandleType.Weak); -#endif - var managedNodePtr = GCHandle.ToIntPtr(_managedNodeHandle); - Native.YGNodeSetContext(this.handle, managedNodePtr); - } - } - - public void ReleaseManaged() - { - if (_managedNodeHandle.IsAllocated) - { - _managedNodeHandle.Free(); - } - } - - public static YogaNode GetManaged(IntPtr unmanagedNodePtr) - { - if (unmanagedNodePtr != IntPtr.Zero) - { - var managedNodePtr = Native.YGNodeGetContext(unmanagedNodePtr); - var node = GCHandle.FromIntPtr(managedNodePtr).Target as YogaNode; - if (node == null) - { - throw new InvalidOperationException("YogaNode is already deallocated"); - } - return node; - } - return null; - } - } -} diff --git a/csharp/Facebook.Yoga/YogaAlign.cs b/csharp/Facebook.Yoga/YogaAlign.cs deleted file mode 100644 index 7a47e81b..00000000 --- a/csharp/Facebook.Yoga/YogaAlign.cs +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaAlign - { - Auto, - FlexStart, - Center, - FlexEnd, - Stretch, - Baseline, - SpaceBetween, - SpaceAround, - } -} diff --git a/csharp/Facebook.Yoga/YogaBaselineFunc.cs b/csharp/Facebook.Yoga/YogaBaselineFunc.cs deleted file mode 100644 index 963d3c21..00000000 --- a/csharp/Facebook.Yoga/YogaBaselineFunc.cs +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Runtime.InteropServices; - -namespace Facebook.Yoga -{ - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate float YogaBaselineFunc(IntPtr unmanagedNodePtr, float width, float height); -} diff --git a/csharp/Facebook.Yoga/YogaConfig.cs b/csharp/Facebook.Yoga/YogaConfig.cs deleted file mode 100644 index 0dc203db..00000000 --- a/csharp/Facebook.Yoga/YogaConfig.cs +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Runtime.InteropServices; - -#if __IOS__ -using ObjCRuntime; -#endif -#if ENABLE_IL2CPP -using AOT; -#endif - -namespace Facebook.Yoga -{ - public class YogaConfig - { - internal static readonly YogaConfig Default = new YogaConfig(YGConfigHandle.Default); - private static YogaLogger _managedLogger; - - private YGConfigHandle _ygConfig; - private Logger _logger; - - private YogaConfig(YGConfigHandle ygConfig) - { - _ygConfig = ygConfig; - if (_ygConfig.IsInvalid) - { - throw new InvalidOperationException("Failed to allocate native memory"); - } - - _ygConfig.SetContext(this); - - if (_ygConfig == YGConfigHandle.Default) - { - _managedLogger = LoggerInternal; - Native.YGInteropSetLogger(_managedLogger); - } - } - - public YogaConfig() - : this(Native.YGConfigNew()) - { - } - - internal YGConfigHandle Handle - { - get { - return _ygConfig; - } - } - -#if (UNITY_IOS && !UNITY_EDITOR) || ENABLE_IL2CPP || __IOS__ - [MonoPInvokeCallback(typeof(YogaLogger))] -#endif - private static void LoggerInternal( - IntPtr unmanagedConfigPtr, - IntPtr unmanagedNodePtr, - YogaLogLevel level, - string message) - { - var config = YGConfigHandle.GetManaged(unmanagedConfigPtr); - if (config == null || config._logger == null) - { - // Default logger - System.Diagnostics.Debug.WriteLine(message); - } - else - { - var node = YGNodeHandle.GetManaged(unmanagedNodePtr); - config._logger(config, node, level, message); - } - - if (level == YogaLogLevel.Error || level == YogaLogLevel.Fatal) - { - throw new InvalidOperationException(message); - } - } - - public Logger Logger - { - get { - return _logger; - } - - set { - _logger = value; - } - } - - public void SetExperimentalFeatureEnabled( - YogaExperimentalFeature feature, - bool enabled) - { - Native.YGConfigSetExperimentalFeatureEnabled(_ygConfig, feature, enabled); - } - - public bool IsExperimentalFeatureEnabled(YogaExperimentalFeature feature) - { - return Native.YGConfigIsExperimentalFeatureEnabled(_ygConfig, feature); - } - - public bool UseWebDefaults - { - get - { - return Native.YGConfigGetUseWebDefaults(_ygConfig); - } - - set - { - Native.YGConfigSetUseWebDefaults(_ygConfig, value); - } - } - - public bool UseLegacyStretchBehaviour - { - get - { - return Native.YGConfigGetUseLegacyStretchBehaviour(_ygConfig); - } - - set - { - Native.YGConfigSetUseLegacyStretchBehaviour(_ygConfig, value); - } - } - - public float PointScaleFactor - { - set - { - Native.YGConfigSetPointScaleFactor(_ygConfig, value); - } - } - - public static int GetInstanceCount() - { - return Native.YGConfigGetInstanceCount(); - } - - public static void SetDefaultLogger(Logger logger) - { - Default.Logger = logger; - } - } -} diff --git a/csharp/Facebook.Yoga/YogaConstants.cs b/csharp/Facebook.Yoga/YogaConstants.cs deleted file mode 100644 index 3ed6665f..00000000 --- a/csharp/Facebook.Yoga/YogaConstants.cs +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public static class YogaConstants - { - public const float Undefined = float.NaN; - - public static bool IsUndefined(float value) - { - return float.IsNaN(value); - } - - public static bool IsUndefined(YogaValue value) - { - return value.Unit == YogaUnit.Undefined; - } - } -} diff --git a/csharp/Facebook.Yoga/YogaDimension.cs b/csharp/Facebook.Yoga/YogaDimension.cs deleted file mode 100644 index db2fba3f..00000000 --- a/csharp/Facebook.Yoga/YogaDimension.cs +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaDimension - { - Width, - Height, - } -} diff --git a/csharp/Facebook.Yoga/YogaDirection.cs b/csharp/Facebook.Yoga/YogaDirection.cs deleted file mode 100644 index 81797bf4..00000000 --- a/csharp/Facebook.Yoga/YogaDirection.cs +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaDirection - { - Inherit, - LTR, - RTL, - } -} diff --git a/csharp/Facebook.Yoga/YogaDisplay.cs b/csharp/Facebook.Yoga/YogaDisplay.cs deleted file mode 100644 index 065c3fe9..00000000 --- a/csharp/Facebook.Yoga/YogaDisplay.cs +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaDisplay - { - Flex, - None, - } -} diff --git a/csharp/Facebook.Yoga/YogaEdge.cs b/csharp/Facebook.Yoga/YogaEdge.cs deleted file mode 100644 index d3e0ad9d..00000000 --- a/csharp/Facebook.Yoga/YogaEdge.cs +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaEdge - { - Left, - Top, - Right, - Bottom, - Start, - End, - Horizontal, - Vertical, - All, - } -} diff --git a/csharp/Facebook.Yoga/YogaExperimentalFeature.cs b/csharp/Facebook.Yoga/YogaExperimentalFeature.cs deleted file mode 100644 index 0e7879a6..00000000 --- a/csharp/Facebook.Yoga/YogaExperimentalFeature.cs +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaExperimentalFeature - { - WebFlexBasis, - } -} diff --git a/csharp/Facebook.Yoga/YogaFlexDirection.cs b/csharp/Facebook.Yoga/YogaFlexDirection.cs deleted file mode 100644 index 1d4f9c12..00000000 --- a/csharp/Facebook.Yoga/YogaFlexDirection.cs +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaFlexDirection - { - Column, - ColumnReverse, - Row, - RowReverse, - } -} diff --git a/csharp/Facebook.Yoga/YogaJustify.cs b/csharp/Facebook.Yoga/YogaJustify.cs deleted file mode 100644 index 09f4d5cc..00000000 --- a/csharp/Facebook.Yoga/YogaJustify.cs +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaJustify - { - FlexStart, - Center, - FlexEnd, - SpaceBetween, - SpaceAround, - SpaceEvenly, - } -} diff --git a/csharp/Facebook.Yoga/YogaLogLevel.cs b/csharp/Facebook.Yoga/YogaLogLevel.cs deleted file mode 100644 index 9f587ab7..00000000 --- a/csharp/Facebook.Yoga/YogaLogLevel.cs +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaLogLevel - { - Error, - Warn, - Info, - Debug, - Verbose, - Fatal, - } -} diff --git a/csharp/Facebook.Yoga/YogaLogger.cs b/csharp/Facebook.Yoga/YogaLogger.cs deleted file mode 100644 index 9ca8c3f9..00000000 --- a/csharp/Facebook.Yoga/YogaLogger.cs +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Runtime.InteropServices; - -namespace Facebook.Yoga -{ - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate void YogaLogger( - IntPtr unmanagedConfigPtr, - IntPtr unmanagedNotePtr, - YogaLogLevel level, - string message); -} diff --git a/csharp/Facebook.Yoga/YogaMeasureFunc.cs b/csharp/Facebook.Yoga/YogaMeasureFunc.cs deleted file mode 100644 index 5bafeef7..00000000 --- a/csharp/Facebook.Yoga/YogaMeasureFunc.cs +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Runtime.InteropServices; - -namespace Facebook.Yoga -{ - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate YogaSize YogaMeasureFunc( - IntPtr unmanagedNodePtr, - float width, - YogaMeasureMode widthMode, - float height, - YogaMeasureMode heightMode); -} diff --git a/csharp/Facebook.Yoga/YogaMeasureMode.cs b/csharp/Facebook.Yoga/YogaMeasureMode.cs deleted file mode 100644 index 457f1fd7..00000000 --- a/csharp/Facebook.Yoga/YogaMeasureMode.cs +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaMeasureMode - { - Undefined, - Exactly, - AtMost, - } -} diff --git a/csharp/Facebook.Yoga/YogaNode.Spacing.cs b/csharp/Facebook.Yoga/YogaNode.Spacing.cs deleted file mode 100644 index a1b21633..00000000 --- a/csharp/Facebook.Yoga/YogaNode.Spacing.cs +++ /dev/null @@ -1,551 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public partial class YogaNode - { - public YogaValue Left - { - get - { - return Native.YGNodeStyleGetPosition(_ygNode, YogaEdge.Left); - } - - set - { - SetStylePosition(YogaEdge.Left, value); - } - } - - public YogaValue Top - { - get - { - return Native.YGNodeStyleGetPosition(_ygNode, YogaEdge.Top); - } - - set - { - SetStylePosition(YogaEdge.Top, value); - } - } - - public YogaValue Right - { - get - { - return Native.YGNodeStyleGetPosition(_ygNode, YogaEdge.Right); - } - - set - { - SetStylePosition(YogaEdge.Right, value); - } - } - - public YogaValue Bottom - { - get - { - return Native.YGNodeStyleGetPosition(_ygNode, YogaEdge.Bottom); - } - - set - { - SetStylePosition(YogaEdge.Bottom, value); - } - } - - public YogaValue Start - { - get - { - return Native.YGNodeStyleGetPosition(_ygNode, YogaEdge.Start); - } - - set - { - SetStylePosition(YogaEdge.Start, value); - } - } - - public YogaValue End - { - get - { - return Native.YGNodeStyleGetPosition(_ygNode, YogaEdge.End); - } - - set - { - SetStylePosition(YogaEdge.End, value); - } - } - - private void SetStylePosition(YogaEdge edge, YogaValue value) - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetPositionPercent(_ygNode, edge, value.Value); - } - else - { - Native.YGNodeStyleSetPosition(_ygNode, edge, value.Value); - } - } - - public YogaValue MarginLeft - { - get - { - return Native.YGNodeStyleGetMargin(_ygNode, YogaEdge.Left); - } - - set - { - SetStyleMargin(YogaEdge.Left, value); - } - } - - public YogaValue MarginTop - { - get - { - return Native.YGNodeStyleGetMargin(_ygNode, YogaEdge.Top); - } - - set - { - SetStyleMargin(YogaEdge.Top, value); - } - } - - public YogaValue MarginRight - { - get - { - return Native.YGNodeStyleGetMargin(_ygNode, YogaEdge.Right); - } - - set - { - SetStyleMargin(YogaEdge.Right, value); - } - } - - public YogaValue MarginBottom - { - get - { - return Native.YGNodeStyleGetMargin(_ygNode, YogaEdge.Bottom); - } - - set - { - SetStyleMargin(YogaEdge.Bottom, value); - } - } - - public YogaValue MarginStart - { - get - { - return Native.YGNodeStyleGetMargin(_ygNode, YogaEdge.Start); - } - - set - { - SetStyleMargin(YogaEdge.Start, value); - } - } - - public YogaValue MarginEnd - { - get - { - return Native.YGNodeStyleGetMargin(_ygNode, YogaEdge.End); - } - - set - { - SetStyleMargin(YogaEdge.End, value); - } - } - - public YogaValue MarginHorizontal - { - get - { - return Native.YGNodeStyleGetMargin(_ygNode, YogaEdge.Horizontal); - } - - set - { - SetStyleMargin(YogaEdge.Horizontal, value); - } - } - - public YogaValue MarginVertical - { - get - { - return Native.YGNodeStyleGetMargin(_ygNode, YogaEdge.Vertical); - } - - set - { - SetStyleMargin(YogaEdge.Vertical, value); - } - } - - public YogaValue Margin - { - get - { - return Native.YGNodeStyleGetMargin(_ygNode, YogaEdge.All); - } - - set - { - SetStyleMargin(YogaEdge.All, value); - } - } - - private void SetStyleMargin(YogaEdge edge, YogaValue value) - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetMarginPercent(_ygNode, edge, value.Value); - } - else if (value.Unit == YogaUnit.Auto) - { - Native.YGNodeStyleSetMarginAuto(_ygNode, edge); - } - else - { - Native.YGNodeStyleSetMargin(_ygNode, edge, value.Value); - } - } - - public YogaValue PaddingLeft - { - get - { - return Native.YGNodeStyleGetPadding(_ygNode, YogaEdge.Left); - } - - set - { - SetStylePadding(YogaEdge.Left, value); - } - } - - public YogaValue PaddingTop - { - get - { - return Native.YGNodeStyleGetPadding(_ygNode, YogaEdge.Top); - } - - set - { - SetStylePadding(YogaEdge.Top, value); - } - } - - public YogaValue PaddingRight - { - get - { - return Native.YGNodeStyleGetPadding(_ygNode, YogaEdge.Right); - } - - set - { - SetStylePadding(YogaEdge.Right, value); - } - } - - public YogaValue PaddingBottom - { - get - { - return Native.YGNodeStyleGetPadding(_ygNode, YogaEdge.Bottom); - } - - set - { - SetStylePadding(YogaEdge.Bottom, value); - } - } - - public YogaValue PaddingStart - { - get - { - return Native.YGNodeStyleGetPadding(_ygNode, YogaEdge.Start); - } - - set - { - SetStylePadding(YogaEdge.Start, value); - } - } - - public YogaValue PaddingEnd - { - get - { - return Native.YGNodeStyleGetPadding(_ygNode, YogaEdge.End); - } - - set - { - SetStylePadding(YogaEdge.End, value); - } - } - - public YogaValue PaddingHorizontal - { - get - { - return Native.YGNodeStyleGetPadding(_ygNode, YogaEdge.Horizontal); - } - - set - { - SetStylePadding(YogaEdge.Horizontal, value); - } - } - - public YogaValue PaddingVertical - { - get - { - return Native.YGNodeStyleGetPadding(_ygNode, YogaEdge.Vertical); - } - - set - { - SetStylePadding(YogaEdge.Vertical, value); - } - } - - public YogaValue Padding - { - get - { - return Native.YGNodeStyleGetPadding(_ygNode, YogaEdge.All); - } - - set - { - SetStylePadding(YogaEdge.All, value); - } - } - - private void SetStylePadding(YogaEdge edge, YogaValue value) - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetPaddingPercent(_ygNode, edge, value.Value); - } - else - { - Native.YGNodeStyleSetPadding(_ygNode, edge, value.Value); - } - } - - public float BorderLeftWidth - { - get - { - return Native.YGNodeStyleGetBorder(_ygNode, YogaEdge.Left); - } - - set - { - Native.YGNodeStyleSetBorder(_ygNode, YogaEdge.Left, value); - } - } - - public float BorderTopWidth - { - get - { - return Native.YGNodeStyleGetBorder(_ygNode, YogaEdge.Top); - } - - set - { - Native.YGNodeStyleSetBorder(_ygNode, YogaEdge.Top, value); - } - } - - public float BorderRightWidth - { - get - { - return Native.YGNodeStyleGetBorder(_ygNode, YogaEdge.Right); - } - - set - { - Native.YGNodeStyleSetBorder(_ygNode, YogaEdge.Right, value); - } - } - - public float BorderBottomWidth - { - get - { - return Native.YGNodeStyleGetBorder(_ygNode, YogaEdge.Bottom); - } - - set - { - Native.YGNodeStyleSetBorder(_ygNode, YogaEdge.Bottom, value); - } - } - - public float BorderStartWidth - { - get - { - return Native.YGNodeStyleGetBorder(_ygNode, YogaEdge.Start); - } - - set - { - Native.YGNodeStyleSetBorder(_ygNode, YogaEdge.Start, value); - } - } - - public float BorderEndWidth - { - get - { - return Native.YGNodeStyleGetBorder(_ygNode, YogaEdge.End); - } - - set - { - Native.YGNodeStyleSetBorder(_ygNode, YogaEdge.End, value); - } - } - - public float BorderWidth - { - get - { - return Native.YGNodeStyleGetBorder(_ygNode, YogaEdge.All); - } - - set - { - Native.YGNodeStyleSetBorder(_ygNode, YogaEdge.All, value); - } - } - - public float LayoutMarginLeft - { - get - { - return Native.YGNodeLayoutGetMargin(_ygNode, YogaEdge.Left); - } - } - - public float LayoutMarginTop - { - get - { - return Native.YGNodeLayoutGetMargin(_ygNode, YogaEdge.Top); - } - } - - public float LayoutMarginRight - { - get - { - return Native.YGNodeLayoutGetMargin(_ygNode, YogaEdge.Right); - } - } - - public float LayoutMarginBottom - { - get - { - return Native.YGNodeLayoutGetMargin(_ygNode, YogaEdge.Bottom); - } - } - - public float LayoutMarginStart - { - get - { - return Native.YGNodeLayoutGetMargin(_ygNode, YogaEdge.Start); - } - } - - public float LayoutMarginEnd - { - get - { - return Native.YGNodeLayoutGetMargin(_ygNode, YogaEdge.End); - } - } - - public float LayoutPaddingLeft - { - get - { - return Native.YGNodeLayoutGetPadding(_ygNode, YogaEdge.Left); - } - } - - public float LayoutPaddingTop - { - get - { - return Native.YGNodeLayoutGetPadding(_ygNode, YogaEdge.Top); - } - } - - public float LayoutPaddingRight - { - get - { - return Native.YGNodeLayoutGetPadding(_ygNode, YogaEdge.Right); - } - } - - public float LayoutPaddingBottom - { - get - { - return Native.YGNodeLayoutGetPadding(_ygNode, YogaEdge.Bottom); - } - } - - public float LayoutPaddingStart - { - get - { - return Native.YGNodeLayoutGetPadding(_ygNode, YogaEdge.Start); - } - } - - public float LayoutPaddingEnd - { - get - { - return Native.YGNodeLayoutGetPadding(_ygNode, YogaEdge.End); - } - } - } -} diff --git a/csharp/Facebook.Yoga/YogaNode.cs b/csharp/Facebook.Yoga/YogaNode.cs deleted file mode 100644 index 7a9b8f19..00000000 --- a/csharp/Facebook.Yoga/YogaNode.cs +++ /dev/null @@ -1,677 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Text; - -#if __IOS__ -using ObjCRuntime; -#endif -#if ENABLE_IL2CPP -using AOT; -#endif - -namespace Facebook.Yoga -{ - public partial class YogaNode : IEnumerable - { - private readonly YGNodeHandle _ygNode; - private readonly YogaConfig _config; - private WeakReference _parent; - private List _children; - private MeasureFunction _measureFunction; - private BaselineFunction _baselineFunction; - private YogaMeasureFunc _managedMeasure; - private YogaBaselineFunc _managedBaseline; - private object _data; - - public YogaNode(YogaConfig config = null) - { - _config = config == null ? YogaConfig.Default : config; - _ygNode = Native.YGNodeNewWithConfig(_config.Handle); - if (_ygNode.IsInvalid) - { - throw new InvalidOperationException("Failed to allocate native memory"); - } - - _ygNode.SetContext(this); - } - - public YogaNode(YogaNode srcNode) - : this(srcNode._config) - { - CopyStyle(srcNode); - } - - public void Reset() - { - _measureFunction = null; - _baselineFunction = null; - _data = null; - - _ygNode.ReleaseManaged(); - Native.YGNodeReset(_ygNode); - _ygNode.SetContext(this); - } - - public bool IsDirty - { - get - { - return Native.YGNodeIsDirty(_ygNode); - } - } - - public virtual void MarkDirty() - { - Native.YGNodeMarkDirty(_ygNode); - } - - public bool HasNewLayout - { - get - { - return Native.YGNodeGetHasNewLayout(_ygNode); - } - } - - public void MarkHasNewLayout() - { - Native.YGNodeSetHasNewLayout(_ygNode, true); - } - - public YogaNode Parent - { - get - { - return _parent != null ? _parent.Target as YogaNode : null; - } - } - - public bool IsMeasureDefined - { - get - { - return _measureFunction != null; - } - } - - public bool IsBaselineDefined - { - get - { - return _baselineFunction != null; - } - } - - public void CopyStyle(YogaNode srcNode) - { - Native.YGNodeCopyStyle(_ygNode, srcNode._ygNode); - } - - public YogaDirection StyleDirection - { - get - { - return Native.YGNodeStyleGetDirection(_ygNode); - } - - set - { - Native.YGNodeStyleSetDirection(_ygNode, value); - } - } - - public YogaFlexDirection FlexDirection - { - get - { - return Native.YGNodeStyleGetFlexDirection(_ygNode); - } - - set - { - Native.YGNodeStyleSetFlexDirection(_ygNode, value); - } - } - - public YogaJustify JustifyContent - { - get - { - return Native.YGNodeStyleGetJustifyContent(_ygNode); - } - - set - { - Native.YGNodeStyleSetJustifyContent(_ygNode, value); - } - } - - public YogaDisplay Display - { - get - { - return Native.YGNodeStyleGetDisplay(_ygNode); - } - - set - { - Native.YGNodeStyleSetDisplay(_ygNode, value); - } - } - - public YogaAlign AlignItems - { - get - { - return Native.YGNodeStyleGetAlignItems(_ygNode); - } - - set - { - Native.YGNodeStyleSetAlignItems(_ygNode, value); - } - } - - public YogaAlign AlignSelf - { - get - { - return Native.YGNodeStyleGetAlignSelf(_ygNode); - } - - set - { - Native.YGNodeStyleSetAlignSelf(_ygNode, value); - } - } - - public YogaAlign AlignContent - { - get - { - return Native.YGNodeStyleGetAlignContent(_ygNode); - } - - set - { - Native.YGNodeStyleSetAlignContent(_ygNode, value); - } - } - - public YogaPositionType PositionType - { - get - { - return Native.YGNodeStyleGetPositionType(_ygNode); - } - - set - { - Native.YGNodeStyleSetPositionType(_ygNode, value); - } - } - - public YogaWrap Wrap - { - get - { - return Native.YGNodeStyleGetFlexWrap(_ygNode); - } - - set - { - Native.YGNodeStyleSetFlexWrap(_ygNode, value); - } - } - - public float Flex - { - set - { - Native.YGNodeStyleSetFlex(_ygNode, value); - } - } - - public float FlexGrow - { - get - { - return Native.YGNodeStyleGetFlexGrow(_ygNode); - } - - set - { - Native.YGNodeStyleSetFlexGrow(_ygNode, value); - } - } - - public float FlexShrink - { - get - { - return Native.YGNodeStyleGetFlexShrink(_ygNode); - } - - set - { - Native.YGNodeStyleSetFlexShrink(_ygNode, value); - } - } - - public YogaValue FlexBasis - { - get - { - return Native.YGNodeStyleGetFlexBasis(_ygNode); - } - - set - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetFlexBasisPercent(_ygNode, value.Value); - } - else if (value.Unit == YogaUnit.Auto) - { - Native.YGNodeStyleSetFlexBasisAuto(_ygNode); - } - else - { - Native.YGNodeStyleSetFlexBasis(_ygNode, value.Value); - } - } - } - - public YogaValue Width - { - get - { - return Native.YGNodeStyleGetWidth(_ygNode); - } - - set - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetWidthPercent(_ygNode, value.Value); - } - else if (value.Unit == YogaUnit.Auto) - { - Native.YGNodeStyleSetWidthAuto(_ygNode); - } - else - { - Native.YGNodeStyleSetWidth(_ygNode, value.Value); - } - } - } - - public YogaValue Height - { - get - { - return Native.YGNodeStyleGetHeight(_ygNode); - } - - set - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetHeightPercent(_ygNode, value.Value); - } - else if (value.Unit == YogaUnit.Auto) - { - Native.YGNodeStyleSetHeightAuto(_ygNode); - } - else - { - Native.YGNodeStyleSetHeight(_ygNode, value.Value); - } - } - } - - public YogaValue MaxWidth - { - get - { - return Native.YGNodeStyleGetMaxWidth(_ygNode); - } - - set - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetMaxWidthPercent(_ygNode, value.Value); - } - else - { - Native.YGNodeStyleSetMaxWidth(_ygNode, value.Value); - } - } - } - - public YogaValue MaxHeight - { - get - { - return Native.YGNodeStyleGetMaxHeight(_ygNode); - } - - set - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetMaxHeightPercent(_ygNode, value.Value); - } - else - { - Native.YGNodeStyleSetMaxHeight(_ygNode, value.Value); - } - } - } - - public YogaValue MinWidth - { - get - { - return Native.YGNodeStyleGetMinWidth(_ygNode); - } - - set - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetMinWidthPercent(_ygNode, value.Value); - } - else - { - Native.YGNodeStyleSetMinWidth(_ygNode, value.Value); - } - } - } - - public YogaValue MinHeight - { - get - { - return Native.YGNodeStyleGetMinHeight(_ygNode); - } - - set - { - if (value.Unit == YogaUnit.Percent) - { - Native.YGNodeStyleSetMinHeightPercent(_ygNode, value.Value); - } - else - { - Native.YGNodeStyleSetMinHeight(_ygNode, value.Value); - } - } - } - - public float AspectRatio - { - get - { - return Native.YGNodeStyleGetAspectRatio(_ygNode); - } - - set - { - Native.YGNodeStyleSetAspectRatio(_ygNode, value); - } - } - - public float LayoutX - { - get - { - return Native.YGNodeLayoutGetLeft(_ygNode); - } - } - - public float LayoutY - { - get - { - return Native.YGNodeLayoutGetTop(_ygNode); - } - } - - public float LayoutWidth - { - get - { - return Native.YGNodeLayoutGetWidth(_ygNode); - } - } - - public float LayoutHeight - { - get - { - return Native.YGNodeLayoutGetHeight(_ygNode); - } - } - - public YogaDirection LayoutDirection - { - get - { - return Native.YGNodeLayoutGetDirection(_ygNode); - } - } - - public YogaOverflow Overflow - { - get - { - return Native.YGNodeStyleGetOverflow(_ygNode); - } - - set - { - Native.YGNodeStyleSetOverflow(_ygNode, value); - } - } - - public object Data - { - get - { - return _data; - } - - set - { - _data = value; - } - } - - public YogaNode this[int index] - { - get - { - return _children[index]; - } - } - - public int Count - { - get - { - return _children != null ? _children.Count : 0; - } - } - - public void MarkLayoutSeen() - { - Native.YGNodeSetHasNewLayout(_ygNode, false); - } - - public bool IsReferenceBaseline - { - get - { - return Native.YGNodeIsReferenceBaseline(_ygNode); - } - - set - { - Native.YGNodeSetIsReferenceBaseline(_ygNode, value); - } - } - - public bool ValuesEqual(float f1, float f2) - { - if (float.IsNaN(f1) || float.IsNaN(f2)) - { - return float.IsNaN(f1) && float.IsNaN(f2); - } - - return Math.Abs(f2 - f1) < float.Epsilon; - } - - public void Insert(int index, YogaNode node) - { - if (_children == null) - { - _children = new List(4); - } - _children.Insert(index, node); - node._parent = new WeakReference(this); - Native.YGNodeInsertChild(_ygNode, node._ygNode, (uint)index); - } - - public void RemoveAt(int index) - { - var child = _children[index]; - child._parent = null; - _children.RemoveAt(index); - Native.YGNodeRemoveChild(_ygNode, child._ygNode); - } - - public void AddChild(YogaNode child) - { - Insert(Count, child); - } - - public void RemoveChild(YogaNode child) - { - int index = IndexOf(child); - if (index >= 0) - { - RemoveAt(index); - } - } - - public void Clear() - { - if (_children != null) - { - while (_children.Count > 0) - { - RemoveAt(_children.Count-1); - } - } - } - - public int IndexOf(YogaNode node) - { - return _children != null ? _children.IndexOf(node) : -1; - } - - public void SetMeasureFunction(MeasureFunction measureFunction) - { - _measureFunction = measureFunction; - _managedMeasure = measureFunction != null ? MeasureInternal : (YogaMeasureFunc)null; - Native.YGNodeSetMeasureFunc(_ygNode, _managedMeasure); - } - - public void SetBaselineFunction(BaselineFunction baselineFunction) - { - _baselineFunction = baselineFunction; - _managedBaseline = - baselineFunction != null ? BaselineInternal : (YogaBaselineFunc)null; - Native.YGNodeSetBaselineFunc(_ygNode, _managedBaseline); - } - - public void CalculateLayout( - float width = YogaConstants.Undefined, - float height = YogaConstants.Undefined) - { - Native.YGNodeCalculateLayout( - _ygNode, - width, - height, - Native.YGNodeStyleGetDirection(_ygNode)); - } - -#if (UNITY_IOS && !UNITY_EDITOR) || ENABLE_IL2CPP || __IOS__ - [MonoPInvokeCallback(typeof(YogaMeasureFunc))] -#endif - private static YogaSize MeasureInternal( - IntPtr unmanagedNodePtr, - float width, - YogaMeasureMode widthMode, - float height, - YogaMeasureMode heightMode) - { - var node = YGNodeHandle.GetManaged(unmanagedNodePtr); - if (node == null || node._measureFunction == null) - { - throw new InvalidOperationException("Measure function is not defined."); - } - return node._measureFunction(node, width, widthMode, height, heightMode); - } - -#if (UNITY_IOS && !UNITY_EDITOR) || ENABLE_IL2CPP || __IOS__ - [MonoPInvokeCallback(typeof(YogaBaselineFunc))] -#endif - private static float BaselineInternal( - IntPtr unmanagedNodePtr, - float width, - float height) - { - var node = YGNodeHandle.GetManaged(unmanagedNodePtr); - if (node == null || node._baselineFunction == null) - { - throw new InvalidOperationException("Baseline function is not defined."); - } - return node._baselineFunction(node, width, height); - } - - public string Print(YogaPrintOptions options = - YogaPrintOptions.Layout|YogaPrintOptions.Style|YogaPrintOptions.Children) - { - StringBuilder sb = new StringBuilder(); - Logger orig = _config.Logger; - _config.Logger = (config, node, level, message) => {sb.Append(message);}; - Native.YGNodePrint(_ygNode, options); - _config.Logger = orig; - return sb.ToString(); - } - - public IEnumerator GetEnumerator() - { - return _children != null ? ((IEnumerable)_children).GetEnumerator() : - System.Linq.Enumerable.Empty().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return _children != null ? ((IEnumerable)_children).GetEnumerator() : - System.Linq.Enumerable.Empty().GetEnumerator(); - } - } -} diff --git a/csharp/Facebook.Yoga/YogaNodeType.cs b/csharp/Facebook.Yoga/YogaNodeType.cs deleted file mode 100644 index 9a17c4d1..00000000 --- a/csharp/Facebook.Yoga/YogaNodeType.cs +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaNodeType - { - Default, - Text, - } -} diff --git a/csharp/Facebook.Yoga/YogaOverflow.cs b/csharp/Facebook.Yoga/YogaOverflow.cs deleted file mode 100644 index b2a99e5c..00000000 --- a/csharp/Facebook.Yoga/YogaOverflow.cs +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaOverflow - { - Visible, - Hidden, - Scroll, - } -} diff --git a/csharp/Facebook.Yoga/YogaPositionType.cs b/csharp/Facebook.Yoga/YogaPositionType.cs deleted file mode 100644 index d63b7eab..00000000 --- a/csharp/Facebook.Yoga/YogaPositionType.cs +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaPositionType - { - Relative, - Absolute, - } -} diff --git a/csharp/Facebook.Yoga/YogaPrintOptions.cs b/csharp/Facebook.Yoga/YogaPrintOptions.cs deleted file mode 100644 index 82183db2..00000000 --- a/csharp/Facebook.Yoga/YogaPrintOptions.cs +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - [System.Flags] - public enum YogaPrintOptions - { - Layout = 1, - Style = 2, - Children = 4, - } -} diff --git a/csharp/Facebook.Yoga/YogaSize.cs b/csharp/Facebook.Yoga/YogaSize.cs deleted file mode 100644 index 12ddc937..00000000 --- a/csharp/Facebook.Yoga/YogaSize.cs +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System.Runtime.InteropServices; - -namespace Facebook.Yoga -{ - [StructLayout(LayoutKind.Sequential)] - public struct YogaSize - { - public float width; - public float height; - } -} diff --git a/csharp/Facebook.Yoga/YogaUnit.cs b/csharp/Facebook.Yoga/YogaUnit.cs deleted file mode 100644 index bb424be1..00000000 --- a/csharp/Facebook.Yoga/YogaUnit.cs +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaUnit - { - Undefined, - Point, - Percent, - Auto, - } -} diff --git a/csharp/Facebook.Yoga/YogaValue.cs b/csharp/Facebook.Yoga/YogaValue.cs deleted file mode 100644 index 03396ebf..00000000 --- a/csharp/Facebook.Yoga/YogaValue.cs +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Runtime.InteropServices; - -namespace Facebook.Yoga -{ - [StructLayout(LayoutKind.Sequential)] - public struct YogaValue - { - private float value; - private YogaUnit unit; - - public YogaUnit Unit - { - get - { - return unit; - } - } - - public float Value - { - get - { - return value; - } - } - - public static YogaValue Point(float value) - { - return new YogaValue - { - value = value, - unit = YogaConstants.IsUndefined(value) ? YogaUnit.Undefined : YogaUnit.Point - }; - } - - public bool Equals(YogaValue other) - { - return Unit == other.Unit && (Value.Equals(other.Value) || Unit == YogaUnit.Undefined); - } - - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) return false; - return obj is YogaValue && Equals((YogaValue) obj); - } - - public override int GetHashCode() - { - unchecked - { - return (Value.GetHashCode() * 397) ^ (int) Unit; - } - } - - public static YogaValue Undefined() - { - return new YogaValue - { - value = YogaConstants.Undefined, - unit = YogaUnit.Undefined - }; - } - - public static YogaValue Auto() - { - return new YogaValue - { - value = 0f, - unit = YogaUnit.Auto - }; - } - - public static YogaValue Percent(float value) - { - return new YogaValue - { - value = value, - unit = YogaConstants.IsUndefined(value) ? YogaUnit.Undefined : YogaUnit.Percent - }; - } - - public static implicit operator YogaValue(float pointValue) - { - return Point(pointValue); - } - } -} diff --git a/csharp/Facebook.Yoga/YogaValueExtensions.cs b/csharp/Facebook.Yoga/YogaValueExtensions.cs deleted file mode 100644 index 1346ef9f..00000000 --- a/csharp/Facebook.Yoga/YogaValueExtensions.cs +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public static class YogaValueExtensions - { - public static YogaValue Percent(this float value) - { - return YogaValue.Percent(value); - } - - public static YogaValue Pt(this float value) - { - return YogaValue.Point(value); - } - - public static YogaValue Percent(this int value) - { - return YogaValue.Percent(value); - } - - public static YogaValue Pt(this int value) - { - return YogaValue.Point(value); - } - } -} \ No newline at end of file diff --git a/csharp/Facebook.Yoga/YogaWrap.cs b/csharp/Facebook.Yoga/YogaWrap.cs deleted file mode 100644 index 541e06f9..00000000 --- a/csharp/Facebook.Yoga/YogaWrap.cs +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -namespace Facebook.Yoga -{ - public enum YogaWrap - { - NoWrap, - Wrap, - WrapReverse, - } -} diff --git a/csharp/Facebook.Yoga/project.json b/csharp/Facebook.Yoga/project.json deleted file mode 100644 index a188a056..00000000 --- a/csharp/Facebook.Yoga/project.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "language": "en", - "version": "3.0.0-*", - - "dependencies": { - "NETStandard.Library": "1.6.0", - "System.Runtime.Handles": "4.3.0" - }, - - "frameworks": { - "netstandard1.6": { - "imports": "dnxcore50" - } - } -} diff --git a/csharp/Facebook.YogaKit/Facebook.YogaKit.Shared.shproj b/csharp/Facebook.YogaKit/Facebook.YogaKit.Shared.shproj deleted file mode 100644 index 0943de36..00000000 --- a/csharp/Facebook.YogaKit/Facebook.YogaKit.Shared.shproj +++ /dev/null @@ -1,11 +0,0 @@ - - - - {A24B3BA6-3143-4FFF-B8B8-1EDF166F5F4A} - - - - - - - \ No newline at end of file diff --git a/csharp/Facebook.YogaKit/Facebook.YogaKit.projitems b/csharp/Facebook.YogaKit/Facebook.YogaKit.projitems deleted file mode 100644 index af8db327..00000000 --- a/csharp/Facebook.YogaKit/Facebook.YogaKit.projitems +++ /dev/null @@ -1,16 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - {A24B3BA6-3143-4FFF-B8B8-1EDF166F5F4A} - - - Facebook.YogaKit - - - - - - - \ No newline at end of file diff --git a/csharp/Facebook.YogaKit/IYogaLayout.cs b/csharp/Facebook.YogaKit/IYogaLayout.cs deleted file mode 100644 index 721c19ce..00000000 --- a/csharp/Facebook.YogaKit/IYogaLayout.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System; -using System.Drawing; -using Facebook.Yoga; - -namespace Facebook.YogaKit -{ - public interface IYogaLayout : IDisposable - { - bool IsEnabled { get; set; } - bool IsIncludeInLayout { get; set; } - - //YogaDirection Direction { get; set; } - YogaFlexDirection FlexDirection { get; set; } - YogaJustify JustifyContent { get; set; } - YogaAlign AlignContent { get; set; } - YogaAlign AlignSelf { get; set; } - YogaAlign AlignItems { get; set; } - YogaPositionType Position { get; set; } - YogaWrap FlexWrap { get; set; } - YogaOverflow Overflow { get; set; } - - - float FlexGrow { get; set; } - float FlexShrink { get; set; } - float FlexBasis { get; set; } - - float Left { get; set; } - float Top { get; set; } - float Right { get; set; } - float Bottom { get; set; } - float Start { get; set; } - float End { get; set; } - - float MarginLeft { get; set; } - float MarginTop { get; set; } - float MarginRight { get; set; } - float MarginBottom { get; set; } - float MarginStart { get; set; } - float MarginEnd { get; set; } - float MarginHorizontal { get; set; } - float MarginVertical { get; set; } - float Margin { get; set; } - - float PaddingLeft { get; set; } - float PaddingTop { get; set; } - float PaddingRight { get; set; } - float PaddingBottom { get; set; } - float PaddingStart { get; set; } - float PaddingEnd { get; set; } - float PaddingHorizontal { get; set; } - float PaddingVertical { get; set; } - float Padding { get; set; } - - float BorderLeftWidth { get; set; } - float BorderTopWidth { get; set; } - float BorderRightWidth { get; set; } - float BorderBottomWidth { get; set; } - float BorderStartWidth { get; set; } - float BorderEndWidth { get; set; } - float BorderWidth { get; set; } - - float Width { get; set; } - float Height { get; set; } - float MinWidth { get; set; } - float MinHeight { get; set; } - float MaxWidth { get; set; } - float MaxHeight { get; set; } - - // Yoga specific properties, not compatible with flexbox specification - - // Returns the size of the view if no constraints were given. This could equivalent to calling [self sizeThatFits:CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX)]; - SizeF IntrinsicSize { get; } - float AspectRatio { get; set; } - // Get the resolved direction of this node. This won't be YGDirectionInherit - YogaDirection ResolvedDirection { get; } - // Returns the number of children that are using Flexbox. - int NumberOfChildren { get; } - // Return a BOOL indiciating whether or not we this node contains any subviews that are included in Yoga's layout. - bool IsLeaf { get; } - // Perform a layout calculation and update the frames of the views in the hierarchy with the results - void ApplyLayout(); - // Mark that a view's layout needs to be recalculated. Only works for leaf views. - void MarkDirty(); - } -} diff --git a/csharp/Facebook.YogaKit/YogaKit.cs b/csharp/Facebook.YogaKit/YogaKit.cs deleted file mode 100644 index 7bdae48c..00000000 --- a/csharp/Facebook.YogaKit/YogaKit.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Collections.Generic; -using Facebook.Yoga; - -namespace Facebook.YogaKit -{ - public static partial class YogaKit - { - internal static Dictionary Bridges = new Dictionary(); - } -} diff --git a/csharp/Facebook.YogaKit/YogaLayout.cs b/csharp/Facebook.YogaKit/YogaLayout.cs deleted file mode 100644 index e38de96c..00000000 --- a/csharp/Facebook.YogaKit/YogaLayout.cs +++ /dev/null @@ -1,898 +0,0 @@ -using System; -using Facebook.Yoga; -using System.Collections.Generic; -using System.Drawing; -#if __IOS__ -using NativeView = UIKit.UIView; -using NativeScrollView = UIKit.UIScrollView; -#endif - -namespace Facebook.YogaKit -{ - public partial class YogaLayout : IYogaLayout - { - WeakReference _viewRef; - YogaNode _node; - - internal YogaLayout(NativeView view) - { - _viewRef = new WeakReference(view); - _node = new YogaNode(); - YogaKit.Bridges.Add(_node, view); - - IsEnabled = false; - IsIncludeInLayout = true; - } - - public new void MarkDirty() - { - if (IsLeaf) - _node.MarkDirty(); - } - - public bool IsLeaf - { - get - { - if (IsEnabled) - { - NativeView view = null; - if (_viewRef.TryGetTarget(out view)) - { - foreach (NativeView subview in GetChildren(view)) - { - var layout = subview.Yoga(); - if (layout.IsEnabled && layout.IsIncludeInLayout) - { - return false; - } - } - } - - } - return true; - } - } - - - - public bool IsEnabled - { - get; - set; - } - - public bool IsIncludeInLayout - { - get; - set; - } - - public int NumberOfChildren => _node.Count; - - public YogaDirection ResolvedDirection => _node.LayoutDirection; - - public YogaFlexDirection FlexDirection - { - get - { - return _node.FlexDirection; - } - - set - { - _node.FlexDirection = value; - } - } - - public YogaAlign AlignItems - { - get - { - return _node.AlignItems; - } - - set - { - _node.AlignItems = value; - } - } - - public YogaJustify JustifyContent - { - get - { - return _node.JustifyContent; - } - - set - { - _node.JustifyContent = value; - } - } - - public YogaAlign AlignContent - { - get - { - return _node.AlignContent; - } - - set - { - _node.AlignContent = value; - } - } - - public YogaAlign AlignSelf - { - get - { - return _node.AlignSelf; - } - - set - { - _node.AlignSelf = value; - } - } - - public YogaPositionType Position - { - get - { - return _node.PositionType; - } - - set - { - _node.PositionType = value; - } - } - - public YogaWrap FlexWrap - { - get - { - return _node.Wrap; - } - - set - { - _node.Wrap = value; - } - } - - public YogaOverflow Overflow - { - get - { - return _node.Overflow; - } - - set - { - _node.Overflow = value; - } - } - - public float FlexGrow - { - get - { - return _node.FlexGrow; - } - - set - { - _node.FlexGrow = value; - } - } - - public float FlexShrink - { - get - { - return _node.FlexShrink; - } - - set - { - _node.FlexShrink = value; - } - } - - public float FlexBasis - { - get - { - return (float)_node.FlexBasis.Value; - } - - set - { - _node.FlexBasis = value; - } - } - - public float Left - { - get - { - return _node.Left.Value; - } - - set - { - _node.Left = value; - } - } - - public float Top - { - get - { - return _node.Top.Value; - } - - set - { - _node.Top = value; - } - } - - public float Right - { - get - { - return _node.Right.Value; - } - - set - { - _node.Right = value; - } - } - - public float Bottom - { - get - { - return _node.Bottom.Value; - } - - set - { - _node.Bottom = value; - } - } - - public float Start - { - get - { - return _node.Start.Value; - } - - set - { - _node.Start = value; - } - } - - public float End - { - get - { - return _node.End.Value; - } - - set - { - _node.End = value; - } - } - - public float MarginLeft - { - get - { - return _node.MarginLeft.Value; - } - - set - { - _node.MarginLeft = value; - } - } - - public float MarginTop - { - get - { - return _node.MarginTop.Value; - } - - set - { - _node.MarginTop = value; - } - } - - public float MarginRight - { - get - { - return _node.MarginRight.Value; - } - - set - { - _node.MarginRight = value; - } - } - - public float MarginBottom - { - get - { - return _node.MarginBottom.Value; - } - - set - { - _node.MarginBottom = value; - } - } - - public float MarginStart - { - get - { - return _node.MarginStart.Value; - } - - set - { - _node.MarginStart = value; - } - } - - public float MarginEnd - { - get - { - return _node.MarginEnd.Value; - } - - set - { - _node.MarginEnd = value; - } - } - - public float MarginHorizontal - { - get - { - return _node.MarginHorizontal.Value; - } - - set - { - _node.MarginHorizontal = value; - } - } - - public float MarginVertical - { - get - { - return _node.MarginVertical.Value; - } - - set - { - _node.MarginVertical = value; - } - } - - public float Margin - { - get - { - return _node.Margin.Value; - } - - set - { - _node.Margin = value; - } - } - - public float PaddingLeft - { - get - { - return _node.PaddingLeft.Value; - } - - set - { - _node.PaddingLeft = value; - } - } - - public float PaddingTop - { - get - { - return _node.PaddingTop.Value; - } - - set - { - _node.PaddingTop = value; - } - } - - public float PaddingRight - { - get - { - return _node.PaddingRight.Value; - } - - set - { - _node.PaddingRight = value; - } - } - - public float PaddingBottom - { - get - { - return _node.PaddingBottom.Value; - } - - set - { - _node.PaddingBottom = value; - } - } - - public float PaddingStart - { - get - { - return _node.PaddingStart.Value; - } - - set - { - _node.PaddingStart = value; - } - } - - public float PaddingEnd - { - get - { - return _node.PaddingEnd.Value; - } - - set - { - _node.PaddingEnd = value; - } - } - - public float PaddingHorizontal - { - get - { - return _node.PaddingHorizontal.Value; - } - - set - { - _node.PaddingHorizontal = value; - } - } - - public float PaddingVertical - { - get - { - return _node.PaddingVertical.Value; - } - - set - { - _node.PaddingHorizontal = value; - } - } - - public float Padding - { - get - { - return _node.Padding.Value; - } - - set - { - _node.Padding = value; - } - } - - public float BorderLeftWidth - { - get - { - return _node.BorderLeftWidth; - } - - set - { - _node.BorderLeftWidth = value; - } - } - - public float BorderTopWidth - { - get - { - return _node.BorderTopWidth; - } - - set - { - _node.BorderTopWidth = value; - } - } - - public float BorderRightWidth - { - get - { - return _node.BorderRightWidth; - } - - set - { - _node.BorderRightWidth = value; - } - } - - public float BorderBottomWidth - { - get - { - return _node.BorderBottomWidth; - } - - set - { - _node.BorderBottomWidth = value; - } - } - - public float BorderStartWidth - { - get - { - return _node.BorderStartWidth; - } - - set - { - _node.BorderStartWidth = value; - } - } - - public float BorderEndWidth - { - get - { - return _node.BorderEndWidth; - } - - set - { - _node.BorderEndWidth = value; - } - } - - public float BorderWidth - { - get - { - return _node.BorderWidth; - } - - set - { - _node.BorderWidth = value; - } - } - - public float Height - { - get - { - return _node.Height.Value; - } - - set - { - _node.Height = value; - } - } - - public float Width - { - get - { - return _node.Width.Value; - } - - set - { - _node.Width = value; - } - } - - public float MinWidth - { - get - { - return _node.MinWidth.Value; - } - - set - { - _node.MinWidth = value; - } - } - - public float MinHeight - { - get - { - return _node.MinHeight.Value; - } - - set - { - _node.MinHeight = value; - } - } - - public float MaxWidth - { - get - { - return _node.MaxWidth.Value; - } - - set - { - _node.MaxWidth = value; - } - } - - public float MaxHeight - { - get - { - return _node.MaxHeight.Value; - } - - set - { - _node.MaxHeight = value; - } - } - - public float AspectRatio - { - get - { - return _node.AspectRatio; - } - - set - { - _node.AspectRatio = value; - } - } - - public void ApplyLayout() - { - NativeView view = null; - if (_viewRef.TryGetTarget(out view)) - { - float width = 0; - float height = 0; - GetWidthHeightOfNativeView(view, out width, out height); - if (view is NativeScrollView) - { - if (FlexDirection == YogaFlexDirection.Column || FlexDirection == YogaFlexDirection.ColumnReverse) - { - height = float.NaN; - } - else - { - width = float.NaN; - } - } - CalculateLayoutWithSize(this, width, height); - ApplyLayoutToViewHierarchy(view); - } - } - public SizeF IntrinsicSize - { - get - { - return CalculateLayoutWithSize(this, float.NaN, float.NaN); - } - } - - SizeF CalculateLayoutWithSize(YogaLayout layout, float width, float height) - { - //TODO : Check thread access - if (!layout.IsEnabled) - { - System.Diagnostics.Debug.WriteLine("Doesn't use Yoga"); - } - NativeView view = null; - if (_viewRef.TryGetTarget(out view)) - { - AttachNodesFromViewHierachy(view); - } - - var node = layout._node; - - node.CalculateLayout(width, height); - - return new SizeF { Width = node.LayoutWidth, Height = node.LayoutHeight }; - } - - static YogaSize MeasureView(YogaNode node, float width, YogaMeasureMode widthMode, float height, YogaMeasureMode heightMode) - { - var constrainedWidth = (widthMode == YogaMeasureMode.Undefined) ? float.MaxValue : width; - var constrainedHeight = (heightMode == YogaMeasureMode.Undefined) ? float.MaxValue : height; - - NativeView view = null; - if (YogaKit.Bridges.ContainsKey(node)) - view = YogaKit.Bridges[node] as NativeView; - - float sizeThatFitsWidth = 0; - float sizeThatFitsHeight = 0; - - MeasureNativeView(view, constrainedWidth, constrainedHeight, out sizeThatFitsWidth, out sizeThatFitsHeight); - - var finalWidth = SanitizeMeasurement(constrainedWidth, sizeThatFitsWidth, widthMode); - var finalHeight = SanitizeMeasurement(constrainedHeight, sizeThatFitsHeight, heightMode); - - return MeasureOutput.Make(finalWidth, finalHeight); - } - - static float SanitizeMeasurement(float constrainedSize, float measuredSize, YogaMeasureMode measureMode) - { - float result; - if (measureMode == YogaMeasureMode.Exactly) - { - result = constrainedSize; - } - else if (measureMode == YogaMeasureMode.AtMost) - { - result = Math.Min(constrainedSize, measuredSize); - } - else { - result = measuredSize; - } - - return result; - } - - static bool NodeHasExactSameChildren(YogaNode node, NativeView[] subviews) - { - if (node.Count != subviews.Length) - return false; - for (int i = 0; i < subviews.Length; i++) - { - YogaLayout yoga = subviews[i].Yoga() as YogaLayout; - if (node[i] != yoga._node) - { - return false; - } - } - return true; - } - - static void AttachNodesFromViewHierachy(NativeView view) - { - YogaLayout yoga = view.Yoga() as YogaLayout; - var node = yoga._node; - // Only leaf nodes should have a measure function - if (yoga.IsLeaf) - { - RemoveAllChildren(node); - node.SetMeasureFunction(MeasureView); - } - else - { - node.SetMeasureFunction(null); - // Create a list of all the subviews that we are going to use for layout. - var subviewsToInclude = new List(); - foreach (var subview in view.Subviews) - { - if (subview.Yoga().IsEnabled && subview.Yoga().IsIncludeInLayout) - { - subviewsToInclude.Add(subview); - } - } - - if (!NodeHasExactSameChildren(node, subviewsToInclude.ToArray())) - { - RemoveAllChildren(node); - for (int i = 0; i < subviewsToInclude.Count; i++) - { - YogaLayout yogaSubview = subviewsToInclude[i].Yoga() as YogaLayout; - node.Insert(i, yogaSubview._node); - } - } - - foreach (var subView in subviewsToInclude) - { - AttachNodesFromViewHierachy(subView); - } - } - } - - static void RemoveAllChildren(YogaNode node) - { - if (node == null) - return; - - if (node.Count > 0) - { - node.Clear(); - } - } - - static double RoundPointValue(float value) - { - float scale = NativePixelScale; - - return Math.Round(value * scale) / scale; - } - - static void ApplyLayoutToViewHierarchy(NativeView view) - { - //TODO : "Framesetting should only be done on the main thread." - YogaLayout yoga = view.Yoga() as YogaLayout; - - if (!yoga.IsIncludeInLayout) - return; - - var node = yoga._node; - - ApplyLayoutToNativeView(view, node); - - if (!yoga.IsLeaf) - { - for (int i = 0; i < view.Subviews.Length; i++) - { - ApplyLayoutToViewHierarchy(view.Subviews[i]); - } - } - } - - - } -} - diff --git a/csharp/Mac/.gitignore b/csharp/Mac/.gitignore deleted file mode 100644 index 1cf1debb..00000000 --- a/csharp/Mac/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -libyoga.dylib -*.userprefs diff --git a/csharp/Mac/ApiDefinition.cs b/csharp/Mac/ApiDefinition.cs deleted file mode 100644 index c94ffe92..00000000 --- a/csharp/Mac/ApiDefinition.cs +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; - -using AppKit; -using Foundation; -using ObjCRuntime; -using CoreGraphics; - -namespace Facebook.Yoga.Mac -{ - // Xamarin.Mac binding projects allow you to include native libraries inside C# DLLs for easy consumption - // later. However, the binding project build files currently assume you are binding some objective-c API - // and that you need an ApiDefinition.cs for that. yoga is all C APIs, so just include this "blank" file so - // the dylib gets packaged -} diff --git a/csharp/Mac/CustomBuildAction.targets b/csharp/Mac/CustomBuildAction.targets deleted file mode 100644 index d8df4e70..00000000 --- a/csharp/Mac/CustomBuildAction.targets +++ /dev/null @@ -1,10 +0,0 @@ - - - - NativeLibrary;$(CompileDependsOn) - - - - - - \ No newline at end of file diff --git a/csharp/Mac/Facebook.Yoga.Mac.Sample/AppDelegate.cs b/csharp/Mac/Facebook.Yoga.Mac.Sample/AppDelegate.cs deleted file mode 100644 index fa4bbf95..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Sample/AppDelegate.cs +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright 2014-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE-examples file in the root directory of this source tree. - */ - -using AppKit; -using Foundation; - -namespace Facebook.Yoga.Mac.Sample -{ - [Register("AppDelegate")] - public class AppDelegate : NSApplicationDelegate - { - public AppDelegate() - { - } - - public override void DidFinishLaunching(NSNotification notification) - { - } - - public override void WillTerminate(NSNotification notification) - { - // Insert code here to tear down your application - } - } -} diff --git a/csharp/Mac/Facebook.Yoga.Mac.Sample/Entitlements.plist b/csharp/Mac/Facebook.Yoga.Mac.Sample/Entitlements.plist deleted file mode 100644 index 9ae59937..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Sample/Entitlements.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/csharp/Mac/Facebook.Yoga.Mac.Sample/Facebook.Yoga.Mac.Sample.csproj b/csharp/Mac/Facebook.Yoga.Mac.Sample/Facebook.Yoga.Mac.Sample.csproj deleted file mode 100644 index 4337f095..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Sample/Facebook.Yoga.Mac.Sample.csproj +++ /dev/null @@ -1,84 +0,0 @@ - - - - Debug - AnyCPU - {64E0AB97-A904-4607-A535-EEA5A966C09E} - {A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Exe - Facebook.Yoga.Mac.Sample - Facebook.Yoga.Mac.Sample - v2.0 - Xamarin.Mac - Resources - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - false - Mac Developer - false - false - false - true - true - true - HttpClientHandler - Default - None - x86_64 - - - pdbonly - true - bin\Release - - prompt - 4 - false - true - false - true - true - true - SdkOnly - HttpClientHandler - Default - - - - - - - - - - - - - - - - - - - - ViewController.cs - - - - - - - - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71} - Facebook.Yoga.Mac - - - - diff --git a/csharp/Mac/Facebook.Yoga.Mac.Sample/Info.plist b/csharp/Mac/Facebook.Yoga.Mac.Sample/Info.plist deleted file mode 100644 index 3c1e9003..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Sample/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - CFBundleName - Facebook.Yoga.Mac.Sample - CFBundleIdentifier - com.facebook.facebook-yoga-mac-sample - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSMinimumSystemVersion - 10.11 - CFBundleDevelopmentRegion - en - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleSignature - ???? - NSHumanReadableCopyright - ${AuthorCopyright} - NSPrincipalClass - NSApplication - NSMainStoryboardFile - Main - - diff --git a/csharp/Mac/Facebook.Yoga.Mac.Sample/Main.cs b/csharp/Mac/Facebook.Yoga.Mac.Sample/Main.cs deleted file mode 100644 index 17e74ec2..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Sample/Main.cs +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright 2014-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE-examples file in the root directory of this source tree. - */ - -using AppKit; - -namespace Facebook.Yoga.Mac.Sample -{ - static class MainClass - { - static void Main(string[] args) - { - NSApplication.Init(); - NSApplication.Main(args); - } - } -} diff --git a/csharp/Mac/Facebook.Yoga.Mac.Sample/Main.storyboard b/csharp/Mac/Facebook.Yoga.Mac.Sample/Main.storyboard deleted file mode 100644 index 6b7fa93d..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Sample/Main.storyboard +++ /dev/null @@ -1,681 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Default - - - - - - - Left to Right - - - - - - - Right to Left - - - - - - - - - - - Default - - - - - - - Left to Right - - - - - - - Right to Left - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/csharp/Mac/Facebook.Yoga.Mac.Sample/ViewController.cs b/csharp/Mac/Facebook.Yoga.Mac.Sample/ViewController.cs deleted file mode 100644 index 4fe8d75b..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Sample/ViewController.cs +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Copyright 2014-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE-examples file in the root directory of this source tree. - */ - -//#define DEBUG_LAYOUT -using System; - -using AppKit; -using Foundation; -using CoreGraphics; - -namespace Facebook.Yoga.Mac.Sample -{ - public static class NSViewYogaExtensions - { - public static void ApplyYogaLayout (this NSView view, YogaNode n, bool root = true) - { -#if DEBUG_LAYOUT - Console.WriteLine ($"ApplyYogaLayout {view.ToolTip}, {n.LayoutX}, {n.LayoutY}, {n.LayoutWidth}, {n.LayoutHeight}"); -#endif - - // A bit of gross special casing - // This really should mostly go away if/when the UIView+Yoga.m magic gets ported to AppKit - if (root) - view.Frame = new CGRect (n.LayoutX, n.LayoutY, n.LayoutWidth, n.LayoutHeight); -#if DEBUG_LAYOUT - Console.WriteLine ($"Setting {view.ToolTip} frame to {view.Frame}"); -#endif - - // This assumes your YogaNode and NSView children were inserted in same order - for (int i = 0; i < n.Count; ++i) { - YogaNode childNode = n[i]; - // Cocoa coord space is from bottom left not top left - view.Subviews[i].Frame = new CGRect (childNode.LayoutX, n.LayoutHeight - childNode.LayoutY - childNode.LayoutHeight, childNode.LayoutWidth, childNode.LayoutHeight); -#if DEBUG_LAYOUT - Console.WriteLine ($"Setting {view.Subviews[i].ToolTip} frame to {view.Subviews[i].Frame}"); -#endif - if (childNode.Count > 0){ -#if DEBUG_LAYOUT - Console.WriteLine ($"Calling ApplyYogaLayout recursively on {view.Subviews[i].ToolTip}"); -#endif - ApplyYogaLayout (view.Subviews[i], childNode, false); - } - } - } - } - - public partial class ViewController : NSViewController - { - public ViewController(IntPtr handle) : base(handle) - { - } - - public override void ViewDidLoad() - { - base.ViewDidLoad (); - - NSImage image = NSImage.ImageNamed (NSImageName.TrashFull); - - NSView root = CreateViewHierarchy (image); - var rootNode = CalculateLayout (View.Frame, image.Size); - - root.ApplyYogaLayout (rootNode); - - View.AddSubview (root); - } - - static NSView CreateViewHierarchy (NSImage image) - { - var root = new NSView () { - WantsLayer = true, - ToolTip = "Root" - }; - root.Layer.BackgroundColor = NSColor.Red.CGColor; - - NSView child1 = new NSView () { - WantsLayer = true, - ToolTip = "Child 1" - }; - child1.Layer.BackgroundColor = NSColor.Blue.CGColor; - - NSView child2 = new NSView () { - WantsLayer = true, - ToolTip = "Child 2" - }; - child2.Layer.BackgroundColor = NSColor.Green.CGColor; - - NSView child3 = new NSView () { - WantsLayer = true, - ToolTip = "Child 3" - }; - child3.Layer.BackgroundColor = NSColor.Yellow.CGColor; - - root.AddSubview (child1); - root.AddSubview (child2); - child2.AddSubview (child3); - - return root; - } - - static YogaNode CalculateLayout (CGRect rootFrame, CGSize imageSize) - { - var rootNode = new YogaNode () { - Width = (float)rootFrame.Width, - Height = (float)rootFrame.Height, - AlignItems = YogaAlign.Center, - JustifyContent = YogaJustify.Center - }; - - var child1Node = new YogaNode () { - Width = 100, - Height = 100 - }; - - var child2Node = new YogaNode () { - Width = 200, - Height = 100 - }; - - var child3Node = new YogaNode () { - Width = 100, - Height = 100 - }; - - rootNode.Insert (0, child1Node); - rootNode.Insert (1, child2Node); - child2Node.Insert (0, child3Node); - rootNode.CalculateLayout (); - - return rootNode; - } - } -} diff --git a/csharp/Mac/Facebook.Yoga.Mac.Sample/ViewController.designer.cs b/csharp/Mac/Facebook.Yoga.Mac.Sample/ViewController.designer.cs deleted file mode 100644 index 1f97731d..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Sample/ViewController.designer.cs +++ /dev/null @@ -1,18 +0,0 @@ -// WARNING -// -// This file has been generated automatically by Xamarin Studio to store outlets and -// actions made in the UI designer. If it is removed, they will be lost. -// Manual changes to this file may not be handled correctly. -// -using Foundation; - -namespace Facebook.Yoga.Mac.Sample -{ - [Register("ViewController")] - partial class ViewController - { - void ReleaseDesignerOutlets() - { - } - } -} diff --git a/csharp/Mac/Facebook.Yoga.Mac.Tests/Entitlements.plist b/csharp/Mac/Facebook.Yoga.Mac.Tests/Entitlements.plist deleted file mode 100644 index 9ae59937..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Tests/Entitlements.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/csharp/Mac/Facebook.Yoga.Mac.Tests/Facebook.Yoga.Mac.Tests.csproj b/csharp/Mac/Facebook.Yoga.Mac.Tests/Facebook.Yoga.Mac.Tests.csproj deleted file mode 100644 index 8594c976..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Tests/Facebook.Yoga.Mac.Tests.csproj +++ /dev/null @@ -1,78 +0,0 @@ - - - - Debug - AnyCPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77} - {A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Exe - Facebook.Yoga.Mac.Tests - Facebook.Yoga.Mac.Tests - v4.5 - Resources - true - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - false - Mac Developer - false - false - false - true - true - true - HttpClientHandler - Default - None - x86_64 - - - pdbonly - true - bin\Release - - - prompt - 4 - false - true - false - true - true - true - None - HttpClientHandler - Default - - - - - - - ..\..\packages\MonoDevelop.Addins.GuiUnit.0.1.1\lib\net45\GuiUnit.exe - - - - - - - - - - - - - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71} - Facebook.Yoga.Mac - - - - - \ No newline at end of file diff --git a/csharp/Mac/Facebook.Yoga.Mac.Tests/Info.plist b/csharp/Mac/Facebook.Yoga.Mac.Tests/Info.plist deleted file mode 100644 index 2671eb56..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Tests/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - CFBundleName - Facebook.Yoga.Mac.Tests - CFBundleIdentifier - com.facebook.facebook-yoga-mac-tests - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSMinimumSystemVersion - 10.11 - CFBundleDevelopmentRegion - en - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleSignature - ???? - NSHumanReadableCopyright - ${AuthorCopyright} - NSPrincipalClass - NSApplication - NSMainStoryboardFile - Main - - diff --git a/csharp/Mac/Facebook.Yoga.Mac.Tests/Main.cs b/csharp/Mac/Facebook.Yoga.Mac.Tests/Main.cs deleted file mode 100644 index 4443ba13..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Tests/Main.cs +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Collections.Generic; -using AppKit; -using Foundation; -using GuiUnit; -using NUnit.Framework; - -namespace Facebook.Yoga.Mac.Tests -{ - static class MainClass - { - static void Main(string[] args) - { - NSApplication.Init(); - RunTests(); - } - - static void RunTests() - { - TestRunner.MainLoop = new NSRunLoopIntegration(); - List args = new List() { typeof(MainClass).Assembly.Location, "-labels", "-noheader", "-result=TEST-Mac.xml" }; - - - TestRunner.Main(args.ToArray()); - - } - - [System.Runtime.InteropServices.DllImport("/usr/lib/libSystem.dylib")] - static extern void _exit(int exit_code); - - class NSRunLoopIntegration : NSObject, IMainLoopIntegration - { - public void InitializeToolkit() - { - } - - public void RunMainLoop() - { - NSApplication.SharedApplication.Run(); - } - - public void InvokeOnMainLoop(InvokerHelper helper) - { - NSApplication.SharedApplication.InvokeOnMainThread(helper.Invoke); - } - - public void Shutdown() - { - _exit(TestRunner.ExitCode); - } - } - } -} diff --git a/csharp/Mac/Facebook.Yoga.Mac.Tests/packages.config b/csharp/Mac/Facebook.Yoga.Mac.Tests/packages.config deleted file mode 100644 index e9e997c3..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.Tests/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/csharp/Mac/Facebook.Yoga.Mac.csproj b/csharp/Mac/Facebook.Yoga.Mac.csproj deleted file mode 100644 index 3c129929..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.csproj +++ /dev/null @@ -1,51 +0,0 @@ - - - - Debug - AnyCPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71} - {810C163F-4746-4721-8B8E-88A3673A62EA};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - Facebook.Yoga.Mac - Facebook.Yoga - Resources - - - true - full - false - bin\Debug - __UNIFIED__;DEBUG;MONOMAC - prompt - 4 - false - - - true - bin\Release - __UNIFIED__;MONOMAC - prompt - 4 - false - - - - - - - - - - - - - - - Dynamic - False - - - - - - diff --git a/csharp/Mac/Facebook.Yoga.Mac.sln b/csharp/Mac/Facebook.Yoga.Mac.sln deleted file mode 100644 index b44f1bbf..00000000 --- a/csharp/Mac/Facebook.Yoga.Mac.sln +++ /dev/null @@ -1,39 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Mac", "Facebook.Yoga.Mac.csproj", "{19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Mac.Sample", "Facebook.Yoga.Mac.Sample\Facebook.Yoga.Mac.Sample.csproj", "{64E0AB97-A904-4607-A535-EEA5A966C09E}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{9352A9B6-F93B-45DD-8BCE-4696A62B3789}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Mac.Tests", "Facebook.Yoga.Mac.Tests\Facebook.Yoga.Mac.Tests.csproj", "{9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Debug|Any CPU.Build.0 = Debug|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Release|Any CPU.ActiveCfg = Release|Any CPU - {19A1C7D7-C9CC-476A-B604-DF6A3DE1BA71}.Release|Any CPU.Build.0 = Release|Any CPU - {64E0AB97-A904-4607-A535-EEA5A966C09E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {64E0AB97-A904-4607-A535-EEA5A966C09E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {64E0AB97-A904-4607-A535-EEA5A966C09E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {64E0AB97-A904-4607-A535-EEA5A966C09E}.Release|Any CPU.Build.0 = Release|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9FCB6149-DFA8-4EAA-B4DB-2E91A5D8FF77}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {91C42D32-291D-4B72-90B4-551663D60B8B} = {9352A9B6-F93B-45DD-8BCE-4696A62B3789} - {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {9352A9B6-F93B-45DD-8BCE-4696A62B3789} - EndGlobalSection -EndGlobal diff --git a/csharp/Unity/.gitignore b/csharp/Unity/.gitignore deleted file mode 100644 index a26b100a..00000000 --- a/csharp/Unity/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -Yoga -yoga.dll -yoga.unitypackage diff --git a/csharp/Unity/pack.sh b/csharp/Unity/pack.sh deleted file mode 100755 index 521e16e0..00000000 --- a/csharp/Unity/pack.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -set -e - -cd "$( dirname "$0" )" - -if [ \! -f yoga.dll ]; then - echo "Launch win.bat on Windows and copy yoga.dll to here" - exit 1 -fi - -function build { - buck build $1 - echo "$root/`buck targets --show-output $1|tail -1|awk '{print $2}'`" -} - -function copy { - mkdir -p $3 - cp $1 $3/$2 -} - -rm -rf Yoga yoga.unitypackage - -root=`buck root|tail -f` -mac=$(build '//csharp:yoganet#default,shared') -armv7=$(build '//csharp:yoganet#android-armv7,shared') -ios=$(build '//csharp:yoganet-ios') -win=yoga.dll - -Unity -quit -batchMode -createProject Yoga - -copy $win ${win##*/} Yoga/Assets/Facebook.Yoga/Plugins/x86_64 -copy $mac yoga Yoga/Assets/Facebook.Yoga/Plugins/x86_64/yoga.bundle/Contents/MacOS -armv7path=Assets/Plugins/Android/libs/armeabi-v7a -copy $armv7 ${armv7##*/} Yoga/$armv7path -iospath=Assets/Plugins/iOS -copy $ios ${ios##*/} Yoga/$iospath -libs="$armv7path/${armv7##*/} $iospath/${ios##*/}" - -scripts=Yoga/Assets/Facebook.Yoga/Scripts/Facebook.Yoga -mkdir -p $scripts -(cd ../Facebook.Yoga; tar cf - *.cs)|tar -C $scripts -xf - - -tests=Yoga/Assets/Facebook.Yoga/Editor/Facebook.Yoga.Tests -mkdir -p $tests -(cd ../tests/Facebook.Yoga; tar cf - *.cs)|tar -C $tests -xf - - -function onerror { - local xml=Yoga/EditorTestResults.xml - if [ -f $xml ]; then cat $xml|grep 'success="False"'; fi -} -trap onerror EXIT -Unity -quit -batchMode -projectPath `pwd`/Yoga -runEditorTests - -pkg="`pwd`/yoga.unitypackage" -Unity -quit -batchMode -projectPath `pwd`/Yoga -exportPackage Assets/Facebook.Yoga $libs $pkg - -echo "Success: $pkg" diff --git a/csharp/Unity/win.bat b/csharp/Unity/win.bat deleted file mode 100755 index d86660d5..00000000 --- a/csharp/Unity/win.bat +++ /dev/null @@ -1,2 +0,0 @@ -"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" ..\Yoga\Yoga.vcxproj /p:configuration=Release /property:Platform=x64 -xcopy "..\Yoga\bin\x64\Release\yoga.dll" %~dp0 /s /d /y diff --git a/csharp/Windows/Build/Facebook.Yoga.NativeInterop.Universal.targets b/csharp/Windows/Build/Facebook.Yoga.NativeInterop.Universal.targets deleted file mode 100644 index 8e1a49ff..00000000 --- a/csharp/Windows/Build/Facebook.Yoga.NativeInterop.Universal.targets +++ /dev/null @@ -1,131 +0,0 @@ - - - - $(SolutionDir)..\Yoga\bin\Universal\ - $(NativeRootPath)x86\ - $(NativeRootPath)x64\ - $(NativeRootPath)ARM\ - Yoga - AMD64 - ARM - - - - - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - \ No newline at end of file diff --git a/csharp/Windows/Build/Facebook.Yoga.NativeInterop.targets b/csharp/Windows/Build/Facebook.Yoga.NativeInterop.targets deleted file mode 100644 index 9681d324..00000000 --- a/csharp/Windows/Build/Facebook.Yoga.NativeInterop.targets +++ /dev/null @@ -1,131 +0,0 @@ - - - - $(SolutionDir)..\Yoga\bin\ - $(NativeRootPath)x86\ - $(NativeRootPath)x64\ - $(NativeRootPath)ARM\ - Yoga - AMD64 - ARM - - - - - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - - $(NativeDLLMoniker).dll - PreserveNewest - False - - - $(NativeDLLMoniker).pdb - PreserveNewest - False - - - - - \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Desktop.Tests/Facebook.Yoga.Desktop.Tests.csproj b/csharp/Windows/Facebook.Yoga.Desktop.Tests/Facebook.Yoga.Desktop.Tests.csproj deleted file mode 100644 index e553e819..00000000 --- a/csharp/Windows/Facebook.Yoga.Desktop.Tests/Facebook.Yoga.Desktop.Tests.csproj +++ /dev/null @@ -1,103 +0,0 @@ - - - - - Debug - AnyCPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3} - Library - Properties - Facebook.Yoga - Facebook.Yoga.Desktop.Tests - v4.5.1 - 512 - - - - true - bin\x64\Debug\ - DEBUG;TRACE - full - x64 - prompt - MinimumRecommendedRules.ruleset - true - - - bin\x64\Release\ - TRACE - true - pdbonly - x64 - prompt - MinimumRecommendedRules.ruleset - - - true - bin\x86\Debug\ - DEBUG;TRACE - full - x86 - prompt - MinimumRecommendedRules.ruleset - - - bin\x86\Release\ - TRACE - true - pdbonly - x86 - prompt - MinimumRecommendedRules.ruleset - - - true - bin\Debug\ - DEBUG;TRACE - true - full - AnyCPU - prompt - MinimumRecommendedRules.ruleset - - - bin\Release\ - TRACE - true - pdbonly - AnyCPU - prompt - MinimumRecommendedRules.ruleset - - - - ..\packages\NUnit.2.6.4\lib\nunit.framework.dll - True - - - - - - - - - - - - - {3aace384-fdec-4d91-a3b2-eeb21b46c9ad} - Facebook.Yoga - - - - - - - - - - This project references a native interop target that is missing. The missing build target is {0}. - - - - \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Desktop.Tests/Properties/AssemblyInfo.cs b/csharp/Windows/Facebook.Yoga.Desktop.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index eae2123c..00000000 --- a/csharp/Windows/Facebook.Yoga.Desktop.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System.Reflection; -using System.Resources; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Facebook.Yoga.Desktop.Tests")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Facebook, Inc.")] -[assembly: AssemblyProduct("Facebook.Yoga")] -[assembly: AssemblyCopyright("Copyright (c) 2014-present, Facebook, Inc.")] - -[assembly: ComVisible(false)] - -[assembly: Guid("ac23f444-5545-4196-8b9f-5c1f6b3e7fb3")] - -[assembly: NeutralResourcesLanguage("en")] - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] - diff --git a/csharp/Windows/Facebook.Yoga.Desktop.Tests/packages.config b/csharp/Windows/Facebook.Yoga.Desktop.Tests/packages.config deleted file mode 100644 index b25e5bda..00000000 --- a/csharp/Windows/Facebook.Yoga.Desktop.Tests/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Desktop.sln b/csharp/Windows/Facebook.Yoga.Desktop.sln deleted file mode 100644 index 5738d062..00000000 --- a/csharp/Windows/Facebook.Yoga.Desktop.sln +++ /dev/null @@ -1,102 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{5289E508-8386-45A1-A12B-258A5899CD45}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Native", "Native", "{51A8E803-C084-431F-9130-F277481C2BB2}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NETStandard", "NETStandard", "{DCF7899B-A487-49C0-BCDE-DC088B6750C2}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yoga", "..\Yoga\Yoga.vcxproj", "{0446C86B-F47B-4C46-B673-C7AE0CFF35D5}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{39A2FFDA-C093-4FA6-8143-45B5019E7DAC}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga", "Facebook.Yoga\Facebook.Yoga.csproj", "{3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}" - ProjectSection(ProjectDependencies) = postProject - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} - EndProjectSection -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Desktop.Tests", "Facebook.Yoga.Desktop.Tests\Facebook.Yoga.Desktop.Tests.csproj", "{AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}" -EndProject -Global - GlobalSection(SharedMSBuildProjectFiles) = preSolution - ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{3aace384-fdec-4d91-a3b2-eeb21b46c9ad}*SharedItemsImports = 4 - ..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.projitems*{4edc82d9-a201-4831-8fe0-98f468f8e4ae}*SharedItemsImports = 13 - ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{91c42d32-291d-4b72-90b4-551663d60b8b}*SharedItemsImports = 13 - ..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.projitems*{ac23f444-5545-4196-8b9f-5c1f6b3e7fb3}*SharedItemsImports = 4 - EndGlobalSection - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|ARM = Debug|ARM - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|ARM = Release|ARM - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|Any CPU.ActiveCfg = Debug|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.ActiveCfg = Debug|ARM - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.Build.0 = Debug|ARM - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.ActiveCfg = Debug|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.Build.0 = Debug|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.ActiveCfg = Debug|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.Build.0 = Debug|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|Any CPU.ActiveCfg = Release|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.ActiveCfg = Release|ARM - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.Build.0 = Release|ARM - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.ActiveCfg = Release|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.Build.0 = Release|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.ActiveCfg = Release|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.Build.0 = Release|Win32 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.ActiveCfg = Debug|ARM - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.Build.0 = Debug|ARM - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.ActiveCfg = Debug|x64 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.Build.0 = Debug|x64 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.ActiveCfg = Debug|x86 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.Build.0 = Debug|x86 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.Build.0 = Release|Any CPU - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.ActiveCfg = Release|ARM - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.Build.0 = Release|ARM - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.ActiveCfg = Release|x64 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.Build.0 = Release|x64 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.ActiveCfg = Release|x86 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.Build.0 = Release|x86 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|ARM.ActiveCfg = Debug|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|ARM.Build.0 = Debug|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x64.ActiveCfg = Debug|x64 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x64.Build.0 = Debug|x64 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x86.ActiveCfg = Debug|x86 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x86.Build.0 = Debug|x86 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|Any CPU.Build.0 = Release|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|ARM.ActiveCfg = Release|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|ARM.Build.0 = Release|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x64.ActiveCfg = Release|x64 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x64.Build.0 = Release|x64 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x86.ActiveCfg = Release|x86 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {51A8E803-C084-431F-9130-F277481C2BB2} - {91C42D32-291D-4B72-90B4-551663D60B8B} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD} = {DCF7899B-A487-49C0-BCDE-DC088B6750C2} - {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3} = {5289E508-8386-45A1-A12B-258A5899CD45} - EndGlobalSection -EndGlobal diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/LockScreenLogo.scale-200.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/LockScreenLogo.scale-200.png deleted file mode 100644 index 428cabb6..00000000 Binary files a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/LockScreenLogo.scale-200.png and /dev/null differ diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/SplashScreen.scale-200.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/SplashScreen.scale-200.png deleted file mode 100644 index d1937479..00000000 Binary files a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/SplashScreen.scale-200.png and /dev/null differ diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square150x150Logo.scale-200.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square150x150Logo.scale-200.png deleted file mode 100644 index eb507ab9..00000000 Binary files a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square150x150Logo.scale-200.png and /dev/null differ diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.scale-200.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.scale-200.png deleted file mode 100644 index 2121ca58..00000000 Binary files a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.scale-200.png and /dev/null differ diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png deleted file mode 100644 index 69053b72..00000000 Binary files a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png and /dev/null differ diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/StoreLogo.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/StoreLogo.png deleted file mode 100644 index 8f628550..00000000 Binary files a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/StoreLogo.png and /dev/null differ diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Wide310x150Logo.scale-200.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Wide310x150Logo.scale-200.png deleted file mode 100644 index 6429d986..00000000 Binary files a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Wide310x150Logo.scale-200.png and /dev/null differ diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Facebook.Yoga.Universal.Tests.csproj b/csharp/Windows/Facebook.Yoga.Universal.Tests/Facebook.Yoga.Universal.Tests.csproj deleted file mode 100644 index 921cfffb..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal.Tests/Facebook.Yoga.Universal.Tests.csproj +++ /dev/null @@ -1,146 +0,0 @@ - - - - - Debug - x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73} - AppContainerExe - Properties - Facebook.Yoga.Universal.Tests - Facebook.Yoga.Universal.Tests - en-US - UAP - 10.0.10586.0 - 10.0.10240.0 - 14 - 512 - {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Facebook.Yoga.Universal.Tests_TemporaryKey.pfx - 14.0 - - - true - bin\x86\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - x86 - false - prompt - true - - - bin\x86\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - x86 - false - prompt - true - true - - - true - bin\ARM\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - ARM - false - prompt - true - - - bin\ARM\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - ARM - false - prompt - true - true - - - true - bin\x64\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - x64 - false - prompt - true - - - bin\x64\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - x64 - false - prompt - true - true - - - - - - - - - - - UnitTestApp.xaml - - - - - - MSBuild:Compile - Designer - - - - - Designer - - - - - - - - - - - - - - - - {3aace384-fdec-4d91-a3b2-eeb21b46c9ad} - Facebook.Yoga - - - - - - - 14.0 - - - - - - This project references a native interop target that is missing. The missing build target is {0}. - - - - \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Package.appxmanifest b/csharp/Windows/Facebook.Yoga.Universal.Tests/Package.appxmanifest deleted file mode 100644 index d4ec072f..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal.Tests/Package.appxmanifest +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - Facebook.Yoga.Universal.Tests - anforste - Assets\StoreLogo.png - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/AssemblyInfo.cs b/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 2f35c3d3..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Facebook.Yoga.Universal.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("BlueJeans")] -[assembly: AssemblyProduct("Facebook.Yoga.Universal.Tests")] -[assembly: AssemblyCopyright("Copyright © BlueJeans 2016")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: AssemblyMetadata("TargetPlatform","UAP")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: ComVisible(false)] \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/UnitTestApp.rd.xml b/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/UnitTestApp.rd.xml deleted file mode 100644 index 9263e4e5..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/UnitTestApp.rd.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml b/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml deleted file mode 100644 index d8e15f82..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml.cs b/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml.cs deleted file mode 100644 index b9564ac8..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml.cs +++ /dev/null @@ -1,102 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; -using Windows.ApplicationModel; -using Windows.ApplicationModel.Activation; -using Windows.Foundation; -using Windows.Foundation.Collections; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Controls.Primitives; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Input; -using Windows.UI.Xaml.Media; -using Windows.UI.Xaml.Navigation; - -namespace Facebook.Yoga.Universal.Tests -{ - /// - /// Provides application-specific behavior to supplement the default Application class. - /// - sealed partial class App : Application - { - /// - /// Initializes the singleton application object. This is the first line of authored code - /// executed, and as such is the logical equivalent of main() or WinMain(). - /// - public App() - { - this.InitializeComponent(); - this.Suspending += OnSuspending; - } - - /// - /// Invoked when the application is launched normally by the end user. Other entry points - /// will be used such as when the application is launched to open a specific file. - /// - /// Details about the launch request and process. - protected override void OnLaunched(LaunchActivatedEventArgs e) - { - -#if DEBUG - if (System.Diagnostics.Debugger.IsAttached) - { - this.DebugSettings.EnableFrameRateCounter = true; - } -#endif - - Frame rootFrame = Window.Current.Content as Frame; - - // Do not repeat app initialization when the Window already has content, - // just ensure that the window is active - if (rootFrame == null) - { - // Create a Frame to act as the navigation context and navigate to the first page - rootFrame = new Frame(); - - rootFrame.NavigationFailed += OnNavigationFailed; - - if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) - { - //TODO: Load state from previously suspended application - } - - // Place the frame in the current Window - Window.Current.Content = rootFrame; - } - - Microsoft.VisualStudio.TestPlatform.TestExecutor.UnitTestClient.CreateDefaultUI(); - - // Ensure the current window is active - Window.Current.Activate(); - - Microsoft.VisualStudio.TestPlatform.TestExecutor.UnitTestClient.Run(e.Arguments); - } - - /// - /// Invoked when Navigation to a certain page fails - /// - /// The Frame which failed navigation - /// Details about the navigation failure - void OnNavigationFailed(object sender, NavigationFailedEventArgs e) - { - throw new Exception("Failed to load Page " + e.SourcePageType.FullName); - } - - /// - /// Invoked when application execution is being suspended. Application state is saved - /// without knowing whether the application will be terminated or resumed with the contents - /// of memory still intact. - /// - /// The source of the suspend request. - /// Details about the suspend request. - private void OnSuspending(object sender, SuspendingEventArgs e) - { - var deferral = e.SuspendingOperation.GetDeferral(); - //TODO: Save application state and stop any background activity - deferral.Complete(); - } - } -} diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/YogaNodeTest.cs b/csharp/Windows/Facebook.Yoga.Universal.Tests/YogaNodeTest.cs deleted file mode 100644 index 4af53686..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal.Tests/YogaNodeTest.cs +++ /dev/null @@ -1,429 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; -using Facebook.Yoga; - -namespace Facebook.Yoga.Universal.Tests -{ - [TestClass] - public class YogaNodeTest - { - [TestMethod] - public void TestAddChildGetParent() - { - YogaNode parent = new YogaNode(); - YogaNode child = new YogaNode(); - - Assert.IsNull(child.Parent); - Assert.AreEqual(0, parent.Count); - - parent.Insert(0, child); - - Assert.AreEqual(1, parent.Count); - Assert.AreEqual(child, parent[0]); - Assert.AreEqual(parent, child.Parent); - - parent.RemoveAt(0); - - Assert.IsNull(child.Parent); - Assert.AreEqual(0, parent.Count); - } - - [TestMethod] - public void TestChildren() - { - YogaNode parent = new YogaNode(); - foreach (YogaNode node in parent) - { - Assert.Fail(node.ToString()); - } - - YogaNode child0 = new YogaNode(); - Assert.AreEqual(-1, parent.IndexOf(child0)); - parent.Insert(0, child0); - foreach (YogaNode node in parent) - { - Assert.AreEqual(0, parent.IndexOf(node)); - } - - YogaNode child1 = new YogaNode(); - parent.Insert(1, child1); - int index = 0; - foreach (YogaNode node in parent) - { - Assert.AreEqual(index++, parent.IndexOf(node)); - } - - parent.RemoveAt(0); - Assert.AreEqual(-1, parent.IndexOf(child0)); - Assert.AreEqual(0, parent.IndexOf(child1)); - - parent.Clear(); - Assert.AreEqual(0, parent.Count); - - parent.Clear(); - Assert.AreEqual(0, parent.Count); - } - - [TestMethod] - public void TestRemoveAtFromEmpty() - { - YogaNode parent = new YogaNode(); - - try - { - parent.RemoveAt(0); - } - catch (System.NullReferenceException) - { - return; - } - - Assert.Fail("Excepted exception of type 'System.NullReferenceException'."); - } - - [TestMethod] - public void TestRemoveAtOutOfRange() - { - YogaNode parent = new YogaNode(); - YogaNode child = new YogaNode(); - parent.Insert(0, child); - - try - { - parent.RemoveAt(1); - } - catch (System.ArgumentOutOfRangeException) - { - return; - } - - Assert.Fail("Excepted exception of type 'System.ArgumentOutOfRangeException'."); - } - - [TestMethod] - public void TestCannotAddChildToMultipleParents() - { - YogaNode parent1 = new YogaNode(); - YogaNode parent2 = new YogaNode(); - YogaNode child = new YogaNode(); - - parent1.Insert(0, child); - - try - { - parent2.Insert(0, child); - } - catch (System.InvalidOperationException) - { - return; - } - - Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); - } - - [TestMethod] - public void TestReset() - { - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode node = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - node.Reset(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - } - - [TestMethod] - public void TestResetParent() - { - YogaNode parent = new YogaNode(); - YogaNode child = new YogaNode(); - parent.Insert(0, child); - - try - { - parent.Reset(); - } - catch (System.InvalidOperationException) - { - return; - } - - Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); - } - - [TestMethod] - public void TestResetChild() - { - YogaNode parent = new YogaNode(); - YogaNode child = new YogaNode(); - parent.Insert(0, child); - - try - { - child.Reset(); - } - catch (System.InvalidOperationException) - { - return; - } - - Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); - } - - [TestMethod] - public void TestClear() - { - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode parent = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - YogaNode child = new YogaNode(); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - parent.Insert(0, child); - Assert.AreEqual(1, parent.Count); - Assert.AreEqual(parent, child.Parent); - parent.Clear(); - Assert.AreEqual(0, parent.Count); - Assert.IsNull(child.Parent); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - } - - [TestMethod] - public void TestMeasureFunc() - { - YogaNode node = new YogaNode(); - node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(100, 150); - }); - node.CalculateLayout(); - Assert.AreEqual(100, node.LayoutWidth); - Assert.AreEqual(150, node.LayoutHeight); - } - - [TestMethod] - public void TestMeasureFuncWithFloat() - { - YogaNode node = new YogaNode(); - node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(123.4f, 81.7f); - }); - node.CalculateLayout(); - Assert.AreEqual(124, node.LayoutWidth); - Assert.AreEqual(82, node.LayoutHeight); - } - - [TestMethod] - public void TestChildWithMeasureFunc() - { - YogaNode node = new YogaNode(); - - node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(100, 150); - }); - YogaNode child = new YogaNode(); - - try - { - node.Insert(0, child); - } - catch (System.InvalidOperationException) - { - return; - } - - Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); - } - - [TestMethod] - public void TestMeasureFuncWithChild() - { - YogaNode node = new YogaNode(); - YogaNode child = new YogaNode(); - node.Insert(0, child); - - try - { - node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(100, 150); - }); - } - catch (System.InvalidOperationException) - { - return; - } - - Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); - } - - [TestMethod] - public void TestPrint() - { - YogaNode parent = new YogaNode(); - parent.Width = 100; - parent.Height = 120; - YogaNode child0 = new YogaNode(); - child0.Width = 30; - child0.Height = 40; - YogaNode child1 = new YogaNode(); - child1.Width = 35; - child1.Height = 45; - parent.Insert(0, child0); - parent.Insert(0, child1); - parent.CalculateLayout(); - Assert.AreEqual(parent.Print(), - "
\n" + - "
\n" + - "
\n" + - "
" - ); - } - - [TestMethod] - public void TestCopyStyle() - { - YogaNode node0 = new YogaNode(); - Assert.IsTrue(YogaConstants.IsUndefined(node0.MaxHeight)); - - YogaNode node1 = new YogaNode(); - node1.MaxHeight = 100; - - node0.CopyStyle(node1); - Assert.AreEqual(100, node0.MaxHeight); - } - -#if !UNITY_EDITOR - private void ForceGC() - { - GC.Collect(GC.MaxGeneration); - GC.WaitForPendingFinalizers(); - } - - [TestMethod] - public void TestDestructor() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - TestDestructorForGC(instanceCount); - ForceGC(); - Assert.AreEqual(instanceCount, YogaNode.GetInstanceCount()); - } - - private void TestDestructorForGC(int instanceCount) - { - YogaNode node = new YogaNode(); - Assert.IsNotNull(node); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - node = null; - } - - [TestMethod] - public void TestDestructorWithChildren() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - TestDestructorWithChildrenForGC1(instanceCount); - ForceGC(); - Assert.AreEqual(instanceCount, YogaNode.GetInstanceCount()); - } - - private void TestDestructorWithChildrenForGC1(int instanceCount) - { - YogaNode node = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - - TestDestructorWithChildrenForGC2(node, instanceCount + 1); - ForceGC(); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - - TestDestructorWithChildrenForGC2(node, instanceCount + 2); - ForceGC(); - Assert.AreEqual(instanceCount + 3, YogaNode.GetInstanceCount()); - - node = null; - } - - private void TestDestructorWithChildrenForGC2(YogaNode parent, int instanceCount) - { - YogaNode child = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - - parent.Insert(0, child); - child = null; - } - - [TestMethod] - public void TestParentDestructor() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode child = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - - TestParentDestructorForGC(child, instanceCount + 1); - ForceGC(); - - Assert.IsNull(child.Parent); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - } - - private void TestParentDestructorForGC(YogaNode child, int instanceCount) - { - YogaNode parent = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - parent.Insert(0, child); - } - - [TestMethod] - public void TestClearWithChildDestructor() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode node = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - TestClearWithChildDestructorForGC(node, instanceCount + 1); - ForceGC(); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - node.Clear(); - Assert.AreEqual(0, node.Count); - ForceGC(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - } - - private void TestClearWithChildDestructorForGC(YogaNode parent, int instanceCount) - { - YogaNode child = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - parent.Insert(0, child); - } - - [TestMethod] - public void TestMeasureFuncWithDestructor() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode parent = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - TestMeasureFuncWithDestructorForGC(parent); - ForceGC(); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - parent.CalculateLayout(); - Assert.AreEqual(120, (int)parent.LayoutWidth); - Assert.AreEqual(130, (int)parent.LayoutHeight); - } - - private void TestMeasureFuncWithDestructorForGC(YogaNode parent) - { - YogaNode child = new YogaNode(); - parent.Insert(0, child); - child.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(120, 130); - }); - } -#endif - } -} diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/project.json b/csharp/Windows/Facebook.Yoga.Universal.Tests/project.json deleted file mode 100644 index 32d92747..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal.Tests/project.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "dependencies": { - "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2" - }, - "frameworks": { - "uap10.0": {} - }, - "runtimes": { - "win10-arm": {}, - "win10-arm-aot": {}, - "win10-x86": {}, - "win10-x86-aot": {}, - "win10-x64": {}, - "win10-x64-aot": {} - } -} \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal.sln b/csharp/Windows/Facebook.Yoga.Universal.sln deleted file mode 100644 index f7ce196d..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal.sln +++ /dev/null @@ -1,104 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{5289E508-8386-45A1-A12B-258A5899CD45}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Native", "Native", "{51A8E803-C084-431F-9130-F277481C2BB2}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Universal", "Universal", "{1048DB7D-9B95-48CA-B43E-D9C35AB1DCD4}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yoga.uwp", "..\Yoga\Yoga.Universal.vcxproj", "{2EACF721-73B5-46AE-9775-4A8674D05A9C}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{39A2FFDA-C093-4FA6-8143-45B5019E7DAC}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Universal", "Facebook.Yoga.Universal\Facebook.Yoga.Universal.csproj", "{D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}" - ProjectSection(ProjectDependencies) = postProject - {2EACF721-73B5-46AE-9775-4A8674D05A9C} = {2EACF721-73B5-46AE-9775-4A8674D05A9C} - EndProjectSection -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Universal.Tests", "Facebook.Yoga.Universal.Tests\Facebook.Yoga.Universal.Tests.csproj", "{0C76D2FE-6767-44FE-B03D-21B2076BAA73}" -EndProject -Global - GlobalSection(SharedMSBuildProjectFiles) = preSolution - ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{d6477ad6-9edd-4eba-8c60-cd31f77c52c6}*SharedItemsImports = 4 - ..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.projitems*{4edc82d9-a201-4831-8fe0-98f468f8e4ae}*SharedItemsImports = 13 - ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{91c42d32-291d-4b72-90b4-551663d60b8b}*SharedItemsImports = 13 - EndGlobalSection - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|ARM = Debug|ARM - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|ARM = Release|ARM - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|Any CPU.ActiveCfg = Debug|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|ARM.ActiveCfg = Debug|ARM - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|ARM.Build.0 = Debug|ARM - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|x64.ActiveCfg = Debug|x64 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|x64.Build.0 = Debug|x64 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|x86.ActiveCfg = Debug|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|x86.Build.0 = Debug|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|Any CPU.ActiveCfg = Release|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|ARM.ActiveCfg = Release|ARM - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|ARM.Build.0 = Release|ARM - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|x64.ActiveCfg = Release|x64 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|x64.Build.0 = Release|x64 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|x86.ActiveCfg = Release|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|x86.Build.0 = Release|Win32 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|ARM.ActiveCfg = Debug|ARM - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|ARM.Build.0 = Debug|ARM - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|x64.ActiveCfg = Debug|x64 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|x64.Build.0 = Debug|x64 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|x86.ActiveCfg = Debug|x86 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|x86.Build.0 = Debug|x86 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|Any CPU.Build.0 = Release|Any CPU - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|ARM.ActiveCfg = Release|ARM - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|ARM.Build.0 = Release|ARM - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|x64.ActiveCfg = Release|x64 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|x64.Build.0 = Release|x64 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|x86.ActiveCfg = Release|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|Any CPU.ActiveCfg = Debug|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.ActiveCfg = Debug|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.Build.0 = Debug|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.Deploy.0 = Debug|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.ActiveCfg = Debug|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.Build.0 = Debug|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.Deploy.0 = Debug|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.ActiveCfg = Debug|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.Build.0 = Debug|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.Deploy.0 = Debug|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|Any CPU.ActiveCfg = Release|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.ActiveCfg = Release|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.Build.0 = Release|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.Deploy.0 = Release|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.ActiveCfg = Release|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.Build.0 = Release|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.Deploy.0 = Release|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.ActiveCfg = Release|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.Build.0 = Release|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {2EACF721-73B5-46AE-9775-4A8674D05A9C} = {51A8E803-C084-431F-9130-F277481C2BB2} - {91C42D32-291D-4B72-90B4-551663D60B8B} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6} = {1048DB7D-9B95-48CA-B43E-D9C35AB1DCD4} - {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} - {0C76D2FE-6767-44FE-B03D-21B2076BAA73} = {5289E508-8386-45A1-A12B-258A5899CD45} - EndGlobalSection -EndGlobal diff --git a/csharp/Windows/Facebook.Yoga.Universal/Facebook.Yoga.Universal.csproj b/csharp/Windows/Facebook.Yoga.Universal/Facebook.Yoga.Universal.csproj deleted file mode 100644 index 759b3336..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal/Facebook.Yoga.Universal.csproj +++ /dev/null @@ -1,124 +0,0 @@ - - - - - Debug - AnyCPU - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6} - Library - Properties - Facebook.Yoga - Facebook.Yoga - en-US - UAP - 10.0.14393.0 - 10.0.10240.0 - 14 - 512 - {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - prompt - 4 - - - x86 - true - bin\x86\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - x86 - false - prompt - - - x86 - bin\x86\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - x86 - false - prompt - - - ARM - true - bin\ARM\Debug\ - TRACE;DEBUG;NETFX_CORE;WINDOWS_UWP;WINDOWS_UWP_ARM - ;2008 - full - AnyCPU - false - prompt - - - ARM - bin\ARM\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP;WINDOWS_UWP_ARM - true - ;2008 - pdbonly - AnyCPU - false - prompt - - - x64 - true - bin\x64\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - x64 - false - prompt - - - x64 - bin\x64\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - x64 - false - prompt - - - - - - - - - - - 14.0 - - - - \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal/project.json b/csharp/Windows/Facebook.Yoga.Universal/project.json deleted file mode 100644 index 4aaae4c6..00000000 --- a/csharp/Windows/Facebook.Yoga.Universal/project.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "dependencies": { - "Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0" - }, - "frameworks": { - "uap10.0": {} - }, - "runtimes": { - "win10-arm": {}, - "win10-arm-aot": {}, - "win10-x86": {}, - "win10-x86-aot": {}, - "win10-x64": {}, - "win10-x64-aot": {} - } -} \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.sln b/csharp/Windows/Facebook.Yoga.sln deleted file mode 100644 index 77eb29c9..00000000 --- a/csharp/Windows/Facebook.Yoga.sln +++ /dev/null @@ -1,156 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{5289E508-8386-45A1-A12B-258A5899CD45}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Native", "Native", "{51A8E803-C084-431F-9130-F277481C2BB2}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NETStandard", "NETStandard", "{DCF7899B-A487-49C0-BCDE-DC088B6750C2}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yoga", "..\Yoga\Yoga.vcxproj", "{0446C86B-F47B-4C46-B673-C7AE0CFF35D5}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yoga.uwp", "..\Yoga\Yoga.Universal.vcxproj", "{2EACF721-73B5-46AE-9775-4A8674D05A9C}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{39A2FFDA-C093-4FA6-8143-45B5019E7DAC}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga", "Facebook.Yoga\Facebook.Yoga.csproj", "{3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}" - ProjectSection(ProjectDependencies) = postProject - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} - {2EACF721-73B5-46AE-9775-4A8674D05A9C} = {2EACF721-73B5-46AE-9775-4A8674D05A9C} - EndProjectSection -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Desktop.Tests", "Facebook.Yoga.Desktop.Tests\Facebook.Yoga.Desktop.Tests.csproj", "{AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Universal.Tests", "Facebook.Yoga.Universal.Tests\Facebook.Yoga.Universal.Tests.csproj", "{0C76D2FE-6767-44FE-B03D-21B2076BAA73}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Universal", "Universal", "{6669329B-017F-45B3-8611-53AFD065E45C}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Universal", "Facebook.Yoga.Universal\Facebook.Yoga.Universal.csproj", "{D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}" -EndProject -Global - GlobalSection(SharedMSBuildProjectFiles) = preSolution - ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{3aace384-fdec-4d91-a3b2-eeb21b46c9ad}*SharedItemsImports = 4 - ..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.projitems*{4edc82d9-a201-4831-8fe0-98f468f8e4ae}*SharedItemsImports = 13 - ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{91c42d32-291d-4b72-90b4-551663d60b8b}*SharedItemsImports = 13 - ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{d6477ad6-9edd-4eba-8c60-cd31f77c52c6}*SharedItemsImports = 4 - EndGlobalSection - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|ARM = Debug|ARM - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|ARM = Release|ARM - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|Any CPU.ActiveCfg = Debug|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.ActiveCfg = Debug|ARM - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.Build.0 = Debug|ARM - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.ActiveCfg = Debug|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.Build.0 = Debug|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.ActiveCfg = Debug|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.Build.0 = Debug|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|Any CPU.ActiveCfg = Release|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|Any CPU.Build.0 = Release|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.ActiveCfg = Release|ARM - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.Build.0 = Release|ARM - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.ActiveCfg = Release|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.Build.0 = Release|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.ActiveCfg = Release|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.Build.0 = Release|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|Any CPU.ActiveCfg = Debug|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|ARM.ActiveCfg = Debug|ARM - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|ARM.Build.0 = Debug|ARM - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|x64.ActiveCfg = Debug|x64 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|x64.Build.0 = Debug|x64 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|x86.ActiveCfg = Debug|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Debug|x86.Build.0 = Debug|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|Any CPU.ActiveCfg = Release|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|Any CPU.Build.0 = Release|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|ARM.ActiveCfg = Release|ARM - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|ARM.Build.0 = Release|ARM - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|x64.ActiveCfg = Release|x64 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|x64.Build.0 = Release|x64 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|x86.ActiveCfg = Release|Win32 - {2EACF721-73B5-46AE-9775-4A8674D05A9C}.Release|x86.Build.0 = Release|Win32 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.ActiveCfg = Debug|ARM - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.Build.0 = Debug|ARM - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.ActiveCfg = Debug|x64 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.Build.0 = Debug|x64 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.ActiveCfg = Debug|x86 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.Build.0 = Debug|x86 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.Build.0 = Release|Any CPU - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.ActiveCfg = Release|ARM - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.Build.0 = Release|ARM - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.ActiveCfg = Release|x64 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.Build.0 = Release|x64 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.ActiveCfg = Release|x86 - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.Build.0 = Release|x86 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|ARM.ActiveCfg = Debug|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|ARM.Build.0 = Debug|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x64.ActiveCfg = Debug|x64 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x64.Build.0 = Debug|x64 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x86.ActiveCfg = Debug|x86 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x86.Build.0 = Debug|x86 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|ARM.ActiveCfg = Release|Any CPU - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x64.ActiveCfg = Release|x64 - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x86.ActiveCfg = Release|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|Any CPU.ActiveCfg = Debug|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.ActiveCfg = Debug|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.Build.0 = Debug|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.Deploy.0 = Debug|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.ActiveCfg = Debug|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.Build.0 = Debug|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.Deploy.0 = Debug|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.ActiveCfg = Debug|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.Build.0 = Debug|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.Deploy.0 = Debug|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|Any CPU.ActiveCfg = Release|x86 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.ActiveCfg = Release|ARM - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.ActiveCfg = Release|x64 - {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.ActiveCfg = Release|x86 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|ARM.ActiveCfg = Debug|ARM - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|ARM.Build.0 = Debug|ARM - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|x64.ActiveCfg = Debug|x64 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|x64.Build.0 = Debug|x64 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|x86.ActiveCfg = Debug|x86 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Debug|x86.Build.0 = Debug|x86 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|Any CPU.Build.0 = Release|Any CPU - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|ARM.ActiveCfg = Release|ARM - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|ARM.Build.0 = Release|ARM - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|x64.ActiveCfg = Release|x64 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|x64.Build.0 = Release|x64 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|x86.ActiveCfg = Release|x86 - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {51A8E803-C084-431F-9130-F277481C2BB2} - {2EACF721-73B5-46AE-9775-4A8674D05A9C} = {51A8E803-C084-431F-9130-F277481C2BB2} - {91C42D32-291D-4B72-90B4-551663D60B8B} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD} = {DCF7899B-A487-49C0-BCDE-DC088B6750C2} - {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} - {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3} = {5289E508-8386-45A1-A12B-258A5899CD45} - {0C76D2FE-6767-44FE-B03D-21B2076BAA73} = {5289E508-8386-45A1-A12B-258A5899CD45} - {D6477AD6-9EDD-4EBA-8C60-CD31F77C52C6} = {6669329B-017F-45B3-8611-53AFD065E45C} - EndGlobalSection -EndGlobal diff --git a/csharp/Windows/Facebook.Yoga/Facebook.Yoga.csproj b/csharp/Windows/Facebook.Yoga/Facebook.Yoga.csproj deleted file mode 100644 index 79ab3e5a..00000000 --- a/csharp/Windows/Facebook.Yoga/Facebook.Yoga.csproj +++ /dev/null @@ -1,115 +0,0 @@ - - - - - 14.0 - Debug - AnyCPU - {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD} - Library - Properties - Facebook.Yoga - Facebook.Yoga - en-US - 512 - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - - - v5.0 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - true - bin\ARM\Debug\ - DEBUG;TRACE - true - full - ARM - prompt - MinimumRecommendedRules.ruleset - - - bin\ARM\Release\ - TRACE - true - true - pdbonly - ARM - prompt - MinimumRecommendedRules.ruleset - - - true - bin\x64\Debug\ - DEBUG;TRACE - true - full - x64 - prompt - MinimumRecommendedRules.ruleset - - - bin\x64\Release\ - TRACE - true - true - pdbonly - x64 - prompt - MinimumRecommendedRules.ruleset - - - true - bin\x86\Debug\ - DEBUG;TRACE - true - full - x86 - prompt - MinimumRecommendedRules.ruleset - - - bin\x86\Release\ - TRACE - true - true - pdbonly - x86 - prompt - MinimumRecommendedRules.ruleset - - - - - - - - - - - - - - \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga/Properties/AssemblyInfo.cs b/csharp/Windows/Facebook.Yoga/Properties/AssemblyInfo.cs deleted file mode 100644 index dc0ef802..00000000 --- a/csharp/Windows/Facebook.Yoga/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System.Reflection; -using System.Resources; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Facebook.Yoga")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Facebook, Inc.")] -[assembly: AssemblyProduct("Facebook.Yoga")] -[assembly: AssemblyDescription("A subset of CSS's flexbox layout algorithm and box model.")] -[assembly: AssemblyCopyright("Copyright (c) 2014-present, Facebook, Inc.")] - -[assembly: ComVisible(false)] - -[assembly: Guid("75bb7605-e54b-4ede-8f5a-ff1f24464236")] - -[assembly: NeutralResourcesLanguage("en")] - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] - diff --git a/csharp/Windows/Facebook.Yoga/project.json b/csharp/Windows/Facebook.Yoga/project.json deleted file mode 100644 index 83b11a83..00000000 --- a/csharp/Windows/Facebook.Yoga/project.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "dependencies": { - "Microsoft.NETCore.Portable.Compatibility": "1.0.1", - "NETStandard.Library": "1.6.1" - }, - "frameworks": { - "netstandard1.1": {} - }, - "language": "en", - "supports": {}, - "version": "3.0.0-*" -} \ No newline at end of file diff --git a/csharp/Yoga/YGInterop.cpp b/csharp/Yoga/YGInterop.cpp deleted file mode 100644 index 3dc6e822..00000000 --- a/csharp/Yoga/YGInterop.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#include "YGInterop.h" - -static YGInteropLogger gManagedLogger; - -static int unmanagedLogger( - const YGConfigRef config, - const YGNodeRef node, - YGLogLevel level, - const char* format, - va_list args) { - int result = 0; - if (gManagedLogger) { - char message[8192]; - result = vsnprintf(message, sizeof(message), format, args); - (*gManagedLogger)(config, node, level, message); - } - return result; -} - -void YGInteropSetLogger(YGInteropLogger managedLogger) { - gManagedLogger = managedLogger; - YGConfigSetLogger(YGConfigGetDefault(), &unmanagedLogger); -} diff --git a/csharp/Yoga/YGInterop.h b/csharp/Yoga/YGInterop.h deleted file mode 100644 index 90262f4d..00000000 --- a/csharp/Yoga/YGInterop.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#pragma once - -#include - -YG_EXTERN_C_BEGIN - -typedef int (*YGInteropLogger)( - const void* unmanagedConfigPtr, - const void* unmanagedNodePtr, - YGLogLevel level, - const char* message); - -WIN_EXPORT YGConfigRef YGConfigGetDefault(); - -WIN_EXPORT void YGInteropSetLogger(YGInteropLogger managedLogger); - -YG_EXTERN_C_END diff --git a/csharp/Yoga/Yoga.Universal.vcxproj b/csharp/Yoga/Yoga.Universal.vcxproj deleted file mode 100644 index 1c956466..00000000 --- a/csharp/Yoga/Yoga.Universal.vcxproj +++ /dev/null @@ -1,299 +0,0 @@ - - - - - Debug - ARM - - - Debug - Win32 - - - Release - ARM - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - {2EACF721-73B5-46AE-9775-4A8674D05A9C} - Win32Proj - yoga.uwp - Yoga - true - Windows Store - 10.0.14393.0 - 10.0.14393.0 - 10.0 - - - - DynamicLibrary - true - v141 - Unicode - - - DynamicLibrary - true - v141 - Unicode - - - DynamicLibrary - false - v141 - true - Unicode - - - DynamicLibrary - false - v141 - true - Unicode - - - DynamicLibrary - true - v141 - Unicode - - - DynamicLibrary - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - true - bin\Universal\$(PlatformTarget)\$(Configuration)\ - obj\Universal\$(PlatformTarget)\$(Configuration)\ - yoga - - - true - bin\Universal\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - yoga - - - true - bin\Universal\$(PlatformTarget)\$(Configuration)\ - obj\Universal\$(PlatformTarget)\$(Configuration)\ - yoga - - - false - bin\Universal\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - yoga - - - false - bin\Universal\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - yoga - - - false - bin\Universal\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - yoga - - - - - - Level3 - Disabled - WIN32;_DEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - false - - - Windows - true - - - - - - - Level3 - Disabled - WINARMDLL;WIN32;_DEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - false - - - Windows - true - - - - - NotUsing - Level3 - Disabled - _DEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - false - - - Windows - true - - - - - Level3 - NotUsing - MaxSpeed - true - true - WIN32;NDEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - false - - - Windows - true - true - true - - - - - Level3 - NotUsing - MaxSpeed - true - true - WINARMDLL;WIN32;NDEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - false - - - Windows - true - true - true - - - - - Level3 - NotUsing - MaxSpeed - true - true - NDEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - false - - - Windows - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - false - - - - - false - - - false - false - - - - - false - - - - - - - - - - - - diff --git a/csharp/Yoga/Yoga.Universal.vcxproj.filters b/csharp/Yoga/Yoga.Universal.vcxproj.filters deleted file mode 100644 index 697d52c1..00000000 --- a/csharp/Yoga/Yoga.Universal.vcxproj.filters +++ /dev/null @@ -1,104 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Resource Files - - - diff --git a/csharp/Yoga/Yoga.rc b/csharp/Yoga/Yoga.rc deleted file mode 100644 index e684194e..00000000 Binary files a/csharp/Yoga/Yoga.rc and /dev/null differ diff --git a/csharp/Yoga/Yoga.vcxproj b/csharp/Yoga/Yoga.vcxproj deleted file mode 100755 index 974919de..00000000 --- a/csharp/Yoga/Yoga.vcxproj +++ /dev/null @@ -1,289 +0,0 @@ - - - - - Debug - ARM - - - Debug - Win32 - - - Release - ARM - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} - Win32Proj - yoga - Yoga - 8.1 - true - - - - StaticLibrary - true - v141 - Unicode - - - DynamicLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - DynamicLibrary - false - v141 - true - Unicode - - - StaticLibrary - true - v141 - Unicode - - - StaticLibrary - false - v141 - true - Unicode - - - - - - - - - - - - - - - - - - - - - - - - - - - true - bin\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - - - true - bin\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - - - true - bin\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - - - false - bin\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - - - false - bin\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - - - false - bin\$(PlatformTarget)\$(Configuration)\ - obj\$(PlatformTarget)\$(Configuration)\ - - - - - - Level3 - Disabled - WIN32;_DEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - - - Windows - true - - - - - - - Level3 - Disabled - WIN32;_DEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - - - Windows - true - - - - - NotUsing - Level3 - Disabled - _DEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - - - Windows - true - - - - - Level3 - NotUsing - MaxSpeed - true - true - WIN32;NDEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - - - Windows - true - true - true - - - - - Level3 - NotUsing - MaxSpeed - true - true - WIN32;NDEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - - - Windows - true - true - true - - - - - Level3 - NotUsing - MaxSpeed - true - true - NDEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) - true - $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) - - - Windows - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - false - false - - - - - false - - - false - false - - - - - false - - - - - - - - - - - - \ No newline at end of file diff --git a/csharp/Yoga/Yoga.vcxproj.filters b/csharp/Yoga/Yoga.vcxproj.filters deleted file mode 100755 index c03f853a..00000000 --- a/csharp/Yoga/Yoga.vcxproj.filters +++ /dev/null @@ -1,119 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Resource Files - - - \ No newline at end of file diff --git a/csharp/Yoga/dllmain.cpp b/csharp/Yoga/dllmain.cpp deleted file mode 100644 index 450f087c..00000000 --- a/csharp/Yoga/dllmain.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -// dllmain.cpp : Defines the entry point for the DLL application. -#include "stdafx.h" - -BOOL APIENTRY -DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { - switch (ul_reason_for_call) { - case DLL_PROCESS_ATTACH: - case DLL_THREAD_ATTACH: - case DLL_THREAD_DETACH: - case DLL_PROCESS_DETACH: - break; - } - return TRUE; -} diff --git a/csharp/Yoga/resource.h b/csharp/Yoga/resource.h deleted file mode 100644 index b93767fc..00000000 --- a/csharp/Yoga/resource.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by Yoga.rc - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 101 -#define _APS_NEXT_COMMAND_VALUE 40001 -#define _APS_NEXT_CONTROL_VALUE 1001 -#define _APS_NEXT_SYMED_VALUE 101 -#endif -#endif diff --git a/csharp/Yoga/stdafx.cpp b/csharp/Yoga/stdafx.cpp deleted file mode 100644 index 483e9b08..00000000 --- a/csharp/Yoga/stdafx.cpp +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -// stdafx.cpp : source file that includes just the standard includes -// Yoga.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/csharp/Yoga/stdafx.h b/csharp/Yoga/stdafx.h deleted file mode 100644 index 0c9b5140..00000000 --- a/csharp/Yoga/stdafx.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#pragma once - -#include "targetver.h" - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -// Windows Header Files: -#include - -// TODO: reference additional headers your program requires here diff --git a/csharp/Yoga/targetver.h b/csharp/Yoga/targetver.h deleted file mode 100644 index 551298ff..00000000 --- a/csharp/Yoga/targetver.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#pragma once - -// Including SDKDDKVer.h defines the highest available Windows platform. - -// If you wish to build your application for a previous Windows platform, -// include WinSDKVer.h and set the _WIN32_WINNT macro to the platform you wish -// to support before including SDKDDKVer.h. - -#include diff --git a/csharp/build-native.sh b/csharp/build-native.sh deleted file mode 100755 index 95e3d6b2..00000000 --- a/csharp/build-native.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -cd `dirname "$0"` -echo $ANDROID_SDK -BUCK_RELEASE=2018.02.16.01 -echo "buck $BUCK_RELEASE" -BUCK=lib/buck-$BUCK_RELEASE/bin/buck -if $BUCK --version >/dev/null 2>&1; then true; else - echo "Building Buck!" - BUCK_PATH=buck-$BUCK_RELEASE - mkdir -p lib - cd lib - rm -f $BUCK_PATH.tar.gz - curl -O -J -L https://github.com/facebook/buck/archive/v$BUCK_RELEASE.tar.gz - tar xzf $BUCK_PATH.tar.gz - cd $BUCK_PATH - ant - cd ../.. -fi - -$BUCK build \ - //csharp:yoganet-ios \ - //csharp:yoganet-macosx \ - //csharp:yoganet#android-armv7,shared \ - //csharp:yoganet#android-x86,shared diff --git a/csharp/iOS/.gitignore b/csharp/iOS/.gitignore deleted file mode 100644 index a5b96ed6..00000000 --- a/csharp/iOS/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -libyoga.a -*.userprefs diff --git a/csharp/iOS/Facebook.Yoga.iOS.Tests/Entitlements.plist b/csharp/iOS/Facebook.Yoga.iOS.Tests/Entitlements.plist deleted file mode 100644 index 9ae59937..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS.Tests/Entitlements.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/csharp/iOS/Facebook.Yoga.iOS.Tests/Facebook.Yoga.iOS.Tests.csproj b/csharp/iOS/Facebook.Yoga.iOS.Tests/Facebook.Yoga.iOS.Tests.csproj deleted file mode 100644 index 697a7be8..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS.Tests/Facebook.Yoga.iOS.Tests.csproj +++ /dev/null @@ -1,114 +0,0 @@ - - - - Debug - iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71} - {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Exe - Facebook.Yoga.iOS.Tests - Facebook.Yoga.iOS.Tests - Resources - - - true - full - false - bin\iPhoneSimulator\Debug - DEBUG; - prompt - 4 - iPhone Developer - true - true - true - true - true - 28871 - None - x86_64 - HttpClientHandler - Default - false - - - pdbonly - true - bin\iPhone\Release - - prompt - 4 - iPhone Developer - true - true - true - Entitlements.plist - SdkOnly - ARMv7, ARM64 - HttpClientHandler - Default - - - pdbonly - true - bin\iPhoneSimulator\Release - - prompt - 4 - iPhone Developer - true - true - None - x86_64 - HttpClientHandler - Default - - - true - full - false - bin\iPhone\Debug - DEBUG; - prompt - 4 - iPhone Developer - true - true - true - true - true - true - true - Entitlements.plist - SdkOnly - ARMv7, ARM64 - HttpClientHandler - Default - - - - - - - - - - - - - - - - - - - - - - {128FB32A-C4A1-4363-BF06-0A36E700B7FA} - Facebook.Yoga.iOS - - - - - \ No newline at end of file diff --git a/csharp/iOS/Facebook.Yoga.iOS.Tests/Info.plist b/csharp/iOS/Facebook.Yoga.iOS.Tests/Info.plist deleted file mode 100644 index 18ec8367..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS.Tests/Info.plist +++ /dev/null @@ -1,36 +0,0 @@ - - - - - CFBundleName - Facebook.Yoga.iOS.Tests - CFBundleIdentifier - com.xamarin.facebook-yoga-ios-tests - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - MinimumOSVersion - 9.0 - UIDeviceFamily - - 1 - 2 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UILaunchStoryboardName - LaunchScreen - NSAppTransportSecurity - - NSAllowsArbitraryLoads - - - - diff --git a/csharp/iOS/Facebook.Yoga.iOS.Tests/LaunchScreen.storyboard b/csharp/iOS/Facebook.Yoga.iOS.Tests/LaunchScreen.storyboard deleted file mode 100644 index 5d2e905a..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS.Tests/LaunchScreen.storyboard +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/csharp/iOS/Facebook.Yoga.iOS.Tests/Main.cs b/csharp/iOS/Facebook.Yoga.iOS.Tests/Main.cs deleted file mode 100644 index 601956a2..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS.Tests/Main.cs +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Linq; -using System.Collections.Generic; - -using Foundation; -using UIKit; - -namespace Facebook.Yoga.iOS.Tests -{ - public class Application - { - // This is the main entry point of the application. - static void Main(string[] args) - { - // if you want to use a different Application Delegate class from "UnitTestAppDelegate" - // you can specify it here. - UIApplication.Main(args, null, "UnitTestAppDelegate"); - } - } -} diff --git a/csharp/iOS/Facebook.Yoga.iOS.Tests/UnitTestAppDelegate.cs b/csharp/iOS/Facebook.Yoga.iOS.Tests/UnitTestAppDelegate.cs deleted file mode 100644 index f5e5bede..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS.Tests/UnitTestAppDelegate.cs +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using System.Linq; -using System.Collections.Generic; - -using Foundation; -using UIKit; -using MonoTouch.NUnit.UI; - -namespace Facebook.Yoga.iOS.Tests -{ - // The UIApplicationDelegate for the application. This class is responsible for launching the - // User Interface of the application, as well as listening (and optionally responding) to - // application events from iOS. - [Register("UnitTestAppDelegate")] - public partial class UnitTestAppDelegate : UIApplicationDelegate - { - // class-level declarations - UIWindow window; - TouchRunner runner; - - // - // This method is invoked when the application has loaded and is ready to run. In this - // method you should instantiate the window, load the UI into it and then make the window - // visible. - // - // You have 17 seconds to return from this method, or iOS will terminate your application. - // - public override bool FinishedLaunching(UIApplication app, NSDictionary options) - { - // create a new window instance based on the screen size - window = new UIWindow(UIScreen.MainScreen.Bounds); - runner = new TouchRunner(window); - - // register every tests included in the main application/assembly - runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); - - window.RootViewController = new UINavigationController(runner.GetViewController()); - - // make the window visible - window.MakeKeyAndVisible(); - - return true; - } - } -} diff --git a/csharp/iOS/Facebook.Yoga.iOS.sln b/csharp/iOS/Facebook.Yoga.iOS.sln deleted file mode 100644 index a58ae0b4..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS.sln +++ /dev/null @@ -1,81 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.iOS", "Facebook.Yoga.iOS\Facebook.Yoga.iOS.csproj", "{128FB32A-C4A1-4363-BF06-0A36E700B7FA}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{89A39C6B-6A7B-4458-872B-A0456550CAA6}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.iOS.Tests", "Facebook.Yoga.iOS.Tests\Facebook.Yoga.iOS.Tests.csproj", "{FCF0BE59-AE56-4D4F-8524-94532B2DFC71}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - Debug|iPhoneSimulator = Debug|iPhoneSimulator - Release|iPhone = Release|iPhone - Release|iPhoneSimulator = Release|iPhoneSimulator - Debug|iPhone = Debug|iPhone - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|Any CPU.Build.0 = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhone.ActiveCfg = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhone.Build.0 = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhoneSimulator.Build.0 = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhone.ActiveCfg = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhone.Build.0 = Debug|Any CPU - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|Any CPU.ActiveCfg = Release|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|Any CPU.Build.0 = Release|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|iPhone.ActiveCfg = Release|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|iPhone.Build.0 = Release|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|iPhone.ActiveCfg = Debug|iPhone - {FCF0BE59-AE56-4D4F-8524-94532B2DFC71}.Debug|iPhone.Build.0 = Debug|iPhone - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {91C42D32-291D-4B72-90B4-551663D60B8B} = {89A39C6B-6A7B-4458-872B-A0456550CAA6} - {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {89A39C6B-6A7B-4458-872B-A0456550CAA6} - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - Policies = $0 - $0.TextStylePolicy = $1 - $1.inheritsSet = VisualStudio - $1.inheritsScope = text/plain - $1.scope = text/x-csharp - $0.CSharpFormattingPolicy = $2 - $2.IndentSwitchSection = True - $2.NewLinesForBracesInProperties = True - $2.NewLinesForBracesInAccessors = True - $2.NewLinesForBracesInAnonymousMethods = True - $2.NewLinesForBracesInControlBlocks = True - $2.NewLinesForBracesInAnonymousTypes = True - $2.NewLinesForBracesInObjectCollectionArrayInitializers = True - $2.NewLinesForBracesInLambdaExpressionBody = True - $2.NewLineForElse = True - $2.NewLineForCatch = True - $2.NewLineForFinally = True - $2.NewLineForMembersInObjectInit = True - $2.NewLineForMembersInAnonymousTypes = True - $2.NewLineForClausesInQuery = True - $2.SpacingAfterMethodDeclarationName = False - $2.SpaceAfterMethodCallName = False - $2.SpaceBeforeOpenSquareBracket = False - $2.inheritsSet = Mono - $2.inheritsScope = text/x-csharp - $2.scope = text/x-csharp - EndGlobalSection -EndGlobal diff --git a/csharp/iOS/Facebook.Yoga.iOS/ApiDefinition.cs b/csharp/iOS/Facebook.Yoga.iOS/ApiDefinition.cs deleted file mode 100644 index c0fc8e0f..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS/ApiDefinition.cs +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; - -using UIKit; -using Foundation; -using ObjCRuntime; -using CoreGraphics; - -namespace Facebook.Yoga.iOS -{ - //this is needed -} diff --git a/csharp/iOS/Facebook.Yoga.iOS/CustomBuildAction.targets b/csharp/iOS/Facebook.Yoga.iOS/CustomBuildAction.targets deleted file mode 100644 index bce91a45..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS/CustomBuildAction.targets +++ /dev/null @@ -1,10 +0,0 @@ - - - - NativeLibrary;$(CompileDependsOn) - - - - - - diff --git a/csharp/iOS/Facebook.Yoga.iOS/Facebook.Yoga.iOS.csproj b/csharp/iOS/Facebook.Yoga.iOS/Facebook.Yoga.iOS.csproj deleted file mode 100644 index a2443149..00000000 --- a/csharp/iOS/Facebook.Yoga.iOS/Facebook.Yoga.iOS.csproj +++ /dev/null @@ -1,50 +0,0 @@ - - - - Debug - AnyCPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA} - {8FFB629D-F513-41CE-95D2-7ECE97B6EEEC};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - Facebook.Yoga.iOS - Facebook.Yoga - Resources - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - true - - - true - bin\Release - prompt - 4 - true - - - - - - - - - - - - - - - Static - False - - - - - - diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/AppDelegate.cs b/csharp/iOS/Facebook.YogaKit.iOS.Sample/AppDelegate.cs deleted file mode 100644 index ce187082..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/AppDelegate.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Foundation; -using UIKit; - -namespace Facebook.YogaKit.iOS.Sample -{ - [Register("AppDelegate")] - public class AppDelegate : UIApplicationDelegate - { - public override UIWindow Window - { - get; - set; - } - - public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) - { - return true; - } - - - } -} - diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Assets.xcassets/AppIcon.appiconset/Contents.json b/csharp/iOS/Facebook.YogaKit.iOS.Sample/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 4e646784..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "images": [ - { - "idiom": "iphone", - "size": "29x29", - "scale": "1x" - }, - { - "idiom": "iphone", - "size": "29x29", - "scale": "2x" - }, - { - "idiom": "iphone", - "size": "29x29", - "scale": "3x" - }, - { - "idiom": "iphone", - "size": "40x40", - "scale": "2x" - }, - { - "idiom": "iphone", - "size": "40x40", - "scale": "3x" - }, - { - "idiom": "iphone", - "size": "57x57", - "scale": "1x" - }, - { - "idiom": "iphone", - "size": "57x57", - "scale": "2x" - }, - { - "idiom": "iphone", - "size": "60x60", - "scale": "2x" - }, - { - "idiom": "iphone", - "size": "60x60", - "scale": "3x" - }, - { - "idiom": "ipad", - "size": "29x29", - "scale": "1x" - }, - { - "idiom": "ipad", - "size": "29x29", - "scale": "2x" - }, - { - "idiom": "ipad", - "size": "40x40", - "scale": "1x" - }, - { - "idiom": "ipad", - "size": "40x40", - "scale": "2x" - }, - { - "idiom": "ipad", - "size": "50x50", - "scale": "1x" - }, - { - "idiom": "ipad", - "size": "50x50", - "scale": "2x" - }, - { - "idiom": "ipad", - "size": "72x72", - "scale": "1x" - }, - { - "idiom": "ipad", - "size": "72x72", - "scale": "2x" - }, - { - "idiom": "ipad", - "size": "76x76", - "scale": "1x" - }, - { - "idiom": "ipad", - "size": "76x76", - "scale": "2x" - }, - { - "size": "24x24", - "idiom": "watch", - "scale": "2x", - "role": "notificationCenter", - "subtype": "38mm" - }, - { - "size": "27.5x27.5", - "idiom": "watch", - "scale": "2x", - "role": "notificationCenter", - "subtype": "42mm" - }, - { - "size": "29x29", - "idiom": "watch", - "role": "companionSettings", - "scale": "2x" - }, - { - "size": "29x29", - "idiom": "watch", - "role": "companionSettings", - "scale": "3x" - }, - { - "size": "40x40", - "idiom": "watch", - "scale": "2x", - "role": "appLauncher", - "subtype": "38mm" - }, - { - "size": "44x44", - "idiom": "watch", - "scale": "2x", - "role": "longLook", - "subtype": "42mm" - }, - { - "size": "86x86", - "idiom": "watch", - "scale": "2x", - "role": "quickLook", - "subtype": "38mm" - }, - { - "size": "98x98", - "idiom": "watch", - "scale": "2x", - "role": "quickLook", - "subtype": "42mm" - } - ], - "info": { - "version": 1, - "author": "xcode" - } -} \ No newline at end of file diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Assets.xcassets/Contents.json b/csharp/iOS/Facebook.YogaKit.iOS.Sample/Assets.xcassets/Contents.json deleted file mode 100644 index 4caf392f..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Entitlements.plist b/csharp/iOS/Facebook.YogaKit.iOS.Sample/Entitlements.plist deleted file mode 100644 index 9ae59937..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Entitlements.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Facebook.YogaKit.iOS.Sample.csproj b/csharp/iOS/Facebook.YogaKit.iOS.Sample/Facebook.YogaKit.iOS.Sample.csproj deleted file mode 100644 index d94eb930..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Facebook.YogaKit.iOS.Sample.csproj +++ /dev/null @@ -1,128 +0,0 @@ - - - - Debug - iPhoneSimulator - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B} - {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Exe - Facebook.YogaKit.iOS.Sample - Facebook.YogaKit.iOS.Sample - Resources - - - true - full - false - bin\iPhoneSimulator\Debug - DEBUG;ENABLE_TEST_CLOUD;__IOS__ - prompt - 4 - iPhone Developer - true - true - true - true - true - 56768 - None - x86_64 - HttpClientHandler - Default - false - - - pdbonly - true - bin\iPhone\Release - - prompt - 4 - iPhone Developer - true - true - true - Entitlements.plist - SdkOnly - ARMv7, ARM64 - HttpClientHandler - Default - - - - true - bin\iPhoneSimulator\Release - - prompt - 4 - iPhone Developer - true - true - None - x86_64 - HttpClientHandler - Default - - - true - full - false - bin\iPhone\Debug - DEBUG;ENABLE_TEST_CLOUD; - prompt - 4 - iPhone Developer - true - true - true - true - true - true - true - Entitlements.plist - SdkOnly - ARMv7, ARM64 - HttpClientHandler - Default - - - - - - - - - - - - - - - - - - - - - - - - - - - - ViewController.cs - - - - - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0} - Facebook.YogaKit.iOS - - - {128FB32A-C4A1-4363-BF06-0A36E700B7FA} - Facebook.Yoga.iOS - - - - \ No newline at end of file diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Info.plist b/csharp/iOS/Facebook.YogaKit.iOS.Sample/Info.plist deleted file mode 100644 index 0c6a791e..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Info.plist +++ /dev/null @@ -1,39 +0,0 @@ - - - - - CFBundleName - Facebook.YogaKit.iOS.Sample - CFBundleIdentifier - com.xamarin.facebook-yogakit-ios-sample - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - MinimumOSVersion - 10.2 - UIDeviceFamily - - 1 - 2 - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - XSAppIconAssets - Assets.xcassets/AppIcon.appiconset - - diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/LaunchScreen.storyboard b/csharp/iOS/Facebook.YogaKit.iOS.Sample/LaunchScreen.storyboard deleted file mode 100644 index 5d2e905a..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/LaunchScreen.storyboard +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Main.cs b/csharp/iOS/Facebook.YogaKit.iOS.Sample/Main.cs deleted file mode 100644 index c0e18ddf..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Main.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UIKit; - -namespace Facebook.YogaKit.iOS.Sample -{ - public class Application - { - static void Main(string[] args) - { - UIApplication.Main(args, null, "AppDelegate"); - } - } -} diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Main.storyboard b/csharp/iOS/Facebook.YogaKit.iOS.Sample/Main.storyboard deleted file mode 100644 index a43ad72c..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/Main.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/ViewController.cs b/csharp/iOS/Facebook.YogaKit.iOS.Sample/ViewController.cs deleted file mode 100644 index d4486a54..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/ViewController.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using CoreGraphics; -using Facebook.Yoga; -using UIKit; - -namespace Facebook.YogaKit.iOS.Sample -{ - public partial class ViewController : UIViewController - { - protected ViewController(IntPtr handle) : base(handle) - { - // Note: this .ctor should not contain any initialization logic. - } - - public override void ViewDidLoad() - { - base.ViewDidLoad(); - CreateViewHierarchy(View, View.Bounds.Size.Width, View.Bounds.Size.Height); - } - - static void CreateViewHierarchy(UIView root, nfloat width, nfloat height) - { - root.BackgroundColor = UIColor.Red; - root.Yoga().IsEnabled = true; - - root.Yoga().Width = (float)width; - root.Yoga().Height = (float)height; - root.Yoga().AlignItems = YogaAlign.Center; - root.Yoga().JustifyContent = YogaJustify.Center; - - var child1 = new UIView { BackgroundColor = UIColor.Blue }; - child1.Yoga().IsEnabled = true; - child1.Yoga().Width = 100; - child1.Yoga().Height = 100; - - var child2 = new UIView - { - BackgroundColor = UIColor.Green, - Frame = new CGRect { Size = new CGSize(200, 100) } - }; - - var child3 = new UIView - { - BackgroundColor = UIColor.Yellow, - Frame = new CGRect { Size = new CGSize(100, 100) } - }; - - child2.AddSubview(child3); - root.AddSubview(child1); - root.AddSubview(child2); - root.Yoga().ApplyLayout(); - } - } -} diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Sample/ViewController.designer.cs b/csharp/iOS/Facebook.YogaKit.iOS.Sample/ViewController.designer.cs deleted file mode 100644 index 810950d0..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Sample/ViewController.designer.cs +++ /dev/null @@ -1,17 +0,0 @@ -// -// This file has been generated automatically by MonoDevelop to store outlets and -// actions made in the Xcode designer. If it is removed, they will be lost. -// Manual changes to this file may not be handled correctly. -// -using Foundation; - -namespace Facebook.YogaKit.iOS.Sample -{ - [Register("ViewController")] - partial class ViewController - { - void ReleaseDesignerOutlets() - { - } - } -} diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Tests/Entitlements.plist b/csharp/iOS/Facebook.YogaKit.iOS.Tests/Entitlements.plist deleted file mode 100644 index 9ae59937..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Tests/Entitlements.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Tests/Facebook.YogaKit.iOS.Tests.csproj b/csharp/iOS/Facebook.YogaKit.iOS.Tests/Facebook.YogaKit.iOS.Tests.csproj deleted file mode 100644 index b85e8ce5..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Tests/Facebook.YogaKit.iOS.Tests.csproj +++ /dev/null @@ -1,111 +0,0 @@ - - - - Debug - iPhoneSimulator - {238DB3A2-1182-4775-92BC-F62C885725D8} - {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Exe - Facebook.YogaKit.iOS.Tests - Facebook.YogaKit.iOS.Tests - Resources - - - true - full - false - bin\iPhoneSimulator\Debug - DEBUG; - prompt - 4 - iPhone Developer - true - true - true - 17481 - None - x86_64 - HttpClientHandler - Default - false - - - pdbonly - true - bin\iPhone\Release - - prompt - 4 - iPhone Developer - true - Entitlements.plist - SdkOnly - ARMv7, ARM64 - HttpClientHandler - Default - - - pdbonly - true - bin\iPhoneSimulator\Release - - prompt - 4 - iPhone Developer - None - x86_64 - HttpClientHandler - Default - - - true - full - false - bin\iPhone\Debug - DEBUG; - prompt - 4 - iPhone Developer - true - true - true - true - true - Entitlements.plist - SdkOnly - ARMv7, ARM64 - HttpClientHandler - Default - - - - - - - - - - - - - - - - - - - - - - - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0} - Facebook.YogaKit.iOS - - - {128FB32A-C4A1-4363-BF06-0A36E700B7FA} - Facebook.Yoga.iOS - - - - - \ No newline at end of file diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Tests/Info.plist b/csharp/iOS/Facebook.YogaKit.iOS.Tests/Info.plist deleted file mode 100644 index cf104fe2..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Tests/Info.plist +++ /dev/null @@ -1,36 +0,0 @@ - - - - - CFBundleName - Facebook.YogaKit.iOS.Tests - CFBundleIdentifier - com.xamarin.facebook-yogakit-ios-tests - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - MinimumOSVersion - 10.2 - UIDeviceFamily - - 1 - 2 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UILaunchStoryboardName - LaunchScreen - NSAppTransportSecurity - - NSAllowsArbitraryLoads - - - - diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Tests/LaunchScreen.storyboard b/csharp/iOS/Facebook.YogaKit.iOS.Tests/LaunchScreen.storyboard deleted file mode 100644 index 5d2e905a..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Tests/LaunchScreen.storyboard +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Tests/Main.cs b/csharp/iOS/Facebook.YogaKit.iOS.Tests/Main.cs deleted file mode 100644 index 0da0a414..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Tests/Main.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Linq; -using System.Collections.Generic; - -using Foundation; -using UIKit; - -namespace Facebook.YogaKit.iOS.Tests -{ - public class Application - { - // This is the main entry point of the application. - static void Main(string[] args) - { - // if you want to use a different Application Delegate class from "UnitTestAppDelegate" - // you can specify it here. - UIApplication.Main(args, null, "UnitTestAppDelegate"); - } - } -} diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Tests/UnitTestAppDelegate.cs b/csharp/iOS/Facebook.YogaKit.iOS.Tests/UnitTestAppDelegate.cs deleted file mode 100644 index 186d2380..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Tests/UnitTestAppDelegate.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using System.Linq; -using System.Collections.Generic; - -using Foundation; -using UIKit; -using MonoTouch.NUnit.UI; - -namespace Facebook.YogaKit.iOS.Tests -{ - // The UIApplicationDelegate for the application. This class is responsible for launching the - // User Interface of the application, as well as listening (and optionally responding) to - // application events from iOS. - [Register("UnitTestAppDelegate")] - public partial class UnitTestAppDelegate : UIApplicationDelegate - { - // class-level declarations - UIWindow window; - TouchRunner runner; - - // - // This method is invoked when the application has loaded and is ready to run. In this - // method you should instantiate the window, load the UI into it and then make the window - // visible. - // - // You have 17 seconds to return from this method, or iOS will terminate your application. - // - public override bool FinishedLaunching(UIApplication app, NSDictionary options) - { - // create a new window instance based on the screen size - window = new UIWindow(UIScreen.MainScreen.Bounds); - runner = new TouchRunner(window); - - // register every tests included in the main application/assembly - runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); - - window.RootViewController = new UINavigationController(runner.GetViewController()); - - // make the window visible - window.MakeKeyAndVisible(); - - return true; - } - } -} diff --git a/csharp/iOS/Facebook.YogaKit.iOS.Tests/YogaKitNativeTest.cs b/csharp/iOS/Facebook.YogaKit.iOS.Tests/YogaKitNativeTest.cs deleted file mode 100644 index f7452d92..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.Tests/YogaKitNativeTest.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System.Drawing; -using Facebook.Yoga; -using NUnit.Framework; -using System; -using UIKit; -using CoreGraphics; - -namespace Facebook.YogaKit.iOS.Tests -{ - [TestFixture] - public class YogaKitNativeTest - { - [Test] - public void ScrollViewVertical() - { - var view = new UIScrollView() { - Frame = new CGRect(0, 0, 100, 100), - }; - - view.Yoga().Overflow = YogaOverflow.Scroll; - var subview = new UIView(); - subview.Yoga().Height = 1000; - subview.Yoga().IsEnabled = true; - - view.AddSubview(subview); - view.Yoga().IsEnabled = true; - view.Yoga().ApplyLayout(); - Assert.True(view.ContentSize.Height == 1000); - } - - [Test] - public void NormalViewVertical() - { - var view = new UIView() { - Frame = new CGRect(0,0, 100, 100), - }; - - - var subview = new UIView(); - subview.Yoga().Height = 1000; - subview.Yoga().Width = 2; - subview.Yoga().IsEnabled = true; - - view.AddSubview(subview); - view.Yoga().IsEnabled = true; - view.Yoga().ApplyLayout(); - Assert.True(view.Bounds.Height == 100); - } - - } -} diff --git a/csharp/iOS/Facebook.YogaKit.iOS.sln b/csharp/iOS/Facebook.YogaKit.iOS.sln deleted file mode 100644 index 925ce4ba..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS.sln +++ /dev/null @@ -1,84 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{9FB621AA-66DD-46F1-8B10-94F508272A8D}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.YogaKit.Shared", "..\Facebook.YogaKit\Facebook.YogaKit.Shared.shproj", "{A24B3BA6-3143-4FFF-B8B8-1EDF166F5F4A}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.YogaKit.iOS", "Facebook.YogaKit.iOS\Facebook.YogaKit.iOS.csproj", "{0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.YogaKit.iOS.Sample", "Facebook.YogaKit.iOS.Sample\Facebook.YogaKit.iOS.Sample.csproj", "{6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.iOS", "Facebook.Yoga.iOS\Facebook.Yoga.iOS.csproj", "{128FB32A-C4A1-4363-BF06-0A36E700B7FA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.YogaKit.iOS.Tests", "Facebook.YogaKit.iOS.Tests\Facebook.YogaKit.iOS.Tests.csproj", "{238DB3A2-1182-4775-92BC-F62C885725D8}" -EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.YogaKit.Shared.Tests", "..\tests\Facebook.YogaKit.Shared.Tests\Facebook.YogaKit.Shared.Tests.shproj", "{63AB08F4-4F7C-42B7-A20F-D84204D0D3CE}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - Debug|iPhoneSimulator = Debug|iPhoneSimulator - Release|iPhone = Release|iPhone - Release|iPhoneSimulator = Release|iPhoneSimulator - Debug|iPhone = Debug|iPhone - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Release|Any CPU.Build.0 = Release|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Release|iPhone.ActiveCfg = Release|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Release|iPhone.Build.0 = Release|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Release|iPhoneSimulator.Build.0 = Release|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Debug|iPhone.ActiveCfg = Debug|Any CPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0}.Debug|iPhone.Build.0 = Debug|Any CPU - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Release|Any CPU.ActiveCfg = Release|iPhone - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Release|Any CPU.Build.0 = Release|iPhone - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Release|iPhone.ActiveCfg = Release|iPhone - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Release|iPhone.Build.0 = Release|iPhone - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Debug|iPhone.ActiveCfg = Debug|iPhone - {6A094B74-FA9A-4E49-A8E1-F450A04E3E5B}.Debug|iPhone.Build.0 = Debug|iPhone - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|Any CPU.Build.0 = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhone.ActiveCfg = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhone.Build.0 = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Release|iPhoneSimulator.Build.0 = Release|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhone.ActiveCfg = Debug|Any CPU - {128FB32A-C4A1-4363-BF06-0A36E700B7FA}.Debug|iPhone.Build.0 = Debug|Any CPU - {238DB3A2-1182-4775-92BC-F62C885725D8}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator - {238DB3A2-1182-4775-92BC-F62C885725D8}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator - {238DB3A2-1182-4775-92BC-F62C885725D8}.Release|Any CPU.ActiveCfg = Release|iPhone - {238DB3A2-1182-4775-92BC-F62C885725D8}.Release|Any CPU.Build.0 = Release|iPhone - {238DB3A2-1182-4775-92BC-F62C885725D8}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator - {238DB3A2-1182-4775-92BC-F62C885725D8}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator - {238DB3A2-1182-4775-92BC-F62C885725D8}.Release|iPhone.ActiveCfg = Release|iPhone - {238DB3A2-1182-4775-92BC-F62C885725D8}.Release|iPhone.Build.0 = Release|iPhone - {238DB3A2-1182-4775-92BC-F62C885725D8}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator - {238DB3A2-1182-4775-92BC-F62C885725D8}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator - {238DB3A2-1182-4775-92BC-F62C885725D8}.Debug|iPhone.ActiveCfg = Debug|iPhone - {238DB3A2-1182-4775-92BC-F62C885725D8}.Debug|iPhone.Build.0 = Debug|iPhone - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {A24B3BA6-3143-4FFF-B8B8-1EDF166F5F4A} = {9FB621AA-66DD-46F1-8B10-94F508272A8D} - {91C42D32-291D-4B72-90B4-551663D60B8B} = {9FB621AA-66DD-46F1-8B10-94F508272A8D} - {63AB08F4-4F7C-42B7-A20F-D84204D0D3CE} = {9FB621AA-66DD-46F1-8B10-94F508272A8D} - EndGlobalSection -EndGlobal diff --git a/csharp/iOS/Facebook.YogaKit.iOS/Facebook.YogaKit.iOS.csproj b/csharp/iOS/Facebook.YogaKit.iOS/Facebook.YogaKit.iOS.csproj deleted file mode 100644 index 4ecb3283..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS/Facebook.YogaKit.iOS.csproj +++ /dev/null @@ -1,69 +0,0 @@ - - - - Debug - AnyCPU - {0C38AA9D-3178-4B43-9C3B-3C97A90FB1B0} - {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - Facebook.YogaKit.iOS - Facebook.YogaKit.iOS - Resources - - - true - full - false - bin\Debug - DEBUG;__IOS__ - prompt - 4 - iPhone Developer - true - true - true - true - true - 53781 - false - SdkOnly - HttpClientHandler - Default - - - pdbonly - true - bin\Release - - prompt - 4 - iPhone Developer - true - true - SdkOnly - HttpClientHandler - Default - - - - - - - - - - - - - - - - - - {128FB32A-C4A1-4363-BF06-0A36E700B7FA} - Facebook.Yoga.iOS - - - - - \ No newline at end of file diff --git a/csharp/iOS/Facebook.YogaKit.iOS/Properties/AssemblyInfo.cs b/csharp/iOS/Facebook.YogaKit.iOS/Properties/AssemblyInfo.cs deleted file mode 100644 index 944ab239..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// Information about this assembly is defined by the following attributes. -// Change them to the values specific to your project. - -[assembly: AssemblyTitle("Facebook.YogaKit.iOS")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("rmarinho")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". -// The form "{Major}.{Minor}.*" will automatically update the build and revision, -// and "{Major}.{Minor}.{Build}.*" will update just the revision. - -[assembly: AssemblyVersion("1.0.*")] - -// The following attributes are used to specify the signing key for the assembly, -// if desired. See the Mono documentation for more information about signing. - -//[assembly: AssemblyDelaySign(false)] -//[assembly: AssemblyKeyFile("")] diff --git a/csharp/iOS/Facebook.YogaKit.iOS/YogaKit.cs b/csharp/iOS/Facebook.YogaKit.iOS/YogaKit.cs deleted file mode 100644 index e957ed91..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS/YogaKit.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using Foundation; -using UIKit; - -namespace Facebook.YogaKit -{ - public static partial class YogaKit - { - static NSString YogaNodeKey = new NSString("YogaNode"); - - public static IYogaLayout Yoga(this UIView view) - { - return YogaLayoutNative(view); - } - - static IYogaLayout YogaLayoutNative(UIView view) - { - var yoga = ObjCRuntime.Runtime.GetNSObject(objc_getAssociatedObject(view.Handle, YogaNodeKey.Handle)) as YogaLayout; - if (yoga == null) - { - yoga = new YogaLayout(view); - objc_setAssociatedObject(view.Handle, YogaNodeKey.Handle, yoga.Handle, AssociationPolicy.RETAIN_NONATOMIC); - } - return yoga; - } - - [DllImport("/usr/lib/libobjc.dylib")] - static extern void objc_setAssociatedObject(IntPtr @object, IntPtr key, IntPtr value, AssociationPolicy policy); - - [DllImport("/usr/lib/libobjc.dylib")] - static extern IntPtr objc_getAssociatedObject(IntPtr @object, IntPtr key); - - enum AssociationPolicy - { - ASSIGN = 0, - RETAIN_NONATOMIC = 1, - COPY_NONATOMIC = 3, - RETAIN = 01401, - COPY = 01403, - } - } -} diff --git a/csharp/iOS/Facebook.YogaKit.iOS/YogaLayout.cs b/csharp/iOS/Facebook.YogaKit.iOS/YogaLayout.cs deleted file mode 100644 index 296949af..00000000 --- a/csharp/iOS/Facebook.YogaKit.iOS/YogaLayout.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System.Collections.Generic; -using CoreGraphics; -using Facebook.Yoga; -using Foundation; -using UIKit; - -namespace Facebook.YogaKit -{ - public partial class YogaLayout : NSObject - { - static IEnumerable GetChildren(UIView view) => view.Subviews; - - static void MeasureNativeView(UIView view, float constrainedWidth, float constrainedHeight, out float sizeThatFitsWidth, out float sizeThatFitsHeight) - { - var sizeThatFits = view.SizeThatFits(new CGSize(constrainedWidth, constrainedHeight)); - sizeThatFitsWidth = (float)sizeThatFits.Width; - sizeThatFitsHeight = (float)sizeThatFits.Height; - } - - static void GetWidthHeightOfNativeView(UIView view, out float width, out float height) - { - width = (float)view.Bounds.Width; - height = (float)view.Bounds.Height; - } - - static float NativePixelScale => (float)UIScreen.MainScreen.Scale; - - - static void ApplyLayoutToNativeView(UIView view, YogaNode node) - { - var topLeft = new CGPoint(node.LayoutX, node.LayoutY); - var bottomRight = new CGPoint(topLeft.X + node.LayoutWidth, topLeft.Y + node.LayoutHeight); - if (view is UIScrollView scrollView) - { - scrollView.ContentSize = new CGSize(RoundPointValue((float)bottomRight.X) - RoundPointValue((float)topLeft.X), RoundPointValue((float)bottomRight.Y) - RoundPointValue((float)topLeft.Y)); - } - else - { - view.Frame = new CGRect(RoundPointValue((float)topLeft.X), RoundPointValue((float)topLeft.Y), RoundPointValue((float)bottomRight.X) - RoundPointValue((float)topLeft.X), RoundPointValue((float)bottomRight.Y) - RoundPointValue((float)topLeft.Y)); - } - } - - bool _disposed; - protected override void Dispose(bool disposing) - { - if (disposing && !_disposed) - { - _disposed = true; - if (YogaKit.Bridges.ContainsKey(_node)) - { - YogaKit.Bridges.Remove(_node); - } - _node = null; - _viewRef = null; - } - base.Dispose(disposing); - } - } -} diff --git a/csharp/nuget/Facebook.Yoga.Native.Universal.targets b/csharp/nuget/Facebook.Yoga.Native.Universal.targets deleted file mode 100644 index 4da44101..00000000 --- a/csharp/nuget/Facebook.Yoga.Native.Universal.targets +++ /dev/null @@ -1,36 +0,0 @@ - - - - - x86\%(Filename)%(Extension) - PreserveNewest - False - - - x64\%(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - diff --git a/csharp/nuget/Facebook.Yoga.Native.nuspec b/csharp/nuget/Facebook.Yoga.Native.nuspec deleted file mode 100644 index 8078aeaa..00000000 --- a/csharp/nuget/Facebook.Yoga.Native.nuspec +++ /dev/null @@ -1,50 +0,0 @@ - - - - Facebook.Yoga.Native - 1.0.1-pre - Facebook.Yoga.Native - Facebook - Facebook - https://github.com/facebook/css-layout/blob/master/LICENSE - https://github.com/facebook/css-layout - false - A subset of CSS's flexbox layout algorithm and box model. - Copyright 2016 Facebook - native flexbox flex-box css layout css-layout yoga facebook - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/csharp/nuget/Facebook.Yoga.Native.targets b/csharp/nuget/Facebook.Yoga.Native.targets deleted file mode 100644 index 3a2c7680..00000000 --- a/csharp/nuget/Facebook.Yoga.Native.targets +++ /dev/null @@ -1,36 +0,0 @@ - - - - - x86\%(Filename)%(Extension) - PreserveNewest - False - - - x64\%(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - diff --git a/csharp/nuget/Facebook.Yoga.OSX.targets b/csharp/nuget/Facebook.Yoga.OSX.targets deleted file mode 100644 index f7db7f17..00000000 --- a/csharp/nuget/Facebook.Yoga.OSX.targets +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - False - Dynamic - - - - \ No newline at end of file diff --git a/csharp/nuget/Facebook.Yoga.Universal.targets b/csharp/nuget/Facebook.Yoga.Universal.targets deleted file mode 100644 index ce4062bb..00000000 --- a/csharp/nuget/Facebook.Yoga.Universal.targets +++ /dev/null @@ -1,51 +0,0 @@ - - - - - x86\%(Filename)%(Extension) - PreserveNewest - False - - - x64\%(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - %(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - %(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - %(Filename)%(Extension) - PreserveNewest - False - - - \ No newline at end of file diff --git a/csharp/nuget/Facebook.Yoga.dll.config b/csharp/nuget/Facebook.Yoga.dll.config deleted file mode 100644 index eadca6eb..00000000 --- a/csharp/nuget/Facebook.Yoga.dll.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/csharp/nuget/Facebook.Yoga.nuspec b/csharp/nuget/Facebook.Yoga.nuspec deleted file mode 100644 index d3f1b711..00000000 --- a/csharp/nuget/Facebook.Yoga.nuspec +++ /dev/null @@ -1,85 +0,0 @@ - - - - Facebook.Yoga - 1.0.1-pre - Facebook.Yoga - Facebook - Facebook - https://github.com/facebook/css-layout/blob/master/LICENSE - https://github.com/facebook/css-layout - false - A subset of CSS's flexbox layout algorithm and box model. - Copyright 2016 Facebook - flexbox flex-box css layout css-layout yoga facebook native - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/csharp/nuget/Facebook.Yoga.targets b/csharp/nuget/Facebook.Yoga.targets deleted file mode 100644 index a3b9f352..00000000 --- a/csharp/nuget/Facebook.Yoga.targets +++ /dev/null @@ -1,61 +0,0 @@ - - - - - x86\%(Filename)%(Extension) - PreserveNewest - False - - - x64\%(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - %(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - %(Filename)%(Extension) - PreserveNewest - False - - - - - %(Filename)%(Extension) - PreserveNewest - False - - - %(Filename)%(Extension) - PreserveNewest - False - - - - - libyoga.dylib - Always - - - Facebook.Yoga.dll.config - Always - - - \ No newline at end of file diff --git a/csharp/nuget/_._ b/csharp/nuget/_._ deleted file mode 100644 index e69de29b..00000000 diff --git a/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.projitems b/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.projitems deleted file mode 100644 index 3bbfd970..00000000 --- a/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.projitems +++ /dev/null @@ -1,29 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - 4edc82d9-a201-4831-8fe0-98f468f8e4ae - - - Facebook.Yoga.Shared.Tests - - - - - - - - - - - - - - - - - - - - diff --git a/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.shproj b/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.shproj deleted file mode 100644 index 75c61845..00000000 --- a/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.shproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - 4edc82d9-a201-4831-8fe0-98f468f8e4ae - 14.0 - - - - - - - - diff --git a/csharp/tests/Facebook.Yoga/YGAbsolutePositionTest.cs b/csharp/tests/Facebook.Yoga/YGAbsolutePositionTest.cs deleted file mode 100644 index bf5da18e..00000000 --- a/csharp/tests/Facebook.Yoga/YGAbsolutePositionTest.cs +++ /dev/null @@ -1,1038 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGAbsolutePositionTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGAbsolutePositionTest - { - [Test] - public void Test_absolute_layout_width_height_start_top() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Start = 10; - root_child0.Top = 10; - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_width_height_end_bottom() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.End = 10; - root_child0.Bottom = 10; - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(80f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(80f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_start_top_end_bottom() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Start = 10; - root_child0.Top = 10; - root_child0.End = 10; - root_child0.Bottom = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_width_height_start_top_end_bottom() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Start = 10; - root_child0.Top = 10; - root_child0.End = 10; - root_child0.Bottom = 10; - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_do_not_clamp_height_of_absolute_node_to_height_of_its_overflow_hidden_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Overflow = YogaOverflow.Hidden; - root.Width = 50; - root.Height = 50; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Start = 0; - root_child0.Top = 0; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 100; - root_child0_child0.Height = 100; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(50f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(50f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(-50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_within_border() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.MarginLeft = 10; - root.MarginTop = 10; - root.MarginRight = 10; - root.MarginBottom = 10; - root.PaddingLeft = 10; - root.PaddingTop = 10; - root.PaddingRight = 10; - root.PaddingBottom = 10; - root.BorderLeftWidth = 10; - root.BorderTopWidth = 10; - root.BorderRightWidth = 10; - root.BorderBottomWidth = 10; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Left = 0; - root_child0.Top = 0; - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.PositionType = YogaPositionType.Absolute; - root_child1.Right = 0; - root_child1.Bottom = 0; - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.PositionType = YogaPositionType.Absolute; - root_child2.Left = 0; - root_child2.Top = 0; - root_child2.MarginLeft = 10; - root_child2.MarginTop = 10; - root_child2.MarginRight = 10; - root_child2.MarginBottom = 10; - root_child2.Width = 50; - root_child2.Height = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.PositionType = YogaPositionType.Absolute; - root_child3.Right = 0; - root_child3.Bottom = 0; - root_child3.MarginLeft = 10; - root_child3.MarginTop = 10; - root_child3.MarginRight = 10; - root_child3.MarginBottom = 10; - root_child3.Width = 50; - root_child3.Height = 50; - root.Insert(3, root_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(10f, root.LayoutX); - Assert.AreEqual(10f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(20f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(30f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(10f, root.LayoutX); - Assert.AreEqual(10f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(20f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(30f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_align_items_and_justify_content_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.FlexGrow = 1; - root.Width = 110; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 60; - root_child0.Height = 40; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_align_items_and_justify_content_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.FlexEnd; - root.AlignItems = YogaAlign.FlexEnd; - root.FlexGrow = 1; - root.Width = 110; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 60; - root_child0.Height = 40; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(60f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(60f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_justify_content_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.FlexGrow = 1; - root.Width = 110; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 60; - root_child0.Height = 40; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_align_items_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.FlexGrow = 1; - root.Width = 110; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 60; - root_child0.Height = 40; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_align_items_center_on_child_only() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexGrow = 1; - root.Width = 110; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignSelf = YogaAlign.Center; - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 60; - root_child0.Height = 40; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_align_items_and_justify_content_center_and_top_position() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.FlexGrow = 1; - root.Width = 110; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Top = 10; - root_child0.Width = 60; - root_child0.Height = 40; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_align_items_and_justify_content_center_and_bottom_position() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.FlexGrow = 1; - root.Width = 110; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Bottom = 10; - root_child0.Width = 60; - root_child0.Height = 40; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(50f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(50f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_align_items_and_justify_content_center_and_left_position() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.FlexGrow = 1; - root.Width = 110; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Left = 5; - root_child0.Width = 60; - root_child0.Height = 40; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(5f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(5f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_align_items_and_justify_content_center_and_right_position() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.FlexGrow = 1; - root.Width = 110; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Right = 5; - root_child0.Width = 60; - root_child0.Height = 40; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(45f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(110f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(45f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - } - - [Test] - public void Test_position_root_with_rtl_should_position_withoutdirection() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Left = 72; - root.Width = 52; - root.Height = 52; - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(72f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(72f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_percentage_bottom_based_on_parent_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Top = 50.Percent(); - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.PositionType = YogaPositionType.Absolute; - root_child1.Bottom = 50.Percent(); - root_child1.Width = 10; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.PositionType = YogaPositionType.Absolute; - root_child2.Top = 10.Percent(); - root_child2.Bottom = 10.Percent(); - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(100f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(90f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(160f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(100f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(90f, root_child1.LayoutX); - Assert.AreEqual(90f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(90f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(160f, root_child2.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_in_wrap_reverse_column_container() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Wrap = YogaWrap.WrapReverse; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 20; - root_child0.Height = 20; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_in_wrap_reverse_row_container() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Wrap = YogaWrap.WrapReverse; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 20; - root_child0.Height = 20; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(80f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(80f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_in_wrap_reverse_column_container_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Wrap = YogaWrap.WrapReverse; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignSelf = YogaAlign.FlexEnd; - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 20; - root_child0.Height = 20; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - } - - [Test] - public void Test_absolute_layout_in_wrap_reverse_row_container_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Wrap = YogaWrap.WrapReverse; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignSelf = YogaAlign.FlexEnd; - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 20; - root_child0.Height = 20; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGAlignBaselineTest.cs b/csharp/tests/Facebook.Yoga/YGAlignBaselineTest.cs deleted file mode 100644 index 68960730..00000000 --- a/csharp/tests/Facebook.Yoga/YGAlignBaselineTest.cs +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGAlignBaselineTest - { - [Test] - public void Test_align_baseline_parent_using_child_in_column_as_reference() - { - YogaConfig config = new YogaConfig(); - YogaNode root = createYGNode(config, YogaFlexDirection.Row, 1000, 1000, true); - - YogaNode root_child0 = createYGNode(config, YogaFlexDirection.Column, 500, 600, false); - root.Insert(0, root_child0); - - YogaNode root_child1 = createYGNode(config, YogaFlexDirection.Column, 500, 800, false); - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = createYGNode(config, YogaFlexDirection.Column, 500, 300, false); - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child1_child1 = createYGNode(config, YogaFlexDirection.Column, 500, 400, false); - root_child1_child1.SetBaselineFunction((_, width, height) => { - return height / 2; - }); - root_child1_child1.IsReferenceBaseline = true; - root_child1.Insert(1, root_child1_child1); - - root.CalculateLayout(); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - - Assert.AreEqual(500f, root_child1.LayoutX); - Assert.AreEqual(100f, root_child1.LayoutY); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - - Assert.AreEqual(0f, root_child1_child1.LayoutX); - Assert.AreEqual(300f, root_child1_child1.LayoutY); - } - - [Test] - public void Test_align_baseline_parent_using_child_in_row_as_reference() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = createYGNode(config, YogaFlexDirection.Row, 1000, 1000, true); - - YogaNode root_child0 = createYGNode(config, YogaFlexDirection.Column, 500, 600, false); - root.Insert(0, root_child0); - - YogaNode root_child1 = createYGNode(config, YogaFlexDirection.Row, 500, 800, true); - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = createYGNode(config, YogaFlexDirection.Row, 500, 500, false); - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child1_child1 = createYGNode(config, YogaFlexDirection.Row, 500, 400, false); - root_child1_child1.SetBaselineFunction((_, width, height) => { - return height / 2; - }); - root_child1_child1.IsReferenceBaseline = true; - root_child1.Insert(1, root_child1_child1); - - root.StyleDirection = YogaDirection.LTR; - - root.CalculateLayout(); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - - Assert.AreEqual(500f, root_child1.LayoutX); - Assert.AreEqual(100f, root_child1.LayoutY); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - - Assert.AreEqual(500f, root_child1_child1.LayoutX); - Assert.AreEqual(300f, root_child1_child1.LayoutY); - } - - private YogaNode createYGNode(YogaConfig config, YogaFlexDirection flexDirection, int width, int height, bool alignBaseline) { - YogaNode node = new YogaNode(config); - node.FlexDirection = flexDirection; - node.Width = width; - node.Height = height; - if (alignBaseline) { - node.AlignItems = YogaAlign.Baseline; - } - return node; - } - } -} diff --git a/csharp/tests/Facebook.Yoga/YGAlignContentTest.cs b/csharp/tests/Facebook.Yoga/YGAlignContentTest.cs deleted file mode 100644 index dda26398..00000000 --- a/csharp/tests/Facebook.Yoga/YGAlignContentTest.cs +++ /dev/null @@ -1,1885 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignContentTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGAlignContentTest - { - [Test] - public void Test_align_content_flex_start() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Wrap = YogaWrap.Wrap; - root.Width = 130; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 10; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root_child3.Height = 10; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root_child4.Height = 10; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(130f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(10f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(20f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(130f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(80f, root_child2.LayoutX); - Assert.AreEqual(10f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - Assert.AreEqual(30f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(80f, root_child4.LayoutX); - Assert.AreEqual(20f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_flex_start_without_height_on_children() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root_child3.Height = 10; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(10f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(0f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(20f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(0f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(10f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(0f, root_child2.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(20f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(0f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_flex_start_with_flex() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - root.Height = 120; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 0.Percent(); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexBasis = 0.Percent(); - root_child1.Width = 50; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.FlexGrow = 1; - root_child3.FlexShrink = 1; - root_child3.FlexBasis = 0.Percent(); - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(120f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(40f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(80f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(0f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(80f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(120f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(0f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(120f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(40f, root_child1.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(80f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(0f, root_child2.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(80f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(120f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(0f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignContent = YogaAlign.FlexEnd; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 10; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root_child3.Height = 10; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root_child4.Height = 10; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(40f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(40f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(0f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(0f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(0f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(100f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - Assert.AreEqual(100f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(0f, root_child2.LayoutHeight); - - Assert.AreEqual(100f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(0f, root_child3.LayoutHeight); - - Assert.AreEqual(100f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(0f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_spacebetween() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.SpaceBetween; - root.Wrap = YogaWrap.Wrap; - root.Width = 130; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 10; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root_child3.Height = 10; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root_child4.Height = 10; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(130f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(45f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(45f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(90f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(130f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(80f, root_child2.LayoutX); - Assert.AreEqual(45f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - Assert.AreEqual(30f, root_child3.LayoutX); - Assert.AreEqual(45f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(80f, root_child4.LayoutX); - Assert.AreEqual(90f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_spacearound() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.SpaceAround; - root.Wrap = YogaWrap.Wrap; - root.Width = 140; - root.Height = 120; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 10; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root_child3.Height = 10; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root_child4.Height = 10; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(140f, root.LayoutWidth); - Assert.AreEqual(120f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(15f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(15f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(55f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(55f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(95f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(140f, root.LayoutWidth); - Assert.AreEqual(120f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(15f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(15f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(90f, root_child2.LayoutX); - Assert.AreEqual(55f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - Assert.AreEqual(40f, root_child3.LayoutX); - Assert.AreEqual(55f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(90f, root_child4.LayoutX); - Assert.AreEqual(95f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(100f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(50f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(100f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(50f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row_with_children() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexShrink = 1; - root_child0_child0.FlexBasis = 0.Percent(); - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(100f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(50f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(100f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(50f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row_with_flex() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexShrink = 1; - root_child1.FlexBasis = 0.Percent(); - root_child1.Width = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.FlexGrow = 1; - root_child3.FlexShrink = 1; - root_child3.FlexBasis = 0.Percent(); - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - Assert.AreEqual(100f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(0f, root_child3.LayoutWidth); - Assert.AreEqual(100f, root_child3.LayoutHeight); - - Assert.AreEqual(100f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(100f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(100f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(0f, root_child3.LayoutWidth); - Assert.AreEqual(100f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(100f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row_with_flex_no_shrink() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexShrink = 1; - root_child1.FlexBasis = 0.Percent(); - root_child1.Width = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.FlexGrow = 1; - root_child3.FlexBasis = 0.Percent(); - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - Assert.AreEqual(100f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(0f, root_child3.LayoutWidth); - Assert.AreEqual(100f, root_child3.LayoutHeight); - - Assert.AreEqual(100f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(100f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(100f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(0f, root_child3.LayoutWidth); - Assert.AreEqual(100f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(100f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row_with_margin() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.MarginLeft = 10; - root_child1.MarginTop = 10; - root_child1.MarginRight = 10; - root_child1.MarginBottom = 10; - root_child1.Width = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.MarginLeft = 10; - root_child3.MarginTop = 10; - root_child3.MarginRight = 10; - root_child3.MarginBottom = 10; - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - Assert.AreEqual(60f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(40f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(40f, root_child2.LayoutHeight); - - Assert.AreEqual(60f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(80f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(20f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(100f, root_child2.LayoutX); - Assert.AreEqual(40f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(40f, root_child2.LayoutHeight); - - Assert.AreEqual(40f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - - Assert.AreEqual(100f, root_child4.LayoutX); - Assert.AreEqual(80f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(20f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row_with_padding() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.PaddingLeft = 10; - root_child1.PaddingTop = 10; - root_child1.PaddingRight = 10; - root_child1.PaddingBottom = 10; - root_child1.Width = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.PaddingLeft = 10; - root_child3.PaddingTop = 10; - root_child3.PaddingRight = 10; - root_child3.PaddingBottom = 10; - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(100f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(50f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(100f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(50f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row_with_single_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row_with_fixed_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 60; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(60f, root_child1.LayoutHeight); - - Assert.AreEqual(100f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(80f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(80f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(80f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(20f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(60f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(80f, root_child2.LayoutHeight); - - Assert.AreEqual(100f, root_child3.LayoutX); - Assert.AreEqual(80f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(80f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(20f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row_with_max_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.MaxHeight = 20; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(100f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(50f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(100f, root_child3.LayoutX); - Assert.AreEqual(50f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(50f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_row_with_min_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.MinHeight = 80; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(90f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(90f, root_child1.LayoutHeight); - - Assert.AreEqual(100f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(90f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(90f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(90f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(90f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(90f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(90f, root_child2.LayoutHeight); - - Assert.AreEqual(100f, root_child3.LayoutX); - Assert.AreEqual(90f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(10f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(90f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(10f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - root.Height = 150; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexShrink = 1; - root_child0_child0.FlexBasis = 0.Percent(); - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexShrink = 1; - root_child1.FlexBasis = 0.Percent(); - root_child1.Height = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 50; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Height = 50; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Height = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(150f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(100f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(50f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(150f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(100f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(50f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_align_content_stretch_is_not_overriding_align_items() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignContent = YogaAlign.Stretch; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.AlignContent = YogaAlign.Stretch; - root_child0.AlignItems = YogaAlign.Center; - root_child0.Width = 100; - root_child0.Height = 100; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0.Width = 10; - root_child0_child0.Height = 10; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(45f, root_child0_child0.LayoutY); - Assert.AreEqual(10f, root_child0_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(90f, root_child0_child0.LayoutX); - Assert.AreEqual(45f, root_child0_child0.LayoutY); - Assert.AreEqual(10f, root_child0_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs b/csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs deleted file mode 100644 index 3042b36b..00000000 --- a/csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs +++ /dev/null @@ -1,2165 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignItemsTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGAlignItemsTest - { - [Test] - public void Test_align_items_stretch() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_align_items_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(45f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(45f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_align_items_flex_start() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.FlexStart; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_align_items_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.FlexEnd; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_align_baseline() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(30f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(30f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - } - - [Test] - public void Test_align_baseline_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 50; - root_child1_child0.Height = 10; - root_child1.Insert(0, root_child1_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - } - - [Test] - public void Test_align_baseline_child_multiline() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 60; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexDirection = YogaFlexDirection.Row; - root_child1.Wrap = YogaWrap.Wrap; - root_child1.Width = 50; - root_child1.Height = 25; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 25; - root_child1_child0.Height = 20; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child1_child1 = new YogaNode(config); - root_child1_child1.Width = 25; - root_child1_child1.Height = 10; - root_child1.Insert(1, root_child1_child1); - - YogaNode root_child1_child2 = new YogaNode(config); - root_child1_child2.Width = 25; - root_child1_child2.Height = 20; - root_child1.Insert(2, root_child1_child2); - - YogaNode root_child1_child3 = new YogaNode(config); - root_child1_child3.Width = 25; - root_child1_child3.Height = 10; - root_child1.Insert(3, root_child1_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(25f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child1.LayoutX); - Assert.AreEqual(0f, root_child1_child1.LayoutY); - Assert.AreEqual(25f, root_child1_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child2.LayoutX); - Assert.AreEqual(20f, root_child1_child2.LayoutY); - Assert.AreEqual(25f, root_child1_child2.LayoutWidth); - Assert.AreEqual(20f, root_child1_child2.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child3.LayoutX); - Assert.AreEqual(20f, root_child1_child3.LayoutY); - Assert.AreEqual(25f, root_child1_child3.LayoutWidth); - Assert.AreEqual(10f, root_child1_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(25f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child1.LayoutX); - Assert.AreEqual(0f, root_child1_child1.LayoutY); - Assert.AreEqual(25f, root_child1_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1_child1.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child2.LayoutX); - Assert.AreEqual(20f, root_child1_child2.LayoutY); - Assert.AreEqual(25f, root_child1_child2.LayoutWidth); - Assert.AreEqual(20f, root_child1_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child3.LayoutX); - Assert.AreEqual(20f, root_child1_child3.LayoutY); - Assert.AreEqual(25f, root_child1_child3.LayoutWidth); - Assert.AreEqual(10f, root_child1_child3.LayoutHeight); - } - - [Test] - public void Test_align_baseline_child_multiline_override() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 60; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexDirection = YogaFlexDirection.Row; - root_child1.Wrap = YogaWrap.Wrap; - root_child1.Width = 50; - root_child1.Height = 25; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 25; - root_child1_child0.Height = 20; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child1_child1 = new YogaNode(config); - root_child1_child1.AlignSelf = YogaAlign.Baseline; - root_child1_child1.Width = 25; - root_child1_child1.Height = 10; - root_child1.Insert(1, root_child1_child1); - - YogaNode root_child1_child2 = new YogaNode(config); - root_child1_child2.Width = 25; - root_child1_child2.Height = 20; - root_child1.Insert(2, root_child1_child2); - - YogaNode root_child1_child3 = new YogaNode(config); - root_child1_child3.AlignSelf = YogaAlign.Baseline; - root_child1_child3.Width = 25; - root_child1_child3.Height = 10; - root_child1.Insert(3, root_child1_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(25f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child1.LayoutX); - Assert.AreEqual(0f, root_child1_child1.LayoutY); - Assert.AreEqual(25f, root_child1_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child2.LayoutX); - Assert.AreEqual(20f, root_child1_child2.LayoutY); - Assert.AreEqual(25f, root_child1_child2.LayoutWidth); - Assert.AreEqual(20f, root_child1_child2.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child3.LayoutX); - Assert.AreEqual(20f, root_child1_child3.LayoutY); - Assert.AreEqual(25f, root_child1_child3.LayoutWidth); - Assert.AreEqual(10f, root_child1_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(25f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child1.LayoutX); - Assert.AreEqual(0f, root_child1_child1.LayoutY); - Assert.AreEqual(25f, root_child1_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1_child1.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child2.LayoutX); - Assert.AreEqual(20f, root_child1_child2.LayoutY); - Assert.AreEqual(25f, root_child1_child2.LayoutWidth); - Assert.AreEqual(20f, root_child1_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child3.LayoutX); - Assert.AreEqual(20f, root_child1_child3.LayoutY); - Assert.AreEqual(25f, root_child1_child3.LayoutWidth); - Assert.AreEqual(10f, root_child1_child3.LayoutHeight); - } - - [Test] - public void Test_align_baseline_child_multiline_no_override_on_secondline() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 60; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexDirection = YogaFlexDirection.Row; - root_child1.Wrap = YogaWrap.Wrap; - root_child1.Width = 50; - root_child1.Height = 25; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 25; - root_child1_child0.Height = 20; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child1_child1 = new YogaNode(config); - root_child1_child1.Width = 25; - root_child1_child1.Height = 10; - root_child1.Insert(1, root_child1_child1); - - YogaNode root_child1_child2 = new YogaNode(config); - root_child1_child2.Width = 25; - root_child1_child2.Height = 20; - root_child1.Insert(2, root_child1_child2); - - YogaNode root_child1_child3 = new YogaNode(config); - root_child1_child3.AlignSelf = YogaAlign.Baseline; - root_child1_child3.Width = 25; - root_child1_child3.Height = 10; - root_child1.Insert(3, root_child1_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(25f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child1.LayoutX); - Assert.AreEqual(0f, root_child1_child1.LayoutY); - Assert.AreEqual(25f, root_child1_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child2.LayoutX); - Assert.AreEqual(20f, root_child1_child2.LayoutY); - Assert.AreEqual(25f, root_child1_child2.LayoutWidth); - Assert.AreEqual(20f, root_child1_child2.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child3.LayoutX); - Assert.AreEqual(20f, root_child1_child3.LayoutY); - Assert.AreEqual(25f, root_child1_child3.LayoutWidth); - Assert.AreEqual(10f, root_child1_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(25f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child1.LayoutX); - Assert.AreEqual(0f, root_child1_child1.LayoutY); - Assert.AreEqual(25f, root_child1_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1_child1.LayoutHeight); - - Assert.AreEqual(25f, root_child1_child2.LayoutX); - Assert.AreEqual(20f, root_child1_child2.LayoutY); - Assert.AreEqual(25f, root_child1_child2.LayoutWidth); - Assert.AreEqual(20f, root_child1_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child3.LayoutX); - Assert.AreEqual(20f, root_child1_child3.LayoutY); - Assert.AreEqual(25f, root_child1_child3.LayoutWidth); - Assert.AreEqual(10f, root_child1_child3.LayoutHeight); - } - - [Test] - public void Test_align_baseline_child_top() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Top = 10; - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 50; - root_child1_child0.Height = 10; - root_child1.Insert(0, root_child1_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - } - - [Test] - public void Test_align_baseline_child_top2() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Top = 5; - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 50; - root_child1_child0.Height = 10; - root_child1.Insert(0, root_child1_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(45f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(45f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - } - - [Test] - public void Test_align_baseline_double_nested_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 50; - root_child0_child0.Height = 20; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 50; - root_child1_child0.Height = 15; - root_child1.Insert(0, root_child1_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(5f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(15f, root_child1_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(5f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(15f, root_child1_child0.LayoutHeight); - } - - [Test] - public void Test_align_baseline_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - } - - [Test] - public void Test_align_baseline_child_margin() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = 5; - root_child0.MarginTop = 5; - root_child0.MarginRight = 5; - root_child0.MarginBottom = 5; - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.MarginLeft = 1; - root_child1_child0.MarginTop = 1; - root_child1_child0.MarginRight = 1; - root_child1_child0.MarginBottom = 1; - root_child1_child0.Width = 50; - root_child1_child0.Height = 10; - root_child1.Insert(0, root_child1_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(5f, root_child0.LayoutX); - Assert.AreEqual(5f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(60f, root_child1.LayoutX); - Assert.AreEqual(44f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(1f, root_child1_child0.LayoutX); - Assert.AreEqual(1f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(45f, root_child0.LayoutX); - Assert.AreEqual(5f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(-10f, root_child1.LayoutX); - Assert.AreEqual(44f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(-1f, root_child1_child0.LayoutX); - Assert.AreEqual(1f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - } - - [Test] - public void Test_align_baseline_child_padding() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.PaddingLeft = 5; - root.PaddingTop = 5; - root.PaddingRight = 5; - root.PaddingBottom = 5; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.PaddingLeft = 5; - root_child1.PaddingTop = 5; - root_child1.PaddingRight = 5; - root_child1.PaddingBottom = 5; - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 50; - root_child1_child0.Height = 10; - root_child1.Insert(0, root_child1_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(5f, root_child0.LayoutX); - Assert.AreEqual(5f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(55f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(5f, root_child1_child0.LayoutX); - Assert.AreEqual(5f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(45f, root_child0.LayoutX); - Assert.AreEqual(5f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(-5f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(-5f, root_child1_child0.LayoutX); - Assert.AreEqual(5f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - } - - [Test] - public void Test_align_baseline_multiline() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 50; - root_child1_child0.Height = 10; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 20; - root.Insert(2, root_child2); - - YogaNode root_child2_child0 = new YogaNode(config); - root_child2_child0.Width = 50; - root_child2_child0.Height = 10; - root_child2.Insert(0, root_child2_child0); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root_child3.Height = 50; - root.Insert(3, root_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(100f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(20f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child2_child0.LayoutX); - Assert.AreEqual(0f, root_child2_child0.LayoutY); - Assert.AreEqual(50f, root_child2_child0.LayoutWidth); - Assert.AreEqual(10f, root_child2_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(60f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(100f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(20f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child2_child0.LayoutX); - Assert.AreEqual(0f, root_child2_child0.LayoutY); - Assert.AreEqual(50f, root_child2_child0.LayoutWidth); - Assert.AreEqual(10f, root_child2_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(60f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(50f, root_child3.LayoutHeight); - } - - [Test] - public void Test_align_baseline_multiline_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Baseline; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 50; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 20; - root_child1_child0.Height = 20; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 40; - root_child2.Height = 70; - root.Insert(2, root_child2); - - YogaNode root_child2_child0 = new YogaNode(config); - root_child2_child0.Width = 10; - root_child2_child0.Height = 10; - root_child2.Insert(0, root_child2_child0); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root_child3.Height = 20; - root.Insert(3, root_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(20f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(40f, root_child2.LayoutWidth); - Assert.AreEqual(70f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child2_child0.LayoutX); - Assert.AreEqual(0f, root_child2_child0.LayoutY); - Assert.AreEqual(10f, root_child2_child0.LayoutWidth); - Assert.AreEqual(10f, root_child2_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(70f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(70f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(10f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(20f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(40f, root_child2.LayoutWidth); - Assert.AreEqual(70f, root_child2.LayoutHeight); - - Assert.AreEqual(30f, root_child2_child0.LayoutX); - Assert.AreEqual(0f, root_child2_child0.LayoutY); - Assert.AreEqual(10f, root_child2_child0.LayoutWidth); - Assert.AreEqual(10f, root_child2_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(70f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - } - - [Test] - public void Test_align_baseline_multiline_column2() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Baseline; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 50; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 20; - root_child1_child0.Height = 20; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 40; - root_child2.Height = 70; - root.Insert(2, root_child2); - - YogaNode root_child2_child0 = new YogaNode(config); - root_child2_child0.Width = 10; - root_child2_child0.Height = 10; - root_child2.Insert(0, root_child2_child0); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root_child3.Height = 20; - root.Insert(3, root_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(20f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(40f, root_child2.LayoutWidth); - Assert.AreEqual(70f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child2_child0.LayoutX); - Assert.AreEqual(0f, root_child2_child0.LayoutY); - Assert.AreEqual(10f, root_child2_child0.LayoutWidth); - Assert.AreEqual(10f, root_child2_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(70f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(70f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(10f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(20f, root_child1_child0.LayoutWidth); - Assert.AreEqual(20f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(40f, root_child2.LayoutWidth); - Assert.AreEqual(70f, root_child2.LayoutHeight); - - Assert.AreEqual(30f, root_child2_child0.LayoutX); - Assert.AreEqual(0f, root_child2_child0.LayoutY); - Assert.AreEqual(10f, root_child2_child0.LayoutWidth); - Assert.AreEqual(10f, root_child2_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(70f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - } - - [Test] - public void Test_align_baseline_multiline_row_and_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Baseline; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 50; - root_child1_child0.Height = 10; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 20; - root.Insert(2, root_child2); - - YogaNode root_child2_child0 = new YogaNode(config); - root_child2_child0.Width = 50; - root_child2_child0.Height = 10; - root_child2.Insert(0, root_child2_child0); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 50; - root_child3.Height = 20; - root.Insert(3, root_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(100f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(20f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child2_child0.LayoutX); - Assert.AreEqual(0f, root_child2_child0.LayoutY); - Assert.AreEqual(50f, root_child2_child0.LayoutWidth); - Assert.AreEqual(10f, root_child2_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child3.LayoutX); - Assert.AreEqual(90f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(100f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(20f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child2_child0.LayoutX); - Assert.AreEqual(0f, root_child2_child0.LayoutY); - Assert.AreEqual(50f, root_child2_child0.LayoutWidth); - Assert.AreEqual(10f, root_child2_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(90f, root_child3.LayoutY); - Assert.AreEqual(50f, root_child3.LayoutWidth); - Assert.AreEqual(20f, root_child3.LayoutHeight); - } - - [Test] - public void Test_align_items_center_child_with_margin_bigger_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.Width = 52; - root.Height = 52; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignItems = YogaAlign.Center; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.MarginLeft = 10; - root_child0_child0.MarginRight = 10; - root_child0_child0.Width = 52; - root_child0_child0.Height = 52; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(52f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(52f, root_child0_child0.LayoutWidth); - Assert.AreEqual(52f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(52f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(52f, root_child0_child0.LayoutWidth); - Assert.AreEqual(52f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_align_items_flex_end_child_with_margin_bigger_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.Width = 52; - root.Height = 52; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignItems = YogaAlign.FlexEnd; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.MarginLeft = 10; - root_child0_child0.MarginRight = 10; - root_child0_child0.Width = 52; - root_child0_child0.Height = 52; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(52f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(52f, root_child0_child0.LayoutWidth); - Assert.AreEqual(52f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(52f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(52f, root_child0_child0.LayoutWidth); - Assert.AreEqual(52f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_align_items_center_child_without_margin_bigger_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.Width = 52; - root.Height = 52; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignItems = YogaAlign.Center; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 72; - root_child0_child0.Height = 72; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-10f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(72f, root_child0_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-10f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(72f, root_child0_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_align_items_flex_end_child_without_margin_bigger_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.Width = 52; - root.Height = 52; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignItems = YogaAlign.FlexEnd; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 72; - root_child0_child0.Height = 72; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-10f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(72f, root_child0_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-10f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(72f, root_child0_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_align_center_should_size_based_on_content() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.MarginTop = 20; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.JustifyContent = YogaJustify.Center; - root_child0.FlexShrink = 1; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexShrink = 1; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.Width = 20; - root_child0_child0_child0.Height = 20; - root_child0_child0.Insert(0, root_child0_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(20f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(40f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(20f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(20f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(20f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(40f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(20f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(20f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0_child0.LayoutHeight); - } - - [Test] - public void Test_align_strech_should_size_based_on_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.MarginTop = 20; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.JustifyContent = YogaJustify.Center; - root_child0.FlexShrink = 1; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexShrink = 1; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.Width = 20; - root_child0_child0_child0.Height = 20; - root_child0_child0.Insert(0, root_child0_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(20f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(20f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(20f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(80f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(20f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0_child0.LayoutHeight); - } - - [Test] - public void Test_align_flex_start_with_shrinking_children() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 500; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignItems = YogaAlign.FlexStart; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexShrink = 1; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.FlexGrow = 1; - root_child0_child0_child0.FlexShrink = 1; - root_child0_child0.Insert(0, root_child0_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(500f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(500f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(500f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutHeight); - } - - [Test] - public void Test_align_flex_start_with_stretching_children() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 500; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexShrink = 1; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.FlexGrow = 1; - root_child0_child0_child0.FlexShrink = 1; - root_child0_child0.Insert(0, root_child0_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(500f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(500f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(500f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(500f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(500f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(500f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutHeight); - } - - [Test] - public void Test_align_flex_start_with_shrinking_children_with_stretch() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 500; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignItems = YogaAlign.FlexStart; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexShrink = 1; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.FlexGrow = 1; - root_child0_child0_child0.FlexShrink = 1; - root_child0_child0.Insert(0, root_child0_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(500f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(500f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(500f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGAlignSelfTest.cs b/csharp/tests/Facebook.Yoga/YGAlignSelfTest.cs deleted file mode 100644 index 0826fab6..00000000 --- a/csharp/tests/Facebook.Yoga/YGAlignSelfTest.cs +++ /dev/null @@ -1,256 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignSelfTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGAlignSelfTest - { - [Test] - public void Test_align_self_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignSelf = YogaAlign.Center; - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(45f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(45f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_align_self_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignSelf = YogaAlign.FlexEnd; - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_align_self_flex_start() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignSelf = YogaAlign.FlexStart; - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_align_self_flex_end_override_flex_start() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.FlexStart; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignSelf = YogaAlign.FlexEnd; - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_align_self_baseline() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.AlignSelf = YogaAlign.Baseline; - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.AlignSelf = YogaAlign.Baseline; - root_child1.Width = 50; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 50; - root_child1_child0.Height = 10; - root_child1.Insert(0, root_child1_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(40f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(50f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGAndroidNewsFeed.cs b/csharp/tests/Facebook.Yoga/YGAndroidNewsFeed.cs deleted file mode 100644 index a55ca044..00000000 --- a/csharp/tests/Facebook.Yoga/YGAndroidNewsFeed.cs +++ /dev/null @@ -1,298 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGAndroidNewsFeed.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGAndroidNewsFeed - { - [Test] - public void Test_android_news_feed() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignContent = YogaAlign.Stretch; - root.Width = 1080; - - YogaNode root_child0 = new YogaNode(config); - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0.Insert(0, root_child0_child0_child0); - - YogaNode root_child0_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child0_child0.AlignItems = YogaAlign.FlexStart; - root_child0_child0_child0_child0.MarginStart = 36; - root_child0_child0_child0_child0.MarginTop = 24; - root_child0_child0_child0.Insert(0, root_child0_child0_child0_child0); - - YogaNode root_child0_child0_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0_child0_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0_child0_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child0_child0.Insert(0, root_child0_child0_child0_child0_child0); - - YogaNode root_child0_child0_child0_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0_child0_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child0_child0_child0_child0.Width = 120; - root_child0_child0_child0_child0_child0_child0.Height = 120; - root_child0_child0_child0_child0_child0.Insert(0, root_child0_child0_child0_child0_child0_child0); - - YogaNode root_child0_child0_child0_child0_child1 = new YogaNode(config); - root_child0_child0_child0_child0_child1.AlignContent = YogaAlign.Stretch; - root_child0_child0_child0_child0_child1.FlexShrink = 1; - root_child0_child0_child0_child0_child1.MarginRight = 36; - root_child0_child0_child0_child0_child1.PaddingLeft = 36; - root_child0_child0_child0_child0_child1.PaddingTop = 21; - root_child0_child0_child0_child0_child1.PaddingRight = 36; - root_child0_child0_child0_child0_child1.PaddingBottom = 18; - root_child0_child0_child0_child0.Insert(1, root_child0_child0_child0_child0_child1); - - YogaNode root_child0_child0_child0_child0_child1_child0 = new YogaNode(config); - root_child0_child0_child0_child0_child1_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0_child0_child0_child1_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child0_child0_child1_child0.FlexShrink = 1; - root_child0_child0_child0_child0_child1.Insert(0, root_child0_child0_child0_child0_child1_child0); - - YogaNode root_child0_child0_child0_child0_child1_child1 = new YogaNode(config); - root_child0_child0_child0_child0_child1_child1.AlignContent = YogaAlign.Stretch; - root_child0_child0_child0_child0_child1_child1.FlexShrink = 1; - root_child0_child0_child0_child0_child1.Insert(1, root_child0_child0_child0_child0_child1_child1); - - YogaNode root_child0_child0_child1 = new YogaNode(config); - root_child0_child0_child1.AlignContent = YogaAlign.Stretch; - root_child0_child0.Insert(1, root_child0_child0_child1); - - YogaNode root_child0_child0_child1_child0 = new YogaNode(config); - root_child0_child0_child1_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0_child1_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child1_child0.AlignItems = YogaAlign.FlexStart; - root_child0_child0_child1_child0.MarginStart = 174; - root_child0_child0_child1_child0.MarginTop = 24; - root_child0_child0_child1.Insert(0, root_child0_child0_child1_child0); - - YogaNode root_child0_child0_child1_child0_child0 = new YogaNode(config); - root_child0_child0_child1_child0_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0_child1_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child1_child0.Insert(0, root_child0_child0_child1_child0_child0); - - YogaNode root_child0_child0_child1_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child1_child0_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child1_child0_child0_child0.Width = 72; - root_child0_child0_child1_child0_child0_child0.Height = 72; - root_child0_child0_child1_child0_child0.Insert(0, root_child0_child0_child1_child0_child0_child0); - - YogaNode root_child0_child0_child1_child0_child1 = new YogaNode(config); - root_child0_child0_child1_child0_child1.AlignContent = YogaAlign.Stretch; - root_child0_child0_child1_child0_child1.FlexShrink = 1; - root_child0_child0_child1_child0_child1.MarginRight = 36; - root_child0_child0_child1_child0_child1.PaddingLeft = 36; - root_child0_child0_child1_child0_child1.PaddingTop = 21; - root_child0_child0_child1_child0_child1.PaddingRight = 36; - root_child0_child0_child1_child0_child1.PaddingBottom = 18; - root_child0_child0_child1_child0.Insert(1, root_child0_child0_child1_child0_child1); - - YogaNode root_child0_child0_child1_child0_child1_child0 = new YogaNode(config); - root_child0_child0_child1_child0_child1_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0_child1_child0_child1_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child1_child0_child1_child0.FlexShrink = 1; - root_child0_child0_child1_child0_child1.Insert(0, root_child0_child0_child1_child0_child1_child0); - - YogaNode root_child0_child0_child1_child0_child1_child1 = new YogaNode(config); - root_child0_child0_child1_child0_child1_child1.AlignContent = YogaAlign.Stretch; - root_child0_child0_child1_child0_child1_child1.FlexShrink = 1; - root_child0_child0_child1_child0_child1.Insert(1, root_child0_child0_child1_child0_child1_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(1080f, root.LayoutWidth); - Assert.AreEqual(240f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(1080f, root_child0.LayoutWidth); - Assert.AreEqual(240f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(1080f, root_child0_child0.LayoutWidth); - Assert.AreEqual(240f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(1080f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(144f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(36f, root_child0_child0_child0_child0.LayoutX); - Assert.AreEqual(24f, root_child0_child0_child0_child0.LayoutY); - Assert.AreEqual(1044f, root_child0_child0_child0_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child0.LayoutY); - Assert.AreEqual(120f, root_child0_child0_child0_child0_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0_child0_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child0_child0.LayoutY); - Assert.AreEqual(120f, root_child0_child0_child0_child0_child0_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0_child0_child0_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(120f, root_child0_child0_child0_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1.LayoutY); - Assert.AreEqual(72f, root_child0_child0_child0_child0_child1.LayoutWidth); - Assert.AreEqual(39f, root_child0_child0_child0_child0_child1.LayoutHeight); - - Assert.AreEqual(36f, root_child0_child0_child0_child0_child1_child0.LayoutX); - Assert.AreEqual(21f, root_child0_child0_child0_child0_child1_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1_child0.LayoutHeight); - - Assert.AreEqual(36f, root_child0_child0_child0_child0_child1_child1.LayoutX); - Assert.AreEqual(21f, root_child0_child0_child0_child0_child1_child1.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1_child1.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child1.LayoutX); - Assert.AreEqual(144f, root_child0_child0_child1.LayoutY); - Assert.AreEqual(1080f, root_child0_child0_child1.LayoutWidth); - Assert.AreEqual(96f, root_child0_child0_child1.LayoutHeight); - - Assert.AreEqual(174f, root_child0_child0_child1_child0.LayoutX); - Assert.AreEqual(24f, root_child0_child0_child1_child0.LayoutY); - Assert.AreEqual(906f, root_child0_child0_child1_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child1_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child0.LayoutY); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child1_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child0_child0.LayoutY); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child0_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(72f, root_child0_child0_child1_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1.LayoutY); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child1.LayoutWidth); - Assert.AreEqual(39f, root_child0_child0_child1_child0_child1.LayoutHeight); - - Assert.AreEqual(36f, root_child0_child0_child1_child0_child1_child0.LayoutX); - Assert.AreEqual(21f, root_child0_child0_child1_child0_child1_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1_child0.LayoutHeight); - - Assert.AreEqual(36f, root_child0_child0_child1_child0_child1_child1.LayoutX); - Assert.AreEqual(21f, root_child0_child0_child1_child0_child1_child1.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1_child1.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(1080f, root.LayoutWidth); - Assert.AreEqual(240f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(1080f, root_child0.LayoutWidth); - Assert.AreEqual(240f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(1080f, root_child0_child0.LayoutWidth); - Assert.AreEqual(240f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(1080f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(144f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0_child0.LayoutX); - Assert.AreEqual(24f, root_child0_child0_child0_child0.LayoutY); - Assert.AreEqual(1044f, root_child0_child0_child0_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(924f, root_child0_child0_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child0.LayoutY); - Assert.AreEqual(120f, root_child0_child0_child0_child0_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0_child0_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child0_child0.LayoutY); - Assert.AreEqual(120f, root_child0_child0_child0_child0_child0_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0_child0_child0_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(816f, root_child0_child0_child0_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1.LayoutY); - Assert.AreEqual(72f, root_child0_child0_child0_child0_child1.LayoutWidth); - Assert.AreEqual(39f, root_child0_child0_child0_child0_child1.LayoutHeight); - - Assert.AreEqual(36f, root_child0_child0_child0_child0_child1_child0.LayoutX); - Assert.AreEqual(21f, root_child0_child0_child0_child0_child1_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1_child0.LayoutHeight); - - Assert.AreEqual(36f, root_child0_child0_child0_child0_child1_child1.LayoutX); - Assert.AreEqual(21f, root_child0_child0_child0_child0_child1_child1.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1_child1.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child0_child0_child1_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child1.LayoutX); - Assert.AreEqual(144f, root_child0_child0_child1.LayoutY); - Assert.AreEqual(1080f, root_child0_child0_child1.LayoutWidth); - Assert.AreEqual(96f, root_child0_child0_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child1_child0.LayoutX); - Assert.AreEqual(24f, root_child0_child0_child1_child0.LayoutY); - Assert.AreEqual(906f, root_child0_child0_child1_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0_child1_child0.LayoutHeight); - - Assert.AreEqual(834f, root_child0_child0_child1_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child0.LayoutY); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child1_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child0_child0.LayoutY); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child0_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(726f, root_child0_child0_child1_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1.LayoutY); - Assert.AreEqual(72f, root_child0_child0_child1_child0_child1.LayoutWidth); - Assert.AreEqual(39f, root_child0_child0_child1_child0_child1.LayoutHeight); - - Assert.AreEqual(36f, root_child0_child0_child1_child0_child1_child0.LayoutX); - Assert.AreEqual(21f, root_child0_child0_child1_child0_child1_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1_child0.LayoutHeight); - - Assert.AreEqual(36f, root_child0_child0_child1_child0_child1_child1.LayoutX); - Assert.AreEqual(21f, root_child0_child0_child1_child0_child1_child1.LayoutY); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1_child1.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0_child1_child0_child1_child1.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGBorderTest.cs b/csharp/tests/Facebook.Yoga/YGBorderTest.cs deleted file mode 100644 index 2c091537..00000000 --- a/csharp/tests/Facebook.Yoga/YGBorderTest.cs +++ /dev/null @@ -1,219 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGBorderTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGBorderTest - { - [Test] - public void Test_border_no_size() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.BorderLeftWidth = 10; - root.BorderTopWidth = 10; - root.BorderRightWidth = 10; - root.BorderBottomWidth = 10; - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(20f, root.LayoutWidth); - Assert.AreEqual(20f, root.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(20f, root.LayoutWidth); - Assert.AreEqual(20f, root.LayoutHeight); - } - - [Test] - public void Test_border_container_match_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.BorderLeftWidth = 10; - root.BorderTopWidth = 10; - root.BorderRightWidth = 10; - root.BorderBottomWidth = 10; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(30f, root.LayoutWidth); - Assert.AreEqual(30f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(30f, root.LayoutWidth); - Assert.AreEqual(30f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_border_flex_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.BorderLeftWidth = 10; - root.BorderTopWidth = 10; - root.BorderRightWidth = 10; - root.BorderBottomWidth = 10; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.Width = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - } - - [Test] - public void Test_border_stretch_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.BorderLeftWidth = 10; - root.BorderTopWidth = 10; - root.BorderRightWidth = 10; - root.BorderBottomWidth = 10; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_border_center_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.BorderStartWidth = 10; - root.BorderEndWidth = 20; - root.BorderBottomWidth = 20; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(40f, root_child0.LayoutX); - Assert.AreEqual(35f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(35f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGDimensionTest.cs b/csharp/tests/Facebook.Yoga/YGDimensionTest.cs deleted file mode 100644 index 214cc712..00000000 --- a/csharp/tests/Facebook.Yoga/YGDimensionTest.cs +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGDimensionTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGDimensionTest - { - [Test] - public void Test_wrap_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 100; - root_child0.Height = 100; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - } - - [Test] - public void Test_wrap_grandchild() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - - YogaNode root_child0 = new YogaNode(config); - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 100; - root_child0_child0.Height = 100; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGDisplayTest.cs b/csharp/tests/Facebook.Yoga/YGDisplayTest.cs deleted file mode 100644 index 659cb37f..00000000 --- a/csharp/tests/Facebook.Yoga/YGDisplayTest.cs +++ /dev/null @@ -1,380 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -// @Generated by gentest/gentest.rb from gentest/fixtures/YGDisplayTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGDisplayTest - { - [Test] - public void Test_display_none() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Display = YogaDisplay.None; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - } - - [Test] - public void Test_display_none_fixed_size() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 20; - root_child1.Height = 20; - root_child1.Display = YogaDisplay.None; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - } - - [Test] - public void Test_display_none_with_margin() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = 10; - root_child0.MarginTop = 10; - root_child0.MarginRight = 10; - root_child0.MarginBottom = 10; - root_child0.Width = 20; - root_child0.Height = 20; - root_child0.Display = YogaDisplay.None; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_display_none_with_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexShrink = 1; - root_child0.FlexBasis = 0.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexShrink = 1; - root_child1.FlexBasis = 0.Percent(); - root_child1.Display = YogaDisplay.None; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.FlexGrow = 1; - root_child1_child0.FlexShrink = 1; - root_child1_child0.FlexBasis = 0.Percent(); - root_child1_child0.Width = 20; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.FlexShrink = 1; - root_child2.FlexBasis = 0.Percent(); - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(0f, root_child1_child0.LayoutWidth); - Assert.AreEqual(0f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(0f, root_child1_child0.LayoutWidth); - Assert.AreEqual(0f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - } - - [Test] - public void Test_display_none_with_position() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Top = 10; - root_child1.Display = YogaDisplay.None; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - } - - [Test] - public void Test_display_none_with_position_absolute() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Width = 100; - root_child0.Height = 100; - root_child0.Display = YogaDisplay.None; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGFlexDirectionTest.cs b/csharp/tests/Facebook.Yoga/YGFlexDirectionTest.cs deleted file mode 100644 index cf9b310a..00000000 --- a/csharp/tests/Facebook.Yoga/YGFlexDirectionTest.cs +++ /dev/null @@ -1,422 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexDirectionTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGFlexDirectionTest - { - [Test] - public void Test_flex_direction_column_no_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(30f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(30f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_flex_direction_row_no_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(30f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(20f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(30f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(20f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - } - - [Test] - public void Test_flex_direction_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_flex_direction_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(20f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(80f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(70f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - } - - [Test] - public void Test_flex_direction_column_reverse() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.ColumnReverse; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(90f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(80f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(70f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(90f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(80f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(70f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_flex_direction_row_reverse() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.RowReverse; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(80f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(70f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(20f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGFlexTest.cs b/csharp/tests/Facebook.Yoga/YGFlexTest.cs deleted file mode 100644 index 5fc5410e..00000000 --- a/csharp/tests/Facebook.Yoga/YGFlexTest.cs +++ /dev/null @@ -1,615 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGFlexTest - { - [Test] - public void Test_flex_basis_flex_grow_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(75f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(75f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(75f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(75f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_shrink_flex_grow_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 500; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexShrink = 1; - root_child0.Width = 500; - root_child0.Height = 100; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexShrink = 1; - root_child1.Width = 500; - root_child1.Height = 100; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(250f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(250f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(250f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(250f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(250f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(250f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_shrink_flex_grow_child_flex_shrink_other_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 500; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexShrink = 1; - root_child0.Width = 500; - root_child0.Height = 100; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexShrink = 1; - root_child1.Width = 500; - root_child1.Height = 100; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(250f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(250f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(250f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(250f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(250f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(250f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_basis_flex_grow_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(75f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(25f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(25f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(75f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(25f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_basis_flex_shrink_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexShrink = 1; - root_child0.FlexBasis = 100; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexBasis = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_basis_flex_shrink_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexShrink = 1; - root_child0.FlexBasis = 100; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexBasis = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_shrink_to_zero() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Height = 75; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexShrink = 1; - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 50; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(50f, root.LayoutWidth); - Assert.AreEqual(75f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(50f, root.LayoutWidth); - Assert.AreEqual(75f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - } - - [Test] - public void Test_flex_basis_overrides_main_size() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50; - root_child0.Height = 20; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(80f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(20f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(80f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(20f, root_child2.LayoutHeight); - } - - [Test] - public void Test_flex_grow_shrink_at_most() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexShrink = 1; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_flex_grow_less_than_factor_one() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 0.2f; - root_child0.FlexBasis = 40; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 0.2f; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 0.4f; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(132f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(132f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(92f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(224f, root_child2.LayoutY); - Assert.AreEqual(200f, root_child2.LayoutWidth); - Assert.AreEqual(184f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(132f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(132f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(92f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(224f, root_child2.LayoutY); - Assert.AreEqual(200f, root_child2.LayoutWidth); - Assert.AreEqual(184f, root_child2.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGFlexWrapTest.cs b/csharp/tests/Facebook.Yoga/YGFlexWrapTest.cs deleted file mode 100644 index 5e3189d6..00000000 --- a/csharp/tests/Facebook.Yoga/YGFlexWrapTest.cs +++ /dev/null @@ -1,1742 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexWrapTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGFlexWrapTest - { - [Test] - public void Test_wrap_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Wrap = YogaWrap.Wrap; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 30; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 30; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 30; - root.Insert(3, root_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(60f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(30f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(30f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(30f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(60f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(30f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(30f, root_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(60f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(30f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(30f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(30f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(30f, root_child1.LayoutHeight); - - Assert.AreEqual(30f, root_child2.LayoutX); - Assert.AreEqual(60f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(30f, root_child3.LayoutHeight); - } - - [Test] - public void Test_wrap_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 30; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 30; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 30; - root.Insert(3, root_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(60f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(30f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(30f, root_child1.LayoutHeight); - - Assert.AreEqual(60f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(30f, root_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(60f, root.LayoutHeight); - - Assert.AreEqual(70f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(30f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(30f, root_child1.LayoutHeight); - - Assert.AreEqual(10f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(70f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(30f, root_child3.LayoutHeight); - } - - [Test] - public void Test_wrap_row_align_items_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.FlexEnd; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 30; - root.Insert(3, root_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(60f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(20f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(60f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(30f, root_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(60f, root.LayoutHeight); - - Assert.AreEqual(70f, root_child0.LayoutX); - Assert.AreEqual(20f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(10f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(70f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(30f, root_child3.LayoutHeight); - } - - [Test] - public void Test_wrap_row_align_items_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Center; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 30; - root.Insert(3, root_child3); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(60f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(5f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(60f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(30f, root_child3.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(60f, root.LayoutHeight); - - Assert.AreEqual(70f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(5f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(10f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(70f, root_child3.LayoutX); - Assert.AreEqual(30f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(30f, root_child3.LayoutHeight); - } - - [Test] - public void Test_flex_wrap_children_with_min_main_overriding_flex_basis() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Wrap = YogaWrap.Wrap; - root.Width = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexBasis = 50; - root_child0.MinWidth = 55; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexBasis = 50; - root_child1.MinWidth = 55; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(55f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(55f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(45f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(55f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(45f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(55f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_wrap_wrap_to_child_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.AlignItems = YogaAlign.FlexStart; - root_child0.Wrap = YogaWrap.Wrap; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 100; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.Width = 100; - root_child0_child0_child0.Height = 100; - root_child0_child0.Insert(0, root_child0_child0_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 100; - root_child1.Height = 100; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(100f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(100f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_wrap_align_stretch_fits_one_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Wrap = YogaWrap.Wrap; - root.Width = 150; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(150f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(0f, root_child1.LayoutHeight); - } - - [Test] - public void Test_wrap_reverse_row_align_content_flex_start() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Wrap = YogaWrap.WrapReverse; - root.Width = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 40; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 30; - root_child4.Height = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(70f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(60f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(30f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(70f, root_child0.LayoutX); - Assert.AreEqual(70f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(10f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(70f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(40f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_wrap_reverse_row_align_content_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Center; - root.Wrap = YogaWrap.WrapReverse; - root.Width = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 40; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 30; - root_child4.Height = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(70f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(60f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(30f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(70f, root_child0.LayoutX); - Assert.AreEqual(70f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(10f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(70f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(40f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_wrap_reverse_row_single_line_different_size() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Wrap = YogaWrap.WrapReverse; - root.Width = 300; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 40; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 30; - root_child4.Height = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(300f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(40f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(30f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(60f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(90f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(120f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(300f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(270f, root_child0.LayoutX); - Assert.AreEqual(40f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(240f, root_child1.LayoutX); - Assert.AreEqual(30f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(210f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(180f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(150f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_wrap_reverse_row_align_content_stretch() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.Stretch; - root.Wrap = YogaWrap.WrapReverse; - root.Width = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 40; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 30; - root_child4.Height = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(70f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(60f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(30f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(70f, root_child0.LayoutX); - Assert.AreEqual(70f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(10f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(70f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(40f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_wrap_reverse_row_align_content_space_around() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignContent = YogaAlign.SpaceAround; - root.Wrap = YogaWrap.WrapReverse; - root.Width = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 40; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 30; - root_child4.Height = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(70f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(60f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(30f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(70f, root_child0.LayoutX); - Assert.AreEqual(70f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(60f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(10f, root_child2.LayoutX); - Assert.AreEqual(50f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(70f, root_child3.LayoutX); - Assert.AreEqual(10f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(40f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_wrap_reverse_column_fixed_size() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Wrap = YogaWrap.WrapReverse; - root.Width = 200; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 30; - root_child1.Height = 20; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 30; - root_child2.Height = 30; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.Width = 30; - root_child3.Height = 40; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.Width = 30; - root_child4.Height = 50; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(170f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(170f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(170f, root_child2.LayoutX); - Assert.AreEqual(30f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(170f, root_child3.LayoutX); - Assert.AreEqual(60f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(140f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(30f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(30f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(30f, root_child2.LayoutY); - Assert.AreEqual(30f, root_child2.LayoutWidth); - Assert.AreEqual(30f, root_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child3.LayoutX); - Assert.AreEqual(60f, root_child3.LayoutY); - Assert.AreEqual(30f, root_child3.LayoutWidth); - Assert.AreEqual(40f, root_child3.LayoutHeight); - - Assert.AreEqual(30f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(30f, root_child4.LayoutWidth); - Assert.AreEqual(50f, root_child4.LayoutHeight); - } - - [Test] - public void Test_wrapped_row_within_align_items_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.Wrap = YogaWrap.Wrap; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 150; - root_child0_child0.Height = 80; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.Width = 80; - root_child0_child1.Height = 80; - root_child0.Insert(1, root_child0_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(160f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(150f, root_child0_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(80f, root_child0_child1.LayoutY); - Assert.AreEqual(80f, root_child0_child1.LayoutWidth); - Assert.AreEqual(80f, root_child0_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(160f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(150f, root_child0_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(120f, root_child0_child1.LayoutX); - Assert.AreEqual(80f, root_child0_child1.LayoutY); - Assert.AreEqual(80f, root_child0_child1.LayoutWidth); - Assert.AreEqual(80f, root_child0_child1.LayoutHeight); - } - - [Test] - public void Test_wrapped_row_within_align_items_flex_start() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.FlexStart; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.Wrap = YogaWrap.Wrap; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 150; - root_child0_child0.Height = 80; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.Width = 80; - root_child0_child1.Height = 80; - root_child0.Insert(1, root_child0_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(160f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(150f, root_child0_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(80f, root_child0_child1.LayoutY); - Assert.AreEqual(80f, root_child0_child1.LayoutWidth); - Assert.AreEqual(80f, root_child0_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(160f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(150f, root_child0_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(120f, root_child0_child1.LayoutX); - Assert.AreEqual(80f, root_child0_child1.LayoutY); - Assert.AreEqual(80f, root_child0_child1.LayoutWidth); - Assert.AreEqual(80f, root_child0_child1.LayoutHeight); - } - - [Test] - public void Test_wrapped_row_within_align_items_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.FlexEnd; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.Wrap = YogaWrap.Wrap; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 150; - root_child0_child0.Height = 80; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.Width = 80; - root_child0_child1.Height = 80; - root_child0.Insert(1, root_child0_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(160f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(150f, root_child0_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(80f, root_child0_child1.LayoutY); - Assert.AreEqual(80f, root_child0_child1.LayoutWidth); - Assert.AreEqual(80f, root_child0_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(160f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(150f, root_child0_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(120f, root_child0_child1.LayoutX); - Assert.AreEqual(80f, root_child0_child1.LayoutY); - Assert.AreEqual(80f, root_child0_child1.LayoutWidth); - Assert.AreEqual(80f, root_child0_child1.LayoutHeight); - } - - [Test] - public void Test_wrapped_column_max_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignContent = YogaAlign.Center; - root.AlignItems = YogaAlign.Center; - root.Wrap = YogaWrap.Wrap; - root.Width = 700; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 100; - root_child0.Height = 500; - root_child0.MaxHeight = 200; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.MarginLeft = 20; - root_child1.MarginTop = 20; - root_child1.MarginRight = 20; - root_child1.MarginBottom = 20; - root_child1.Width = 200; - root_child1.Height = 200; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 100; - root_child2.Height = 100; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(700f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(250f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(200f, root_child1.LayoutX); - Assert.AreEqual(250f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(200f, root_child1.LayoutHeight); - - Assert.AreEqual(420f, root_child2.LayoutX); - Assert.AreEqual(200f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(700f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(350f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(300f, root_child1.LayoutX); - Assert.AreEqual(250f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(200f, root_child1.LayoutHeight); - - Assert.AreEqual(180f, root_child2.LayoutX); - Assert.AreEqual(200f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - } - - [Test] - public void Test_wrapped_column_max_height_flex() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignContent = YogaAlign.Center; - root.AlignItems = YogaAlign.Center; - root.Wrap = YogaWrap.Wrap; - root.Width = 700; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexShrink = 1; - root_child0.FlexBasis = 0.Percent(); - root_child0.Width = 100; - root_child0.Height = 500; - root_child0.MaxHeight = 200; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexShrink = 1; - root_child1.FlexBasis = 0.Percent(); - root_child1.MarginLeft = 20; - root_child1.MarginTop = 20; - root_child1.MarginRight = 20; - root_child1.MarginBottom = 20; - root_child1.Width = 200; - root_child1.Height = 200; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 100; - root_child2.Height = 100; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(700f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(300f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(180f, root_child0.LayoutHeight); - - Assert.AreEqual(250f, root_child1.LayoutX); - Assert.AreEqual(200f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(180f, root_child1.LayoutHeight); - - Assert.AreEqual(300f, root_child2.LayoutX); - Assert.AreEqual(400f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(700f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(300f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(180f, root_child0.LayoutHeight); - - Assert.AreEqual(250f, root_child1.LayoutX); - Assert.AreEqual(200f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(180f, root_child1.LayoutHeight); - - Assert.AreEqual(300f, root_child2.LayoutX); - Assert.AreEqual(400f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - } - - [Test] - public void Test_wrap_nodes_with_content_sizing_overflowing_margin() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 500; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.Wrap = YogaWrap.Wrap; - root_child0.Width = 85; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.Width = 40; - root_child0_child0_child0.Height = 40; - root_child0_child0.Insert(0, root_child0_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.MarginRight = 10; - root_child0.Insert(1, root_child0_child1); - - YogaNode root_child0_child1_child0 = new YogaNode(config); - root_child0_child1_child0.Width = 40; - root_child0_child1_child0.Height = 40; - root_child0_child1.Insert(0, root_child0_child1_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(85f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(40f, root_child0_child1.LayoutY); - Assert.AreEqual(40f, root_child0_child1.LayoutWidth); - Assert.AreEqual(40f, root_child0_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child1_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child1_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child1_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(415f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(85f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - Assert.AreEqual(45f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(35f, root_child0_child1.LayoutX); - Assert.AreEqual(40f, root_child0_child1.LayoutY); - Assert.AreEqual(40f, root_child0_child1.LayoutWidth); - Assert.AreEqual(40f, root_child0_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child1_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child1_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child1_child0.LayoutHeight); - } - - [Test] - public void Test_wrap_nodes_with_content_sizing_margin_cross() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 500; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.Wrap = YogaWrap.Wrap; - root_child0.Width = 70; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.Width = 40; - root_child0_child0_child0.Height = 40; - root_child0_child0.Insert(0, root_child0_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.MarginTop = 10; - root_child0.Insert(1, root_child0_child1); - - YogaNode root_child0_child1_child0 = new YogaNode(config); - root_child0_child1_child0.Width = 40; - root_child0_child1_child0.Height = 40; - root_child0_child1.Insert(0, root_child0_child1_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(70f, root_child0.LayoutWidth); - Assert.AreEqual(90f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(50f, root_child0_child1.LayoutY); - Assert.AreEqual(40f, root_child0_child1.LayoutWidth); - Assert.AreEqual(40f, root_child0_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child1_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child1_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child1_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(430f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(70f, root_child0.LayoutWidth); - Assert.AreEqual(90f, root_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(30f, root_child0_child1.LayoutX); - Assert.AreEqual(50f, root_child0_child1.LayoutY); - Assert.AreEqual(40f, root_child0_child1.LayoutWidth); - Assert.AreEqual(40f, root_child0_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child1_child0.LayoutY); - Assert.AreEqual(40f, root_child0_child1_child0.LayoutWidth); - Assert.AreEqual(40f, root_child0_child1_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGJustifyContentTest.cs b/csharp/tests/Facebook.Yoga/YGJustifyContentTest.cs deleted file mode 100644 index 6f6a48b5..00000000 --- a/csharp/tests/Facebook.Yoga/YGJustifyContentTest.cs +++ /dev/null @@ -1,1160 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGJustifyContentTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGJustifyContentTest - { - [Test] - public void Test_justify_content_row_flex_start() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(20f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(92f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(82f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(72f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_row_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.JustifyContent = YogaJustify.FlexEnd; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(72f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(82f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(92f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(20f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_row_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.JustifyContent = YogaJustify.Center; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(36f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(46f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(56f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(56f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(46f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(36f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_row_space_between() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.JustifyContent = YogaJustify.SpaceBetween; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(46f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(92f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(92f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(46f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_row_space_around() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.JustifyContent = YogaJustify.SpaceAround; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(12f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(46f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(80f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(102f, root_child0.LayoutHeight); - - Assert.AreEqual(46f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(102f, root_child1.LayoutHeight); - - Assert.AreEqual(12f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(102f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_column_flex_start() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(10f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(20f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_column_flex_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.FlexEnd; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(72f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(82f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(92f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(72f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(82f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(92f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_column_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(36f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(46f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(56f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(36f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(46f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(56f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_column_space_between() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.SpaceBetween; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(46f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(92f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(46f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(92f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_column_space_around() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.SpaceAround; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(12f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(46f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(80f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(12f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(46f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(80f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_row_min_width_and_margin() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.JustifyContent = YogaJustify.Center; - root.MarginLeft = 100; - root.MinWidth = 50; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 20; - root_child0.Height = 20; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(100f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(50f, root.LayoutWidth); - Assert.AreEqual(20f, root.LayoutHeight); - - Assert.AreEqual(15f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(100f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(50f, root.LayoutWidth); - Assert.AreEqual(20f, root.LayoutHeight); - - Assert.AreEqual(15f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - } - - [Test] - public void Test_justify_content_row_max_width_and_margin() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.JustifyContent = YogaJustify.Center; - root.MarginLeft = 100; - root.Width = 100; - root.MaxWidth = 80; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 20; - root_child0.Height = 20; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(100f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(80f, root.LayoutWidth); - Assert.AreEqual(20f, root.LayoutHeight); - - Assert.AreEqual(30f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(100f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(80f, root.LayoutWidth); - Assert.AreEqual(20f, root.LayoutHeight); - - Assert.AreEqual(30f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - } - - [Test] - public void Test_justify_content_column_min_height_and_margin() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.MarginTop = 100; - root.MinHeight = 50; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 20; - root_child0.Height = 20; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(100f, root.LayoutY); - Assert.AreEqual(20f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(15f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(100f, root.LayoutY); - Assert.AreEqual(20f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(15f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - } - - [Test] - public void Test_justify_content_colunn_max_height_and_margin() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.MarginTop = 100; - root.Height = 100; - root.MaxHeight = 80; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 20; - root_child0.Height = 20; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(100f, root.LayoutY); - Assert.AreEqual(20f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(100f, root.LayoutY); - Assert.AreEqual(20f, root.LayoutWidth); - Assert.AreEqual(80f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(30f, root_child0.LayoutY); - Assert.AreEqual(20f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - } - - [Test] - public void Test_justify_content_column_space_evenly() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.SpaceEvenly; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(18f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(46f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(74f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(18f, root_child0.LayoutY); - Assert.AreEqual(102f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(46f, root_child1.LayoutY); - Assert.AreEqual(102f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(74f, root_child2.LayoutY); - Assert.AreEqual(102f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_row_space_evenly() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.JustifyContent = YogaJustify.SpaceEvenly; - root.Width = 102; - root.Height = 102; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(26f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(51f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(77f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(0f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(102f, root.LayoutWidth); - Assert.AreEqual(102f, root.LayoutHeight); - - Assert.AreEqual(77f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(51f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(26f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(0f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_justify_content_min_width_with_padding_child_width_greater_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignContent = YogaAlign.Stretch; - root.Width = 1000; - root.Height = 1584; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.AlignContent = YogaAlign.Stretch; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0.JustifyContent = YogaJustify.Center; - root_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0.PaddingLeft = 100; - root_child0_child0.PaddingRight = 100; - root_child0_child0.MinWidth = 400; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child0.Width = 300; - root_child0_child0_child0.Height = 100; - root_child0_child0.Insert(0, root_child0_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(1000f, root.LayoutWidth); - Assert.AreEqual(1584f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(1000f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(500f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(100f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(300f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(1000f, root.LayoutWidth); - Assert.AreEqual(1584f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(1000f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(500f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(500f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(100f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(300f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0_child0.LayoutHeight); - } - - [Test] - public void Test_justify_content_min_width_with_padding_child_width_lower_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignContent = YogaAlign.Stretch; - root.Width = 1080; - root.Height = 1584; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.AlignContent = YogaAlign.Stretch; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0.JustifyContent = YogaJustify.Center; - root_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0.PaddingLeft = 100; - root_child0_child0.PaddingRight = 100; - root_child0_child0.MinWidth = 400; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0_child0.AlignContent = YogaAlign.Stretch; - root_child0_child0_child0.Width = 199; - root_child0_child0_child0.Height = 100; - root_child0_child0.Insert(0, root_child0_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(1080f, root.LayoutWidth); - Assert.AreEqual(1584f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(1080f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(400f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(101f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(199f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(1080f, root.LayoutWidth); - Assert.AreEqual(1584f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(1080f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(680f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(400f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(101f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(199f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGMarginTest.cs b/csharp/tests/Facebook.Yoga/YGMarginTest.cs deleted file mode 100644 index 9a62a0a3..00000000 --- a/csharp/tests/Facebook.Yoga/YGMarginTest.cs +++ /dev/null @@ -1,1724 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGMarginTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGMarginTest - { - [Test] - public void Test_margin_start() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginStart = 10; - root_child0.Width = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_top() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginTop = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.JustifyContent = YogaJustify.FlexEnd; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginEnd = 10; - root_child0.Width = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_bottom() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.FlexEnd; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginBottom = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(80f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(80f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_and_flex_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MarginStart = 10; - root_child0.MarginEnd = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_and_flex_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MarginTop = 10; - root_child0.MarginBottom = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_and_stretch_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MarginTop = 10; - root_child0.MarginBottom = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_and_stretch_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MarginStart = 10; - root_child0.MarginEnd = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_with_sibling_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MarginEnd = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(45f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(55f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(45f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(55f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(45f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(45f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_with_sibling_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MarginBottom = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(45f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(55f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(45f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(45f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(55f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(45f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_bottom() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginBottom = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_top() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginTop = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(100f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(100f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_bottom_and_top() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginTop = YogaValue.Auto(); - root_child0.MarginBottom = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(50f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(50f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_bottom_and_top_justify_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginTop = YogaValue.Auto(); - root_child0.MarginBottom = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(50f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(150f, root_child0.LayoutX); - Assert.AreEqual(50f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(150f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_mutiple_children_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginTop = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.MarginTop = YogaValue.Auto(); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 50; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(25f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(100f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(75f, root_child2.LayoutX); - Assert.AreEqual(150f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(25f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(100f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(75f, root_child2.LayoutX); - Assert.AreEqual(150f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - } - - [Test] - public void Test_margin_auto_mutiple_children_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginRight = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.MarginRight = YogaValue.Auto(); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 50; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(75f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(75f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(150f, root_child2.LayoutX); - Assert.AreEqual(75f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(125f, root_child0.LayoutX); - Assert.AreEqual(75f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(75f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(75f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - } - - [Test] - public void Test_margin_auto_left_and_right_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = YogaValue.Auto(); - root_child0.MarginRight = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(75f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(150f, root_child1.LayoutX); - Assert.AreEqual(75f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(75f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(75f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_left_and_right() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = YogaValue.Auto(); - root_child0.MarginRight = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(150f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_start_and_end_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginStart = YogaValue.Auto(); - root_child0.MarginEnd = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(75f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(150f, root_child1.LayoutX); - Assert.AreEqual(75f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(75f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(75f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_start_and_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginStart = YogaValue.Auto(); - root_child0.MarginEnd = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(150f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_left_and_right_column_and_center() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = YogaValue.Auto(); - root_child0.MarginRight = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_left() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(150f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(150f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_right() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginRight = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_left_and_right_strech() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = YogaValue.Auto(); - root_child0.MarginRight = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(150f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_top_and_bottom_strech() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginTop = YogaValue.Auto(); - root_child0.MarginBottom = YogaValue.Auto(); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(50f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(150f, root_child0.LayoutX); - Assert.AreEqual(50f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(150f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_should_not_be_part_of_max_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 250; - root.Height = 250; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginTop = 20; - root_child0.Width = 100; - root_child0.Height = 100; - root_child0.MaxHeight = 100; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(250f, root.LayoutWidth); - Assert.AreEqual(250f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(20f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(250f, root.LayoutWidth); - Assert.AreEqual(250f, root.LayoutHeight); - - Assert.AreEqual(150f, root_child0.LayoutX); - Assert.AreEqual(20f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_should_not_be_part_of_max_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 250; - root.Height = 250; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = 20; - root_child0.Width = 100; - root_child0.MaxWidth = 100; - root_child0.Height = 100; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(250f, root.LayoutWidth); - Assert.AreEqual(250f, root.LayoutHeight); - - Assert.AreEqual(20f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(250f, root.LayoutWidth); - Assert.AreEqual(250f, root.LayoutHeight); - - Assert.AreEqual(150f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_auto_left_right_child_bigger_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.Width = 52; - root.Height = 52; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = YogaValue.Auto(); - root_child0.MarginRight = YogaValue.Auto(); - root_child0.Width = 72; - root_child0.Height = 72; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-20f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_auto_left_child_bigger_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.Width = 52; - root.Height = 52; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = YogaValue.Auto(); - root_child0.Width = 72; - root_child0.Height = 72; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-20f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_fix_left_auto_right_child_bigger_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.Width = 52; - root.Height = 52; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = 10; - root_child0.MarginRight = YogaValue.Auto(); - root_child0.Width = 72; - root_child0.Height = 72; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-20f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_auto_left_fix_right_child_bigger_than_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.Width = 52; - root.Height = 52; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MarginLeft = YogaValue.Auto(); - root_child0.MarginRight = 10; - root_child0.Width = 72; - root_child0.Height = 72; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(52f, root.LayoutWidth); - Assert.AreEqual(52f, root.LayoutHeight); - - Assert.AreEqual(-30f, root_child0.LayoutX); - Assert.AreEqual(-10f, root_child0.LayoutY); - Assert.AreEqual(72f, root_child0.LayoutWidth); - Assert.AreEqual(72f, root_child0.LayoutHeight); - } - - [Test] - public void Test_margin_auto_top_stretching_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexShrink = 1; - root_child0.FlexBasis = 0.Percent(); - root_child0.MarginTop = YogaValue.Auto(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(150f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(150f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_margin_auto_left_stretching_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexShrink = 1; - root_child0.FlexBasis = 0.Percent(); - root_child0.MarginLeft = YogaValue.Auto(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(200f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(150f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(200f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(150f, root_child0.LayoutHeight); - - Assert.AreEqual(75f, root_child1.LayoutX); - Assert.AreEqual(150f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGMinMaxDimensionTest.cs b/csharp/tests/Facebook.Yoga/YGMinMaxDimensionTest.cs deleted file mode 100644 index 0d9c78c2..00000000 --- a/csharp/tests/Facebook.Yoga/YGMinMaxDimensionTest.cs +++ /dev/null @@ -1,1304 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGMinMaxDimensionTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGMinMaxDimensionTest - { - [Test] - public void Test_max_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MaxWidth = 50; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_max_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root_child0.MaxHeight = 50; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - } - - [Test] - public void Test_min_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MinHeight = 60; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(80f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(80f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(20f, root_child1.LayoutHeight); - } - - [Test] - public void Test_min_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MinWidth = 60; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(80f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(20f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(20f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(20f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_justify_content_min_max() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.Width = 100; - root.MinHeight = 100; - root.MaxHeight = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 60; - root_child0.Height = 60; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(20f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(40f, root_child0.LayoutX); - Assert.AreEqual(20f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - } - - [Test] - public void Test_align_items_min_max() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.Center; - root.MinWidth = 100; - root.MaxWidth = 200; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 60; - root_child0.Height = 60; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(20f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(20f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - } - - [Test] - public void Test_justify_content_overflow_min_max() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.MinHeight = 100; - root.MaxHeight = 110; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50; - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root_child1.Height = 50; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 50; - root_child2.Height = 50; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(50f, root.LayoutWidth); - Assert.AreEqual(110f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(-20f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(30f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(80f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(50f, root.LayoutWidth); - Assert.AreEqual(110f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(-20f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(30f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(80f, root_child2.LayoutY); - Assert.AreEqual(50f, root_child2.LayoutWidth); - Assert.AreEqual(50f, root_child2.LayoutHeight); - } - - [Test] - public void Test_flex_grow_to_min() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.MinHeight = 100; - root.MaxHeight = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexShrink = 1; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_grow_in_at_most_container() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.AlignItems = YogaAlign.FlexStart; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexBasis = 0; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(0f, root_child0_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_flex_grow_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 0; - root_child0.Height = 100; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - } - - [Test] - public void Test_flex_grow_within_constrained_min_max_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.MinHeight = 100; - root.MaxHeight = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_grow_within_max_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.MaxWidth = 100; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.Height = 20; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_flex_grow_within_constrained_max_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.MaxWidth = 300; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.Height = 20; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(200f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(200f, root_child0_child0.LayoutWidth); - Assert.AreEqual(20f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_flex_root_ignored() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexGrow = 1; - root.Width = 100; - root.MinHeight = 100; - root.MaxHeight = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 200; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 100; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(300f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(200f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(300f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(200f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_grow_root_minimized() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.MinHeight = 100; - root.MaxHeight = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MinHeight = 100; - root_child0.MaxHeight = 500; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexBasis = 200; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.Height = 100; - root_child0.Insert(1, root_child0_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(300f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(300f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(200f, root_child0_child1.LayoutY); - Assert.AreEqual(100f, root_child0_child1.LayoutWidth); - Assert.AreEqual(100f, root_child0_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(300f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(300f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(200f, root_child0_child1.LayoutY); - Assert.AreEqual(100f, root_child0_child1.LayoutWidth); - Assert.AreEqual(100f, root_child0_child1.LayoutHeight); - } - - [Test] - public void Test_flex_grow_height_maximized() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MinHeight = 100; - root_child0.MaxHeight = 500; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexBasis = 200; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.Height = 100; - root_child0.Insert(1, root_child0_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(500f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(400f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(400f, root_child0_child1.LayoutY); - Assert.AreEqual(100f, root_child0_child1.LayoutWidth); - Assert.AreEqual(100f, root_child0_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(500f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(400f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(400f, root_child0_child1.LayoutY); - Assert.AreEqual(100f, root_child0_child1.LayoutWidth); - Assert.AreEqual(100f, root_child0_child1.LayoutHeight); - } - - [Test] - public void Test_flex_grow_within_constrained_min_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.MinWidth = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Width = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(50f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(50f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_grow_within_constrained_min_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.MinHeight = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(0f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_flex_grow_within_constrained_max_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.MaxWidth = 100; - root_child0.Height = 100; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexShrink = 1; - root_child0_child0.FlexBasis = 100; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.Width = 50; - root_child0.Insert(1, root_child0_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child1.LayoutY); - Assert.AreEqual(50f, root_child0_child1.LayoutWidth); - Assert.AreEqual(100f, root_child0_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child1.LayoutY); - Assert.AreEqual(50f, root_child0_child1.LayoutWidth); - Assert.AreEqual(100f, root_child0_child1.LayoutHeight); - } - - [Test] - public void Test_flex_grow_within_constrained_max_column() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.MaxHeight = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexShrink = 1; - root_child0.FlexBasis = 100; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.Height = 50; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_child_min_max_width_flexing() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 120; - root.Height = 50; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 0; - root_child0.MinWidth = 60; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexBasis = 50.Percent(); - root_child1.MaxWidth = 20; - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(120f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(100f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(20f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(120f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(20f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(20f, root_child1.LayoutWidth); - Assert.AreEqual(50f, root_child1.LayoutHeight); - } - - [Test] - public void Test_min_width_overrides_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 50; - root.MinWidth = 100; - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(0f, root.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(0f, root.LayoutHeight); - } - - [Test] - public void Test_max_width_overrides_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.MaxWidth = 100; - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(0f, root.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(0f, root.LayoutHeight); - } - - [Test] - public void Test_min_height_overrides_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Height = 50; - root.MinHeight = 100; - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - } - - [Test] - public void Test_max_height_overrides_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Height = 200; - root.MaxHeight = 100; - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - } - - [Test] - public void Test_min_max_percent_no_width_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.AlignItems = YogaAlign.FlexStart; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.MinWidth = 10.Percent(); - root_child0.MaxWidth = 10.Percent(); - root_child0.MinHeight = 10.Percent(); - root_child0.MaxHeight = 10.Percent(); - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGPaddingTest.cs b/csharp/tests/Facebook.Yoga/YGPaddingTest.cs deleted file mode 100644 index 9b6533cd..00000000 --- a/csharp/tests/Facebook.Yoga/YGPaddingTest.cs +++ /dev/null @@ -1,265 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGPaddingTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGPaddingTest - { - [Test] - public void Test_padding_no_size() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.PaddingLeft = 10; - root.PaddingTop = 10; - root.PaddingRight = 10; - root.PaddingBottom = 10; - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(20f, root.LayoutWidth); - Assert.AreEqual(20f, root.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(20f, root.LayoutWidth); - Assert.AreEqual(20f, root.LayoutHeight); - } - - [Test] - public void Test_padding_container_match_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.PaddingLeft = 10; - root.PaddingTop = 10; - root.PaddingRight = 10; - root.PaddingBottom = 10; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(30f, root.LayoutWidth); - Assert.AreEqual(30f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(30f, root.LayoutWidth); - Assert.AreEqual(30f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_padding_flex_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.PaddingLeft = 10; - root.PaddingTop = 10; - root.PaddingRight = 10; - root.PaddingBottom = 10; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.Width = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(80f, root_child0.LayoutHeight); - } - - [Test] - public void Test_padding_stretch_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.PaddingLeft = 10; - root.PaddingTop = 10; - root.PaddingRight = 10; - root.PaddingBottom = 10; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(10f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(80f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_padding_center_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.PaddingStart = 10; - root.PaddingEnd = 20; - root.PaddingBottom = 20; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(40f, root_child0.LayoutX); - Assert.AreEqual(35f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(35f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_child_with_padding_align_end() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.FlexEnd; - root.AlignItems = YogaAlign.FlexEnd; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PaddingLeft = 20; - root_child0.PaddingTop = 20; - root_child0.PaddingRight = 20; - root_child0.PaddingBottom = 20; - root_child0.Width = 100; - root_child0.Height = 100; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(100f, root_child0.LayoutX); - Assert.AreEqual(100f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(100f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGPercentageTest.cs b/csharp/tests/Facebook.Yoga/YGPercentageTest.cs deleted file mode 100644 index 237186db..00000000 --- a/csharp/tests/Facebook.Yoga/YGPercentageTest.cs +++ /dev/null @@ -1,1201 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGPercentageTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGPercentageTest - { - [Test] - public void Test_percentage_width_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 30.Percent(); - root_child0.Height = 30.Percent(); - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(140f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - } - - [Test] - public void Test_percentage_position_left_top() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 400; - root.Height = 400; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Left = 10.Percent(); - root_child0.Top = 20.Percent(); - root_child0.Width = 45.Percent(); - root_child0.Height = 55.Percent(); - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(400f, root.LayoutWidth); - Assert.AreEqual(400f, root.LayoutHeight); - - Assert.AreEqual(40f, root_child0.LayoutX); - Assert.AreEqual(80f, root_child0.LayoutY); - Assert.AreEqual(180f, root_child0.LayoutWidth); - Assert.AreEqual(220f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(400f, root.LayoutWidth); - Assert.AreEqual(400f, root.LayoutHeight); - - Assert.AreEqual(260f, root_child0.LayoutX); - Assert.AreEqual(80f, root_child0.LayoutY); - Assert.AreEqual(180f, root_child0.LayoutWidth); - Assert.AreEqual(220f, root_child0.LayoutHeight); - } - - [Test] - public void Test_percentage_position_bottom_right() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 500; - root.Height = 500; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Right = 20.Percent(); - root_child0.Bottom = 10.Percent(); - root_child0.Width = 55.Percent(); - root_child0.Height = 15.Percent(); - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(-100f, root_child0.LayoutX); - Assert.AreEqual(-50f, root_child0.LayoutY); - Assert.AreEqual(275f, root_child0.LayoutWidth); - Assert.AreEqual(75f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(500f, root.LayoutWidth); - Assert.AreEqual(500f, root.LayoutHeight); - - Assert.AreEqual(125f, root_child0.LayoutX); - Assert.AreEqual(-50f, root_child0.LayoutY); - Assert.AreEqual(275f, root_child0.LayoutWidth); - Assert.AreEqual(75f, root_child0.LayoutHeight); - } - - [Test] - public void Test_percentage_flex_basis() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexBasis = 25.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(125f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(125f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(75f, root_child1.LayoutWidth); - Assert.AreEqual(200f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(75f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(125f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(75f, root_child1.LayoutWidth); - Assert.AreEqual(200f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_flex_basis_cross() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.FlexBasis = 25.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(125f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(125f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(75f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(125f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(125f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(75f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_flex_basis_cross_min_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MinHeight = 60.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 2; - root_child1.MinHeight = 10.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(140f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(140f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(60f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(140f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(140f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(60f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_flex_basis_main_max_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 10.Percent(); - root_child0.MaxHeight = 60.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 4; - root_child1.FlexBasis = 10.Percent(); - root_child1.MaxHeight = 20.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(52f, root_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0.LayoutHeight); - - Assert.AreEqual(52f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(148f, root_child1.LayoutWidth); - Assert.AreEqual(40f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(148f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(52f, root_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(148f, root_child1.LayoutWidth); - Assert.AreEqual(40f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_flex_basis_cross_max_height() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 10.Percent(); - root_child0.MaxHeight = 60.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 4; - root_child1.FlexBasis = 10.Percent(); - root_child1.MaxHeight = 20.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(120f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(40f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(120f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(120f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(40f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_flex_basis_main_max_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 15.Percent(); - root_child0.MaxWidth = 60.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 4; - root_child1.FlexBasis = 10.Percent(); - root_child1.MaxWidth = 20.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(120f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(120f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(40f, root_child1.LayoutWidth); - Assert.AreEqual(200f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(120f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(40f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(40f, root_child1.LayoutWidth); - Assert.AreEqual(200f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_flex_basis_cross_max_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 10.Percent(); - root_child0.MaxWidth = 60.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 4; - root_child1.FlexBasis = 15.Percent(); - root_child1.MaxWidth = 20.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(120f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(40f, root_child1.LayoutWidth); - Assert.AreEqual(150f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(120f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(160f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(40f, root_child1.LayoutWidth); - Assert.AreEqual(150f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_flex_basis_main_min_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 15.Percent(); - root_child0.MinWidth = 60.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 4; - root_child1.FlexBasis = 10.Percent(); - root_child1.MinWidth = 20.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(120f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(120f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(80f, root_child1.LayoutWidth); - Assert.AreEqual(200f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(80f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(120f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(80f, root_child1.LayoutWidth); - Assert.AreEqual(200f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_flex_basis_cross_min_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 10.Percent(); - root_child0.MinWidth = 60.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 4; - root_child1.FlexBasis = 15.Percent(); - root_child1.MinWidth = 20.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(150f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(50f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(150f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_multiple_nested_with_padding_margin_and_percentage_values() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 10.Percent(); - root_child0.MarginLeft = 5; - root_child0.MarginTop = 5; - root_child0.MarginRight = 5; - root_child0.MarginBottom = 5; - root_child0.PaddingLeft = 3; - root_child0.PaddingTop = 3; - root_child0.PaddingRight = 3; - root_child0.PaddingBottom = 3; - root_child0.MinWidth = 60.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.MarginLeft = 5; - root_child0_child0.MarginTop = 5; - root_child0_child0.MarginRight = 5; - root_child0_child0.MarginBottom = 5; - root_child0_child0.PaddingLeft = 3.Percent(); - root_child0_child0.PaddingTop = 3.Percent(); - root_child0_child0.PaddingRight = 3.Percent(); - root_child0_child0.PaddingBottom = 3.Percent(); - root_child0_child0.Width = 50.Percent(); - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.MarginLeft = 5.Percent(); - root_child0_child0_child0.MarginTop = 5.Percent(); - root_child0_child0_child0.MarginRight = 5.Percent(); - root_child0_child0_child0.MarginBottom = 5.Percent(); - root_child0_child0_child0.PaddingLeft = 3; - root_child0_child0_child0.PaddingTop = 3; - root_child0_child0_child0.PaddingRight = 3; - root_child0_child0_child0.PaddingBottom = 3; - root_child0_child0_child0.Width = 45.Percent(); - root_child0_child0.Insert(0, root_child0_child0_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 4; - root_child1.FlexBasis = 15.Percent(); - root_child1.MinWidth = 20.Percent(); - root.Insert(1, root_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(5f, root_child0.LayoutX); - Assert.AreEqual(5f, root_child0.LayoutY); - Assert.AreEqual(190f, root_child0.LayoutWidth); - Assert.AreEqual(48f, root_child0.LayoutHeight); - - Assert.AreEqual(8f, root_child0_child0.LayoutX); - Assert.AreEqual(8f, root_child0_child0.LayoutY); - Assert.AreEqual(92f, root_child0_child0.LayoutWidth); - Assert.AreEqual(25f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(10f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(10f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(36f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(6f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(58f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(142f, root_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(5f, root_child0.LayoutX); - Assert.AreEqual(5f, root_child0.LayoutY); - Assert.AreEqual(190f, root_child0.LayoutWidth); - Assert.AreEqual(48f, root_child0.LayoutHeight); - - Assert.AreEqual(90f, root_child0_child0.LayoutX); - Assert.AreEqual(8f, root_child0_child0.LayoutY); - Assert.AreEqual(92f, root_child0_child0.LayoutWidth); - Assert.AreEqual(25f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(46f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(10f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(36f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(6f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(58f, root_child1.LayoutY); - Assert.AreEqual(200f, root_child1.LayoutWidth); - Assert.AreEqual(142f, root_child1.LayoutHeight); - } - - [Test] - public void Test_percentage_margin_should_calculate_based_only_on_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.MarginLeft = 10.Percent(); - root_child0.MarginTop = 10.Percent(); - root_child0.MarginRight = 10.Percent(); - root_child0.MarginBottom = 10.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 10; - root_child0_child0.Height = 10; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(20f, root_child0.LayoutX); - Assert.AreEqual(20f, root_child0.LayoutY); - Assert.AreEqual(160f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(10f, root_child0_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(20f, root_child0.LayoutX); - Assert.AreEqual(20f, root_child0.LayoutY); - Assert.AreEqual(160f, root_child0.LayoutWidth); - Assert.AreEqual(60f, root_child0.LayoutHeight); - - Assert.AreEqual(150f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(10f, root_child0_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_percentage_padding_should_calculate_based_only_on_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.PaddingLeft = 10.Percent(); - root_child0.PaddingTop = 10.Percent(); - root_child0.PaddingRight = 10.Percent(); - root_child0.PaddingBottom = 10.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 10; - root_child0_child0.Height = 10; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(20f, root_child0_child0.LayoutX); - Assert.AreEqual(20f, root_child0_child0.LayoutY); - Assert.AreEqual(10f, root_child0_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(200f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(170f, root_child0_child0.LayoutX); - Assert.AreEqual(20f, root_child0_child0.LayoutY); - Assert.AreEqual(10f, root_child0_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_percentage_absolute_position() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 200; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Left = 30.Percent(); - root_child0.Top = 10.Percent(); - root_child0.Width = 10; - root_child0.Height = 10; - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(60f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(60f, root_child0.LayoutX); - Assert.AreEqual(10f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - } - - [Test] - public void Test_percentage_width_height_undefined_parent_size() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 50.Percent(); - root_child0.Height = 50.Percent(); - root.Insert(0, root_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(0f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(0f, root.LayoutWidth); - Assert.AreEqual(0f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(0f, root_child0.LayoutWidth); - Assert.AreEqual(0f, root_child0.LayoutHeight); - } - - [Test] - public void Test_percent_within_flex_grow() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 350; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 100; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.Width = 100.Percent(); - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child2 = new YogaNode(config); - root_child2.Width = 100; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(350f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(100f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(150f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(150f, root_child1_child0.LayoutWidth); - Assert.AreEqual(0f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(250f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(350f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(250f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(100f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(150f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(150f, root_child1_child0.LayoutWidth); - Assert.AreEqual(0f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - } - - [Test] - public void Test_percentage_container_in_wrapping_container() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.JustifyContent = YogaJustify.Center; - root.AlignItems = YogaAlign.Center; - root.Width = 200; - root.Height = 200; - - YogaNode root_child0 = new YogaNode(config); - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexDirection = YogaFlexDirection.Row; - root_child0_child0.JustifyContent = YogaJustify.Center; - root_child0_child0.Width = 100.Percent(); - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child0_child0 = new YogaNode(config); - root_child0_child0_child0.Width = 50; - root_child0_child0_child0.Height = 50; - root_child0_child0.Insert(0, root_child0_child0_child0); - - YogaNode root_child0_child0_child1 = new YogaNode(config); - root_child0_child0_child1.Width = 50; - root_child0_child0_child1.Height = 50; - root_child0_child0.Insert(1, root_child0_child0_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(75f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child0_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child1.LayoutY); - Assert.AreEqual(50f, root_child0_child0_child1.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(200f, root.LayoutWidth); - Assert.AreEqual(200f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(75f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(50f, root_child0_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child0.LayoutY); - Assert.AreEqual(50f, root_child0_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child0_child1.LayoutY); - Assert.AreEqual(50f, root_child0_child0_child1.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0_child1.LayoutHeight); - } - - [Test] - public void Test_percent_absolute_position() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 60; - root.Height = 50; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexDirection = YogaFlexDirection.Row; - root_child0.PositionType = YogaPositionType.Absolute; - root_child0.Left = 50.Percent(); - root_child0.Width = 100.Percent(); - root_child0.Height = 50; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 100.Percent(); - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.Width = 100.Percent(); - root_child0.Insert(1, root_child0_child1); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(60f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(30f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(60f, root_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(60f, root_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child1.LayoutY); - Assert.AreEqual(60f, root_child0_child1.LayoutWidth); - Assert.AreEqual(50f, root_child0_child1.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(60f, root.LayoutWidth); - Assert.AreEqual(50f, root.LayoutHeight); - - Assert.AreEqual(30f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(60f, root_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(60f, root_child0_child0.LayoutWidth); - Assert.AreEqual(50f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(-60f, root_child0_child1.LayoutX); - Assert.AreEqual(0f, root_child0_child1.LayoutY); - Assert.AreEqual(60f, root_child0_child1.LayoutWidth); - Assert.AreEqual(50f, root_child0_child1.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGRoundingTest.cs b/csharp/tests/Facebook.Yoga/YGRoundingTest.cs deleted file mode 100644 index 471d8ea4..00000000 --- a/csharp/tests/Facebook.Yoga/YGRoundingTest.cs +++ /dev/null @@ -1,1084 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGRoundingTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGRoundingTest - { - [Test] - public void Test_rounding_flex_basis_flex_grow_row_width_of_100() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(33f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(33f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(34f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(67f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(33f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(67f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(33f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(33f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(34f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(33f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_flex_basis_flex_grow_row_prime_number_width() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 113; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root.Insert(2, root_child2); - - YogaNode root_child3 = new YogaNode(config); - root_child3.FlexGrow = 1; - root.Insert(3, root_child3); - - YogaNode root_child4 = new YogaNode(config); - root_child4.FlexGrow = 1; - root.Insert(4, root_child4); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(113f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(23f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(23f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(22f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(45f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(23f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - Assert.AreEqual(68f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(22f, root_child3.LayoutWidth); - Assert.AreEqual(100f, root_child3.LayoutHeight); - - Assert.AreEqual(90f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(23f, root_child4.LayoutWidth); - Assert.AreEqual(100f, root_child4.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(113f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(90f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(23f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(68f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(22f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(45f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(23f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - Assert.AreEqual(23f, root_child3.LayoutX); - Assert.AreEqual(0f, root_child3.LayoutY); - Assert.AreEqual(22f, root_child3.LayoutWidth); - Assert.AreEqual(100f, root_child3.LayoutHeight); - - Assert.AreEqual(0f, root_child4.LayoutX); - Assert.AreEqual(0f, root_child4.LayoutY); - Assert.AreEqual(23f, root_child4.LayoutWidth); - Assert.AreEqual(100f, root_child4.LayoutHeight); - } - - [Test] - public void Test_rounding_flex_basis_flex_shrink_row() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 101; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexShrink = 1; - root_child0.FlexBasis = 100; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexBasis = 25; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexBasis = 25; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(101f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(51f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(51f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(25f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(76f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(25f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(101f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(50f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(51f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(25f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(25f, root_child1.LayoutWidth); - Assert.AreEqual(100f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(25f, root_child2.LayoutWidth); - Assert.AreEqual(100f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_flex_basis_overrides_main_size() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 113; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50; - root_child0.Height = 20; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(64f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(64f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(64f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(64f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_total_fractial() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 87.4f; - root.Height = 113.4f; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 0.7f; - root_child0.FlexBasis = 50.3f; - root_child0.Height = 20.3f; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1.6f; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1.1f; - root_child2.Height = 10.7f; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(87f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(87f, root_child0.LayoutWidth); - Assert.AreEqual(59f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(59f, root_child1.LayoutY); - Assert.AreEqual(87f, root_child1.LayoutWidth); - Assert.AreEqual(30f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(87f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(87f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(87f, root_child0.LayoutWidth); - Assert.AreEqual(59f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(59f, root_child1.LayoutY); - Assert.AreEqual(87f, root_child1.LayoutWidth); - Assert.AreEqual(30f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(87f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_total_fractial_nested() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 87.4f; - root.Height = 113.4f; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 0.7f; - root_child0.FlexBasis = 50.3f; - root_child0.Height = 20.3f; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.FlexGrow = 1; - root_child0_child0.FlexBasis = 0.3f; - root_child0_child0.Bottom = 13.3f; - root_child0_child0.Height = 9.9f; - root_child0.Insert(0, root_child0_child0); - - YogaNode root_child0_child1 = new YogaNode(config); - root_child0_child1.FlexGrow = 4; - root_child0_child1.FlexBasis = 0.3f; - root_child0_child1.Top = 13.3f; - root_child0_child1.Height = 1.1f; - root_child0.Insert(1, root_child0_child1); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1.6f; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1.1f; - root_child2.Height = 10.7f; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(87f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(87f, root_child0.LayoutWidth); - Assert.AreEqual(59f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(-13f, root_child0_child0.LayoutY); - Assert.AreEqual(87f, root_child0_child0.LayoutWidth); - Assert.AreEqual(12f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(25f, root_child0_child1.LayoutY); - Assert.AreEqual(87f, root_child0_child1.LayoutWidth); - Assert.AreEqual(47f, root_child0_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(59f, root_child1.LayoutY); - Assert.AreEqual(87f, root_child1.LayoutWidth); - Assert.AreEqual(30f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(87f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(87f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(87f, root_child0.LayoutWidth); - Assert.AreEqual(59f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(-13f, root_child0_child0.LayoutY); - Assert.AreEqual(87f, root_child0_child0.LayoutWidth); - Assert.AreEqual(12f, root_child0_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child1.LayoutX); - Assert.AreEqual(25f, root_child0_child1.LayoutY); - Assert.AreEqual(87f, root_child0_child1.LayoutWidth); - Assert.AreEqual(47f, root_child0_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(59f, root_child1.LayoutY); - Assert.AreEqual(87f, root_child1.LayoutWidth); - Assert.AreEqual(30f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(87f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_fractial_input_1() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 113.4f; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50; - root_child0.Height = 20; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(64f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(64f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(64f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(64f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_fractial_input_2() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 113.6f; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50; - root_child0.Height = 20; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(114f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(65f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(65f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(24f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(25f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(114f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(65f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(65f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(24f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(25f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_fractial_input_3() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Top = 0.3f; - root.Width = 100; - root.Height = 113.4f; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50; - root_child0.Height = 20; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(114f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(65f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(64f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(24f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(25f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(114f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(65f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(64f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(24f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(25f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_fractial_input_4() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Top = 0.7f; - root.Width = 100; - root.Height = 113.4f; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.FlexBasis = 50; - root_child0.Height = 20; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(1f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(64f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(64f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(1f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(113f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(64f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(64f, root_child1.LayoutY); - Assert.AreEqual(100f, root_child1.LayoutWidth); - Assert.AreEqual(25f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(89f, root_child2.LayoutY); - Assert.AreEqual(100f, root_child2.LayoutWidth); - Assert.AreEqual(24f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_inner_node_controversy_horizontal() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 320; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.Height = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Height = 10; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.FlexGrow = 1; - root_child1_child0.Height = 10; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.Height = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(320f, root.LayoutWidth); - Assert.AreEqual(10f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(107f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(107f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(106f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(106f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(213f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(107f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(320f, root.LayoutWidth); - Assert.AreEqual(10f, root.LayoutHeight); - - Assert.AreEqual(213f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(107f, root_child0.LayoutWidth); - Assert.AreEqual(10f, root_child0.LayoutHeight); - - Assert.AreEqual(107f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(106f, root_child1.LayoutWidth); - Assert.AreEqual(10f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(106f, root_child1_child0.LayoutWidth); - Assert.AreEqual(10f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(107f, root_child2.LayoutWidth); - Assert.AreEqual(10f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_inner_node_controversy_vertical() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Height = 320; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.Width = 10; - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Width = 10; - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.FlexGrow = 1; - root_child1_child0.Width = 10; - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.Width = 10; - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(10f, root.LayoutWidth); - Assert.AreEqual(320f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(107f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(107f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(106f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(10f, root_child1_child0.LayoutWidth); - Assert.AreEqual(106f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(213f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(107f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(10f, root.LayoutWidth); - Assert.AreEqual(320f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(10f, root_child0.LayoutWidth); - Assert.AreEqual(107f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1.LayoutX); - Assert.AreEqual(107f, root_child1.LayoutY); - Assert.AreEqual(10f, root_child1.LayoutWidth); - Assert.AreEqual(106f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(10f, root_child1_child0.LayoutWidth); - Assert.AreEqual(106f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(213f, root_child2.LayoutY); - Assert.AreEqual(10f, root_child2.LayoutWidth); - Assert.AreEqual(107f, root_child2.LayoutHeight); - } - - [Test] - public void Test_rounding_inner_node_controversy_combined() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.FlexDirection = YogaFlexDirection.Row; - root.Width = 640; - root.Height = 320; - - YogaNode root_child0 = new YogaNode(config); - root_child0.FlexGrow = 1; - root_child0.Height = 100.Percent(); - root.Insert(0, root_child0); - - YogaNode root_child1 = new YogaNode(config); - root_child1.FlexGrow = 1; - root_child1.Height = 100.Percent(); - root.Insert(1, root_child1); - - YogaNode root_child1_child0 = new YogaNode(config); - root_child1_child0.FlexGrow = 1; - root_child1_child0.Width = 100.Percent(); - root_child1.Insert(0, root_child1_child0); - - YogaNode root_child1_child1 = new YogaNode(config); - root_child1_child1.FlexGrow = 1; - root_child1_child1.Width = 100.Percent(); - root_child1.Insert(1, root_child1_child1); - - YogaNode root_child1_child1_child0 = new YogaNode(config); - root_child1_child1_child0.FlexGrow = 1; - root_child1_child1_child0.Width = 100.Percent(); - root_child1_child1.Insert(0, root_child1_child1_child0); - - YogaNode root_child1_child2 = new YogaNode(config); - root_child1_child2.FlexGrow = 1; - root_child1_child2.Width = 100.Percent(); - root_child1.Insert(2, root_child1_child2); - - YogaNode root_child2 = new YogaNode(config); - root_child2.FlexGrow = 1; - root_child2.Height = 100.Percent(); - root.Insert(2, root_child2); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(640f, root.LayoutWidth); - Assert.AreEqual(320f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(213f, root_child0.LayoutWidth); - Assert.AreEqual(320f, root_child0.LayoutHeight); - - Assert.AreEqual(213f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(214f, root_child1.LayoutWidth); - Assert.AreEqual(320f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(214f, root_child1_child0.LayoutWidth); - Assert.AreEqual(107f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child1.LayoutX); - Assert.AreEqual(107f, root_child1_child1.LayoutY); - Assert.AreEqual(214f, root_child1_child1.LayoutWidth); - Assert.AreEqual(106f, root_child1_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child1_child0.LayoutY); - Assert.AreEqual(214f, root_child1_child1_child0.LayoutWidth); - Assert.AreEqual(106f, root_child1_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child2.LayoutX); - Assert.AreEqual(213f, root_child1_child2.LayoutY); - Assert.AreEqual(214f, root_child1_child2.LayoutWidth); - Assert.AreEqual(107f, root_child1_child2.LayoutHeight); - - Assert.AreEqual(427f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(213f, root_child2.LayoutWidth); - Assert.AreEqual(320f, root_child2.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(640f, root.LayoutWidth); - Assert.AreEqual(320f, root.LayoutHeight); - - Assert.AreEqual(427f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(213f, root_child0.LayoutWidth); - Assert.AreEqual(320f, root_child0.LayoutHeight); - - Assert.AreEqual(213f, root_child1.LayoutX); - Assert.AreEqual(0f, root_child1.LayoutY); - Assert.AreEqual(214f, root_child1.LayoutWidth); - Assert.AreEqual(320f, root_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child0.LayoutY); - Assert.AreEqual(214f, root_child1_child0.LayoutWidth); - Assert.AreEqual(107f, root_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child1.LayoutX); - Assert.AreEqual(107f, root_child1_child1.LayoutY); - Assert.AreEqual(214f, root_child1_child1.LayoutWidth); - Assert.AreEqual(106f, root_child1_child1.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child1_child0.LayoutX); - Assert.AreEqual(0f, root_child1_child1_child0.LayoutY); - Assert.AreEqual(214f, root_child1_child1_child0.LayoutWidth); - Assert.AreEqual(106f, root_child1_child1_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child1_child2.LayoutX); - Assert.AreEqual(213f, root_child1_child2.LayoutY); - Assert.AreEqual(214f, root_child1_child2.LayoutWidth); - Assert.AreEqual(107f, root_child1_child2.LayoutHeight); - - Assert.AreEqual(0f, root_child2.LayoutX); - Assert.AreEqual(0f, root_child2.LayoutY); - Assert.AreEqual(213f, root_child2.LayoutWidth); - Assert.AreEqual(320f, root_child2.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YGSizeOverflowTest.cs b/csharp/tests/Facebook.Yoga/YGSizeOverflowTest.cs deleted file mode 100644 index 1f9fae01..00000000 --- a/csharp/tests/Facebook.Yoga/YGSizeOverflowTest.cs +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the LICENSE - * file in the root directory of this source tree. - */ -// @Generated by gentest/gentest.rb from gentest/fixtures/YGSizeOverflowTest.html - -using System; -using NUnit.Framework; - -namespace Facebook.Yoga -{ - [TestFixture] - public class YGSizeOverflowTest - { - [Test] - public void Test_nested_overflowing_child() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 200; - root_child0_child0.Height = 200; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(200f, root_child0_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(-100f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(200f, root_child0_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_nested_overflowing_child_in_constraint_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 100; - root_child0.Height = 100; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 200; - root_child0_child0.Height = 200; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(200f, root_child0_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(100f, root_child0.LayoutHeight); - - Assert.AreEqual(-100f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(200f, root_child0_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0_child0.LayoutHeight); - } - - [Test] - public void Test_parent_wrap_child_size_overflowing_parent() - { - YogaConfig config = new YogaConfig(); - - YogaNode root = new YogaNode(config); - root.Width = 100; - root.Height = 100; - - YogaNode root_child0 = new YogaNode(config); - root_child0.Width = 100; - root.Insert(0, root_child0); - - YogaNode root_child0_child0 = new YogaNode(config); - root_child0_child0.Width = 100; - root_child0_child0.Height = 200; - root_child0.Insert(0, root_child0_child0); - root.StyleDirection = YogaDirection.LTR; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0_child0.LayoutHeight); - - root.StyleDirection = YogaDirection.RTL; - root.CalculateLayout(); - - Assert.AreEqual(0f, root.LayoutX); - Assert.AreEqual(0f, root.LayoutY); - Assert.AreEqual(100f, root.LayoutWidth); - Assert.AreEqual(100f, root.LayoutHeight); - - Assert.AreEqual(0f, root_child0.LayoutX); - Assert.AreEqual(0f, root_child0.LayoutY); - Assert.AreEqual(100f, root_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0.LayoutHeight); - - Assert.AreEqual(0f, root_child0_child0.LayoutX); - Assert.AreEqual(0f, root_child0_child0.LayoutY); - Assert.AreEqual(100f, root_child0_child0.LayoutWidth); - Assert.AreEqual(200f, root_child0_child0.LayoutHeight); - } - - } -} diff --git a/csharp/tests/Facebook.Yoga/YogaConfigTest.cs b/csharp/tests/Facebook.Yoga/YogaConfigTest.cs deleted file mode 100644 index 3c341709..00000000 --- a/csharp/tests/Facebook.Yoga/YogaConfigTest.cs +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using NUnit.Framework; -using System; - -/** - * Tests for {@link YogaConfig}. - */ -namespace Facebook.Yoga -{ - [TestFixture] - public class YogaConfigTest - { - [Test] - public void TestUseWebDefaults() - { - YogaNode node0 = new YogaNode(new YogaConfig{UseWebDefaults = true}); - Assert.AreEqual(YogaFlexDirection.Row, node0.FlexDirection); - - node0.Reset(); - Assert.AreEqual(YogaFlexDirection.Row, node0.FlexDirection); - - YogaConfig config = new YogaConfig(); - config.UseWebDefaults = true; - YogaNode node1 = new YogaNode(config); - Assert.AreEqual(YogaFlexDirection.Row, node1.FlexDirection); - - node1.Reset(); - Assert.AreEqual(YogaFlexDirection.Row, node1.FlexDirection); - } - - [Test] - public void TestDefaultConfig() - { - YogaNode node0 = new YogaNode(); - Assert.AreEqual(YogaFlexDirection.Column, node0.FlexDirection); - - YogaNode node1 = new YogaNode(new YogaConfig()); - Assert.AreEqual(YogaFlexDirection.Column, node1.FlexDirection); - } - - [Test] - public void TestCopyConstructor() - { - YogaNode srcNode = new YogaNode(new YogaConfig{UseWebDefaults = true}); - YogaNode node0 = new YogaNode(srcNode); - Assert.AreEqual(YogaFlexDirection.Row, node0.FlexDirection); - - node0.FlexDirection = YogaFlexDirection.Column; - Assert.AreEqual(YogaFlexDirection.Column, node0.FlexDirection); - - node0.Reset(); - Assert.AreEqual(YogaFlexDirection.Row, node0.FlexDirection); - - YogaNode node1 = new YogaNode(srcNode) - { - FlexDirection = YogaFlexDirection.Column - }; - Assert.AreEqual(YogaFlexDirection.Column, node1.FlexDirection); - - node1.Reset(); - Assert.AreEqual(YogaFlexDirection.Row, node1.FlexDirection); - } - -#if !UNITY_5_4_OR_NEWER - public static void ForceGC() - { - YogaNodeTest.ForceGC(); - } - - [Test] - public void TestDestructor() - { - ForceGC(); - int instanceCount = YogaConfig.GetInstanceCount(); - TestDestructorForGC(instanceCount); - ForceGC(); - Assert.AreEqual(instanceCount, YogaConfig.GetInstanceCount()); - } - - private void TestDestructorForGC(int instanceCount) - { - YogaConfig config = new YogaConfig(); - Assert.IsNotNull(config); - Assert.AreEqual(instanceCount + 1, YogaConfig.GetInstanceCount()); - config = null; - } - - [Test] - public void TestRetainConfig() - { - ForceGC(); - int nodeInstanceCount = YogaNode.GetInstanceCount(); - int configInstanceCount = YogaConfig.GetInstanceCount(); - TestRetainConfigForGC(nodeInstanceCount, configInstanceCount); - ForceGC(); - - Assert.AreEqual(nodeInstanceCount, YogaNode.GetInstanceCount()); - Assert.AreEqual(configInstanceCount, YogaConfig.GetInstanceCount()); - } - - private void TestRetainConfigForGC(int nodeInstanceCount, int configInstanceCount) - { - ForceGC(); - Assert.AreEqual(nodeInstanceCount, YogaNode.GetInstanceCount()); - Assert.AreEqual(configInstanceCount, YogaConfig.GetInstanceCount()); - YogaNode node = TestRetainConfigForGC2(nodeInstanceCount, configInstanceCount); - ForceGC(); - Assert.IsNotNull(node); - Assert.AreEqual(configInstanceCount + 1, YogaConfig.GetInstanceCount()); - Assert.AreEqual(nodeInstanceCount + 1, YogaNode.GetInstanceCount()); - node = null; - } - - private YogaNode TestRetainConfigForGC2(int nodeInstanceCount, int configInstanceCount) - { - YogaConfig config = new YogaConfig(); - Assert.IsNotNull(config); - Assert.AreEqual(configInstanceCount + 1, YogaConfig.GetInstanceCount()); - - YogaNode node = new YogaNode(config); - Assert.IsNotNull(node); - Assert.AreEqual(nodeInstanceCount + 1, YogaNode.GetInstanceCount()); - - config = null; - - return node; - } -#endif - } -} diff --git a/csharp/tests/Facebook.Yoga/YogaNodeSpacingTest.cs b/csharp/tests/Facebook.Yoga/YogaNodeSpacingTest.cs deleted file mode 100644 index 9c12b429..00000000 --- a/csharp/tests/Facebook.Yoga/YogaNodeSpacingTest.cs +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using NUnit.Framework; -using System; - -/** - * Tests for {@link YogaNode}. - */ -namespace Facebook.Yoga -{ - [TestFixture] - public class YogaNodeSpacingTest - { - [Test] - public void TestObjectInitializer() - { - YogaNode node = new YogaNode - { - Top = 1, - Bottom = 2, - Left = 3, - Right = 4, - - MarginTop = 5, - MarginBottom = 6, - MarginLeft = 7, - MarginRight = 8, - - PaddingTop = 9, - PaddingBottom = 10, - PaddingLeft = 11, - PaddingRight = 12, - - BorderTopWidth = 13, - BorderBottomWidth = 14, - BorderLeftWidth = 15, - BorderRightWidth = 16, - }; - - Assert.AreEqual(1.Pt(), node.Top); - Assert.AreEqual(2.Pt(), node.Bottom); - Assert.AreEqual(3.Pt(), node.Left); - Assert.AreEqual(4.Pt(), node.Right); - - Assert.AreEqual(5.Pt(), node.MarginTop); - Assert.AreEqual(6.Pt(), node.MarginBottom); - Assert.AreEqual(7.Pt(), node.MarginLeft); - Assert.AreEqual(8.Pt(), node.MarginRight); - - Assert.AreEqual(9.Pt(), node.PaddingTop); - Assert.AreEqual(10.Pt(), node.PaddingBottom); - Assert.AreEqual(11.Pt(), node.PaddingLeft); - Assert.AreEqual(12.Pt(), node.PaddingRight); - - Assert.AreEqual(13, node.BorderTopWidth); - Assert.AreEqual(14, node.BorderBottomWidth); - Assert.AreEqual(15, node.BorderLeftWidth); - Assert.AreEqual(16, node.BorderRightWidth); - } - - [Test] - public void TestWriteRead() - { - YogaNode node = new YogaNode(); - - node.Top = 1; - node.Bottom = 2; - node.Left = 3; - node.Right = 4; - - node.MarginTop = 5; - node.MarginBottom = 6; - node.MarginLeft = 7; - node.MarginRight = 8; - - node.PaddingTop = 9; - node.PaddingBottom = 10; - node.PaddingLeft = 11; - node.PaddingRight = 12; - - node.BorderTopWidth = 13; - node.BorderBottomWidth = 14; - node.BorderLeftWidth = 15; - node.BorderRightWidth = 16; - - Assert.AreEqual(1.Pt(), node.Top); - Assert.AreEqual(2.Pt(), node.Bottom); - Assert.AreEqual(3.Pt(), node.Left); - Assert.AreEqual(4.Pt(), node.Right); - - Assert.AreEqual(5.Pt(), node.MarginTop); - Assert.AreEqual(6.Pt(), node.MarginBottom); - Assert.AreEqual(7.Pt(), node.MarginLeft); - Assert.AreEqual(8.Pt(), node.MarginRight); - - Assert.AreEqual(9.Pt(), node.PaddingTop); - Assert.AreEqual(10.Pt(), node.PaddingBottom); - Assert.AreEqual(11.Pt(), node.PaddingLeft); - Assert.AreEqual(12.Pt(), node.PaddingRight); - - Assert.AreEqual(13, node.BorderTopWidth); - Assert.AreEqual(14, node.BorderBottomWidth); - Assert.AreEqual(15, node.BorderLeftWidth); - Assert.AreEqual(16, node.BorderRightWidth); - } - } -} diff --git a/csharp/tests/Facebook.Yoga/YogaNodeTest.cs b/csharp/tests/Facebook.Yoga/YogaNodeTest.cs deleted file mode 100644 index a5ede60f..00000000 --- a/csharp/tests/Facebook.Yoga/YogaNodeTest.cs +++ /dev/null @@ -1,496 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -using NUnit.Framework; -using System; - -/** - * Tests for {@link YogaNode}. - */ -namespace Facebook.Yoga -{ - [TestFixture] - public class YogaNodeTest - { - [Test] - public void TestAddChildGetParent() - { - YogaNode parent = new YogaNode(); - YogaNode child = new YogaNode(); - - Assert.IsNull(child.Parent); - Assert.AreEqual(0, parent.Count); - - parent.Insert(0, child); - - Assert.AreEqual(1, parent.Count); - Assert.AreEqual(child, parent[0]); - Assert.AreEqual(parent, child.Parent); - - parent.RemoveAt(0); - - Assert.IsNull(child.Parent); - Assert.AreEqual(0, parent.Count); - } - - [Test] - public void TestChildren() - { - YogaNode parent = new YogaNode(); - foreach (YogaNode node in parent) { - Assert.Fail(node.ToString()); - } - - YogaNode child0 = new YogaNode(); - Assert.AreEqual(-1, parent.IndexOf(child0)); - parent.Insert(0, child0); - foreach (YogaNode node in parent) { - Assert.AreEqual(0, parent.IndexOf(node)); - } - - YogaNode child1 = new YogaNode(); - parent.Insert(1, child1); - int index = 0; - foreach (YogaNode node in parent) { - Assert.AreEqual(index++, parent.IndexOf(node)); - } - - parent.RemoveAt(0); - Assert.AreEqual(-1, parent.IndexOf(child0)); - Assert.AreEqual(0, parent.IndexOf(child1)); - - parent.Clear(); - Assert.AreEqual(0, parent.Count); - - parent.Clear(); - Assert.AreEqual(0, parent.Count); - } - - [Test] - public void TestRemoveAtFromEmpty() - { - YogaNode parent = new YogaNode(); - Assert.Throws(() => parent.RemoveAt(0)); - } - - [Test] - public void TestRemoveAtOutOfRange() - { - YogaNode parent = new YogaNode(); - YogaNode child = new YogaNode(); - parent.Insert(0, child); - Assert.Throws(() => parent.RemoveAt(1)); - } - - [Test] - public void TestCannotAddChildToMultipleParents() - { - YogaNode parent1 = new YogaNode(); - YogaNode parent2 = new YogaNode(); - YogaNode child = new YogaNode(); - - parent1.Insert(0, child); - Assert.Throws(() => parent2.Insert(0, child)); - } - - [Test] - public void TestReset() - { - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode node = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - node.Reset(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - } - - [Test] - public void TestResetParent() - { - YogaNode parent = new YogaNode(); - YogaNode child = new YogaNode(); - parent.Insert(0, child); - Assert.Throws(() => parent.Reset()); - } - - [Test] - public void TestResetChild() - { - YogaNode parent = new YogaNode(); - YogaNode child = new YogaNode(); - parent.Insert(0, child); - Assert.Throws(() => child.Reset()); - } - - [Test] - public void TestClear() - { - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode parent = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - YogaNode child = new YogaNode(); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - parent.Insert(0, child); - Assert.AreEqual(1, parent.Count); - Assert.AreEqual(parent, child.Parent); - parent.Clear(); - Assert.AreEqual(0, parent.Count); - Assert.IsNull(child.Parent); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - } - - [Test] - public void TestMeasureFunc() - { - YogaNode node = new YogaNode(); - node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(100, 150); - }); - node.CalculateLayout(); - Assert.AreEqual(100, node.LayoutWidth); - Assert.AreEqual(150, node.LayoutHeight); - } - - [Test] - public void TestMeasureFuncWithFloat() - { - YogaNode node = new YogaNode(); - node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(123.4f, 81.7f); - }); - node.CalculateLayout(); - Assert.AreEqual(124.0f, node.LayoutWidth); - Assert.AreEqual(82.0f, node.LayoutHeight); - - node = new YogaNode(new YogaConfig{PointScaleFactor = 0}); - node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(123.4f, 81.7f); - }); - node.CalculateLayout(); - Assert.AreEqual(123.4f, node.LayoutWidth); - Assert.AreEqual(81.7f, node.LayoutHeight); - } - - [Test] - public void TestChildWithMeasureFunc() - { - YogaNode node = new YogaNode(); - node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(100, 150); - }); - YogaNode child = new YogaNode(); - Assert.Throws(() => node.Insert(0, child)); - } - - [Test] - public void TestMeasureFuncWithChild() - { - YogaNode node = new YogaNode(); - YogaNode child = new YogaNode(); - node.Insert(0, child); - Assert.Throws(() => - node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(100, 150); - }) - ); - } - - [Test] - public void TestBaselineFunc() - { - YogaNode node = new YogaNode(); - node.Height = 200; - node.FlexDirection = YogaFlexDirection.Row; - node.AlignItems = YogaAlign.Baseline; - - YogaNode child0 = new YogaNode(); - child0.Width = 100; - child0.Height = 110; - child0.SetBaselineFunction((_, width, height) => { - Assert.AreEqual(100, width); - Assert.AreEqual(110, height); - return 65; - }); - node.Insert(0, child0); - - YogaNode child1 = new YogaNode(); - child1.Width = 100; - child1.Height = 110; - child1.SetBaselineFunction((_, width, height) => { - Assert.AreEqual(100, width); - Assert.AreEqual(110, height); - return 80; - }); - node.Insert(1, child1); - - YogaNode child2 = new YogaNode(); - child2.Width = 100; - child2.Height = 110; - child2.SetBaselineFunction((_, width, height) => { - Assert.AreEqual(100, width); - Assert.AreEqual(110, height); - return 88; - }); - node.Insert(2, child2); - - node.CalculateLayout(); - - Assert.AreEqual(0, child0.LayoutX); - Assert.AreEqual(23, child0.LayoutY); - Assert.AreEqual(100, child1.LayoutX); - Assert.AreEqual(8, child1.LayoutY); - Assert.AreEqual(200, child2.LayoutX); - Assert.AreEqual(0, child2.LayoutY); - } - - [Test] - public void TestPrintOneNode() - { - YogaNode node = new YogaNode(); - node.Width = 100; - node.Height = 120; - node.CalculateLayout(); - Assert.AreEqual("
", node.Print()); - } - - [Test] - public void TestPrintWithLogger() - { - YogaNode node = new YogaNode(); - node.Width = 110; - node.Height = 105; - node.CalculateLayout(); - Assert.AreEqual("
", node.Print()); - } - - [Test] - public void TestPrint() - { - YogaNode parent = new YogaNode(); - parent.Width = 100; - parent.Height = 120; - YogaNode child0 = new YogaNode(); - child0.Width = 30; - child0.Height = 40; - YogaNode child1 = new YogaNode(); - child1.Width = 35; - child1.Height = 45; - parent.Insert(0, child0); - parent.Insert(0, child1); - parent.CalculateLayout(); - Assert.AreEqual("
\n
\n
\n
", parent.Print()); - } - - [Test] - public void TestCopyStyle() - { - YogaNode node0 = new YogaNode(); - Assert.IsTrue(YogaConstants.IsUndefined(node0.MaxHeight)); - - YogaNode node1 = new YogaNode(); - node1.MaxHeight = 100; - - node0.CopyStyle(node1); - Assert.AreEqual(100.Pt(), node0.MaxHeight); - } - - [Test] - public void TestCopyConstructor() - { - YogaNode node0 = new YogaNode(); - node0.MaxWidth = 80; - - YogaNode node1 = new YogaNode(node0); - Assert.AreEqual(80.Pt(), node1.MaxWidth); - - YogaNode node2 = new YogaNode(node1) - { - MaxHeight = 90, - }; - Assert.AreEqual(80.Pt(), node2.MaxWidth); - Assert.AreEqual(90.Pt(), node2.MaxHeight); - - YogaNode node3 = new YogaNode(node0) - { - MaxWidth = 100, - }; - Assert.AreEqual(100.Pt(), node3.MaxWidth); - - YogaNode node4 = new YogaNode(node2) - { - MaxWidth = 100, - }; - Assert.AreEqual(100.Pt(), node4.MaxWidth); - Assert.AreEqual(90.Pt(), node4.MaxHeight); - } - -#if !UNITY_5_4_OR_NEWER - public static void ForceGC() - { - GC.Collect(); - GC.WaitForPendingFinalizers(); - } - - [Test] - public void TestDestructor() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - TestDestructorForGC(instanceCount); - ForceGC(); - Assert.AreEqual(instanceCount, YogaNode.GetInstanceCount()); - } - - private void TestDestructorForGC(int instanceCount) - { - YogaNode node = new YogaNode(); - Assert.IsNotNull(node); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - node = null; - } - - [Test] - public void TestDestructorWithChildren() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - TestDestructorWithChildrenForGC1(instanceCount); - ForceGC(); - Assert.AreEqual(instanceCount, YogaNode.GetInstanceCount()); - } - - private void TestDestructorWithChildrenForGC1(int instanceCount) - { - YogaNode node = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - - TestDestructorWithChildrenForGC2(node, instanceCount + 1); - ForceGC(); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - - TestDestructorWithChildrenForGC2(node, instanceCount + 2); - ForceGC(); - Assert.AreEqual(instanceCount + 3, YogaNode.GetInstanceCount()); - - node = null; - } - - private void TestDestructorWithChildrenForGC2(YogaNode parent, int instanceCount) - { - YogaNode child = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - - parent.Insert(0, child); - child = null; - } - -#if YOGA_ENABLE_GC_TEST - [Test] - public void TestParentDestructor() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode child = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - - TestParentDestructorForGC(child, instanceCount + 1); - ForceGC(); - - Assert.IsNull(child.Parent); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - } - - private void TestParentDestructorForGC(YogaNode child, int instanceCount) - { - YogaNode parent = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - parent.Insert(0, child); - } -#endif - - [Test] - public void TestClearWithChildDestructor() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode node = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - TestClearWithChildDestructorForGC(node, instanceCount + 1); - ForceGC(); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - node.Clear(); - Assert.AreEqual(0, node.Count); - ForceGC(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - } - - private void TestClearWithChildDestructorForGC(YogaNode parent, int instanceCount) - { - YogaNode child = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - parent.Insert(0, child); - } - - [Test] - public void TestMeasureFuncWithDestructor() - { - ForceGC(); - int instanceCount = YogaNode.GetInstanceCount(); - YogaNode parent = new YogaNode(); - Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); - TestMeasureFuncWithDestructorForGC(parent); - ForceGC(); - Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); - parent.CalculateLayout(); - Assert.AreEqual(120, (int)parent.LayoutWidth); - Assert.AreEqual(130, (int)parent.LayoutHeight); - } - - private void TestMeasureFuncWithDestructorForGC(YogaNode parent) - { - YogaNode child = new YogaNode(); - parent.Insert(0, child); - child.SetMeasureFunction((_, width, widthMode, height, heightMode) => { - return MeasureOutput.Make(120, 130); - }); - } -#endif - - [Test] - public void TestLayoutMargin() { - YogaNode node = new YogaNode(); - node.Width = 100; - node.Height = 100; - node.MarginStart = 1; - node.MarginEnd = 2; - node.MarginTop = 3; - node.MarginBottom = 4; - node.CalculateLayout(); - - Assert.AreEqual(1, node.LayoutMarginLeft); - Assert.AreEqual(2, node.LayoutMarginRight); - Assert.AreEqual(3, node.LayoutMarginTop); - Assert.AreEqual(4, node.LayoutMarginBottom); - } - - [Test] - public void TestLayoutPadding() { - YogaNode node = new YogaNode(); - node.Width = 100; - node.Height = 100; - node.PaddingStart = 1; - node.PaddingEnd = 2; - node.PaddingTop = 3; - node.PaddingBottom = 4; - node.CalculateLayout(); - - Assert.AreEqual(1, node.LayoutPaddingLeft); - Assert.AreEqual(2, node.LayoutPaddingRight); - Assert.AreEqual(3, node.LayoutPaddingTop); - Assert.AreEqual(4, node.LayoutPaddingBottom); - } - } -} diff --git a/csharp/tests/Facebook.Yoga/test_macos.sh b/csharp/tests/Facebook.Yoga/test_macos.sh deleted file mode 100755 index d6e0b9a8..00000000 --- a/csharp/tests/Facebook.Yoga/test_macos.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -if mcs --version >/dev/null 2>&1 && mono --version >/dev/null 2>&1; then true; else - echo "ERROR: Need to install Mono (brew install mono, or http://www.mono-project.com/download/)" - exit 1 -fi - -cd "$( dirname "$0" )" - -NUNIT=NUnit-2.6.4/bin -if [ -d $NUNIT \ - -a -f $NUNIT/nunit-console.exe \ - -a -f $NUNIT/lib/nunit-console-runner.dll \ - -a -f $NUNIT/lib/nunit.core.dll \ - -a -f $NUNIT/lib/nunit.core.interfaces.dll \ - -a -f $NUNIT/lib/nunit.util.dll ]; then true; else - curl -L -O https://github.com/nunit/nunitv2/releases/download/2.6.4/NUnit-2.6.4.zip - unzip -qq NUnit-2.6.4.zip - rm NUnit-2.6.4.zip -fi - -TARGET=//csharp:yoganet#default,shared -buck build $TARGET -ROOT=`buck root|tail -1` -DYLIB=`buck targets --show-output $TARGET|tail -1|awk '{print $2}'` -cp $ROOT/$DYLIB . - -mcs -debug -d:YOGA_ENABLE_GC_TEST -t:library -r:$NUNIT/nunit.framework.dll -out:YogaTest.dll *.cs ../../../csharp/Facebook.Yoga/*cs -MONO_PATH=$NUNIT mono --arch=64 --debug $NUNIT/nunit-console.exe YogaTest.dll diff --git a/csharp/tests/Facebook.YogaKit.Shared.Tests/Facebook.YogaKit.Shared.Tests.projitems b/csharp/tests/Facebook.YogaKit.Shared.Tests/Facebook.YogaKit.Shared.Tests.projitems deleted file mode 100644 index 04cc2739..00000000 --- a/csharp/tests/Facebook.YogaKit.Shared.Tests/Facebook.YogaKit.Shared.Tests.projitems +++ /dev/null @@ -1,14 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - {63AB08F4-4F7C-42B7-A20F-D84204D0D3CE} - - - Facebook.YogaKit.Shared.Tests - - - - - \ No newline at end of file diff --git a/csharp/tests/Facebook.YogaKit.Shared.Tests/Facebook.YogaKit.Shared.Tests.shproj b/csharp/tests/Facebook.YogaKit.Shared.Tests/Facebook.YogaKit.Shared.Tests.shproj deleted file mode 100644 index 4039eea4..00000000 --- a/csharp/tests/Facebook.YogaKit.Shared.Tests/Facebook.YogaKit.Shared.Tests.shproj +++ /dev/null @@ -1,11 +0,0 @@ - - - - {63AB08F4-4F7C-42B7-A20F-D84204D0D3CE} - - - - - - - \ No newline at end of file diff --git a/csharp/tests/Facebook.YogaKit.Shared.Tests/YogaKitTest.cs b/csharp/tests/Facebook.YogaKit.Shared.Tests/YogaKitTest.cs deleted file mode 100644 index 23b6ae1e..00000000 --- a/csharp/tests/Facebook.YogaKit.Shared.Tests/YogaKitTest.cs +++ /dev/null @@ -1,369 +0,0 @@ -using System.Drawing; -using Facebook.Yoga; -using NUnit.Framework; -using System; -#if __IOS__ -using NativeView = UIKit.UIView; -using CoreGraphics; -#endif - -namespace Facebook.YogaKit -{ - [TestFixture] - public class YogaKitTest - { - [Test] - public void TestUsesYoga() - { - var view = new NativeView(); - Assert.False(view.Yoga().IsEnabled); - view.Yoga().IsEnabled = true; - Assert.True(view.Yoga().IsEnabled); - view.Yoga().IsEnabled = false; - Assert.False(view.Yoga().IsEnabled); - } - - [Test] - public void TestSizeThatFitsAsserts() - { - var view = new NativeView(); - Assert.Ignore("Not implemented yet"); - // dispatch_sync(dispatch_queue_create("com.facebook.Yoga.testing", DISPATCH_QUEUE_SERIAL), ^(void){ - // XCTAssertThrows(view.yoga.intrinsicSize); - // }); - } - - [Test] - public void TestSizeThatFitsSmoke() - { - var container = new NativeView(); - container.Yoga().IsEnabled = true; - container.Yoga().FlexDirection = YogaFlexDirection.Row; - container.Yoga().AlignItems = YogaAlign.FlexStart; - - var longTextLabel = new UIKit.UILabel(); - longTextLabel.Text = @"This is a very very very very very very very very long piece of text."; - longTextLabel.LineBreakMode = UIKit.UILineBreakMode.TailTruncation; - longTextLabel.Lines = 1; - longTextLabel.Yoga().IsEnabled = true; - longTextLabel.Yoga().FlexShrink = 1; - container.AddSubview(longTextLabel); - - var textBadgeView = new NativeView(); - textBadgeView.Yoga().IsEnabled = true; - textBadgeView.Yoga().MarginLeft = 3.0f; - textBadgeView.Yoga().Width = 10; - textBadgeView.Yoga().Height = 10; - container.AddSubview(textBadgeView); - - var containerSize = container.Yoga().IntrinsicSize; - Assert.True(new SizeF(514, 21) == containerSize, $"Size is actually {containerSize})"); - } - - [Test] - public void TestThatMarkingLeafsAsDirtyWillTriggerASizeRecalculation() - { - var container = new NativeView(new CGRect(0, 0, 500, 500)); - container.Yoga().IsEnabled = true; - container.Yoga().FlexDirection = YogaFlexDirection.Row; - container.Yoga().AlignItems = YogaAlign.FlexStart; - - var label = new UIKit.UILabel(); - label.Text = @"This is a short text."; - label.Lines = 1; - label.Yoga().IsEnabled = true; - container.AddSubview(label); - - container.Yoga().ApplyLayout(); - Assert.True(new SizeF(146, 21) == label.Bounds.Size, $"Size is actually {label.Bounds.Size})"); - - label.Text = @"This is a slightly longer text."; - label.Yoga().MarkDirty(); - - container.Yoga().ApplyLayout(); - Assert.True(new SizeF(213, 21) == label.Bounds.Size, $"Size is actually {label.Bounds.Size})"); - } - - [Test] - public void TestFrameAndOriginPlacement() - { - var containerSize = new SizeF(320, 50); - - var container = new NativeView(new CGRect(0, 0, containerSize.Width, containerSize.Height)); - container.Yoga().IsEnabled = true; - container.Yoga().FlexDirection = YogaFlexDirection.Row; - - for (int i = 0; i < 3; i++) - { - var subview = new NativeView(); - subview.Yoga().IsEnabled = true; - subview.Yoga().FlexGrow = 1; - container.AddSubview(subview); - } - container.Yoga().ApplyLayout(); - - Assert.False(CGRect.Intersect(container.Subviews[0].Frame, container.Subviews[1].Frame) == CGRect.Empty); - Assert.False(CGRect.Intersect(container.Subviews[1].Frame, container.Subviews[2].Frame) == CGRect.Empty); - Assert.False(CGRect.Intersect(container.Subviews[0].Frame, container.Subviews[2].Frame) == CGRect.Empty); - - float totalWidth = 0; - foreach (var view in container.Subviews) - totalWidth += (float)view.Bounds.Size.Width; - - Assert.AreEqual(containerSize.Width, totalWidth, $"The container's width is {containerSize.Width}, the subviews take up {totalWidth}"); - } - - - [Test] - public void TestThatLayoutIsCorrectWhenWeSwapViewOrder() - { - var containerSize = new SizeF(300, 50); - - var container = new NativeView(new CGRect(0, 0, containerSize.Width, containerSize.Height)); - container.Yoga().IsEnabled = true; - container.Yoga().FlexDirection = YogaFlexDirection.Row; - - var subview1 = new NativeView(); - subview1.Yoga().IsEnabled = true; - subview1.Yoga().FlexGrow = 1; - container.AddSubview(subview1); - - var subview2 = new NativeView(); - subview2.Yoga().IsEnabled = true; - subview2.Yoga().FlexGrow = 1; - container.AddSubview(subview2); - - var subview3 = new NativeView(); - subview3.Yoga().IsEnabled = true; - subview3.Yoga().FlexGrow = 1; - container.AddSubview(subview3); - - container.Yoga().ApplyLayout(); - - Assert.True(subview1.Frame == new CGRect(0, 0, 100, 50)); - Assert.True(subview2.Frame == new CGRect(100, 0, 100, 50), $"It's actually {subview2.Frame}"); - Assert.True(subview3.Frame == new CGRect(200, 0, 100, 50)); - - container.ExchangeSubview(2, 0); - subview2.Yoga().IsIncludeInLayout = false; - container.Yoga().ApplyLayout(); - - Assert.True(subview3.Frame == new CGRect(0, 0, 150, 50)); - Assert.True(subview1.Frame == new CGRect(150, 0, 150, 50)); - //// this frame shouldn't have been modified since last time. - Assert.True(subview2.Frame == new CGRect(100, 0, 100, 50)); - } - - [Test] - public void TestThatWeRespectIncludeInLayoutFlag() - { - var containerSize = new SizeF(300, 50); - - var container = new NativeView(new CGRect(0, 0, containerSize.Width, containerSize.Height)); - container.Yoga().IsEnabled = true; - container.Yoga().FlexDirection = YogaFlexDirection.Row; - - var subview1 = new NativeView(); - subview1.Yoga().IsEnabled = true; - subview1.Yoga().FlexGrow = 1; - container.AddSubview(subview1); - - var subview2 = new NativeView(); - subview2.Yoga().IsEnabled = true; - subview2.Yoga().FlexGrow = 1; - container.AddSubview(subview2); - - var subview3 = new NativeView(); - subview3.Yoga().IsEnabled = true; - subview3.Yoga().FlexGrow = 1; - container.AddSubview(subview3); - - container.Yoga().ApplyLayout(); - - foreach (var view in container.Subviews) - { - Assert.True(new CGSize(100, 50) == view.Bounds.Size, $"Actual size is {view.Bounds.Size}"); - } - - subview3.Yoga().IsIncludeInLayout = false; - container.Yoga().ApplyLayout(); - Assert.True(subview1.Frame.Size == new CGSize(150, 50), $"Actual size is {subview1.Frame.Size}"); - Assert.True(subview2.Frame.Size == new CGSize(150, 50), $"Actual size is {subview2.Frame.Size}"); - //// We don't set the frame to zero, so, it should be set to what it was previously at. - Assert.True(subview3.Frame.Size == new CGSize(100, 50), $"Actual size is {subview3.Frame.Size}"); - } - - [Test] - public void TestThatNumberOfChildrenIsCorrectWhenWeIgnoreSubviews() - { - var container = new NativeView(); - container.Yoga().IsEnabled = true; - container.Yoga().FlexDirection = YogaFlexDirection.Row; - - var subview1 = new NativeView(); - subview1.Yoga().IsEnabled = true; - subview1.Yoga().IsIncludeInLayout = false; - container.AddSubview(subview1); - - var subview2 = new NativeView(); - subview2.Yoga().IsEnabled = true; - subview2.Yoga().IsIncludeInLayout = false; - container.AddSubview(subview2); - - var subview3 = new NativeView(); - subview3.Yoga().IsEnabled = true; - subview3.Yoga().IsIncludeInLayout = true; - container.AddSubview(subview3); - - container.Yoga().ApplyLayout(); - Assert.AreEqual(1, container.Yoga().NumberOfChildren); - - subview2.Yoga().IsIncludeInLayout = true; - container.Yoga().ApplyLayout(); - Assert.AreEqual(2, container.Yoga().NumberOfChildren); - } - - [Test] - public void TestThatViewNotIncludedInFirstLayoutPassAreIncludedInSecond() - { - var containerSize = new SizeF(300, 50); - - var container = new NativeView(new CGRect(0, 0, containerSize.Width, containerSize.Height)); - container.Yoga().IsEnabled = true; - container.Yoga().FlexDirection = YogaFlexDirection.Row; - - var subview1 = new NativeView(); - subview1.Yoga().IsEnabled = true; - subview1.Yoga().FlexGrow = 1; - container.AddSubview(subview1); - - var subview2 = new NativeView(); - subview2.Yoga().IsEnabled = true; - subview2.Yoga().FlexGrow = 1; - container.AddSubview(subview2); - - var subview3 = new NativeView(); - subview3.Yoga().IsEnabled = true; - subview3.Yoga().FlexGrow = 1; - subview3.Yoga().IsIncludeInLayout = false; - container.AddSubview(subview3); - - container.Yoga().ApplyLayout(); - - Assert.True(subview1.Frame.Size == new CGSize(150, 50), $"Actual size is {subview1.Frame.Size}"); - Assert.True(subview2.Frame.Size == new CGSize(150, 50), $"Actual size is {subview2.Frame.Size}"); - Assert.True(subview3.Frame.Size == CGSize.Empty, $"Actual size is {subview3.Frame.Size}"); - - subview3.Yoga().IsIncludeInLayout = true; - container.Yoga().ApplyLayout(); - - foreach (var view in container.Subviews) - { - Assert.True(new CGSize(100, 50) == view.Bounds.Size, $"Actual size is {view.Bounds.Size}"); - } - } - - [Test] - public void TestYogaIsLeafFlag() - { - var view = new NativeView(); - Assert.True(view.Yoga().IsLeaf); - - for (int i = 0; i < 10; i++) - { - var subView = new NativeView(); - view.AddSubview(subView); - } - Assert.True(view.Yoga().IsLeaf); - view.Yoga().IsEnabled = true; - view.Yoga().Width = 50.0f; - Assert.True(view.Yoga().IsLeaf); - - var subView1 = view.Subviews[0]; - subView1.Yoga().IsEnabled = true; - subView1.Yoga().Width = 50.0f; - Assert.False(view.Yoga().IsLeaf); - } - - [Test] - public void TestThatWeCorrectlyAttachNestedViews() - { - var containerSize = new SizeF(300, 50); - - var container = new NativeView(new CGRect(0, 0, containerSize.Width, containerSize.Height)); - container.Yoga().IsEnabled = true; - container.Yoga().FlexDirection = YogaFlexDirection.Column; - - var subview1 = new NativeView(); - subview1.Yoga().IsEnabled = true; - subview1.Yoga().Width = 100; - subview1.Yoga().FlexGrow = 1; - subview1.Yoga().FlexDirection = YogaFlexDirection.Column; - container.AddSubview(subview1); - - var subview2 = new NativeView(); - subview2.Yoga().IsEnabled = true; - subview2.Yoga().Width = 150; - subview2.Yoga().FlexGrow = 1; - subview2.Yoga().FlexDirection = YogaFlexDirection.Column; - container.AddSubview(subview2); - - foreach (var view in new NativeView[] { subview1, subview2 }) - { - var someView = new NativeView(); - someView.Yoga().IsEnabled = true; - someView.Yoga().FlexGrow = 1; - view.AddSubview(someView); - } - container.Yoga().ApplyLayout(); - - // Add the same amount of new views, reapply layout. - foreach (var view in new NativeView[] { subview1, subview2 }) - { - var someView = new NativeView(); - someView.Yoga().IsEnabled = true; - someView.Yoga().FlexGrow = 1; - view.AddSubview(someView); - } - container.Yoga().ApplyLayout(); - - Assert.True(new CGSize(100, 25) == subview1.Bounds.Size, $"Actual size is {subview1.Bounds.Size}"); - foreach (var subview in subview1.Subviews) - { - var subviewSize = subview.Bounds.Size; - Assert.False(subviewSize.IsEmpty); - Assert.False(nfloat.IsNaN(subviewSize.Height)); - Assert.False(nfloat.IsNaN(subviewSize.Width)); - } - - Assert.True(new CGSize(150, 25) == subview2.Bounds.Size, $"Actual size is {subview2.Bounds.Size}"); - foreach (var subview in subview2.Subviews) - { - var subviewSize = subview.Bounds.Size; - Assert.False(subviewSize.IsEmpty); - Assert.False(nfloat.IsNaN(subviewSize.Height)); - Assert.False(nfloat.IsNaN(subviewSize.Width)); - } - } - - [Test] - public void TestThatANonLeafNodeCanBecomeALeafNode() - { - var containerSize = new SizeF(300, 50); - - var container = new NativeView(new CGRect(0, 0, containerSize.Width, containerSize.Height)); - container.Yoga().IsEnabled = true; - - var subview1 = new NativeView(); - subview1.Yoga().IsEnabled = true; - container.AddSubview(subview1); - - var subview2 = new NativeView(); - subview2.Yoga().IsEnabled = true; - container.AddSubview(subview2); - container.Yoga().ApplyLayout(); - subview2.RemoveFromSuperview(); - container.Yoga().ApplyLayout(); - } - } -} diff --git a/enums.py b/enums.py old mode 100644 new mode 100755 index 4fe43f7b..3d69acb0 --- a/enums.py +++ b/enums.py @@ -1,13 +1,11 @@ -# Copyright (c) Facebook, Inc. and its affiliates. +#!/usr/bin/env python3 +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -from __future__ import absolute_import, division, print_function, unicode_literals - import os - ENUMS = { "Direction": ["Inherit", "LTR", "RTL"], "Unit": ["Undefined", "Point", "Percent", "Auto"], @@ -31,7 +29,7 @@ ENUMS = { "SpaceBetween", "SpaceAround", ], - "PositionType": ["Relative", "Absolute"], + "PositionType": ["Static", "Relative", "Absolute"], "Display": ["Flex", "None"], "Wrap": ["NoWrap", "Wrap", "WrapReverse"], "MeasureMode": ["Undefined", "Exactly", "AtMost"], @@ -50,92 +48,135 @@ ENUMS = { "NodeType": ["Default", "Text"], "LogLevel": ["Error", "Warn", "Info", "Debug", "Verbose", "Fatal"], "ExperimentalFeature": [ - # Mimic web flex-basis behavior. - "WebFlexBasis" + # Mimic web flex-basis behavior (experiment may be broken) + "WebFlexBasis", + # Conformance fix: https://github.com/facebook/yoga/pull/1028 + "AbsolutePercentageAgainstPaddingEdge", + # Conformance fix: https://github.com/facebook/yoga/pull/1028 + "FixAbsoluteTrailingColumnMargin", + ], + "PrintOptions": [ + ("Layout", 1 << 0), + ("Style", 1 << 1), + ("Children", 1 << 2), + ], + "Gutter": ["Column", "Row", "All"], + # Known incorrect behavior which can be enabled for compatibility + "Errata": [ + # Default: Standards conformant mode + ("None", 0), + # Allows main-axis flex basis to be stretched without flexGrow being + # set (previously referred to as "UseLegacyStretchBehaviour") + ("StretchFlexBasis", 1 << 0), + # Enable all incorrect behavior (preserve compatibility) + ("All", 0x7FFFFFFF), + # Enable all errata except for "StretchFlexBasis" (Defaults behavior + # before Yoga 2.0) + ("Classic", 0x7FFFFFFF & (~(1 << 0))), ], - "PrintOptions": [("Layout", 1), ("Style", 2), ("Children", 4)], } -LICENSE = """/** - * Copyright (c) Facebook, Inc. and its affiliates. +DO_NOT_STRIP = ["LogLevel"] + +BITSET_ENUMS = ["PrintOptions", "Errata"] + + +def get_license(ext): + return f"""{"/**" if ext == "js" else "/*"} + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +// @{"generated"} by enums.py + """ +def _format_name(symbol, delimiter=None, transform=None): + symbol = str(symbol) + out = "" + for i in range(0, len(symbol)): + c = symbol[i] + if str.istitle(c) and i != 0 and not str.istitle(symbol[i - 1]): + out += delimiter or "" + if transform is None: + out += c + else: + out += getattr(c, transform)() + return out + + def to_java_upper(symbol): - symbol = str(symbol) - out = "" - for i in range(0, len(symbol)): - c = symbol[i] - if str.istitle(c) and i is not 0 and not str.istitle(symbol[i - 1]): - out += "_" - out += c.upper() - return out + return _format_name(symbol, "_", "upper") -def to_log_lower(symbol): - symbol = str(symbol) - out = "" - for i in range(0, len(symbol)): - c = symbol[i] - if str.istitle(c) and i is not 0 and not str.istitle(symbol[i - 1]): - out += "-" - out += c.lower() - return out +def to_hyphenated_lower(symbol): + return _format_name(symbol, "-", "lower") root = os.path.dirname(os.path.abspath(__file__)) # write out C & Objective-C headers with open(root + "/yoga/YGEnums.h", "w") as f: - f.write(LICENSE) - f.write("#pragma once\n\n") - f.write('#include "YGMacros.h"\n\n') + f.write(get_license("cpp")) + f.write("#pragma once\n") + f.write("#include \n\n") + f.write("// clang-format off\n\n\n") + f.write("YG_EXTERN_C_BEGIN\n\n") - for name, values in sorted(ENUMS.items()): - f.write("#define YG%sCount %s\n" % (name, len(values))) - f.write("typedef YG_ENUM_BEGIN(YG%s) {\n" % name) + items = sorted(ENUMS.items()) + for name, values in items: + if isinstance(values[0], tuple): + f.write("YG_ENUM_DECL(\n") + else: + f.write("YG_ENUM_SEQ_DECL(\n") + + f.write(" YG%s,\n" % name) for value in values: if isinstance(value, tuple): - f.write(" YG%s%s = %d,\n" % (name, value[0], value[1])) + f.write(" YG%s%s = %d" % (name, value[0], value[1])) else: - f.write(" YG%s%s,\n" % (name, value)) - f.write("} YG_ENUM_END(YG%s);\n" % name) - f.write( - "WIN_EXPORT const char *YG%sToString(const YG%s value);\n" % (name, name) - ) + f.write(" YG%s%s" % (name, value)) + if value == values[-1]: + f.write(")\n") + else: + f.write(",\n") + if name in BITSET_ENUMS: + f.write("YG_DEFINE_ENUM_FLAG_OPERATORS(YG%s)\n" % name) f.write("\n") f.write("YG_EXTERN_C_END\n") # write out C body for printing with open(root + "/yoga/YGEnums.cpp", "w") as f: - f.write(LICENSE) - f.write('#include "YGEnums.h"\n\n') - for name, values in sorted(ENUMS.items()): - f.write("const char *YG%sToString(const YG%s value){\n" % (name, name)) - f.write(" switch(value){\n") + f.write(get_license("cpp")) + f.write("#include \n\n") + items = sorted(ENUMS.items()) + for name, values in items: + f.write("const char* YG%sToString(const YG%s value) {\n" % (name, name)) + f.write(" switch (value) {\n") for value in values: if isinstance(value, tuple): f.write(" case YG%s%s:\n" % (name, value[0])) - f.write(' return "%s";\n' % to_log_lower(value[0])) + f.write(' return "%s";\n' % to_hyphenated_lower(value[0])) else: f.write(" case YG%s%s:\n" % (name, value)) - f.write(' return "%s";\n' % to_log_lower(value)) + f.write(' return "%s";\n' % to_hyphenated_lower(value)) f.write(" }\n") f.write(' return "unknown";\n') - f.write("}\n\n") + f.write("}\n") + if name != items[-1][0]: + f.write("\n") # write out java files for name, values in sorted(ENUMS.items()): with open(root + "/java/com/facebook/yoga/Yoga%s.java" % name, "w") as f: - f.write(LICENSE.replace("/**", "/*", 1)) + f.write(get_license("java")) f.write("package com.facebook.yoga;\n\n") - f.write("import com.facebook.proguard.annotations.DoNotStrip;\n\n") - f.write("@DoNotStrip\n") + if name in DO_NOT_STRIP: + f.write("import com.facebook.yoga.annotations.DoNotStrip;\n\n") + f.write("@DoNotStrip\n") f.write("public enum Yoga%s {\n" % name) if len(values) > 0: for value in values: @@ -150,7 +191,7 @@ for name, values in sorted(ENUMS.items()): else: f.write("__EMPTY(-1);") f.write("\n") - f.write(" private int mIntValue;\n") + f.write(" private final int mIntValue;\n") f.write("\n") f.write(" Yoga%s(int intValue) {\n" % name) f.write(" mIntValue = intValue;\n") @@ -160,6 +201,8 @@ for name, values in sorted(ENUMS.items()): f.write(" return mIntValue;\n") f.write(" }\n") f.write("\n") + if name in DO_NOT_STRIP: + f.write(" @DoNotStrip\n") f.write(" public static Yoga%s fromInt(int value) {\n" % name) f.write(" switch (value) {\n") for value in values: @@ -179,40 +222,27 @@ for name, values in sorted(ENUMS.items()): f.write(" }\n") f.write("}\n") -# write out csharp files -for name, values in sorted(ENUMS.items()): - with open(root + "/csharp/Facebook.Yoga/Yoga%s.cs" % name, "w") as f: - f.write(LICENSE) - f.write("namespace Facebook.Yoga\n{\n") - if isinstance(next(iter(values or []), None), tuple): - f.write(" [System.Flags]\n") - f.write(" public enum Yoga%s\n {\n" % name) - for value in values: - if isinstance(value, tuple): - f.write(" %s = %d,\n" % (value[0], value[1])) - else: - f.write(" %s,\n" % value) - f.write(" }\n") - f.write("}\n") +# write out TypeScript file +with open(root + "/javascript/src/generated/YGEnums.ts", "w") as f: + f.write(get_license("js")) + enums = sorted(ENUMS.items()) + for enum_name, ordinals in enums: + f.write(f"export enum {enum_name} {{\n") + for ordinal_index, ordinal in enumerate(ordinals): + ordinal_name = ordinal[0] if isinstance(ordinal, tuple) else ordinal + ordinal_value = ordinal[1] if isinstance(ordinal, tuple) else ordinal_index + f.write(f" {ordinal_name} = {ordinal_value},\n") -# write out javascript file -with open(root + "/javascript/sources/YGEnums.js", "w") as f: - f.write(LICENSE) - f.write("module.exports = {\n\n") - for name, values in sorted(ENUMS.items()): - f.write(" %s_COUNT: %s,\n" % (to_java_upper(name), len(values))) - base = 0 - for value in values: - if isinstance(value, tuple): - f.write( - " %s_%s: %d,\n" - % (to_java_upper(name), to_java_upper(value[0]), value[1]) - ) - base = value[1] + 1 - else: - f.write( - " %s_%s: %d,\n" % (to_java_upper(name), to_java_upper(value), base) - ) - base += 1 - f.write("\n") - f.write("};\n") + f.write("}\n\n") + + f.write("const constants = {\n") + for enum_name, ordinals in enums: + for ordinal in ordinals: + ordinal_name = ordinal[0] if isinstance(ordinal, tuple) else ordinal + ordinal_value = ordinal[1] if isinstance(ordinal, tuple) else ordinal_index + f.write( + f" {to_java_upper(enum_name)}_{to_java_upper(ordinal_name)}: {enum_name}.{ordinal_name},\n" + ) + + f.write("}\n") + f.write("export default constants") diff --git a/gentest/Gemfile b/gentest/Gemfile new file mode 100644 index 00000000..e0e6b0b4 --- /dev/null +++ b/gentest/Gemfile @@ -0,0 +1,4 @@ +source "https://rubygems.org" + +gem 'watir', '~>6.19.0' +gem 'webdrivers', '~> 5.2.0' diff --git a/gentest/Gemfile.lock b/gentest/Gemfile.lock new file mode 100644 index 00000000..1b7ab1f5 --- /dev/null +++ b/gentest/Gemfile.lock @@ -0,0 +1,35 @@ +GEM + remote: https://rubygems.org/ + specs: + childprocess (4.1.0) + mini_portile2 (2.8.1) + nokogiri (1.14.3) + mini_portile2 (~> 2.8.0) + racc (~> 1.4) + racc (1.6.2) + regexp_parser (2.6.0) + rexml (3.2.5) + rubyzip (2.3.2) + selenium-webdriver (4.5.0) + childprocess (>= 0.5, < 5.0) + rexml (~> 3.2, >= 3.2.5) + rubyzip (>= 1.2.2, < 3.0) + websocket (~> 1.0) + watir (6.19.1) + regexp_parser (>= 1.2, < 3) + selenium-webdriver (>= 3.142.7) + webdrivers (5.2.0) + nokogiri (~> 1.6) + rubyzip (>= 1.3.0) + selenium-webdriver (~> 4.0) + websocket (1.2.9) + +PLATFORMS + ruby + +DEPENDENCIES + watir (~> 6.19.0) + webdrivers (~> 5.2.0) + +BUNDLED WITH + 2.1.4 diff --git a/gentest/fixtures/YGAbsolutePositionTest.html b/gentest/fixtures/YGAbsolutePositionTest.html index 39f8e980..d0f5e9ee 100644 --- a/gentest/fixtures/YGAbsolutePositionTest.html +++ b/gentest/fixtures/YGAbsolutePositionTest.html @@ -88,3 +88,15 @@
+
+
+
+
+ +
+
+
+ +
+
+
diff --git a/gentest/fixtures/YGAlignItemsTest.html b/gentest/fixtures/YGAlignItemsTest.html index fa043673..e5ee95f4 100644 --- a/gentest/fixtures/YGAlignItemsTest.html +++ b/gentest/fixtures/YGAlignItemsTest.html @@ -111,7 +111,8 @@
-
+ +
@@ -122,7 +123,8 @@
-
+ +
@@ -176,7 +178,7 @@
-
+
@@ -193,7 +195,7 @@
-
+
@@ -206,4 +208,4 @@
-
\ No newline at end of file +
diff --git a/gentest/fixtures/YGGapTest.html b/gentest/fixtures/YGGapTest.html new file mode 100644 index 00000000..4bfc7753 --- /dev/null +++ b/gentest/fixtures/YGGapTest.html @@ -0,0 +1,166 @@ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
diff --git a/gentest/fixtures/YGMarginTest.html b/gentest/fixtures/YGMarginTest.html index 60924c8f..3258c1fc 100644 --- a/gentest/fixtures/YGMarginTest.html +++ b/gentest/fixtures/YGMarginTest.html @@ -107,12 +107,12 @@
-
+
-
+
@@ -149,4 +149,4 @@
-
\ No newline at end of file +
diff --git a/gentest/fixtures/YGMinMaxDimensionTest.html b/gentest/fixtures/YGMinMaxDimensionTest.html index 69e29b90..0f41dad0 100644 --- a/gentest/fixtures/YGMinMaxDimensionTest.html +++ b/gentest/fixtures/YGMinMaxDimensionTest.html @@ -6,12 +6,14 @@
-
+ +
-
+ +
diff --git a/gentest/fixtures/YGPercentageTest.html b/gentest/fixtures/YGPercentageTest.html index fa722198..7749e5ff 100644 --- a/gentest/fixtures/YGPercentageTest.html +++ b/gentest/fixtures/YGPercentageTest.html @@ -20,7 +20,9 @@
-
+ + +
diff --git a/gentest/gentest-cpp.js b/gentest/gentest-cpp.js index 5cf33d10..9076958b 100644 --- a/gentest/gentest-cpp.js +++ b/gentest/gentest-cpp.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -34,10 +34,15 @@ CPPEmitter.prototype = Object.create(Emitter.prototype, { ]); }}, - emitTestPrologue:{value:function(name, experiments) { + emitTestPrologue:{value:function(name, experiments, disabled) { this.push('TEST(YogaTest, ' + name + ') {'); this.pushIndent(); + if (disabled) { + this.push('GTEST_SKIP();'); + this.push(''); + } + this.push('const YGConfigRef config = YGConfigNew();') for (var i in experiments) { this.push('YGConfigSetExperimentalFeatureEnabled(config, YGExperimentalFeature' + experiments[i] +', true);'); @@ -92,6 +97,10 @@ CPPEmitter.prototype = Object.create(Emitter.prototype, { YGEdgeStart:{value:'YGEdgeStart'}, YGEdgeTop:{value:'YGEdgeTop'}, + YGGutterAll:{value:'YGGutterAll'}, + YGGutterColumn:{value:'YGGutterColumn'}, + YGGutterRow:{value:'YGGutterRow'}, + YGFlexDirectionColumn:{value:'YGFlexDirectionColumn'}, YGFlexDirectionColumnReverse:{value:'YGFlexDirectionColumnReverse'}, YGFlexDirectionRow:{value:'YGFlexDirectionRow'}, @@ -242,4 +251,8 @@ CPPEmitter.prototype = Object.create(Emitter.prototype, { YGNodeStyleSetWidth:{value:function(nodeName, value) { this.push('YGNodeStyleSetWidth' + toFunctionName(value) + '(' + nodeName + ', ' + toValueCpp(value) + ');'); }}, + + YGNodeStyleSetGap:{value:function(nodeName, gap, value) { + this.push('YGNodeStyleSetGap' + toFunctionName(value) + '(' + nodeName + ', ' + gap + ', ' + toValueCpp(value) + ');'); + }}, }); diff --git a/gentest/gentest-cs.js b/gentest/gentest-cs.js deleted file mode 100644 index f0cbd7fb..00000000 --- a/gentest/gentest-cs.js +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -function toValueCs(value) { - var n = value.toString().replace('px','').replace('%',''); - return n + (Number(n) == n && n % 1 !== 0 ? 'f' : ''); -} - -function toCsUnitValue(value) { - var methodName = ''; - if (value.indexOf('%') >= 0){ - methodName = '.Percent()'; - } - if(value.indexOf('Auto') >= 0){ - return 'YogaValue.Auto()'; - } - return toValueCs(value) + methodName; -} - -var CSEmitter = function() { - Emitter.call(this, 'cs', ' '); -}; - -CSEmitter.prototype = Object.create(Emitter.prototype, { - constructor:{value:CSEmitter}, - - emitPrologue:{value:function() { - this.push([ - 'using System;', - 'using NUnit.Framework;', - '', - 'namespace Facebook.Yoga', - '{', - ]); - this.pushIndent(); - this.push([ - '[TestFixture]', - 'public class YogaTest', - '{', - ]); - this.pushIndent(); - }}, - - emitTestPrologue:{value:function(name, experiments) { - this.push('[Test]'); - this.push('public void Test_' + name + '()'); - this.push('{'); - this.pushIndent(); - - this.push('YogaConfig config = new YogaConfig();') - for (var i in experiments) { - this.push('config.SetExperimentalFeatureEnabled(YogaExperimentalFeature.' + experiments[i] +', true);'); - } - this.push(''); - }}, - - emitTestTreePrologue:{value:function(nodeName) { - this.push('YogaNode ' + nodeName + ' = new YogaNode(config);'); - }}, - - emitTestEpilogue:{value:function(experiments) { - - this.popIndent(); - this.push([ - '}', - '', - ]); - }}, - - emitEpilogue:{value:function(lines) { - this.popIndent(); - this.push('}'); - this.popIndent(); - this.push([ - '}', - '', - ]); - }}, - - AssertEQ:{value:function(v0, v1) { - this.push('Assert.AreEqual(' + v0 + 'f, ' + v1 + ');'); - }}, - - YGAlignAuto:{value:'YogaAlign.Auto'}, - YGAlignCenter:{value:'YogaAlign.Center'}, - YGAlignFlexEnd:{value:'YogaAlign.FlexEnd'}, - YGAlignFlexStart:{value:'YogaAlign.FlexStart'}, - YGAlignStretch:{value:'YogaAlign.Stretch'}, - YGAlignSpaceBetween:{value:'YogaAlign.SpaceBetween'}, - YGAlignSpaceAround:{value:'YogaAlign.SpaceAround'}, - YGAlignBaseline:{value:'YogaAlign.Baseline'}, - - YGDirectionInherit:{value:'YogaDirection.Inherit'}, - YGDirectionLTR:{value:'YogaDirection.LTR'}, - YGDirectionRTL:{value:'YogaDirection.RTL'}, - - YGEdgeBottom:{value:'Bottom'}, - YGEdgeEnd:{value:'End'}, - YGEdgeLeft:{value:'Left'}, - YGEdgeRight:{value:'Right'}, - YGEdgeStart:{value:'Start'}, - YGEdgeTop:{value:'Top'}, - - YGFlexDirectionColumn:{value:'YogaFlexDirection.Column'}, - YGFlexDirectionColumnReverse:{value:'YogaFlexDirection.ColumnReverse'}, - YGFlexDirectionRow:{value:'YogaFlexDirection.Row'}, - YGFlexDirectionRowReverse:{value:'YogaFlexDirection.RowReverse'}, - - YGJustifyCenter:{value:'YogaJustify.Center'}, - YGJustifyFlexEnd:{value:'YogaJustify.FlexEnd'}, - YGJustifyFlexStart:{value:'YogaJustify.FlexStart'}, - YGJustifySpaceAround:{value:'YogaJustify.SpaceAround'}, - YGJustifySpaceBetween:{value:'YogaJustify.SpaceBetween'}, - YGJustifySpaceEvenly:{value:'YogaJustify.SpaceEvenly'}, - - YGOverflowHidden:{value:'YogaOverflow.Hidden'}, - YGOverflowVisible:{value:'YogaOverflow.Visible'}, - - YGPositionTypeAbsolute:{value:'YogaPositionType.Static'}, - YGPositionTypeRelative:{value:'YogaPositionType.Relative'}, - YGPositionTypeAbsolute:{value:'YogaPositionType.Absolute'}, - - YGUndefined:{value:'YogaConstants.Undefined'}, - - YGAuto:{value:'YogaConstants.Auto'}, - - YGDisplayFlex:{value:'YogaDisplay.Flex'}, - YGDisplayNone:{value:'YogaDisplay.None'}, - - YGWrapNoWrap:{value:'YogaWrap.NoWrap'}, - YGWrapWrap:{value:'YogaWrap.Wrap'}, - YGWrapWrapReverse:{value: 'YogaWrap.WrapReverse'}, - - YGNodeCalculateLayout:{value:function(node, dir, experiments) { - this.push(node + '.StyleDirection = ' + dir + ';'); - this.push(node + '.CalculateLayout();'); - }}, - - YGNodeInsertChild:{value:function(parentName, nodeName, index) { - this.push(parentName + '.Insert(' + index + ', ' + nodeName + ');'); - }}, - - YGNodeLayoutGetLeft:{value:function(nodeName) { - return nodeName + '.LayoutX'; - }}, - - YGNodeLayoutGetTop:{value:function(nodeName) { - return nodeName + '.LayoutY'; - }}, - - YGNodeLayoutGetWidth:{value:function(nodeName) { - return nodeName + '.LayoutWidth'; - }}, - - YGNodeLayoutGetHeight:{value:function(nodeName) { - return nodeName + '.LayoutHeight'; - }}, - - YGNodeStyleSetAlignContent:{value:function(nodeName, value) { - this.push(nodeName + '.AlignContent = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetAlignItems:{value:function(nodeName, value) { - this.push(nodeName + '.AlignItems = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetAlignSelf:{value:function(nodeName, value) { - this.push(nodeName + '.AlignSelf = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetBorder:{value:function(nodeName, edge, value) { - this.push(nodeName + '.Border' + edge + 'Width = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetDirection:{value:function(nodeName, value) { - this.push(nodeName + '.StyleDirection = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetDisplay:{value:function(nodeName, value) { - this.push(nodeName + '.Display = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetFlexBasis:{value:function(nodeName, value) { - this.push(nodeName + '.FlexBasis = ' + toCsUnitValue(value) + ';'); - }}, - - YGNodeStyleSetFlexDirection:{value:function(nodeName, value) { - this.push(nodeName + '.FlexDirection = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetFlexGrow:{value:function(nodeName, value) { - this.push(nodeName + '.FlexGrow = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetFlexShrink:{value:function(nodeName, value) { - this.push(nodeName + '.FlexShrink = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetFlexWrap:{value:function(nodeName, value) { - this.push(nodeName + '.Wrap = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetHeight:{value:function(nodeName, value) { - this.push(nodeName + '.Height = ' + toCsUnitValue(value) + ';'); - }}, - - YGNodeStyleSetJustifyContent:{value:function(nodeName, value) { - this.push(nodeName + '.JustifyContent = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetMargin:{value:function(nodeName, edge, value) { - this.push(nodeName + '.Margin' + edge + ' = ' + toCsUnitValue(value) + ';'); - }}, - - YGNodeStyleSetMaxHeight:{value:function(nodeName, value) { - this.push(nodeName + '.MaxHeight = ' + toCsUnitValue(value) + ';'); - }}, - - YGNodeStyleSetMaxWidth:{value:function(nodeName, value) { - this.push(nodeName + '.MaxWidth = ' + toCsUnitValue(value) + ';'); - }}, - - YGNodeStyleSetMinHeight:{value:function(nodeName, value) { - this.push(nodeName + '.MinHeight = ' + toCsUnitValue(value) + ';'); - }}, - - YGNodeStyleSetMinWidth:{value:function(nodeName, value) { - this.push(nodeName + '.MinWidth = ' + toCsUnitValue(value) + ';'); - }}, - - YGNodeStyleSetOverflow:{value:function(nodeName, value) { - this.push(nodeName + '.Overflow = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetPadding:{value:function(nodeName, edge, value) { - this.push(nodeName + '.Padding' + edge + ' = ' + toCsUnitValue(value) + ';'); - }}, - - YGNodeStyleSetPosition:{value:function(nodeName, edge, value) { - this.push(nodeName + '.' + edge + ' = ' + toCsUnitValue(value) + ';'); - }}, - - YGNodeStyleSetPositionType:{value:function(nodeName, value) { - this.push(nodeName + '.PositionType = ' + toValueCs(value) + ';'); - }}, - - YGNodeStyleSetWidth:{value:function(nodeName, value) { - this.push(nodeName + '.Width = ' + toCsUnitValue(value) + ';'); - }}, -}); diff --git a/gentest/gentest-java.js b/gentest/gentest-java.js index 983f6272..b36fa1ce 100644 --- a/gentest/gentest-java.js +++ b/gentest/gentest-java.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -44,6 +44,7 @@ JavaEmitter.prototype = Object.create(Emitter.prototype, { '', 'import static org.junit.Assert.assertEquals;', '', + 'import org.junit.Ignore;', 'import org.junit.Test;', 'import org.junit.runner.RunWith;', 'import org.junit.runners.Parameterized;', @@ -67,8 +68,11 @@ JavaEmitter.prototype = Object.create(Emitter.prototype, { ]); }}, - emitTestPrologue:{value:function(name, experiments) { + emitTestPrologue:{value:function(name, experiments, disabled) { this.push('@Test'); + if (disabled) { + this.push('@Ignore'); + } this.push('public void test_' + name + '() {'); this.pushIndent(); @@ -128,6 +132,10 @@ JavaEmitter.prototype = Object.create(Emitter.prototype, { YGEdgeStart:{value:'YogaEdge.START'}, YGEdgeTop:{value:'YogaEdge.TOP'}, + YGGutterAll:{value:'YogaGutter.ALL'}, + YGGutterColumn:{value:'YogaGutter.COLUMN'}, + YGGutterRow:{value:'YogaGutter.ROW'}, + YGFlexDirectionColumn:{value:'YogaFlexDirection.COLUMN'}, YGFlexDirectionColumnReverse:{value:'YogaFlexDirection.COLUMN_REVERSE'}, YGFlexDirectionRow:{value:'YogaFlexDirection.ROW'}, @@ -280,4 +288,8 @@ JavaEmitter.prototype = Object.create(Emitter.prototype, { YGNodeStyleSetWidth:{value:function(nodeName, value) { this.push(nodeName + '.setWidth' + toMethodName(value) + '(' + toValueJava(value) + 'f);'); }}, + + YGNodeStyleSetGap:{value:function(nodeName, gap, value) { + this.push(nodeName + '.setGap' + toMethodName(value) + '(' + gap + ', ' + toValueJava(value) + 'f);'); + }}, }); diff --git a/gentest/gentest-javascript.js b/gentest/gentest-javascript.js index 6dd27551..3b16b7a8 100644 --- a/gentest/gentest-javascript.js +++ b/gentest/gentest-javascript.js @@ -1,11 +1,11 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var JavascriptEmitter = function() { +const JavascriptEmitter = function() { Emitter.call(this, 'js', ' '); }; @@ -16,37 +16,43 @@ function toValueJavascript(value) { return value; } -function toJavascriptUpper(symbol) { - var out = ''; - for (var i = 0; i < symbol.length; i++) { - var c = symbol[i]; - if (c == c.toUpperCase() && i != 0 && symbol[i - 1] != symbol[i - 1].toUpperCase()) { - out += '_'; - } - out += c.toUpperCase(); - } - return out; -} - JavascriptEmitter.prototype = Object.create(Emitter.prototype, { constructor:{value:JavascriptEmitter}, emitPrologue:{value:function() { - this.push([ - 'var Yoga = Yoga || require("../../sources/entry-" + process.env.TEST_ENTRY);', - '' - ]); + this.push('import {Yoga} from "../tools/globals";') + this.push('import {') + this.pushIndent(); + this.push('Align,'); + this.push('Direction,'); + this.push('Display,'); + this.push('Edge,'); + this.push('Errata,'); + this.push('ExperimentalFeature,'); + this.push('FlexDirection,'); + this.push('Gutter,'); + this.push('Justify,'); + this.push('MeasureMode,'); + this.push('Overflow,'); + this.push('PositionType,'); + this.push('Unit,'); + this.push('Wrap,'); + this.popIndent(); + this.push('} from \'yoga-layout\';'); + this.push(''); }}, - emitTestPrologue:{value:function(name, experiments) { - this.push('it(' + JSON.stringify(name) + ', function () {'); + emitTestPrologue:{value:function(name, experiments, ignore) { + const testFn = ignore ? `test.skip` : 'test'; + this.push(`${testFn}('${name}', () => {`); this.pushIndent(); - this.push('var config = Yoga.Config.create();'); + this.push('const config = Yoga.Config.create();'); + this.push('let root;'); this.push(''); if (experiments.length > 0) { - for (var i in experiments) { - this.push('config.setExperimentalFeatureEnabled(Yoga.EXPERIMENTAL_FEATURE_' + toJavascriptUpper(experiments[i]) + ', true);'); + for (const experiment of experiments) { + this.push(`config.setExperimentalFeatureEnabled(ExperimentalFeature.${experiment}, true);`); } this.push(''); } @@ -56,7 +62,11 @@ JavascriptEmitter.prototype = Object.create(Emitter.prototype, { }}, emitTestTreePrologue:{value:function(nodeName) { - this.push('var ' + nodeName + ' = Yoga.Node.create(config);'); + if (nodeName === 'root') { + this.push(`root = Yoga.Node.create(config);`); + } else { + this.push(`const ${nodeName} = Yoga.Node.create(config);`); + } }}, emitTestEpilogue:{value:function(experiments) { @@ -64,7 +74,7 @@ JavascriptEmitter.prototype = Object.create(Emitter.prototype, { this.push('} finally {'); this.pushIndent(); - this.push('if (typeof root !== "undefined") {'); + this.push('if (typeof root !== \'undefined\') {'); this.pushIndent(); this.push('root.freeRecursive();'); this.popIndent(); @@ -84,60 +94,63 @@ JavascriptEmitter.prototype = Object.create(Emitter.prototype, { }}, AssertEQ:{value:function(v0, v1) { - this.push('console.assert(' + v0 + ' === ' + v1 + ', "' + v0 + ' === ' + v1 + ' (" + ' + v1 + ' + ")");'); + this.push(`expect(${v1}).toBe(${v0});`); }}, - YGAlignAuto:{value:'Yoga.ALIGN_AUTO'}, - YGAlignCenter:{value:'Yoga.ALIGN_CENTER'}, - YGAlignFlexEnd:{value:'Yoga.ALIGN_FLEX_END'}, - YGAlignFlexStart:{value:'Yoga.ALIGN_FLEX_START'}, - YGAlignStretch:{value:'Yoga.ALIGN_STRETCH'}, - YGAlignSpaceBetween:{value:'Yoga.ALIGN_SPACE_BETWEEN'}, - YGAlignSpaceAround:{value:'Yoga.ALIGN_SPACE_AROUND'}, - YGAlignBaseline:{value:'Yoga.ALIGN_BASELINE'}, + YGAlignAuto:{value: 'Align.Auto'}, + YGAlignCenter:{value: 'Align.Center'}, + YGAlignFlexEnd:{value: 'Align.FlexEnd'}, + YGAlignFlexStart:{value: 'Align.FlexStart'}, + YGAlignStretch:{value: 'Align.Stretch'}, + YGAlignSpaceBetween:{value: 'Align.SpaceBetween'}, + YGAlignSpaceAround:{value: 'Align.SpaceAround'}, + YGAlignBaseline:{value: 'Align.Baseline'}, - YGDirectionInherit:{value:'Yoga.DIRECTION_INHERIT'}, - YGDirectionLTR:{value:'Yoga.DIRECTION_LTR'}, - YGDirectionRTL:{value:'Yoga.DIRECTION_RTL'}, + YGDirectionInherit:{value: 'Direction.Inherit'}, + YGDirectionLTR:{value: 'Direction.LTR'}, + YGDirectionRTL:{value: 'Direction.RTL'}, - YGEdgeBottom:{value:'Yoga.EDGE_BOTTOM'}, - YGEdgeEnd:{value:'Yoga.EDGE_END'}, - YGEdgeLeft:{value:'Yoga.EDGE_LEFT'}, - YGEdgeRight:{value:'Yoga.EDGE_RIGHT'}, - YGEdgeStart:{value:'Yoga.EDGE_START'}, - YGEdgeTop:{value:'Yoga.EDGE_TOP'}, + YGEdgeBottom:{value: 'Edge.Bottom'}, + YGEdgeEnd:{value: 'Edge.End'}, + YGEdgeLeft:{value: 'Edge.Left'}, + YGEdgeRight:{value: 'Edge.Right'}, + YGEdgeStart:{value: 'Edge.Start'}, + YGEdgeTop:{value: 'Edge.Top'}, - YGFlexDirectionColumn:{value:'Yoga.FLEX_DIRECTION_COLUMN'}, - YGFlexDirectionColumnReverse:{value:'Yoga.FLEX_DIRECTION_COLUMN_REVERSE'}, - YGFlexDirectionRow:{value:'Yoga.FLEX_DIRECTION_ROW'}, - YGFlexDirectionRowReverse:{value:'Yoga.FLEX_DIRECTION_ROW_REVERSE'}, + YGGutterAll:{value: 'Gutter.All'}, + YGGutterColumn:{value: 'Gutter.Column'}, + YGGutterRow:{value: 'Gutter.Row'}, - YGJustifyCenter:{value:'Yoga.JUSTIFY_CENTER'}, - YGJustifyFlexEnd:{value:'Yoga.JUSTIFY_FLEX_END'}, - YGJustifyFlexStart:{value:'Yoga.JUSTIFY_FLEX_START'}, - YGJustifySpaceAround:{value:'Yoga.JUSTIFY_SPACE_AROUND'}, - YGJustifySpaceBetween:{value:'Yoga.JUSTIFY_SPACE_BETWEEN'}, - YGJustifySpaceEvenly:{value:'Yoga.JUSTIFY_SPACE_EVENLY'}, + YGFlexDirectionColumn:{value: 'FlexDirection.Column'}, + YGFlexDirectionColumnReverse:{value: 'FlexDirection.ColumnReverse'}, + YGFlexDirectionRow:{value: 'FlexDirection.Row'}, + YGFlexDirectionRowReverse:{value: 'FlexDirection.RowReverse'}, - YGOverflowHidden:{value:'Yoga.OVERFLOW_HIDDEN'}, - YGOverflowVisible:{value:'Yoga.OVERFLOW_VISIBLE'}, + YGJustifyCenter:{value: 'Justify.Center'}, + YGJustifyFlexEnd:{value: 'Justify.FlexEnd'}, + YGJustifyFlexStart:{value: 'Justify.FlexStart'}, + YGJustifySpaceAround:{value: 'Justify.SpaceAround'}, + YGJustifySpaceBetween:{value: 'Justify.SpaceBetween'}, + YGJustifySpaceEvenly:{value: 'Justify.SpaceEvenly'}, - YGPositionTypeAbsolute:{value:'Yoga.POSITION_TYPE_ABSOLUTE'}, - YGPositionTypeRelative:{value:'Yoga.POSITION_TYPE_RELATIVE'}, + YGOverflowHidden:{value: 'Overflow.Hidden'}, + YGOverflowVisible:{value: 'Overflow.Visible'}, - YGAuto:{value:'Yoga.AUTO'}, + YGPositionTypeAbsolute:{value: 'PositionType.Absolute'}, + YGPositionTypeRelative:{value: 'PositionType.Relative'}, - YGWrapNoWrap:{value:'Yoga.WRAP_NO_WRAP'}, - YGWrapWrap:{value:'Yoga.WRAP_WRAP'}, - YGWrapWrapReverse:{value: 'Yoga.WRAP_WRAP_REVERSE'}, + YGAuto:{value:'\'auto\''}, + YGUndefined:{value:'undefined'}, - YGUndefined:{value:'Yoga.UNDEFINED'}, + YGWrapNoWrap:{value: 'Wrap.NoWrap'}, + YGWrapWrap:{value: 'Wrap.Wrap'}, + YGWrapWrapReverse:{value: 'Wrap.WrapReverse'}, - YGDisplayFlex:{value:'Yoga.DISPLAY_FLEX'}, - YGDisplayNone:{value:'Yoga.DISPLAY_NONE'}, + YGDisplayFlex:{value: 'Display.Flex'}, + YGDisplayNone:{value: 'Display.None'}, YGNodeCalculateLayout:{value:function(node, dir, experiments) { - this.push(node + '.calculateLayout(Yoga.UNDEFINED, Yoga.UNDEFINED, ' + dir + ');'); + this.push(node + '.calculateLayout(undefined, undefined, ' + dir + ');'); }}, YGNodeInsertChild:{value:function(parentName, nodeName, index) { @@ -251,4 +264,8 @@ JavascriptEmitter.prototype = Object.create(Emitter.prototype, { YGNodeStyleSetWidth:{value:function(nodeName, value) { this.push(nodeName + '.setWidth(' + toValueJavascript(value) + ');'); }}, + + YGNodeStyleSetGap:{value:function(nodeName, gap, value) { + this.push(nodeName + '.setGap('+ toValueJavascript(gap) + ', ' + toValueJavascript(value) + ');'); + }}, }); diff --git a/gentest/gentest.js b/gentest/gentest.js index 12e76f33..1d7efbae 100755 --- a/gentest/gentest.js +++ b/gentest/gentest.js @@ -1,33 +1,35 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +const DEFAULT_EXPERIMENTS = [ + 'AbsolutePercentageAgainstPaddingEdge', + 'FixAbsoluteTrailingColumnMargin', +]; + window.onload = function() { checkDefaultValues(); printTest( new CPPEmitter(), + 'cpp', document.body.children[0], document.body.children[1], document.body.children[2]); printTest( new JavaEmitter(), - document.body.children[0], - document.body.children[1], - document.body.children[2]); - - printTest( - new CSEmitter(), + 'java', document.body.children[0], document.body.children[1], document.body.children[2]); printTest( new JavascriptEmitter(), + 'js', document.body.children[0], document.body.children[1], document.body.children[2]); @@ -39,15 +41,16 @@ function assert(condition, message) { } } -function printTest(e, LTRContainer, RTLContainer, genericContainer) { +function printTest(e, ext, LTRContainer, RTLContainer, genericContainer) { e.push([ - '/*', - ' * Copyright (c) Facebook, Inc. and its affiliates.', + ext === 'js' ? '/**' : '/*', + ' * Copyright (c) Meta Platforms, Inc. and affiliates.', ' *', ' * This source code is licensed under the MIT license found in the', ' * LICENSE file in the root directory of this source tree.', ' */', - '// @Generated by gentest/gentest.rb from gentest/fixtures/' + document.title + '.html', + ext === 'cpp' ? '\n// clang-format off' : '', + '// @' + 'generated by gentest/gentest.rb from gentest/fixtures/' + document.title + '.html', '', ]); e.emitPrologue(); @@ -58,7 +61,11 @@ function printTest(e, LTRContainer, RTLContainer, genericContainer) { for (var i = 0; i < genericLayoutTree.length; i++) { - e.emitTestPrologue(genericLayoutTree[i].name, genericLayoutTree[i].experiments); + e.emitTestPrologue( + genericLayoutTree[i].name, + genericLayoutTree[i].experiments, + genericLayoutTree[i].disabled + ); if (genericLayoutTree[i].name == 'wrap_column') { // Modify width and left values due to both safari and chrome not abiding by the @@ -160,6 +167,15 @@ function setupTestTree(e, parent, node, genericNode, nodeName, parentName, index if (!isDefaultStyleValue(style, node.style[style])) { switch (style) { + case 'gap': + e.YGNodeStyleSetGap(nodeName, e.YGGutterAll, pointValue(e, node.style[style])); + break; + case 'column-gap': + e.YGNodeStyleSetGap(nodeName, e.YGGutterColumn, pointValue(e, node.style[style])); + break; + case 'row-gap': + e.YGNodeStyleSetGap(nodeName, e.YGGutterRow, pointValue(e, node.style[style])); + break; case 'direction': e.YGNodeStyleSetDirection(nodeName, directionValue(e, node.style[style])); break; @@ -456,9 +472,10 @@ function calculateTree(root, roundToPixelGrid) { style: getYogaStyle(child), declaredStyle: child.style, rawStyle: child.getAttribute('style'), - experiments: child.getAttribute('experiments') - ? child.getAttribute('experiments').split(' ') - : [], + experiments: child.dataset.experiments + ? child.dataset.experiments.split(' ') + : DEFAULT_EXPERIMENTS, + disabled: child.dataset.disabled === 'true', }; var size = getRoundedSize(child); @@ -472,6 +489,8 @@ function calculateTree(root, roundToPixelGrid) { } function getYogaStyle(node) { + // TODO: Relying on computed style means we cannot test shorthand props like + // "padding", "margin", "gap". return [ 'direction', 'flex-direction', @@ -507,6 +526,8 @@ function getYogaStyle(node) { 'height', 'min-height', 'max-height', + 'column-gap', + 'row-gap', 'display', ].reduce(function(map, key) { map[key] = node.style[key] || getComputedStyle(node, null).getPropertyValue(key); diff --git a/gentest/gentest.rb b/gentest/gentest.rb index 01fec93e..597853fa 100644 --- a/gentest/gentest.rb +++ b/gentest/gentest.rb @@ -1,20 +1,20 @@ #!/usr/bin/env ruby -# Copyright (c) Facebook, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. require 'watir' +require 'webdrivers' require 'fileutils' -browser = Watir::Browser.new(:chrome, "goog:loggingPrefs" => { +browser = Watir::Browser.new(:chrome, options: { + "goog:loggingPrefs" => { "browser" => "ALL", "performance" => "ALL" }, - "chromeOptions" => { - "w3c" => "false" - }, - :switches => ['--force-device-scale-factor=1', '--window-position=0,0']) + args: ['--force-device-scale-factor=1', '--window-position=0,0'] +}) Dir.chdir(File.dirname($0)) @@ -40,9 +40,9 @@ Dir['fixtures/*.html'].each do |file| FileUtils.copy('test.html', "#{name}.html") if $DEBUG browser.goto('file://' + Dir.pwd + '/test.html') - logs = browser.driver.manage.logs.get(:browser) + logs = browser.driver.logs.get(:browser) - f = File.open("../tests/#{name}.cpp", 'w') + f = File.open("../tests/generated/#{name}.cpp", 'w') f.write eval(logs[0].message.sub(/^[^"]*/, '')) f.close @@ -50,15 +50,11 @@ Dir['fixtures/*.html'].each do |file| f.write eval(logs[1].message.sub(/^[^"]*/, '')).sub('YogaTest', name) f.close - f = File.open("../csharp/tests/Facebook.Yoga/#{name}.cs", 'w') + print logs[3] + + f = File.open("../javascript/tests/generated/#{name}.test.ts", 'w') f.write eval(logs[2].message.sub(/^[^"]*/, '')).sub('YogaTest', name) f.close - - print logs[4] - - f = File.open("../javascript/tests/Facebook.Yoga/#{name}.js", 'w') - f.write eval(logs[3].message.sub(/^[^"]*/, '')).sub('YogaTest', name) - f.close end File.delete('test.html') browser.close diff --git a/gentest/test-template.html b/gentest/test-template.html index cb01b8c4..cab620be 100644 --- a/gentest/test-template.html +++ b/gentest/test-template.html @@ -6,7 +6,6 @@ -