diff --git a/.eslintignore b/.eslintignore index 7afd21814..d307ae3ee 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,9 +1,9 @@ **/node_modules/ -example/examples/ -example/android/ -example/ios/ -example/windows/ -macos-example/macos/ +apps/**/node_modules/ +apps/**/android/ +apps/**/ios/ +apps/**/windows/ +apps/**/macos/ screenshots/ android/ apple/ diff --git a/.github/workflows/android-build-test.yml b/.github/workflows/android-build-test.yml index 22fbfa101..19e7b36b6 100644 --- a/.github/workflows/android-build-test.yml +++ b/.github/workflows/android-build-test.yml @@ -6,10 +6,10 @@ on: - 'android/**' - 'src/fabric/**' - 'package.json' - - 'example/android/**' - - 'example/package.json' - - 'fabric-example/android/**' - - 'fabric-example/package.json' + - 'apps/example/android/**' + - 'apps/example/package.json' + - 'apps/fabric-example/android/**' + - 'apps/fabric-example/package.json' push: branches: - main @@ -48,12 +48,12 @@ jobs: - name: Get app node_modules cache uses: actions/cache@v4 with: - path: ${{ matrix.working-directory }}/node_modules + path: apps/${{ matrix.working-directory }}/node_modules key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }} restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}- - name: Install app node_modules - working-directory: ${{ matrix.working-directory }} + working-directory: apps/${{ matrix.working-directory }} run: yarn install --frozen-lockfile - name: Get build cache @@ -67,5 +67,5 @@ jobs: ${{ runner.os }}-gradle-${{matrix.working-directory}}- - name: Build app - working-directory: ${{ matrix.working-directory }}/android + working-directory: apps/${{ matrix.working-directory }}/android run: ./gradlew assembleDebug --build-cache --console=plain -PreactNativeArchitectures=arm64-v8a diff --git a/.github/workflows/e2e-android.yml b/.github/workflows/e2e-android.yml index cce3b7f66..14a2a236a 100644 --- a/.github/workflows/e2e-android.yml +++ b/.github/workflows/e2e-android.yml @@ -3,8 +3,7 @@ on: pull_request: paths: - .github/workflows/e2e-android.yml - - apps/examples/** - - example/** + - apps/example/** - android/** - src/** - e2e/** @@ -81,7 +80,7 @@ jobs: timeout-minutes: 10 - name: Reverse TCP - working-directory: ${{ env.WORKING_DIRECTORY }} + working-directory: apps/${{ env.WORKING_DIRECTORY }} run: adb devices | grep '\t' | awk '{print $1}' | sed 's/\\s//g' | xargs -I {} adb -s {} reverse tcp:8081 tcp:8081 - name: Install root node dependencies @@ -89,18 +88,18 @@ jobs: - name: Install example app node dependencies run: yarn - working-directory: ${{ env.WORKING_DIRECTORY }} + working-directory: apps/${{ env.WORKING_DIRECTORY }} - name: Build Android app - working-directory: ${{ env.WORKING_DIRECTORY }}/android + working-directory: apps/${{ env.WORKING_DIRECTORY }}/android run: ./gradlew assembleDebug - name: Start Metro server - working-directory: ${{ env.WORKING_DIRECTORY }} + working-directory: apps/${{ env.WORKING_DIRECTORY }} run: E2E=true yarn start &> output.log & - name: Install APK - run: adb install -r ${{ env.WORKING_DIRECTORY }}/android/app/build/outputs/apk/debug/app-debug.apk + run: adb install -r apps/${{ env.WORKING_DIRECTORY }}/android/app/build/outputs/apk/debug/app-debug.apk - name: Launch APK run: 'while ! (adb shell monkey -p com.example 1 | grep -q "Events injected: 1"); do sleep 1; echo "Retrying due to errors in previous run..."; done' diff --git a/.github/workflows/e2e-ios.yml b/.github/workflows/e2e-ios.yml index e85f526d5..9d56e6be1 100644 --- a/.github/workflows/e2e-ios.yml +++ b/.github/workflows/e2e-ios.yml @@ -3,7 +3,7 @@ on: pull_request: paths: - .github/workflows/ios-e2e.yml - - apps/examples/** + - apps/common/example/** - apple/** - src/** - e2e/** @@ -45,40 +45,40 @@ jobs: - name: Get app node_modules cache uses: actions/cache@v4 with: - path: ${{ matrix.working-directory }}/node_modules - key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }} + path: apps/${{ matrix.working-directory }}/node_modules + key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/yarn.lock', matrix.working-directory)) }} restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}- - name: Install app node_modules - working-directory: ${{ matrix.working-directory }} + working-directory: apps/${{ matrix.working-directory }} run: yarn install --frozen-lockfile - name: Get Pods cache uses: actions/cache@v4 with: - path: ${{ matrix.working-directory }}/ios/Pods - key: ${{ runner.os }}-pods-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/ios/Podfile.lock', matrix.working-directory)) }} + path: apps/${{ matrix.working-directory }}/ios/Pods + key: ${{ runner.os }}-pods-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/ios/Podfile.lock', matrix.working-directory)) }} restore-keys: | ${{ runner.os }}-pods-${{ matrix.working-directory }}- - name: Install Pods - working-directory: ${{ matrix.working-directory }}/ios + working-directory: apps/${{ matrix.working-directory }}/ios run: bundle install && bundle exec pod install - name: Get build artifacts cache uses: actions/cache@v4 with: path: ~/Library/Developer/Xcode/DerivedData - key: ${{ runner.os }}-ios-derived-data-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/ios/Podfile.lock', matrix.working-directory)) }} + key: ${{ runner.os }}-ios-derived-data-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/ios/Podfile.lock', matrix.working-directory)) }} restore-keys: | ${{ runner.os }}-ios-derived-data-${{ matrix.working-directory }}- - name: Start Metro server - working-directory: ${{ matrix.working-directory }} + working-directory: apps/${{ matrix.working-directory }} run: E2E=true yarn start &> output.log & - name: Build app - working-directory: ${{ matrix.working-directory }} + working-directory: apps/${{ matrix.working-directory }} run: E2E=true npx react-native@latest run-ios --simulator="${{ env.DEVICE }}" --mode Debug --verbose - name: Run e2e Tests diff --git a/.github/workflows/ios-build-test.yml b/.github/workflows/ios-build-test.yml index 48a90ce21..d2d821910 100644 --- a/.github/workflows/ios-build-test.yml +++ b/.github/workflows/ios-build-test.yml @@ -7,10 +7,10 @@ on: - apple/** - src/fabric/** - package.json - - example/package.json - - example/ios/** - - fabric-example/package.json - - fabric-example/ios/** + - apps/example/package.json + - apps/example/ios/** + - apps/fabric-example/package.json + - apps/fabric-example/ios/** push: branches: - main @@ -48,34 +48,34 @@ jobs: - name: Get app node_modules cache uses: actions/cache@v4 with: - path: ${{ matrix.working-directory }}/node_modules - key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }} + path: apps/${{ matrix.working-directory }}/node_modules + key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/yarn.lock', matrix.working-directory)) }} restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}- - name: Install app node_modules - working-directory: ${{ matrix.working-directory }} + working-directory: apps/${{ matrix.working-directory }} run: yarn install --frozen-lockfile - name: Get Pods cache uses: actions/cache@v4 with: - path: ${{ matrix.working-directory }}/ios/Pods - key: ${{ runner.os }}-pods-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/ios/Podfile.lock', matrix.working-directory)) }} + path: apps/${{ matrix.working-directory }}/ios/Pods + key: ${{ runner.os }}-pods-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/ios/Podfile.lock', matrix.working-directory)) }} restore-keys: | ${{ runner.os }}-pods-${{ matrix.working-directory }}- - name: Install Pods - working-directory: ${{ matrix.working-directory }}/ios + working-directory: apps/${{ matrix.working-directory }}/ios run: bundle install && bundle exec pod install - name: Get build artifacts cache uses: actions/cache@v4 with: path: ~/Library/Developer/Xcode/DerivedData - key: ${{ runner.os }}-ios-derived-data-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/ios/Podfile.lock', matrix.working-directory)) }} + key: ${{ runner.os }}-ios-derived-data-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/ios/Podfile.lock', matrix.working-directory)) }} restore-keys: | ${{ runner.os }}-ios-derived-data-${{ matrix.working-directory }}- - name: Build app - working-directory: ${{ matrix.working-directory }} + working-directory: apps/${{ matrix.working-directory }} run: npx react-native run-ios --simulator="iPhone 15 Pro" --mode Debug --verbose --no-packager diff --git a/.github/workflows/macos-build-test.yml b/.github/workflows/macos-build-test.yml index 8193ec23b..fbbfe5d14 100644 --- a/.github/workflows/macos-build-test.yml +++ b/.github/workflows/macos-build-test.yml @@ -7,10 +7,10 @@ on: - apple/** - src/fabric/** - package.json - - paper-macos-example/package.json - - paper-macos-example/ios/** - - fabric-macos-example/package.json - - fabric-macos-example/ios/** + - apps/paper-macos-example/package.json + - apps/paper-macos-example/ios/** + - apps/fabric-macos-example/package.json + - apps/fabric-macos-example/ios/** push: branches: - main @@ -48,32 +48,32 @@ jobs: - name: Get app node_modules cache uses: actions/cache@v4 with: - path: ${{ matrix.working-directory }}/node_modules - key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }} + path: apps/${{ matrix.working-directory }}/node_modules + key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/yarn.lock', matrix.working-directory)) }} restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}- - name: Install app node_modules - working-directory: ${{ matrix.working-directory }} + working-directory: apps/${{ matrix.working-directory }} run: yarn install --frozen-lockfile - name: Get Pods cache uses: actions/cache@v4 with: - path: ${{ matrix.working-directory }}/macos/Pods - key: ${{ runner.os }}-pods-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/macos/Podfile.lock', matrix.working-directory)) }} + path: apps/${{ matrix.working-directory }}/macos/Pods + key: ${{ runner.os }}-pods-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/macos/Podfile.lock', matrix.working-directory)) }} restore-keys: | ${{ runner.os }}-pods-${{ matrix.working-directory }}- - name: Install Pods - working-directory: ${{ matrix.working-directory }}/macos + working-directory: apps/${{ matrix.working-directory }}/macos run: bundle install && bundle exec pod install - name: Get build artifacts cache uses: actions/cache@v4 with: path: ~/Library/Developer/Xcode/DerivedData - key: ${{ runner.os }}-macos-derived-data-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/macos/Podfile.lock', matrix.working-directory)) }} + key: ${{ runner.os }}-macos-derived-data-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/macos/Podfile.lock', matrix.working-directory)) }} - name: Build app - working-directory: ${{ matrix.working-directory }} + working-directory: apps/${{ matrix.working-directory }} run: yarn macos diff --git a/.github/workflows/windows-build-test.yml b/.github/workflows/windows-build-test.yml index 6ab33078f..cbafa2120 100644 --- a/.github/workflows/windows-build-test.yml +++ b/.github/workflows/windows-build-test.yml @@ -6,10 +6,10 @@ on: - 'windows/**' - 'src/fabric/**' - 'package.json' - - 'paper-windows-example/windows/**' - - 'paper-windows-example/package.json' - - 'fabric-windows-example/windows/**' - - 'fabric-windows-example/package.json' + - 'apps/paper-windows-example/windows/**' + - 'apps/paper-windows-example/package.json' + - 'apps/fabric-windows-example/windows/**' + - 'apps/fabric-windows-example/package.json' push: branches: - main @@ -49,14 +49,14 @@ jobs: - name: Restore app node_modules from cache uses: actions/cache@v3 with: - path: ${{ matrix.working-directory }}/node_modules - key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }} + path: apps/${{ matrix.working-directory }}/node_modules + key: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('apps/{0}/yarn.lock', matrix.working-directory)) }} restore-keys: ${{ runner.os }}-node-modules-${{ matrix.working-directory }}- - name: Install app node_modules - working-directory: ${{ matrix.working-directory }} + working-directory: apps/${{ matrix.working-directory }} run: yarn --frozen-lockfile - name: Build app - working-directory: ${{ matrix.working-directory }}/windows + working-directory: apps/${{ matrix.working-directory }}/windows run: npx react-native run-windows --logging --no-packager --no-deploy --no-autolink diff --git a/.gitignore b/.gitignore index 984257dbc..e94cd955f 100644 --- a/.gitignore +++ b/.gitignore @@ -51,5 +51,6 @@ experimental/ # VS Code .vscode/ +# E2E reports jest-html-reporters-attach/ report.html diff --git a/.npmignore b/.npmignore index a0727fc55..63e71e27a 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,2 @@ screenshots/ -idl/ +apps/ \ No newline at end of file diff --git a/apps/.eslintrc.js b/apps/common/.eslintrc.js similarity index 100% rename from apps/.eslintrc.js rename to apps/common/.eslintrc.js diff --git a/apps/.prettierrc.js b/apps/common/.prettierrc.js similarity index 100% rename from apps/.prettierrc.js rename to apps/common/.prettierrc.js diff --git a/apps/examples/src/ListScreen.tsx b/apps/common/example/ListScreen.tsx similarity index 100% rename from apps/examples/src/ListScreen.tsx rename to apps/common/example/ListScreen.tsx diff --git a/apps/examples/src/assets/adaptive-icon.png b/apps/common/example/assets/adaptive-icon.png similarity index 100% rename from apps/examples/src/assets/adaptive-icon.png rename to apps/common/example/assets/adaptive-icon.png diff --git a/apps/examples/src/assets/favicon.png b/apps/common/example/assets/favicon.png similarity index 100% rename from apps/examples/src/assets/favicon.png rename to apps/common/example/assets/favicon.png diff --git a/apps/examples/src/assets/icon.png b/apps/common/example/assets/icon.png similarity index 100% rename from apps/examples/src/assets/icon.png rename to apps/common/example/assets/icon.png diff --git a/apps/examples/src/assets/image.jpg b/apps/common/example/assets/image.jpg similarity index 100% rename from apps/examples/src/assets/image.jpg rename to apps/common/example/assets/image.jpg diff --git a/apps/examples/src/assets/office.jpg b/apps/common/example/assets/office.jpg similarity index 100% rename from apps/examples/src/assets/office.jpg rename to apps/common/example/assets/office.jpg diff --git a/apps/examples/src/assets/splash.png b/apps/common/example/assets/splash.png similarity index 100% rename from apps/examples/src/assets/splash.png rename to apps/common/example/assets/splash.png diff --git a/apps/examples/src/e2e/TestingView.tsx b/apps/common/example/e2e/TestingView.tsx similarity index 100% rename from apps/examples/src/e2e/TestingView.tsx rename to apps/common/example/e2e/TestingView.tsx diff --git a/apps/examples/src/e2e/icon.tsx b/apps/common/example/e2e/icon.tsx similarity index 100% rename from apps/examples/src/e2e/icon.tsx rename to apps/common/example/e2e/icon.tsx diff --git a/apps/examples/src/e2e/index.macos.tsx b/apps/common/example/e2e/index.macos.tsx similarity index 100% rename from apps/examples/src/e2e/index.macos.tsx rename to apps/common/example/e2e/index.macos.tsx diff --git a/apps/examples/src/e2e/index.tsx b/apps/common/example/e2e/index.tsx similarity index 100% rename from apps/examples/src/e2e/index.tsx rename to apps/common/example/e2e/index.tsx diff --git a/apps/examples/src/e2e/index.web.tsx b/apps/common/example/e2e/index.web.tsx similarity index 100% rename from apps/examples/src/e2e/index.web.tsx rename to apps/common/example/e2e/index.web.tsx diff --git a/apps/examples/src/examples/Circle.tsx b/apps/common/example/examples/Circle.tsx similarity index 100% rename from apps/examples/src/examples/Circle.tsx rename to apps/common/example/examples/Circle.tsx diff --git a/apps/examples/src/examples/Clipping.tsx b/apps/common/example/examples/Clipping.tsx similarity index 100% rename from apps/examples/src/examples/Clipping.tsx rename to apps/common/example/examples/Clipping.tsx diff --git a/apps/examples/src/examples/Ellipse.tsx b/apps/common/example/examples/Ellipse.tsx similarity index 100% rename from apps/examples/src/examples/Ellipse.tsx rename to apps/common/example/examples/Ellipse.tsx diff --git a/apps/examples/src/examples/FilterImage/FilterPicker.tsx b/apps/common/example/examples/FilterImage/FilterPicker.tsx similarity index 100% rename from apps/examples/src/examples/FilterImage/FilterPicker.tsx rename to apps/common/example/examples/FilterImage/FilterPicker.tsx diff --git a/apps/examples/src/examples/FilterImage/LocalImage.tsx b/apps/common/example/examples/FilterImage/LocalImage.tsx similarity index 100% rename from apps/examples/src/examples/FilterImage/LocalImage.tsx rename to apps/common/example/examples/FilterImage/LocalImage.tsx diff --git a/apps/examples/src/examples/FilterImage/RemoteImage.tsx b/apps/common/example/examples/FilterImage/RemoteImage.tsx similarity index 100% rename from apps/examples/src/examples/FilterImage/RemoteImage.tsx rename to apps/common/example/examples/FilterImage/RemoteImage.tsx diff --git a/apps/examples/src/examples/FilterImage/index.tsx b/apps/common/example/examples/FilterImage/index.tsx similarity index 100% rename from apps/examples/src/examples/FilterImage/index.tsx rename to apps/common/example/examples/FilterImage/index.tsx diff --git a/apps/examples/src/examples/Filters/FeBlend.tsx b/apps/common/example/examples/Filters/FeBlend.tsx similarity index 100% rename from apps/examples/src/examples/Filters/FeBlend.tsx rename to apps/common/example/examples/Filters/FeBlend.tsx diff --git a/apps/examples/src/examples/Filters/FeColorMatrix.tsx b/apps/common/example/examples/Filters/FeColorMatrix.tsx similarity index 100% rename from apps/examples/src/examples/Filters/FeColorMatrix.tsx rename to apps/common/example/examples/Filters/FeColorMatrix.tsx diff --git a/apps/examples/src/examples/Filters/FeComposite.tsx b/apps/common/example/examples/Filters/FeComposite.tsx similarity index 100% rename from apps/examples/src/examples/Filters/FeComposite.tsx rename to apps/common/example/examples/Filters/FeComposite.tsx diff --git a/apps/examples/src/examples/Filters/FeFlood.tsx b/apps/common/example/examples/Filters/FeFlood.tsx similarity index 100% rename from apps/examples/src/examples/Filters/FeFlood.tsx rename to apps/common/example/examples/Filters/FeFlood.tsx diff --git a/apps/examples/src/examples/Filters/FeGaussianBlur.tsx b/apps/common/example/examples/Filters/FeGaussianBlur.tsx similarity index 100% rename from apps/examples/src/examples/Filters/FeGaussianBlur.tsx rename to apps/common/example/examples/Filters/FeGaussianBlur.tsx diff --git a/apps/examples/src/examples/Filters/FeMerge.tsx b/apps/common/example/examples/Filters/FeMerge.tsx similarity index 100% rename from apps/examples/src/examples/Filters/FeMerge.tsx rename to apps/common/example/examples/Filters/FeMerge.tsx diff --git a/apps/examples/src/examples/Filters/FeOffset.tsx b/apps/common/example/examples/Filters/FeOffset.tsx similarity index 100% rename from apps/examples/src/examples/Filters/FeOffset.tsx rename to apps/common/example/examples/Filters/FeOffset.tsx diff --git a/apps/examples/src/examples/Filters/ReanimatedFeColorMatrix.tsx b/apps/common/example/examples/Filters/ReanimatedFeColorMatrix.tsx similarity index 100% rename from apps/examples/src/examples/Filters/ReanimatedFeColorMatrix.tsx rename to apps/common/example/examples/Filters/ReanimatedFeColorMatrix.tsx diff --git a/apps/examples/src/examples/Filters/feComposite.png b/apps/common/example/examples/Filters/feComposite.png similarity index 100% rename from apps/examples/src/examples/Filters/feComposite.png rename to apps/common/example/examples/Filters/feComposite.png diff --git a/apps/examples/src/examples/Filters/index.tsx b/apps/common/example/examples/Filters/index.tsx similarity index 100% rename from apps/examples/src/examples/Filters/index.tsx rename to apps/common/example/examples/Filters/index.tsx diff --git a/apps/examples/src/examples/G.tsx b/apps/common/example/examples/G.tsx similarity index 100% rename from apps/examples/src/examples/G.tsx rename to apps/common/example/examples/G.tsx diff --git a/apps/examples/src/examples/Gradients.tsx b/apps/common/example/examples/Gradients.tsx similarity index 100% rename from apps/examples/src/examples/Gradients.tsx rename to apps/common/example/examples/Gradients.tsx diff --git a/apps/examples/src/examples/Image.tsx b/apps/common/example/examples/Image.tsx similarity index 100% rename from apps/examples/src/examples/Image.tsx rename to apps/common/example/examples/Image.tsx diff --git a/apps/examples/src/examples/Line.tsx b/apps/common/example/examples/Line.tsx similarity index 100% rename from apps/examples/src/examples/Line.tsx rename to apps/common/example/examples/Line.tsx diff --git a/apps/examples/src/examples/Markers.tsx b/apps/common/example/examples/Markers.tsx similarity index 100% rename from apps/examples/src/examples/Markers.tsx rename to apps/common/example/examples/Markers.tsx diff --git a/apps/examples/src/examples/Mask.tsx b/apps/common/example/examples/Mask.tsx similarity index 100% rename from apps/examples/src/examples/Mask.tsx rename to apps/common/example/examples/Mask.tsx diff --git a/apps/examples/src/examples/PanResponder.tsx b/apps/common/example/examples/PanResponder.tsx similarity index 100% rename from apps/examples/src/examples/PanResponder.tsx rename to apps/common/example/examples/PanResponder.tsx diff --git a/apps/examples/src/examples/Path.tsx b/apps/common/example/examples/Path.tsx similarity index 100% rename from apps/examples/src/examples/Path.tsx rename to apps/common/example/examples/Path.tsx diff --git a/apps/examples/src/examples/Polygon.tsx b/apps/common/example/examples/Polygon.tsx similarity index 100% rename from apps/examples/src/examples/Polygon.tsx rename to apps/common/example/examples/Polygon.tsx diff --git a/apps/examples/src/examples/Polyline.tsx b/apps/common/example/examples/Polyline.tsx similarity index 100% rename from apps/examples/src/examples/Polyline.tsx rename to apps/common/example/examples/Polyline.tsx diff --git a/apps/examples/src/examples/Reanimated.tsx b/apps/common/example/examples/Reanimated.tsx similarity index 100% rename from apps/examples/src/examples/Reanimated.tsx rename to apps/common/example/examples/Reanimated.tsx diff --git a/apps/examples/src/examples/Rect.tsx b/apps/common/example/examples/Rect.tsx similarity index 100% rename from apps/examples/src/examples/Rect.tsx rename to apps/common/example/examples/Rect.tsx diff --git a/apps/examples/src/examples/Reusable.tsx b/apps/common/example/examples/Reusable.tsx similarity index 100% rename from apps/examples/src/examples/Reusable.tsx rename to apps/common/example/examples/Reusable.tsx diff --git a/apps/examples/src/examples/Stroking.tsx b/apps/common/example/examples/Stroking.tsx similarity index 100% rename from apps/examples/src/examples/Stroking.tsx rename to apps/common/example/examples/Stroking.tsx diff --git a/apps/examples/src/examples/Svg.tsx b/apps/common/example/examples/Svg.tsx similarity index 100% rename from apps/examples/src/examples/Svg.tsx rename to apps/common/example/examples/Svg.tsx diff --git a/apps/examples/src/examples/Text.tsx b/apps/common/example/examples/Text.tsx similarity index 100% rename from apps/examples/src/examples/Text.tsx rename to apps/common/example/examples/Text.tsx diff --git a/apps/examples/src/examples/Text.windows.tsx b/apps/common/example/examples/Text.windows.tsx similarity index 100% rename from apps/examples/src/examples/Text.windows.tsx rename to apps/common/example/examples/Text.windows.tsx diff --git a/apps/examples/src/examples/TouchEvents.tsx b/apps/common/example/examples/TouchEvents.tsx similarity index 100% rename from apps/examples/src/examples/TouchEvents.tsx rename to apps/common/example/examples/TouchEvents.tsx diff --git a/apps/examples/src/examples/Transforms.tsx b/apps/common/example/examples/Transforms.tsx similarity index 100% rename from apps/examples/src/examples/Transforms.tsx rename to apps/common/example/examples/Transforms.tsx diff --git a/apps/examples/src/examples/index.tsx b/apps/common/example/examples/index.tsx similarity index 100% rename from apps/examples/src/examples/index.tsx rename to apps/common/example/examples/index.tsx diff --git a/apps/examples/index.tsx b/apps/common/example/index.tsx similarity index 81% rename from apps/examples/index.tsx rename to apps/common/example/index.tsx index 5aa4eb039..282686181 100644 --- a/apps/examples/index.tsx +++ b/apps/common/example/index.tsx @@ -10,21 +10,20 @@ import {createStackNavigator} from '@react-navigation/stack'; import React from 'react'; import {ActivityIndicator, Platform, View} from 'react-native'; import {GestureHandlerRootView} from 'react-native-gesture-handler'; -import {allScreens, allScreensKeys} from './src'; -import {ListScreen} from './src/ListScreen'; -import * as E2e from './src/e2e'; -import {examples} from './src/examples'; -import * as FilterImage from './src/examples/FilterImage'; -import * as Filters from './src/examples/Filters'; -import {commonStyles} from './src/utils/commonStyles'; -import composeComponents from './src/utils/composeComponent'; +import {ListScreen} from './ListScreen'; +import * as E2e from './e2e/index.macos'; +import {examples} from './examples'; +import * as FilterImage from './examples/FilterImage'; +import * as Filters from './examples/Filters'; +import {commonStyles} from './utils/commonStyles'; +import composeComponents from './utils/composeComponent'; import { Example, Examples, NavigationProp, RootStackParamList, -} from './src/utils/types'; -import {usePersistNavigation} from './src/utils/usePersistNavigation'; +} from './utils/types'; +import {usePersistNavigation} from './utils/usePersistNavigation'; export default function App() { const {isReady, initialState, persistNavigationState} = @@ -91,3 +90,11 @@ const Stack = Platform.OS === 'macos' ? createStackNavigator() : createNativeStackNavigator(); + +const allScreens = { + ...examples, + ...Filters.samples, + ...FilterImage.samples, +}; + +const allScreensKeys = Object.keys(allScreens) as (keyof typeof allScreens)[]; diff --git a/apps/examples/src/utils/commonStyles.ts b/apps/common/example/utils/commonStyles.ts similarity index 100% rename from apps/examples/src/utils/commonStyles.ts rename to apps/common/example/utils/commonStyles.ts diff --git a/apps/examples/src/utils/composeComponent.tsx b/apps/common/example/utils/composeComponent.tsx similarity index 100% rename from apps/examples/src/utils/composeComponent.tsx rename to apps/common/example/utils/composeComponent.tsx diff --git a/apps/examples/src/utils/types.ts b/apps/common/example/utils/types.ts similarity index 100% rename from apps/examples/src/utils/types.ts rename to apps/common/example/utils/types.ts diff --git a/apps/examples/src/utils/usePersistNavigation.ts b/apps/common/example/utils/usePersistNavigation.ts similarity index 100% rename from apps/examples/src/utils/usePersistNavigation.ts rename to apps/common/example/utils/usePersistNavigation.ts diff --git a/apps/common/index.tsx b/apps/common/index.tsx new file mode 100644 index 000000000..fe90837e6 --- /dev/null +++ b/apps/common/index.tsx @@ -0,0 +1,3 @@ +import App from './example'; + +export default App; diff --git a/apps/test-examples/src/ColorTest.tsx b/apps/common/test/ColorTest.tsx similarity index 100% rename from apps/test-examples/src/ColorTest.tsx rename to apps/common/test/ColorTest.tsx diff --git a/apps/test-examples/src/MountUnmount.tsx b/apps/common/test/MountUnmount.tsx similarity index 100% rename from apps/test-examples/src/MountUnmount.tsx rename to apps/common/test/MountUnmount.tsx diff --git a/apps/test-examples/src/PointerEventsBoxNone.tsx b/apps/common/test/PointerEventsBoxNone.tsx similarity index 100% rename from apps/test-examples/src/PointerEventsBoxNone.tsx rename to apps/common/test/PointerEventsBoxNone.tsx diff --git a/apps/test-examples/src/Test1318.tsx b/apps/common/test/Test1318.tsx similarity index 100% rename from apps/test-examples/src/Test1318.tsx rename to apps/common/test/Test1318.tsx diff --git a/apps/test-examples/src/Test1374.tsx b/apps/common/test/Test1374.tsx similarity index 100% rename from apps/test-examples/src/Test1374.tsx rename to apps/common/test/Test1374.tsx diff --git a/apps/test-examples/src/Test1442.tsx b/apps/common/test/Test1442.tsx similarity index 96% rename from apps/test-examples/src/Test1442.tsx rename to apps/common/test/Test1442.tsx index 26b095ed8..47d4ab067 100644 --- a/apps/test-examples/src/Test1442.tsx +++ b/apps/common/test/Test1442.tsx @@ -73,7 +73,7 @@ const PNGImageFromFile = () => { opacity="1" width={100} height={100} - href={require('../assets/arrow.png')} + href={require('./assets/arrow.png')} onLoad={e => console.log(`${Platform.OS} load png image from file`, e.nativeEvent) } @@ -107,7 +107,7 @@ const JPEGImageFromFile = () => { opacity="1" width={'100%'} height={'100%'} - href={require('../assets/earth.jpg')} + href={require('./assets/earth.jpg')} onLoad={e => console.log(`${Platform.OS} load JPEG image from file`, e.nativeEvent) } diff --git a/apps/test-examples/src/Test1451.tsx b/apps/common/test/Test1451.tsx similarity index 100% rename from apps/test-examples/src/Test1451.tsx rename to apps/common/test/Test1451.tsx diff --git a/apps/test-examples/src/Test1718.tsx b/apps/common/test/Test1718.tsx similarity index 100% rename from apps/test-examples/src/Test1718.tsx rename to apps/common/test/Test1718.tsx diff --git a/apps/test-examples/src/Test1790.tsx b/apps/common/test/Test1790.tsx similarity index 100% rename from apps/test-examples/src/Test1790.tsx rename to apps/common/test/Test1790.tsx diff --git a/apps/test-examples/src/Test1813.tsx b/apps/common/test/Test1813.tsx similarity index 98% rename from apps/test-examples/src/Test1813.tsx rename to apps/common/test/Test1813.tsx index b70e44742..dd78b44f7 100644 --- a/apps/test-examples/src/Test1813.tsx +++ b/apps/common/test/Test1813.tsx @@ -9,7 +9,7 @@ import { LocalSvg, } from 'react-native-svg/css'; -const asset = require('../assets/ruby.svg'); +const asset = require('./assets/ruby.svg'); const normalUri = 'https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ruby.svg'; const uriWithCss = 'http://thenewcode.com/assets/svg/accessibility.svg'; diff --git a/apps/test-examples/src/Test1845.tsx b/apps/common/test/Test1845.tsx similarity index 100% rename from apps/test-examples/src/Test1845.tsx rename to apps/common/test/Test1845.tsx diff --git a/apps/test-examples/src/Test1986.tsx b/apps/common/test/Test1986.tsx similarity index 100% rename from apps/test-examples/src/Test1986.tsx rename to apps/common/test/Test1986.tsx diff --git a/apps/test-examples/src/Test2071.tsx b/apps/common/test/Test2071.tsx similarity index 100% rename from apps/test-examples/src/Test2071.tsx rename to apps/common/test/Test2071.tsx diff --git a/apps/test-examples/src/Test2080.tsx b/apps/common/test/Test2080.tsx similarity index 100% rename from apps/test-examples/src/Test2080.tsx rename to apps/common/test/Test2080.tsx diff --git a/apps/test-examples/src/Test2086.tsx b/apps/common/test/Test2086.tsx similarity index 100% rename from apps/test-examples/src/Test2086.tsx rename to apps/common/test/Test2086.tsx diff --git a/apps/test-examples/src/Test2089.tsx b/apps/common/test/Test2089.tsx similarity index 100% rename from apps/test-examples/src/Test2089.tsx rename to apps/common/test/Test2089.tsx diff --git a/apps/test-examples/src/Test2142.tsx b/apps/common/test/Test2142.tsx similarity index 100% rename from apps/test-examples/src/Test2142.tsx rename to apps/common/test/Test2142.tsx diff --git a/apps/test-examples/src/Test2148.tsx b/apps/common/test/Test2148.tsx similarity index 100% rename from apps/test-examples/src/Test2148.tsx rename to apps/common/test/Test2148.tsx diff --git a/apps/test-examples/src/Test2170.tsx b/apps/common/test/Test2170.tsx similarity index 100% rename from apps/test-examples/src/Test2170.tsx rename to apps/common/test/Test2170.tsx diff --git a/apps/test-examples/src/Test2196.tsx b/apps/common/test/Test2196.tsx similarity index 100% rename from apps/test-examples/src/Test2196.tsx rename to apps/common/test/Test2196.tsx diff --git a/apps/test-examples/src/Test2233.tsx b/apps/common/test/Test2233.tsx similarity index 100% rename from apps/test-examples/src/Test2233.tsx rename to apps/common/test/Test2233.tsx diff --git a/apps/test-examples/src/Test2248.tsx b/apps/common/test/Test2248.tsx similarity index 100% rename from apps/test-examples/src/Test2248.tsx rename to apps/common/test/Test2248.tsx diff --git a/apps/test-examples/src/Test2266.tsx b/apps/common/test/Test2266.tsx similarity index 100% rename from apps/test-examples/src/Test2266.tsx rename to apps/common/test/Test2266.tsx diff --git a/apps/test-examples/src/Test2276.tsx b/apps/common/test/Test2276.tsx similarity index 100% rename from apps/test-examples/src/Test2276.tsx rename to apps/common/test/Test2276.tsx diff --git a/apps/test-examples/src/Test2327.tsx b/apps/common/test/Test2327.tsx similarity index 100% rename from apps/test-examples/src/Test2327.tsx rename to apps/common/test/Test2327.tsx diff --git a/apps/test-examples/src/Test2363.tsx b/apps/common/test/Test2363.tsx similarity index 100% rename from apps/test-examples/src/Test2363.tsx rename to apps/common/test/Test2363.tsx diff --git a/apps/test-examples/src/Test2366.tsx b/apps/common/test/Test2366.tsx similarity index 100% rename from apps/test-examples/src/Test2366.tsx rename to apps/common/test/Test2366.tsx diff --git a/apps/test-examples/src/Test2380.tsx b/apps/common/test/Test2380.tsx similarity index 100% rename from apps/test-examples/src/Test2380.tsx rename to apps/common/test/Test2380.tsx diff --git a/apps/test-examples/src/Test2397.tsx b/apps/common/test/Test2397.tsx similarity index 100% rename from apps/test-examples/src/Test2397.tsx rename to apps/common/test/Test2397.tsx diff --git a/apps/test-examples/src/Test2403.tsx b/apps/common/test/Test2403.tsx similarity index 100% rename from apps/test-examples/src/Test2403.tsx rename to apps/common/test/Test2403.tsx diff --git a/apps/test-examples/src/Test2407.tsx b/apps/common/test/Test2407.tsx similarity index 100% rename from apps/test-examples/src/Test2407.tsx rename to apps/common/test/Test2407.tsx diff --git a/apps/test-examples/src/Test2417.tsx b/apps/common/test/Test2417.tsx similarity index 100% rename from apps/test-examples/src/Test2417.tsx rename to apps/common/test/Test2417.tsx diff --git a/apps/test-examples/src/Test2455.tsx b/apps/common/test/Test2455.tsx similarity index 100% rename from apps/test-examples/src/Test2455.tsx rename to apps/common/test/Test2455.tsx diff --git a/apps/test-examples/src/Test2471.tsx b/apps/common/test/Test2471.tsx similarity index 100% rename from apps/test-examples/src/Test2471.tsx rename to apps/common/test/Test2471.tsx diff --git a/apps/test-examples/assets/arrow.png b/apps/common/test/assets/arrow.png similarity index 100% rename from apps/test-examples/assets/arrow.png rename to apps/common/test/assets/arrow.png diff --git a/apps/test-examples/assets/earth.jpg b/apps/common/test/assets/earth.jpg similarity index 100% rename from apps/test-examples/assets/earth.jpg rename to apps/common/test/assets/earth.jpg diff --git a/apps/test-examples/assets/ruby.svg b/apps/common/test/assets/ruby.svg similarity index 100% rename from apps/test-examples/assets/ruby.svg rename to apps/common/test/assets/ruby.svg diff --git a/apps/common/test/index.tsx b/apps/common/test/index.tsx new file mode 100644 index 000000000..131e6befb --- /dev/null +++ b/apps/common/test/index.tsx @@ -0,0 +1,40 @@ +/* eslint-disable no-unused-vars */ +import React from 'react'; + +import ColorTest from './ColorTest'; +import PointerEventsBoxNone from './PointerEventsBoxNone'; +import MountUnmount from './MountUnmount'; +import Test1318 from './Test1318'; +import Test1374 from './Test1374'; +import Test1442 from './Test1442'; +import Test1451 from './Test1451'; +import Test1718 from './Test1718'; +import Test1790 from './Test1790'; +import Test1813 from './Test1813'; +import Test1845 from './Test1845'; +import Test1986 from './Test1986'; +import Test2071 from './Test2071'; +import Test2080 from './Test2080'; +import Test2086 from './Test2086'; +import Test2089 from './Test2089'; +import Test2142 from './Test2142'; +import Test2148 from './Test2148'; +import Test2196 from './Test2196'; +import Test2248 from './Test2248'; +import Test2266 from './Test2266'; +import Test2276 from './Test2276'; +import Test2327 from './Test2327'; +import Test2233 from './Test2233'; +import Test2363 from './Test2363'; +import Test2366 from './Test2366'; +import Test2380 from './Test2380'; +import Test2397 from './Test2397'; +import Test2403 from './Test2403'; +import Test2407 from './Test2407'; +import Test2417 from './Test2417'; +import Test2455 from './Test2455'; +import Test2471 from './Test2471'; + +export default function App() { + return ; +} diff --git a/apps/tsconfig.json b/apps/common/tsconfig.json similarity index 95% rename from apps/tsconfig.json rename to apps/common/tsconfig.json index 1a823a1e0..5e43cf688 100644 --- a/apps/tsconfig.json +++ b/apps/common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.json", + "extends": "../../tsconfig.json", "compilerOptions": { "moduleSuffixes": [".macos", ""], "baseUrl": ".", diff --git a/example/.bundle/config b/apps/example/.bundle/config similarity index 100% rename from example/.bundle/config rename to apps/example/.bundle/config diff --git a/example/.gitignore b/apps/example/.gitignore similarity index 100% rename from example/.gitignore rename to apps/example/.gitignore diff --git a/example/.watchmanconfig b/apps/example/.watchmanconfig similarity index 100% rename from example/.watchmanconfig rename to apps/example/.watchmanconfig diff --git a/example/Gemfile b/apps/example/Gemfile similarity index 100% rename from example/Gemfile rename to apps/example/Gemfile diff --git a/example/Gemfile.lock b/apps/example/Gemfile.lock similarity index 100% rename from example/Gemfile.lock rename to apps/example/Gemfile.lock diff --git a/example/README.md b/apps/example/README.md similarity index 100% rename from example/README.md rename to apps/example/README.md diff --git a/example/android/app/build.gradle b/apps/example/android/app/build.gradle similarity index 100% rename from example/android/app/build.gradle rename to apps/example/android/app/build.gradle diff --git a/example/android/app/debug.keystore b/apps/example/android/app/debug.keystore similarity index 100% rename from example/android/app/debug.keystore rename to apps/example/android/app/debug.keystore diff --git a/example/android/app/proguard-rules.pro b/apps/example/android/app/proguard-rules.pro similarity index 100% rename from example/android/app/proguard-rules.pro rename to apps/example/android/app/proguard-rules.pro diff --git a/example/android/app/src/debug/AndroidManifest.xml b/apps/example/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from example/android/app/src/debug/AndroidManifest.xml rename to apps/example/android/app/src/debug/AndroidManifest.xml diff --git a/example/android/app/src/main/AndroidManifest.xml b/apps/example/android/app/src/main/AndroidManifest.xml similarity index 100% rename from example/android/app/src/main/AndroidManifest.xml rename to apps/example/android/app/src/main/AndroidManifest.xml diff --git a/example/android/app/src/main/java/com/example/MainActivity.kt b/apps/example/android/app/src/main/java/com/example/MainActivity.kt similarity index 100% rename from example/android/app/src/main/java/com/example/MainActivity.kt rename to apps/example/android/app/src/main/java/com/example/MainActivity.kt diff --git a/example/android/app/src/main/java/com/example/MainApplication.kt b/apps/example/android/app/src/main/java/com/example/MainApplication.kt similarity index 100% rename from example/android/app/src/main/java/com/example/MainApplication.kt rename to apps/example/android/app/src/main/java/com/example/MainApplication.kt diff --git a/example/android/app/src/main/res/drawable/rn_edit_text_material.xml b/apps/example/android/app/src/main/res/drawable/rn_edit_text_material.xml similarity index 100% rename from example/android/app/src/main/res/drawable/rn_edit_text_material.xml rename to apps/example/android/app/src/main/res/drawable/rn_edit_text_material.xml diff --git a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/apps/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to apps/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/apps/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png rename to apps/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png diff --git a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/apps/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to apps/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/apps/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png rename to apps/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png diff --git a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/apps/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to apps/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/apps/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png rename to apps/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/apps/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to apps/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/apps/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png rename to apps/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/apps/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to apps/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/apps/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png rename to apps/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/example/android/app/src/main/res/values/strings.xml b/apps/example/android/app/src/main/res/values/strings.xml similarity index 100% rename from example/android/app/src/main/res/values/strings.xml rename to apps/example/android/app/src/main/res/values/strings.xml diff --git a/example/android/app/src/main/res/values/styles.xml b/apps/example/android/app/src/main/res/values/styles.xml similarity index 100% rename from example/android/app/src/main/res/values/styles.xml rename to apps/example/android/app/src/main/res/values/styles.xml diff --git a/example/android/build.gradle b/apps/example/android/build.gradle similarity index 100% rename from example/android/build.gradle rename to apps/example/android/build.gradle diff --git a/example/android/gradle.properties b/apps/example/android/gradle.properties similarity index 100% rename from example/android/gradle.properties rename to apps/example/android/gradle.properties diff --git a/example/android/gradle/wrapper/gradle-wrapper.jar b/apps/example/android/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from example/android/gradle/wrapper/gradle-wrapper.jar rename to apps/example/android/gradle/wrapper/gradle-wrapper.jar diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/apps/example/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from example/android/gradle/wrapper/gradle-wrapper.properties rename to apps/example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/example/android/gradlew b/apps/example/android/gradlew similarity index 100% rename from example/android/gradlew rename to apps/example/android/gradlew diff --git a/example/android/gradlew.bat b/apps/example/android/gradlew.bat similarity index 100% rename from example/android/gradlew.bat rename to apps/example/android/gradlew.bat diff --git a/example/android/settings.gradle b/apps/example/android/settings.gradle similarity index 100% rename from example/android/settings.gradle rename to apps/example/android/settings.gradle diff --git a/example/app.json b/apps/example/app.json similarity index 100% rename from example/app.json rename to apps/example/app.json diff --git a/example/babel.config.js b/apps/example/babel.config.js similarity index 100% rename from example/babel.config.js rename to apps/example/babel.config.js diff --git a/example/index.js b/apps/example/index.js similarity index 84% rename from example/index.js rename to apps/example/index.js index d60a80149..a7ab94e96 100644 --- a/example/index.js +++ b/apps/example/index.js @@ -3,7 +3,7 @@ */ import { AppRegistry } from 'react-native'; -import App from '../apps'; +import App from '../common'; import { name as appName } from './app.json'; AppRegistry.registerComponent(appName, () => App); diff --git a/example/ios/.xcode.env b/apps/example/ios/.xcode.env similarity index 100% rename from example/ios/.xcode.env rename to apps/example/ios/.xcode.env diff --git a/example/ios/Example.xcodeproj/project.pbxproj b/apps/example/ios/Example.xcodeproj/project.pbxproj similarity index 100% rename from example/ios/Example.xcodeproj/project.pbxproj rename to apps/example/ios/Example.xcodeproj/project.pbxproj diff --git a/example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme b/apps/example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme similarity index 100% rename from example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme rename to apps/example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme diff --git a/example/ios/Example.xcworkspace/contents.xcworkspacedata b/apps/example/ios/Example.xcworkspace/contents.xcworkspacedata similarity index 100% rename from example/ios/Example.xcworkspace/contents.xcworkspacedata rename to apps/example/ios/Example.xcworkspace/contents.xcworkspacedata diff --git a/example/ios/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/apps/example/ios/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from example/ios/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to apps/example/ios/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/example/ios/Example/AppDelegate.h b/apps/example/ios/Example/AppDelegate.h similarity index 100% rename from example/ios/Example/AppDelegate.h rename to apps/example/ios/Example/AppDelegate.h diff --git a/example/ios/Example/AppDelegate.mm b/apps/example/ios/Example/AppDelegate.mm similarity index 100% rename from example/ios/Example/AppDelegate.mm rename to apps/example/ios/Example/AppDelegate.mm diff --git a/example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json b/apps/example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json rename to apps/example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json diff --git a/example/ios/Example/Images.xcassets/Contents.json b/apps/example/ios/Example/Images.xcassets/Contents.json similarity index 100% rename from example/ios/Example/Images.xcassets/Contents.json rename to apps/example/ios/Example/Images.xcassets/Contents.json diff --git a/example/ios/Example/Info.plist b/apps/example/ios/Example/Info.plist similarity index 100% rename from example/ios/Example/Info.plist rename to apps/example/ios/Example/Info.plist diff --git a/example/ios/Example/LaunchScreen.storyboard b/apps/example/ios/Example/LaunchScreen.storyboard similarity index 100% rename from example/ios/Example/LaunchScreen.storyboard rename to apps/example/ios/Example/LaunchScreen.storyboard diff --git a/example/ios/Example/PrivacyInfo.xcprivacy b/apps/example/ios/Example/PrivacyInfo.xcprivacy similarity index 100% rename from example/ios/Example/PrivacyInfo.xcprivacy rename to apps/example/ios/Example/PrivacyInfo.xcprivacy diff --git a/example/ios/Example/main.m b/apps/example/ios/Example/main.m similarity index 100% rename from example/ios/Example/main.m rename to apps/example/ios/Example/main.m diff --git a/example/ios/ExampleTests/ExampleTests.m b/apps/example/ios/ExampleTests/ExampleTests.m similarity index 100% rename from example/ios/ExampleTests/ExampleTests.m rename to apps/example/ios/ExampleTests/ExampleTests.m diff --git a/example/ios/ExampleTests/Info.plist b/apps/example/ios/ExampleTests/Info.plist similarity index 100% rename from example/ios/ExampleTests/Info.plist rename to apps/example/ios/ExampleTests/Info.plist diff --git a/example/ios/Podfile b/apps/example/ios/Podfile similarity index 100% rename from example/ios/Podfile rename to apps/example/ios/Podfile diff --git a/example/ios/Podfile.lock b/apps/example/ios/Podfile.lock similarity index 100% rename from example/ios/Podfile.lock rename to apps/example/ios/Podfile.lock diff --git a/example/jest.config.js b/apps/example/jest.config.js similarity index 100% rename from example/jest.config.js rename to apps/example/jest.config.js diff --git a/example/metro.config.js b/apps/example/metro.config.js similarity index 100% rename from example/metro.config.js rename to apps/example/metro.config.js diff --git a/example/package.json b/apps/example/package.json similarity index 97% rename from example/package.json rename to apps/example/package.json index 5c46a8f43..60b678a3d 100644 --- a/example/package.json +++ b/apps/example/package.json @@ -24,7 +24,7 @@ "react-native-reanimated": "^3.16.1", "react-native-safe-area-context": "^4.11.1", "react-native-screens": "3.35.0", - "react-native-svg": "link:../", + "react-native-svg": "link:../../", "react-native-view-shot": "4.0.0-alpha.2" }, "devDependencies": { diff --git a/example/patches/react-native-safe-area-context+4.11.1.patch b/apps/example/patches/react-native-safe-area-context+4.11.1.patch similarity index 100% rename from example/patches/react-native-safe-area-context+4.11.1.patch rename to apps/example/patches/react-native-safe-area-context+4.11.1.patch diff --git a/example/patches/react-native-view-shot+4.0.0-alpha.2.patch b/apps/example/patches/react-native-view-shot+4.0.0-alpha.2.patch similarity index 100% rename from example/patches/react-native-view-shot+4.0.0-alpha.2.patch rename to apps/example/patches/react-native-view-shot+4.0.0-alpha.2.patch diff --git a/example/yarn.lock b/apps/example/yarn.lock similarity index 99% rename from example/yarn.lock rename to apps/example/yarn.lock index 360927553..7f5e27e4a 100644 --- a/example/yarn.lock +++ b/apps/example/yarn.lock @@ -6241,7 +6241,7 @@ react-native-screens@3.35.0: react-freeze "^1.0.0" warn-once "^0.1.0" -"react-native-svg@link:..": +"react-native-svg@link:../..": version "0.0.0" uid "" diff --git a/apps/examples/src/index.ts b/apps/examples/src/index.ts deleted file mode 100644 index b9004ea6d..000000000 --- a/apps/examples/src/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {examples} from './examples'; -import * as Filters from './examples/Filters'; -import * as FilterImage from './examples/FilterImage'; - -export const allScreens = { - ...examples, - ...Filters.samples, - ...FilterImage.samples, -}; - -export const allScreensKeys = Object.keys( - allScreens, -) as (keyof typeof allScreens)[]; diff --git a/fabric-example/.bundle/config b/apps/fabric-example/.bundle/config similarity index 100% rename from fabric-example/.bundle/config rename to apps/fabric-example/.bundle/config diff --git a/fabric-example/.gitignore b/apps/fabric-example/.gitignore similarity index 100% rename from fabric-example/.gitignore rename to apps/fabric-example/.gitignore diff --git a/fabric-example/.watchmanconfig b/apps/fabric-example/.watchmanconfig similarity index 100% rename from fabric-example/.watchmanconfig rename to apps/fabric-example/.watchmanconfig diff --git a/fabric-example/Gemfile b/apps/fabric-example/Gemfile similarity index 100% rename from fabric-example/Gemfile rename to apps/fabric-example/Gemfile diff --git a/fabric-example/Gemfile.lock b/apps/fabric-example/Gemfile.lock similarity index 100% rename from fabric-example/Gemfile.lock rename to apps/fabric-example/Gemfile.lock diff --git a/fabric-example/android/app/build.gradle b/apps/fabric-example/android/app/build.gradle similarity index 100% rename from fabric-example/android/app/build.gradle rename to apps/fabric-example/android/app/build.gradle diff --git a/fabric-example/android/app/debug.keystore b/apps/fabric-example/android/app/debug.keystore similarity index 100% rename from fabric-example/android/app/debug.keystore rename to apps/fabric-example/android/app/debug.keystore diff --git a/fabric-example/android/app/proguard-rules.pro b/apps/fabric-example/android/app/proguard-rules.pro similarity index 100% rename from fabric-example/android/app/proguard-rules.pro rename to apps/fabric-example/android/app/proguard-rules.pro diff --git a/fabric-example/android/app/src/debug/AndroidManifest.xml b/apps/fabric-example/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from fabric-example/android/app/src/debug/AndroidManifest.xml rename to apps/fabric-example/android/app/src/debug/AndroidManifest.xml diff --git a/fabric-example/android/app/src/main/AndroidManifest.xml b/apps/fabric-example/android/app/src/main/AndroidManifest.xml similarity index 100% rename from fabric-example/android/app/src/main/AndroidManifest.xml rename to apps/fabric-example/android/app/src/main/AndroidManifest.xml diff --git a/fabric-example/android/app/src/main/java/com/fabricexample/MainActivity.kt b/apps/fabric-example/android/app/src/main/java/com/fabricexample/MainActivity.kt similarity index 100% rename from fabric-example/android/app/src/main/java/com/fabricexample/MainActivity.kt rename to apps/fabric-example/android/app/src/main/java/com/fabricexample/MainActivity.kt diff --git a/fabric-example/android/app/src/main/java/com/fabricexample/MainApplication.kt b/apps/fabric-example/android/app/src/main/java/com/fabricexample/MainApplication.kt similarity index 100% rename from fabric-example/android/app/src/main/java/com/fabricexample/MainApplication.kt rename to apps/fabric-example/android/app/src/main/java/com/fabricexample/MainApplication.kt diff --git a/fabric-example/android/app/src/main/res/drawable/rn_edit_text_material.xml b/apps/fabric-example/android/app/src/main/res/drawable/rn_edit_text_material.xml similarity index 100% rename from fabric-example/android/app/src/main/res/drawable/rn_edit_text_material.xml rename to apps/fabric-example/android/app/src/main/res/drawable/rn_edit_text_material.xml diff --git a/fabric-example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/apps/fabric-example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to apps/fabric-example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/fabric-example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/apps/fabric-example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png rename to apps/fabric-example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png diff --git a/fabric-example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/apps/fabric-example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to apps/fabric-example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/fabric-example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/apps/fabric-example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png rename to apps/fabric-example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png diff --git a/fabric-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/apps/fabric-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to apps/fabric-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/fabric-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/apps/fabric-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png rename to apps/fabric-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/fabric-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/apps/fabric-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to apps/fabric-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/fabric-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/apps/fabric-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png rename to apps/fabric-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/fabric-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/apps/fabric-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to apps/fabric-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/fabric-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/apps/fabric-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from fabric-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png rename to apps/fabric-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/fabric-example/android/app/src/main/res/values/strings.xml b/apps/fabric-example/android/app/src/main/res/values/strings.xml similarity index 100% rename from fabric-example/android/app/src/main/res/values/strings.xml rename to apps/fabric-example/android/app/src/main/res/values/strings.xml diff --git a/fabric-example/android/app/src/main/res/values/styles.xml b/apps/fabric-example/android/app/src/main/res/values/styles.xml similarity index 100% rename from fabric-example/android/app/src/main/res/values/styles.xml rename to apps/fabric-example/android/app/src/main/res/values/styles.xml diff --git a/fabric-example/android/build.gradle b/apps/fabric-example/android/build.gradle similarity index 100% rename from fabric-example/android/build.gradle rename to apps/fabric-example/android/build.gradle diff --git a/fabric-example/android/gradle.properties b/apps/fabric-example/android/gradle.properties similarity index 100% rename from fabric-example/android/gradle.properties rename to apps/fabric-example/android/gradle.properties diff --git a/fabric-example/android/gradle/wrapper/gradle-wrapper.jar b/apps/fabric-example/android/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from fabric-example/android/gradle/wrapper/gradle-wrapper.jar rename to apps/fabric-example/android/gradle/wrapper/gradle-wrapper.jar diff --git a/fabric-example/android/gradle/wrapper/gradle-wrapper.properties b/apps/fabric-example/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from fabric-example/android/gradle/wrapper/gradle-wrapper.properties rename to apps/fabric-example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/fabric-example/android/gradlew b/apps/fabric-example/android/gradlew similarity index 100% rename from fabric-example/android/gradlew rename to apps/fabric-example/android/gradlew diff --git a/fabric-example/android/gradlew.bat b/apps/fabric-example/android/gradlew.bat similarity index 100% rename from fabric-example/android/gradlew.bat rename to apps/fabric-example/android/gradlew.bat diff --git a/fabric-example/android/settings.gradle b/apps/fabric-example/android/settings.gradle similarity index 100% rename from fabric-example/android/settings.gradle rename to apps/fabric-example/android/settings.gradle diff --git a/fabric-example/app.json b/apps/fabric-example/app.json similarity index 100% rename from fabric-example/app.json rename to apps/fabric-example/app.json diff --git a/fabric-example/babel.config.js b/apps/fabric-example/babel.config.js similarity index 100% rename from fabric-example/babel.config.js rename to apps/fabric-example/babel.config.js diff --git a/paper-windows-example/index.js b/apps/fabric-example/index.js similarity index 84% rename from paper-windows-example/index.js rename to apps/fabric-example/index.js index d60a80149..a7ab94e96 100644 --- a/paper-windows-example/index.js +++ b/apps/fabric-example/index.js @@ -3,7 +3,7 @@ */ import { AppRegistry } from 'react-native'; -import App from '../apps'; +import App from '../common'; import { name as appName } from './app.json'; AppRegistry.registerComponent(appName, () => App); diff --git a/fabric-example/ios/.xcode.env b/apps/fabric-example/ios/.xcode.env similarity index 100% rename from fabric-example/ios/.xcode.env rename to apps/fabric-example/ios/.xcode.env diff --git a/fabric-example/ios/FabricExample.xcodeproj/project.pbxproj b/apps/fabric-example/ios/FabricExample.xcodeproj/project.pbxproj similarity index 100% rename from fabric-example/ios/FabricExample.xcodeproj/project.pbxproj rename to apps/fabric-example/ios/FabricExample.xcodeproj/project.pbxproj diff --git a/fabric-example/ios/FabricExample.xcodeproj/xcshareddata/xcschemes/FabricExample.xcscheme b/apps/fabric-example/ios/FabricExample.xcodeproj/xcshareddata/xcschemes/FabricExample.xcscheme similarity index 100% rename from fabric-example/ios/FabricExample.xcodeproj/xcshareddata/xcschemes/FabricExample.xcscheme rename to apps/fabric-example/ios/FabricExample.xcodeproj/xcshareddata/xcschemes/FabricExample.xcscheme diff --git a/fabric-example/ios/FabricExample.xcworkspace/contents.xcworkspacedata b/apps/fabric-example/ios/FabricExample.xcworkspace/contents.xcworkspacedata similarity index 100% rename from fabric-example/ios/FabricExample.xcworkspace/contents.xcworkspacedata rename to apps/fabric-example/ios/FabricExample.xcworkspace/contents.xcworkspacedata diff --git a/fabric-example/ios/FabricExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/apps/fabric-example/ios/FabricExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from fabric-example/ios/FabricExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to apps/fabric-example/ios/FabricExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/fabric-example/ios/FabricExample/AppDelegate.h b/apps/fabric-example/ios/FabricExample/AppDelegate.h similarity index 100% rename from fabric-example/ios/FabricExample/AppDelegate.h rename to apps/fabric-example/ios/FabricExample/AppDelegate.h diff --git a/fabric-example/ios/FabricExample/AppDelegate.mm b/apps/fabric-example/ios/FabricExample/AppDelegate.mm similarity index 100% rename from fabric-example/ios/FabricExample/AppDelegate.mm rename to apps/fabric-example/ios/FabricExample/AppDelegate.mm diff --git a/fabric-example/ios/FabricExample/Images.xcassets/AppIcon.appiconset/Contents.json b/apps/fabric-example/ios/FabricExample/Images.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from fabric-example/ios/FabricExample/Images.xcassets/AppIcon.appiconset/Contents.json rename to apps/fabric-example/ios/FabricExample/Images.xcassets/AppIcon.appiconset/Contents.json diff --git a/fabric-example/ios/FabricExample/Images.xcassets/Contents.json b/apps/fabric-example/ios/FabricExample/Images.xcassets/Contents.json similarity index 100% rename from fabric-example/ios/FabricExample/Images.xcassets/Contents.json rename to apps/fabric-example/ios/FabricExample/Images.xcassets/Contents.json diff --git a/fabric-example/ios/FabricExample/Info.plist b/apps/fabric-example/ios/FabricExample/Info.plist similarity index 100% rename from fabric-example/ios/FabricExample/Info.plist rename to apps/fabric-example/ios/FabricExample/Info.plist diff --git a/fabric-example/ios/FabricExample/LaunchScreen.storyboard b/apps/fabric-example/ios/FabricExample/LaunchScreen.storyboard similarity index 100% rename from fabric-example/ios/FabricExample/LaunchScreen.storyboard rename to apps/fabric-example/ios/FabricExample/LaunchScreen.storyboard diff --git a/fabric-example/ios/FabricExample/PrivacyInfo.xcprivacy b/apps/fabric-example/ios/FabricExample/PrivacyInfo.xcprivacy similarity index 100% rename from fabric-example/ios/FabricExample/PrivacyInfo.xcprivacy rename to apps/fabric-example/ios/FabricExample/PrivacyInfo.xcprivacy diff --git a/fabric-example/ios/FabricExample/main.m b/apps/fabric-example/ios/FabricExample/main.m similarity index 100% rename from fabric-example/ios/FabricExample/main.m rename to apps/fabric-example/ios/FabricExample/main.m diff --git a/fabric-example/ios/FabricExampleTests/FabricExampleTests.m b/apps/fabric-example/ios/FabricExampleTests/FabricExampleTests.m similarity index 100% rename from fabric-example/ios/FabricExampleTests/FabricExampleTests.m rename to apps/fabric-example/ios/FabricExampleTests/FabricExampleTests.m diff --git a/fabric-example/ios/FabricExampleTests/Info.plist b/apps/fabric-example/ios/FabricExampleTests/Info.plist similarity index 100% rename from fabric-example/ios/FabricExampleTests/Info.plist rename to apps/fabric-example/ios/FabricExampleTests/Info.plist diff --git a/fabric-example/ios/Podfile b/apps/fabric-example/ios/Podfile similarity index 100% rename from fabric-example/ios/Podfile rename to apps/fabric-example/ios/Podfile diff --git a/fabric-example/ios/Podfile.lock b/apps/fabric-example/ios/Podfile.lock similarity index 100% rename from fabric-example/ios/Podfile.lock rename to apps/fabric-example/ios/Podfile.lock diff --git a/fabric-example/jest.config.js b/apps/fabric-example/jest.config.js similarity index 100% rename from fabric-example/jest.config.js rename to apps/fabric-example/jest.config.js diff --git a/fabric-example/metro.config.js b/apps/fabric-example/metro.config.js similarity index 100% rename from fabric-example/metro.config.js rename to apps/fabric-example/metro.config.js diff --git a/fabric-example/package.json b/apps/fabric-example/package.json similarity index 97% rename from fabric-example/package.json rename to apps/fabric-example/package.json index 90b898f35..85265d03a 100644 --- a/fabric-example/package.json +++ b/apps/fabric-example/package.json @@ -21,7 +21,7 @@ "react-native-reanimated": "3.16.1", "react-native-safe-area-context": "^4.11.1", "react-native-screens": "3.35.0", - "react-native-svg": "link:../", + "react-native-svg": "link:../../", "react-native-view-shot": "4.0.0-alpha.2" }, "devDependencies": { diff --git a/fabric-example/patches/react-native-safe-area-context+4.11.1.patch b/apps/fabric-example/patches/react-native-safe-area-context+4.11.1.patch similarity index 100% rename from fabric-example/patches/react-native-safe-area-context+4.11.1.patch rename to apps/fabric-example/patches/react-native-safe-area-context+4.11.1.patch diff --git a/fabric-example/patches/react-native-view-shot+4.0.0-alpha.2.patch b/apps/fabric-example/patches/react-native-view-shot+4.0.0-alpha.2.patch similarity index 100% rename from fabric-example/patches/react-native-view-shot+4.0.0-alpha.2.patch rename to apps/fabric-example/patches/react-native-view-shot+4.0.0-alpha.2.patch diff --git a/fabric-example/yarn.lock b/apps/fabric-example/yarn.lock similarity index 99% rename from fabric-example/yarn.lock rename to apps/fabric-example/yarn.lock index d267fc957..013106287 100644 --- a/fabric-example/yarn.lock +++ b/apps/fabric-example/yarn.lock @@ -6724,7 +6724,7 @@ react-native-screens@3.35.0: react-freeze "^1.0.0" warn-once "^0.1.0" -"react-native-svg@link:..": +"react-native-svg@link:../..": version "0.0.0" uid "" diff --git a/fabric-macos-example/.bundle/config b/apps/fabric-macos-example/.bundle/config similarity index 100% rename from fabric-macos-example/.bundle/config rename to apps/fabric-macos-example/.bundle/config diff --git a/fabric-macos-example/.gitignore b/apps/fabric-macos-example/.gitignore similarity index 100% rename from fabric-macos-example/.gitignore rename to apps/fabric-macos-example/.gitignore diff --git a/fabric-macos-example/.prettierrc.js b/apps/fabric-macos-example/.prettierrc.js similarity index 100% rename from fabric-macos-example/.prettierrc.js rename to apps/fabric-macos-example/.prettierrc.js diff --git a/fabric-macos-example/.watchmanconfig b/apps/fabric-macos-example/.watchmanconfig similarity index 100% rename from fabric-macos-example/.watchmanconfig rename to apps/fabric-macos-example/.watchmanconfig diff --git a/fabric-macos-example/Gemfile b/apps/fabric-macos-example/Gemfile similarity index 100% rename from fabric-macos-example/Gemfile rename to apps/fabric-macos-example/Gemfile diff --git a/fabric-macos-example/Gemfile.lock b/apps/fabric-macos-example/Gemfile.lock similarity index 100% rename from fabric-macos-example/Gemfile.lock rename to apps/fabric-macos-example/Gemfile.lock diff --git a/fabric-macos-example/__tests__/App.test.tsx b/apps/fabric-macos-example/__tests__/App.test.tsx similarity index 100% rename from fabric-macos-example/__tests__/App.test.tsx rename to apps/fabric-macos-example/__tests__/App.test.tsx diff --git a/fabric-macos-example/app.json b/apps/fabric-macos-example/app.json similarity index 100% rename from fabric-macos-example/app.json rename to apps/fabric-macos-example/app.json diff --git a/fabric-macos-example/babel.config.js b/apps/fabric-macos-example/babel.config.js similarity index 100% rename from fabric-macos-example/babel.config.js rename to apps/fabric-macos-example/babel.config.js diff --git a/paper-macos-example/index.js b/apps/fabric-macos-example/index.js similarity index 84% rename from paper-macos-example/index.js rename to apps/fabric-macos-example/index.js index a5aaa4a89..aa1be2128 100644 --- a/paper-macos-example/index.js +++ b/apps/fabric-macos-example/index.js @@ -3,7 +3,7 @@ */ import {AppRegistry} from 'react-native'; -import App from '../apps'; +import App from '../common'; import {name as appName} from './app.json'; AppRegistry.registerComponent(appName, () => App); diff --git a/fabric-macos-example/jest.config.js b/apps/fabric-macos-example/jest.config.js similarity index 100% rename from fabric-macos-example/jest.config.js rename to apps/fabric-macos-example/jest.config.js diff --git a/fabric-macos-example/macos/.gitignore b/apps/fabric-macos-example/macos/.gitignore similarity index 100% rename from fabric-macos-example/macos/.gitignore rename to apps/fabric-macos-example/macos/.gitignore diff --git a/fabric-macos-example/macos/.xcode.env b/apps/fabric-macos-example/macos/.xcode.env similarity index 100% rename from fabric-macos-example/macos/.xcode.env rename to apps/fabric-macos-example/macos/.xcode.env diff --git a/fabric-macos-example/macos/FabricMacOSExample-macOS/AppDelegate.h b/apps/fabric-macos-example/macos/FabricMacOSExample-macOS/AppDelegate.h similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample-macOS/AppDelegate.h rename to apps/fabric-macos-example/macos/FabricMacOSExample-macOS/AppDelegate.h diff --git a/fabric-macos-example/macos/FabricMacOSExample-macOS/AppDelegate.mm b/apps/fabric-macos-example/macos/FabricMacOSExample-macOS/AppDelegate.mm similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample-macOS/AppDelegate.mm rename to apps/fabric-macos-example/macos/FabricMacOSExample-macOS/AppDelegate.mm diff --git a/fabric-macos-example/macos/FabricMacOSExample-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/apps/fabric-macos-example/macos/FabricMacOSExample-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json rename to apps/fabric-macos-example/macos/FabricMacOSExample-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/fabric-macos-example/macos/FabricMacOSExample-macOS/Assets.xcassets/Contents.json b/apps/fabric-macos-example/macos/FabricMacOSExample-macOS/Assets.xcassets/Contents.json similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample-macOS/Assets.xcassets/Contents.json rename to apps/fabric-macos-example/macos/FabricMacOSExample-macOS/Assets.xcassets/Contents.json diff --git a/fabric-macos-example/macos/FabricMacOSExample-macOS/Base.lproj/Main.storyboard b/apps/fabric-macos-example/macos/FabricMacOSExample-macOS/Base.lproj/Main.storyboard similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample-macOS/Base.lproj/Main.storyboard rename to apps/fabric-macos-example/macos/FabricMacOSExample-macOS/Base.lproj/Main.storyboard diff --git a/fabric-macos-example/macos/FabricMacOSExample-macOS/FabricMacOSExample.entitlements b/apps/fabric-macos-example/macos/FabricMacOSExample-macOS/FabricMacOSExample.entitlements similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample-macOS/FabricMacOSExample.entitlements rename to apps/fabric-macos-example/macos/FabricMacOSExample-macOS/FabricMacOSExample.entitlements diff --git a/fabric-macos-example/macos/FabricMacOSExample-macOS/Info.plist b/apps/fabric-macos-example/macos/FabricMacOSExample-macOS/Info.plist similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample-macOS/Info.plist rename to apps/fabric-macos-example/macos/FabricMacOSExample-macOS/Info.plist diff --git a/fabric-macos-example/macos/FabricMacOSExample-macOS/main.m b/apps/fabric-macos-example/macos/FabricMacOSExample-macOS/main.m similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample-macOS/main.m rename to apps/fabric-macos-example/macos/FabricMacOSExample-macOS/main.m diff --git a/fabric-macos-example/macos/FabricMacOSExample.xcodeproj/project.pbxproj b/apps/fabric-macos-example/macos/FabricMacOSExample.xcodeproj/project.pbxproj similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample.xcodeproj/project.pbxproj rename to apps/fabric-macos-example/macos/FabricMacOSExample.xcodeproj/project.pbxproj diff --git a/fabric-macos-example/macos/FabricMacOSExample.xcodeproj/xcshareddata/xcschemes/FabricMacOSExample-macOS.xcscheme b/apps/fabric-macos-example/macos/FabricMacOSExample.xcodeproj/xcshareddata/xcschemes/FabricMacOSExample-macOS.xcscheme similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample.xcodeproj/xcshareddata/xcschemes/FabricMacOSExample-macOS.xcscheme rename to apps/fabric-macos-example/macos/FabricMacOSExample.xcodeproj/xcshareddata/xcschemes/FabricMacOSExample-macOS.xcscheme diff --git a/fabric-macos-example/macos/FabricMacOSExample.xcworkspace/contents.xcworkspacedata b/apps/fabric-macos-example/macos/FabricMacOSExample.xcworkspace/contents.xcworkspacedata similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample.xcworkspace/contents.xcworkspacedata rename to apps/fabric-macos-example/macos/FabricMacOSExample.xcworkspace/contents.xcworkspacedata diff --git a/fabric-macos-example/macos/FabricMacOSExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/apps/fabric-macos-example/macos/FabricMacOSExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from fabric-macos-example/macos/FabricMacOSExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to apps/fabric-macos-example/macos/FabricMacOSExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/fabric-macos-example/macos/Podfile b/apps/fabric-macos-example/macos/Podfile similarity index 100% rename from fabric-macos-example/macos/Podfile rename to apps/fabric-macos-example/macos/Podfile diff --git a/fabric-macos-example/macos/Podfile.lock b/apps/fabric-macos-example/macos/Podfile.lock similarity index 100% rename from fabric-macos-example/macos/Podfile.lock rename to apps/fabric-macos-example/macos/Podfile.lock diff --git a/fabric-macos-example/macos/PrivacyInfo.xcprivacy b/apps/fabric-macos-example/macos/PrivacyInfo.xcprivacy similarity index 100% rename from fabric-macos-example/macos/PrivacyInfo.xcprivacy rename to apps/fabric-macos-example/macos/PrivacyInfo.xcprivacy diff --git a/fabric-macos-example/metro.config.js b/apps/fabric-macos-example/metro.config.js similarity index 100% rename from fabric-macos-example/metro.config.js rename to apps/fabric-macos-example/metro.config.js diff --git a/fabric-macos-example/package.json b/apps/fabric-macos-example/package.json similarity index 97% rename from fabric-macos-example/package.json rename to apps/fabric-macos-example/package.json index 3d0f23b72..6eccdbe8c 100644 --- a/fabric-macos-example/package.json +++ b/apps/fabric-macos-example/package.json @@ -19,7 +19,7 @@ "react-native-gesture-handler": "https://github.com/software-mansion/react-native-gesture-handler", "react-native-macos": "^0.73.0-0", "react-native-reanimated": "3.9.0", - "react-native-svg": "link:../" + "react-native-svg": "link:.././" }, "devDependencies": { "@babel/core": "^7.20.0", diff --git a/fabric-macos-example/patches/react-native-reanimated+3.9.0.patch b/apps/fabric-macos-example/patches/react-native-reanimated+3.9.0.patch similarity index 100% rename from fabric-macos-example/patches/react-native-reanimated+3.9.0.patch rename to apps/fabric-macos-example/patches/react-native-reanimated+3.9.0.patch diff --git a/fabric-macos-example/yarn.lock b/apps/fabric-macos-example/yarn.lock similarity index 98% rename from fabric-macos-example/yarn.lock rename to apps/fabric-macos-example/yarn.lock index 37d773749..3144d9abc 100644 --- a/fabric-macos-example/yarn.lock +++ b/apps/fabric-macos-example/yarn.lock @@ -2832,11 +2832,6 @@ bl@^4.1.0: inherits "^2.0.4" readable-stream "^3.4.0" -boolbase@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" - integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== - brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -3199,30 +3194,6 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -css-select@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/css-select/-/css-select-5.1.0.tgz#b8ebd6554c3637ccc76688804ad3f6a6fdaea8a6" - integrity sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg== - dependencies: - boolbase "^1.0.0" - css-what "^6.1.0" - domhandler "^5.0.2" - domutils "^3.0.1" - nth-check "^2.0.1" - -css-tree@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d" - integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q== - dependencies: - mdn-data "2.0.14" - source-map "^0.6.1" - -css-what@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4" - integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== - csstype@^3.0.2: version "3.1.3" resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" @@ -3379,36 +3350,6 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" -dom-serializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-2.0.0.tgz#e41b802e1eedf9f6cae183ce5e622d789d7d8e53" - integrity sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg== - dependencies: - domelementtype "^2.3.0" - domhandler "^5.0.2" - entities "^4.2.0" - -domelementtype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d" - integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== - -domhandler@^5.0.2, domhandler@^5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-5.0.3.tgz#cc385f7f751f1d1fc650c21374804254538c7d31" - integrity sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w== - dependencies: - domelementtype "^2.3.0" - -domutils@^3.0.1: - version "3.1.0" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-3.1.0.tgz#c47f551278d3dc4b0b1ab8cbb42d751a6f0d824e" - integrity sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA== - dependencies: - dom-serializer "^2.0.0" - domelementtype "^2.3.0" - domhandler "^5.0.3" - ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" @@ -3434,11 +3375,6 @@ encodeurl@~1.0.2: resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== -entities@^4.2.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" - integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== - envinfo@^7.10.0: version "7.13.0" resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.13.0.tgz#81fbb81e5da35d74e814941aeab7c325a606fb31" @@ -5350,11 +5286,6 @@ marky@^1.2.2: resolved "https://registry.yarnpkg.com/marky/-/marky-1.2.5.tgz#55796b688cbd72390d2d399eaaf1832c9413e3c0" integrity sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q== -mdn-data@2.0.14: - version "2.0.14" - resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50" - integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow== - memoize-one@^5.0.0: version "5.2.1" resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.2.1.tgz#8337aa3c4335581839ec01c3d594090cebe8f00e" @@ -5775,13 +5706,6 @@ npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" -nth-check@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d" - integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== - dependencies: - boolbase "^1.0.0" - nullthrows@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" @@ -6197,11 +6121,6 @@ react-devtools-core@^4.27.7: shell-quote "^1.6.1" ws "^7" -react-freeze@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/react-freeze/-/react-freeze-1.0.4.tgz#cbbea2762b0368b05cbe407ddc9d518c57c6f3ad" - integrity sha512-r4F0Sec0BLxWicc7HEyo2x3/2icUTrRmDjaaRyzzn+7aDyFZliszMDOgLVwSnQnYENOlL1o569Ze2HZefk8clA== - "react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^18.0.0, react-is@^18.2.0: version "18.3.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" @@ -6284,19 +6203,6 @@ react-native-reanimated@3.9.0: convert-source-map "^2.0.0" invariant "^2.2.4" -react-native-safe-area-context@^4.11.0: - version "4.11.1" - resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.11.1.tgz#dae959f4512ca125f087a44c16b2c23de10b0e29" - integrity sha512-urF1m4nFiZFaWjsv2zj8J/hKvo4b2tJW+6CYU1mY4lKv1RwhG2eV8J/EHKuNlLhATZx3+6j7szrpHrQW2ZcAaQ== - -react-native-screens@^3.34.0: - version "3.34.0" - resolved "https://registry.yarnpkg.com/react-native-screens/-/react-native-screens-3.34.0.tgz#1291a460c5bc59e2ba581b42d40fa9a58d3b1197" - integrity sha512-8ri3Pd9QcpfXnVckOe/Lnto+BXmSPHV/Q0RB0XW0gDKsCv5wi5k7ez7g1SzgiYHl29MSdiqgjH30zUyOOowOaw== - dependencies: - react-freeze "^1.0.0" - warn-once "^0.1.0" - "react-native-svg@link:..": version "0.0.0" uid "" @@ -7292,7 +7198,7 @@ walker@^1.0.7, walker@^1.0.8: dependencies: makeerror "1.0.12" -warn-once@0.1.1, warn-once@^0.1.0: +warn-once@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/warn-once/-/warn-once-0.1.1.tgz#952088f4fb56896e73fd4e6a3767272a3fccce43" integrity sha512-VkQZJbO8zVImzYFteBXvBOZEl1qL175WH8VmZcxF2fZAoudNhNDvHi+doCaAEdU2l2vtcIwa2zn0QK5+I1HQ3Q== diff --git a/fabric-windows-example/.gitignore b/apps/fabric-windows-example/.gitignore similarity index 100% rename from fabric-windows-example/.gitignore rename to apps/fabric-windows-example/.gitignore diff --git a/fabric-windows-example/.prettierrc.js b/apps/fabric-windows-example/.prettierrc.js similarity index 100% rename from fabric-windows-example/.prettierrc.js rename to apps/fabric-windows-example/.prettierrc.js diff --git a/fabric-windows-example/.ruby-version b/apps/fabric-windows-example/.ruby-version similarity index 100% rename from fabric-windows-example/.ruby-version rename to apps/fabric-windows-example/.ruby-version diff --git a/fabric-windows-example/.watchmanconfig b/apps/fabric-windows-example/.watchmanconfig similarity index 100% rename from fabric-windows-example/.watchmanconfig rename to apps/fabric-windows-example/.watchmanconfig diff --git a/fabric-windows-example/app.json b/apps/fabric-windows-example/app.json similarity index 100% rename from fabric-windows-example/app.json rename to apps/fabric-windows-example/app.json diff --git a/fabric-windows-example/babel.config.js b/apps/fabric-windows-example/babel.config.js similarity index 100% rename from fabric-windows-example/babel.config.js rename to apps/fabric-windows-example/babel.config.js diff --git a/fabric-windows-example/index.js b/apps/fabric-windows-example/index.js similarity index 84% rename from fabric-windows-example/index.js rename to apps/fabric-windows-example/index.js index a850d031d..aa1be2128 100644 --- a/fabric-windows-example/index.js +++ b/apps/fabric-windows-example/index.js @@ -3,7 +3,7 @@ */ import {AppRegistry} from 'react-native'; -import App from './App'; +import App from '../common'; import {name as appName} from './app.json'; AppRegistry.registerComponent(appName, () => App); diff --git a/fabric-windows-example/jest.config.js b/apps/fabric-windows-example/jest.config.js similarity index 100% rename from fabric-windows-example/jest.config.js rename to apps/fabric-windows-example/jest.config.js diff --git a/fabric-windows-example/jest.config.windows.js b/apps/fabric-windows-example/jest.config.windows.js similarity index 100% rename from fabric-windows-example/jest.config.windows.js rename to apps/fabric-windows-example/jest.config.windows.js diff --git a/fabric-windows-example/metro.config.js b/apps/fabric-windows-example/metro.config.js similarity index 100% rename from fabric-windows-example/metro.config.js rename to apps/fabric-windows-example/metro.config.js diff --git a/fabric-windows-example/package.json b/apps/fabric-windows-example/package.json similarity index 96% rename from fabric-windows-example/package.json rename to apps/fabric-windows-example/package.json index 3dee6a169..886972a42 100644 --- a/fabric-windows-example/package.json +++ b/apps/fabric-windows-example/package.json @@ -13,7 +13,7 @@ "react-native": "0.74.2", "react-native-windows": "0.74.9", "react-native-reanimated": "3.9.0", - "react-native-svg": "link:../" + "react-native-svg": "link:../../" }, "devDependencies": { "@babel/core": "^7.20.0", diff --git a/fabric-windows-example/windows/.gitignore b/apps/fabric-windows-example/windows/.gitignore similarity index 100% rename from fabric-windows-example/windows/.gitignore rename to apps/fabric-windows-example/windows/.gitignore diff --git a/fabric-windows-example/windows/ExperimentalFeatures.props b/apps/fabric-windows-example/windows/ExperimentalFeatures.props similarity index 100% rename from fabric-windows-example/windows/ExperimentalFeatures.props rename to apps/fabric-windows-example/windows/ExperimentalFeatures.props diff --git a/fabric-windows-example/windows/FabricExample.Package/FabricExample.Package.wapproj b/apps/fabric-windows-example/windows/FabricExample.Package/FabricExample.Package.wapproj similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/FabricExample.Package.wapproj rename to apps/fabric-windows-example/windows/FabricExample.Package/FabricExample.Package.wapproj diff --git a/fabric-windows-example/windows/FabricExample.Package/Images/LockScreenLogo.scale-200.png b/apps/fabric-windows-example/windows/FabricExample.Package/Images/LockScreenLogo.scale-200.png similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/Images/LockScreenLogo.scale-200.png rename to apps/fabric-windows-example/windows/FabricExample.Package/Images/LockScreenLogo.scale-200.png diff --git a/fabric-windows-example/windows/FabricExample.Package/Images/SplashScreen.scale-200.png b/apps/fabric-windows-example/windows/FabricExample.Package/Images/SplashScreen.scale-200.png similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/Images/SplashScreen.scale-200.png rename to apps/fabric-windows-example/windows/FabricExample.Package/Images/SplashScreen.scale-200.png diff --git a/fabric-windows-example/windows/FabricExample.Package/Images/Square150x150Logo.scale-200.png b/apps/fabric-windows-example/windows/FabricExample.Package/Images/Square150x150Logo.scale-200.png similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/Images/Square150x150Logo.scale-200.png rename to apps/fabric-windows-example/windows/FabricExample.Package/Images/Square150x150Logo.scale-200.png diff --git a/fabric-windows-example/windows/FabricExample.Package/Images/Square44x44Logo.scale-200.png b/apps/fabric-windows-example/windows/FabricExample.Package/Images/Square44x44Logo.scale-200.png similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/Images/Square44x44Logo.scale-200.png rename to apps/fabric-windows-example/windows/FabricExample.Package/Images/Square44x44Logo.scale-200.png diff --git a/fabric-windows-example/windows/FabricExample.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png b/apps/fabric-windows-example/windows/FabricExample.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png rename to apps/fabric-windows-example/windows/FabricExample.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png diff --git a/fabric-windows-example/windows/FabricExample.Package/Images/StoreLogo.png b/apps/fabric-windows-example/windows/FabricExample.Package/Images/StoreLogo.png similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/Images/StoreLogo.png rename to apps/fabric-windows-example/windows/FabricExample.Package/Images/StoreLogo.png diff --git a/fabric-windows-example/windows/FabricExample.Package/Images/Wide310x150Logo.scale-200.png b/apps/fabric-windows-example/windows/FabricExample.Package/Images/Wide310x150Logo.scale-200.png similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/Images/Wide310x150Logo.scale-200.png rename to apps/fabric-windows-example/windows/FabricExample.Package/Images/Wide310x150Logo.scale-200.png diff --git a/fabric-windows-example/windows/FabricExample.Package/Package.appxmanifest b/apps/fabric-windows-example/windows/FabricExample.Package/Package.appxmanifest similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/Package.appxmanifest rename to apps/fabric-windows-example/windows/FabricExample.Package/Package.appxmanifest diff --git a/fabric-windows-example/windows/FabricExample.Package/packages.lock.json b/apps/fabric-windows-example/windows/FabricExample.Package/packages.lock.json similarity index 100% rename from fabric-windows-example/windows/FabricExample.Package/packages.lock.json rename to apps/fabric-windows-example/windows/FabricExample.Package/packages.lock.json diff --git a/fabric-windows-example/windows/FabricExample.sln b/apps/fabric-windows-example/windows/FabricExample.sln similarity index 100% rename from fabric-windows-example/windows/FabricExample.sln rename to apps/fabric-windows-example/windows/FabricExample.sln diff --git a/fabric-windows-example/windows/FabricExample/.gitignore b/apps/fabric-windows-example/windows/FabricExample/.gitignore similarity index 100% rename from fabric-windows-example/windows/FabricExample/.gitignore rename to apps/fabric-windows-example/windows/FabricExample/.gitignore diff --git a/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.cpp b/apps/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.cpp similarity index 100% rename from fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.cpp rename to apps/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.cpp diff --git a/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.h b/apps/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.h similarity index 100% rename from fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.h rename to apps/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.h diff --git a/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.props b/apps/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.props similarity index 100% rename from fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.props rename to apps/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.props diff --git a/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.targets b/apps/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.targets similarity index 100% rename from fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.targets rename to apps/fabric-windows-example/windows/FabricExample/AutolinkedNativeModules.g.targets diff --git a/fabric-windows-example/windows/FabricExample/FabricExample.cpp b/apps/fabric-windows-example/windows/FabricExample/FabricExample.cpp similarity index 100% rename from fabric-windows-example/windows/FabricExample/FabricExample.cpp rename to apps/fabric-windows-example/windows/FabricExample/FabricExample.cpp diff --git a/fabric-windows-example/windows/FabricExample/FabricExample.h b/apps/fabric-windows-example/windows/FabricExample/FabricExample.h similarity index 100% rename from fabric-windows-example/windows/FabricExample/FabricExample.h rename to apps/fabric-windows-example/windows/FabricExample/FabricExample.h diff --git a/fabric-windows-example/windows/FabricExample/FabricExample.ico b/apps/fabric-windows-example/windows/FabricExample/FabricExample.ico similarity index 100% rename from fabric-windows-example/windows/FabricExample/FabricExample.ico rename to apps/fabric-windows-example/windows/FabricExample/FabricExample.ico diff --git a/fabric-windows-example/windows/FabricExample/FabricExample.rc b/apps/fabric-windows-example/windows/FabricExample/FabricExample.rc similarity index 100% rename from fabric-windows-example/windows/FabricExample/FabricExample.rc rename to apps/fabric-windows-example/windows/FabricExample/FabricExample.rc diff --git a/fabric-windows-example/windows/FabricExample/FabricExample.vcxproj b/apps/fabric-windows-example/windows/FabricExample/FabricExample.vcxproj similarity index 100% rename from fabric-windows-example/windows/FabricExample/FabricExample.vcxproj rename to apps/fabric-windows-example/windows/FabricExample/FabricExample.vcxproj diff --git a/fabric-windows-example/windows/FabricExample/FabricExample.vcxproj.filters b/apps/fabric-windows-example/windows/FabricExample/FabricExample.vcxproj.filters similarity index 100% rename from fabric-windows-example/windows/FabricExample/FabricExample.vcxproj.filters rename to apps/fabric-windows-example/windows/FabricExample/FabricExample.vcxproj.filters diff --git a/fabric-windows-example/windows/FabricExample/packages.lock.json b/apps/fabric-windows-example/windows/FabricExample/packages.lock.json similarity index 100% rename from fabric-windows-example/windows/FabricExample/packages.lock.json rename to apps/fabric-windows-example/windows/FabricExample/packages.lock.json diff --git a/fabric-windows-example/windows/FabricExample/pch.cpp b/apps/fabric-windows-example/windows/FabricExample/pch.cpp similarity index 100% rename from fabric-windows-example/windows/FabricExample/pch.cpp rename to apps/fabric-windows-example/windows/FabricExample/pch.cpp diff --git a/fabric-windows-example/windows/FabricExample/pch.h b/apps/fabric-windows-example/windows/FabricExample/pch.h similarity index 100% rename from fabric-windows-example/windows/FabricExample/pch.h rename to apps/fabric-windows-example/windows/FabricExample/pch.h diff --git a/fabric-windows-example/windows/FabricExample/resource.h b/apps/fabric-windows-example/windows/FabricExample/resource.h similarity index 100% rename from fabric-windows-example/windows/FabricExample/resource.h rename to apps/fabric-windows-example/windows/FabricExample/resource.h diff --git a/fabric-windows-example/windows/FabricExample/small.ico b/apps/fabric-windows-example/windows/FabricExample/small.ico similarity index 100% rename from fabric-windows-example/windows/FabricExample/small.ico rename to apps/fabric-windows-example/windows/FabricExample/small.ico diff --git a/fabric-windows-example/windows/FabricExample/targetver.h b/apps/fabric-windows-example/windows/FabricExample/targetver.h similarity index 100% rename from fabric-windows-example/windows/FabricExample/targetver.h rename to apps/fabric-windows-example/windows/FabricExample/targetver.h diff --git a/fabric-windows-example/yarn.lock b/apps/fabric-windows-example/yarn.lock similarity index 99% rename from fabric-windows-example/yarn.lock rename to apps/fabric-windows-example/yarn.lock index b8a462210..c9ebc1ca5 100644 --- a/fabric-windows-example/yarn.lock +++ b/apps/fabric-windows-example/yarn.lock @@ -7641,7 +7641,7 @@ react-native-reanimated@3.9.0: convert-source-map "^2.0.0" invariant "^2.2.4" -"react-native-svg@link:..": +"react-native-svg@link:../..": version "0.0.0" uid "" diff --git a/apps/index.tsx b/apps/index.tsx deleted file mode 100644 index 1a73b9bc6..000000000 --- a/apps/index.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import App from './examples'; - -export default App; diff --git a/paper-macos-example/.bundle/config b/apps/paper-macos-example/.bundle/config similarity index 100% rename from paper-macos-example/.bundle/config rename to apps/paper-macos-example/.bundle/config diff --git a/paper-macos-example/.gitignore b/apps/paper-macos-example/.gitignore similarity index 100% rename from paper-macos-example/.gitignore rename to apps/paper-macos-example/.gitignore diff --git a/paper-macos-example/.prettierrc.js b/apps/paper-macos-example/.prettierrc.js similarity index 100% rename from paper-macos-example/.prettierrc.js rename to apps/paper-macos-example/.prettierrc.js diff --git a/paper-macos-example/.watchmanconfig b/apps/paper-macos-example/.watchmanconfig similarity index 100% rename from paper-macos-example/.watchmanconfig rename to apps/paper-macos-example/.watchmanconfig diff --git a/paper-macos-example/Gemfile b/apps/paper-macos-example/Gemfile similarity index 100% rename from paper-macos-example/Gemfile rename to apps/paper-macos-example/Gemfile diff --git a/paper-macos-example/Gemfile.lock b/apps/paper-macos-example/Gemfile.lock similarity index 100% rename from paper-macos-example/Gemfile.lock rename to apps/paper-macos-example/Gemfile.lock diff --git a/paper-macos-example/__tests__/App.test.tsx b/apps/paper-macos-example/__tests__/App.test.tsx similarity index 100% rename from paper-macos-example/__tests__/App.test.tsx rename to apps/paper-macos-example/__tests__/App.test.tsx diff --git a/paper-macos-example/app.json b/apps/paper-macos-example/app.json similarity index 100% rename from paper-macos-example/app.json rename to apps/paper-macos-example/app.json diff --git a/paper-macos-example/babel.config.js b/apps/paper-macos-example/babel.config.js similarity index 100% rename from paper-macos-example/babel.config.js rename to apps/paper-macos-example/babel.config.js diff --git a/fabric-macos-example/index.js b/apps/paper-macos-example/index.js similarity index 84% rename from fabric-macos-example/index.js rename to apps/paper-macos-example/index.js index a5aaa4a89..aa1be2128 100644 --- a/fabric-macos-example/index.js +++ b/apps/paper-macos-example/index.js @@ -3,7 +3,7 @@ */ import {AppRegistry} from 'react-native'; -import App from '../apps'; +import App from '../common'; import {name as appName} from './app.json'; AppRegistry.registerComponent(appName, () => App); diff --git a/paper-macos-example/jest.config.js b/apps/paper-macos-example/jest.config.js similarity index 100% rename from paper-macos-example/jest.config.js rename to apps/paper-macos-example/jest.config.js diff --git a/paper-macos-example/macos/.gitignore b/apps/paper-macos-example/macos/.gitignore similarity index 100% rename from paper-macos-example/macos/.gitignore rename to apps/paper-macos-example/macos/.gitignore diff --git a/paper-macos-example/macos/.xcode.env b/apps/paper-macos-example/macos/.xcode.env similarity index 100% rename from paper-macos-example/macos/.xcode.env rename to apps/paper-macos-example/macos/.xcode.env diff --git a/paper-macos-example/macos/PaperMacOSExample-macOS/AppDelegate.h b/apps/paper-macos-example/macos/PaperMacOSExample-macOS/AppDelegate.h similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample-macOS/AppDelegate.h rename to apps/paper-macos-example/macos/PaperMacOSExample-macOS/AppDelegate.h diff --git a/paper-macos-example/macos/PaperMacOSExample-macOS/AppDelegate.mm b/apps/paper-macos-example/macos/PaperMacOSExample-macOS/AppDelegate.mm similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample-macOS/AppDelegate.mm rename to apps/paper-macos-example/macos/PaperMacOSExample-macOS/AppDelegate.mm diff --git a/paper-macos-example/macos/PaperMacOSExample-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/apps/paper-macos-example/macos/PaperMacOSExample-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json rename to apps/paper-macos-example/macos/PaperMacOSExample-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/paper-macos-example/macos/PaperMacOSExample-macOS/Assets.xcassets/Contents.json b/apps/paper-macos-example/macos/PaperMacOSExample-macOS/Assets.xcassets/Contents.json similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample-macOS/Assets.xcassets/Contents.json rename to apps/paper-macos-example/macos/PaperMacOSExample-macOS/Assets.xcassets/Contents.json diff --git a/paper-macos-example/macos/PaperMacOSExample-macOS/Base.lproj/Main.storyboard b/apps/paper-macos-example/macos/PaperMacOSExample-macOS/Base.lproj/Main.storyboard similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample-macOS/Base.lproj/Main.storyboard rename to apps/paper-macos-example/macos/PaperMacOSExample-macOS/Base.lproj/Main.storyboard diff --git a/paper-macos-example/macos/PaperMacOSExample-macOS/Info.plist b/apps/paper-macos-example/macos/PaperMacOSExample-macOS/Info.plist similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample-macOS/Info.plist rename to apps/paper-macos-example/macos/PaperMacOSExample-macOS/Info.plist diff --git a/paper-macos-example/macos/PaperMacOSExample-macOS/PaperMacOSExample.entitlements b/apps/paper-macos-example/macos/PaperMacOSExample-macOS/PaperMacOSExample.entitlements similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample-macOS/PaperMacOSExample.entitlements rename to apps/paper-macos-example/macos/PaperMacOSExample-macOS/PaperMacOSExample.entitlements diff --git a/paper-macos-example/macos/PaperMacOSExample-macOS/main.m b/apps/paper-macos-example/macos/PaperMacOSExample-macOS/main.m similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample-macOS/main.m rename to apps/paper-macos-example/macos/PaperMacOSExample-macOS/main.m diff --git a/paper-macos-example/macos/PaperMacOSExample.xcodeproj/project.pbxproj b/apps/paper-macos-example/macos/PaperMacOSExample.xcodeproj/project.pbxproj similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample.xcodeproj/project.pbxproj rename to apps/paper-macos-example/macos/PaperMacOSExample.xcodeproj/project.pbxproj diff --git a/paper-macos-example/macos/PaperMacOSExample.xcodeproj/xcshareddata/xcschemes/PaperMacOSExample-macOS.xcscheme b/apps/paper-macos-example/macos/PaperMacOSExample.xcodeproj/xcshareddata/xcschemes/PaperMacOSExample-macOS.xcscheme similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample.xcodeproj/xcshareddata/xcschemes/PaperMacOSExample-macOS.xcscheme rename to apps/paper-macos-example/macos/PaperMacOSExample.xcodeproj/xcshareddata/xcschemes/PaperMacOSExample-macOS.xcscheme diff --git a/paper-macos-example/macos/PaperMacOSExample.xcworkspace/contents.xcworkspacedata b/apps/paper-macos-example/macos/PaperMacOSExample.xcworkspace/contents.xcworkspacedata similarity index 100% rename from paper-macos-example/macos/PaperMacOSExample.xcworkspace/contents.xcworkspacedata rename to apps/paper-macos-example/macos/PaperMacOSExample.xcworkspace/contents.xcworkspacedata diff --git a/paper-macos-example/macos/Podfile b/apps/paper-macos-example/macos/Podfile similarity index 100% rename from paper-macos-example/macos/Podfile rename to apps/paper-macos-example/macos/Podfile diff --git a/paper-macos-example/macos/Podfile.lock b/apps/paper-macos-example/macos/Podfile.lock similarity index 100% rename from paper-macos-example/macos/Podfile.lock rename to apps/paper-macos-example/macos/Podfile.lock diff --git a/paper-macos-example/macos/PrivacyInfo.xcprivacy b/apps/paper-macos-example/macos/PrivacyInfo.xcprivacy similarity index 100% rename from paper-macos-example/macos/PrivacyInfo.xcprivacy rename to apps/paper-macos-example/macos/PrivacyInfo.xcprivacy diff --git a/paper-macos-example/metro.config.js b/apps/paper-macos-example/metro.config.js similarity index 96% rename from paper-macos-example/metro.config.js rename to apps/paper-macos-example/metro.config.js index ba5f7c8ae..b78a15447 100644 --- a/paper-macos-example/metro.config.js +++ b/apps/paper-macos-example/metro.config.js @@ -9,7 +9,7 @@ const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config'); const path = require('path'); const exclusionList = require('metro-config/src/defaults/exclusionList'); -const pack = require('../package.json'); +const pack = require('../../package.json'); const root = path.resolve(__dirname, '..'); const projectNodeModules = path.join(__dirname, 'node_modules'); diff --git a/paper-macos-example/package.json b/apps/paper-macos-example/package.json similarity index 97% rename from paper-macos-example/package.json rename to apps/paper-macos-example/package.json index f0f14dcce..55a6600cc 100644 --- a/paper-macos-example/package.json +++ b/apps/paper-macos-example/package.json @@ -21,7 +21,7 @@ "react-native-reanimated": "3.15.0", "react-native-safe-area-context": "^4.11.0", "react-native-screens": "^3.34.0", - "react-native-svg": "link:../" + "react-native-svg": "link:../../" }, "devDependencies": { "@babel/core": "^7.20.0", diff --git a/paper-macos-example/tsconfig.json b/apps/paper-macos-example/tsconfig.json similarity index 100% rename from paper-macos-example/tsconfig.json rename to apps/paper-macos-example/tsconfig.json diff --git a/paper-macos-example/yarn.lock b/apps/paper-macos-example/yarn.lock similarity index 99% rename from paper-macos-example/yarn.lock rename to apps/paper-macos-example/yarn.lock index f0cb2f796..c0bc8ee72 100644 --- a/paper-macos-example/yarn.lock +++ b/apps/paper-macos-example/yarn.lock @@ -6170,7 +6170,7 @@ react-native-screens@^3.34.0: react-freeze "^1.0.0" warn-once "^0.1.0" -"react-native-svg@link:..": +"react-native-svg@link:../..": version "0.0.0" uid "" diff --git a/paper-windows-example/.gitignore b/apps/paper-windows-example/.gitignore similarity index 100% rename from paper-windows-example/.gitignore rename to apps/paper-windows-example/.gitignore diff --git a/paper-windows-example/.watchmanconfig b/apps/paper-windows-example/.watchmanconfig similarity index 100% rename from paper-windows-example/.watchmanconfig rename to apps/paper-windows-example/.watchmanconfig diff --git a/paper-windows-example/app.json b/apps/paper-windows-example/app.json similarity index 100% rename from paper-windows-example/app.json rename to apps/paper-windows-example/app.json diff --git a/paper-windows-example/babel.config.js b/apps/paper-windows-example/babel.config.js similarity index 100% rename from paper-windows-example/babel.config.js rename to apps/paper-windows-example/babel.config.js diff --git a/fabric-example/index.js b/apps/paper-windows-example/index.js similarity index 84% rename from fabric-example/index.js rename to apps/paper-windows-example/index.js index d60a80149..a7ab94e96 100644 --- a/fabric-example/index.js +++ b/apps/paper-windows-example/index.js @@ -3,7 +3,7 @@ */ import { AppRegistry } from 'react-native'; -import App from '../apps'; +import App from '../common'; import { name as appName } from './app.json'; AppRegistry.registerComponent(appName, () => App); diff --git a/paper-windows-example/jest.config.js b/apps/paper-windows-example/jest.config.js similarity index 100% rename from paper-windows-example/jest.config.js rename to apps/paper-windows-example/jest.config.js diff --git a/paper-windows-example/metro.config.js b/apps/paper-windows-example/metro.config.js similarity index 100% rename from paper-windows-example/metro.config.js rename to apps/paper-windows-example/metro.config.js diff --git a/paper-windows-example/package.json b/apps/paper-windows-example/package.json similarity index 97% rename from paper-windows-example/package.json rename to apps/paper-windows-example/package.json index df2b856d5..fec7cf7c7 100644 --- a/paper-windows-example/package.json +++ b/apps/paper-windows-example/package.json @@ -15,7 +15,7 @@ "react-dom": "^18.2.0", "react-native": "0.74.2", "react-native-reanimated": "3.15.4", - "react-native-svg": "link:../", + "react-native-svg": "link:../../", "react-native-view-shot": "4.0.0-alpha.2", "react-native-windows": "0.74.9" }, diff --git a/paper-windows-example/patches/react-native-view-shot+4.0.0-alpha.2.patch b/apps/paper-windows-example/patches/react-native-view-shot+4.0.0-alpha.2.patch similarity index 100% rename from paper-windows-example/patches/react-native-view-shot+4.0.0-alpha.2.patch rename to apps/paper-windows-example/patches/react-native-view-shot+4.0.0-alpha.2.patch diff --git a/paper-windows-example/patches/react-native-windows+0.74.9.patch b/apps/paper-windows-example/patches/react-native-windows+0.74.9.patch similarity index 100% rename from paper-windows-example/patches/react-native-windows+0.74.9.patch rename to apps/paper-windows-example/patches/react-native-windows+0.74.9.patch diff --git a/paper-windows-example/windows/.gitignore b/apps/paper-windows-example/windows/.gitignore similarity index 100% rename from paper-windows-example/windows/.gitignore rename to apps/paper-windows-example/windows/.gitignore diff --git a/paper-windows-example/windows/Example.sln b/apps/paper-windows-example/windows/Example.sln similarity index 100% rename from paper-windows-example/windows/Example.sln rename to apps/paper-windows-example/windows/Example.sln diff --git a/paper-windows-example/windows/Example/.gitignore b/apps/paper-windows-example/windows/Example/.gitignore similarity index 100% rename from paper-windows-example/windows/Example/.gitignore rename to apps/paper-windows-example/windows/Example/.gitignore diff --git a/paper-windows-example/windows/Example/App.cpp b/apps/paper-windows-example/windows/Example/App.cpp similarity index 100% rename from paper-windows-example/windows/Example/App.cpp rename to apps/paper-windows-example/windows/Example/App.cpp diff --git a/paper-windows-example/windows/Example/App.h b/apps/paper-windows-example/windows/Example/App.h similarity index 100% rename from paper-windows-example/windows/Example/App.h rename to apps/paper-windows-example/windows/Example/App.h diff --git a/paper-windows-example/windows/Example/App.idl b/apps/paper-windows-example/windows/Example/App.idl similarity index 100% rename from paper-windows-example/windows/Example/App.idl rename to apps/paper-windows-example/windows/Example/App.idl diff --git a/paper-windows-example/windows/Example/App.xaml b/apps/paper-windows-example/windows/Example/App.xaml similarity index 100% rename from paper-windows-example/windows/Example/App.xaml rename to apps/paper-windows-example/windows/Example/App.xaml diff --git a/paper-windows-example/windows/Example/Assets/LockScreenLogo.scale-200.png b/apps/paper-windows-example/windows/Example/Assets/LockScreenLogo.scale-200.png similarity index 100% rename from paper-windows-example/windows/Example/Assets/LockScreenLogo.scale-200.png rename to apps/paper-windows-example/windows/Example/Assets/LockScreenLogo.scale-200.png diff --git a/paper-windows-example/windows/Example/Assets/SplashScreen.scale-200.png b/apps/paper-windows-example/windows/Example/Assets/SplashScreen.scale-200.png similarity index 100% rename from paper-windows-example/windows/Example/Assets/SplashScreen.scale-200.png rename to apps/paper-windows-example/windows/Example/Assets/SplashScreen.scale-200.png diff --git a/paper-windows-example/windows/Example/Assets/Square150x150Logo.scale-200.png b/apps/paper-windows-example/windows/Example/Assets/Square150x150Logo.scale-200.png similarity index 100% rename from paper-windows-example/windows/Example/Assets/Square150x150Logo.scale-200.png rename to apps/paper-windows-example/windows/Example/Assets/Square150x150Logo.scale-200.png diff --git a/paper-windows-example/windows/Example/Assets/Square44x44Logo.scale-200.png b/apps/paper-windows-example/windows/Example/Assets/Square44x44Logo.scale-200.png similarity index 100% rename from paper-windows-example/windows/Example/Assets/Square44x44Logo.scale-200.png rename to apps/paper-windows-example/windows/Example/Assets/Square44x44Logo.scale-200.png diff --git a/paper-windows-example/windows/Example/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/apps/paper-windows-example/windows/Example/Assets/Square44x44Logo.targetsize-24_altform-unplated.png similarity index 100% rename from paper-windows-example/windows/Example/Assets/Square44x44Logo.targetsize-24_altform-unplated.png rename to apps/paper-windows-example/windows/Example/Assets/Square44x44Logo.targetsize-24_altform-unplated.png diff --git a/paper-windows-example/windows/Example/Assets/StoreLogo.png b/apps/paper-windows-example/windows/Example/Assets/StoreLogo.png similarity index 100% rename from paper-windows-example/windows/Example/Assets/StoreLogo.png rename to apps/paper-windows-example/windows/Example/Assets/StoreLogo.png diff --git a/paper-windows-example/windows/Example/Assets/Wide310x150Logo.scale-200.png b/apps/paper-windows-example/windows/Example/Assets/Wide310x150Logo.scale-200.png similarity index 100% rename from paper-windows-example/windows/Example/Assets/Wide310x150Logo.scale-200.png rename to apps/paper-windows-example/windows/Example/Assets/Wide310x150Logo.scale-200.png diff --git a/paper-windows-example/windows/Example/AutolinkedNativeModules.g.cpp b/apps/paper-windows-example/windows/Example/AutolinkedNativeModules.g.cpp similarity index 100% rename from paper-windows-example/windows/Example/AutolinkedNativeModules.g.cpp rename to apps/paper-windows-example/windows/Example/AutolinkedNativeModules.g.cpp diff --git a/paper-windows-example/windows/Example/AutolinkedNativeModules.g.h b/apps/paper-windows-example/windows/Example/AutolinkedNativeModules.g.h similarity index 100% rename from paper-windows-example/windows/Example/AutolinkedNativeModules.g.h rename to apps/paper-windows-example/windows/Example/AutolinkedNativeModules.g.h diff --git a/paper-windows-example/windows/Example/AutolinkedNativeModules.g.props b/apps/paper-windows-example/windows/Example/AutolinkedNativeModules.g.props similarity index 100% rename from paper-windows-example/windows/Example/AutolinkedNativeModules.g.props rename to apps/paper-windows-example/windows/Example/AutolinkedNativeModules.g.props diff --git a/paper-windows-example/windows/Example/AutolinkedNativeModules.g.targets b/apps/paper-windows-example/windows/Example/AutolinkedNativeModules.g.targets similarity index 100% rename from paper-windows-example/windows/Example/AutolinkedNativeModules.g.targets rename to apps/paper-windows-example/windows/Example/AutolinkedNativeModules.g.targets diff --git a/paper-windows-example/windows/Example/Example.vcxproj b/apps/paper-windows-example/windows/Example/Example.vcxproj similarity index 100% rename from paper-windows-example/windows/Example/Example.vcxproj rename to apps/paper-windows-example/windows/Example/Example.vcxproj diff --git a/paper-windows-example/windows/Example/Example.vcxproj.filters b/apps/paper-windows-example/windows/Example/Example.vcxproj.filters similarity index 100% rename from paper-windows-example/windows/Example/Example.vcxproj.filters rename to apps/paper-windows-example/windows/Example/Example.vcxproj.filters diff --git a/paper-windows-example/windows/Example/MainPage.cpp b/apps/paper-windows-example/windows/Example/MainPage.cpp similarity index 100% rename from paper-windows-example/windows/Example/MainPage.cpp rename to apps/paper-windows-example/windows/Example/MainPage.cpp diff --git a/paper-windows-example/windows/Example/MainPage.h b/apps/paper-windows-example/windows/Example/MainPage.h similarity index 100% rename from paper-windows-example/windows/Example/MainPage.h rename to apps/paper-windows-example/windows/Example/MainPage.h diff --git a/paper-windows-example/windows/Example/MainPage.idl b/apps/paper-windows-example/windows/Example/MainPage.idl similarity index 100% rename from paper-windows-example/windows/Example/MainPage.idl rename to apps/paper-windows-example/windows/Example/MainPage.idl diff --git a/paper-windows-example/windows/Example/MainPage.xaml b/apps/paper-windows-example/windows/Example/MainPage.xaml similarity index 100% rename from paper-windows-example/windows/Example/MainPage.xaml rename to apps/paper-windows-example/windows/Example/MainPage.xaml diff --git a/paper-windows-example/windows/Example/Package.appxmanifest b/apps/paper-windows-example/windows/Example/Package.appxmanifest similarity index 100% rename from paper-windows-example/windows/Example/Package.appxmanifest rename to apps/paper-windows-example/windows/Example/Package.appxmanifest diff --git a/paper-windows-example/windows/Example/PropertySheet.props b/apps/paper-windows-example/windows/Example/PropertySheet.props similarity index 100% rename from paper-windows-example/windows/Example/PropertySheet.props rename to apps/paper-windows-example/windows/Example/PropertySheet.props diff --git a/paper-windows-example/windows/Example/ReactPackageProvider.cpp b/apps/paper-windows-example/windows/Example/ReactPackageProvider.cpp similarity index 100% rename from paper-windows-example/windows/Example/ReactPackageProvider.cpp rename to apps/paper-windows-example/windows/Example/ReactPackageProvider.cpp diff --git a/paper-windows-example/windows/Example/ReactPackageProvider.h b/apps/paper-windows-example/windows/Example/ReactPackageProvider.h similarity index 100% rename from paper-windows-example/windows/Example/ReactPackageProvider.h rename to apps/paper-windows-example/windows/Example/ReactPackageProvider.h diff --git a/paper-windows-example/windows/Example/packages.lock.json b/apps/paper-windows-example/windows/Example/packages.lock.json similarity index 100% rename from paper-windows-example/windows/Example/packages.lock.json rename to apps/paper-windows-example/windows/Example/packages.lock.json diff --git a/paper-windows-example/windows/Example/pch.cpp b/apps/paper-windows-example/windows/Example/pch.cpp similarity index 100% rename from paper-windows-example/windows/Example/pch.cpp rename to apps/paper-windows-example/windows/Example/pch.cpp diff --git a/paper-windows-example/windows/Example/pch.h b/apps/paper-windows-example/windows/Example/pch.h similarity index 100% rename from paper-windows-example/windows/Example/pch.h rename to apps/paper-windows-example/windows/Example/pch.h diff --git a/paper-windows-example/windows/ExperimentalFeatures.props b/apps/paper-windows-example/windows/ExperimentalFeatures.props similarity index 100% rename from paper-windows-example/windows/ExperimentalFeatures.props rename to apps/paper-windows-example/windows/ExperimentalFeatures.props diff --git a/paper-windows-example/windows/NuGet.Config b/apps/paper-windows-example/windows/NuGet.Config similarity index 100% rename from paper-windows-example/windows/NuGet.Config rename to apps/paper-windows-example/windows/NuGet.Config diff --git a/paper-windows-example/yarn.lock b/apps/paper-windows-example/yarn.lock similarity index 99% rename from paper-windows-example/yarn.lock rename to apps/paper-windows-example/yarn.lock index 70385264a..63d2ee810 100644 --- a/paper-windows-example/yarn.lock +++ b/apps/paper-windows-example/yarn.lock @@ -6912,7 +6912,7 @@ react-native-reanimated@3.15.4: convert-source-map "^2.0.0" invariant "^2.2.4" -"react-native-svg@link:..": +"react-native-svg@link:../..": version "0.0.0" uid "" diff --git a/apps/test-examples/index.tsx b/apps/test-examples/index.tsx deleted file mode 100644 index 06527e5e7..000000000 --- a/apps/test-examples/index.tsx +++ /dev/null @@ -1,40 +0,0 @@ -/* eslint-disable no-unused-vars */ -import React from 'react'; - -import ColorTest from './src/ColorTest'; -import PointerEventsBoxNone from './src/PointerEventsBoxNone'; -import MountUnmount from './src/MountUnmount'; -import Test1318 from './src/Test1318'; -import Test1374 from './src/Test1374'; -import Test1442 from './src/Test1442'; -import Test1451 from './src/Test1451'; -import Test1718 from './src/Test1718'; -import Test1790 from './src/Test1790'; -import Test1813 from './src/Test1813'; -import Test1845 from './src/Test1845'; -import Test1986 from './src/Test1986'; -import Test2071 from './src/Test2071'; -import Test2080 from './src/Test2080'; -import Test2086 from './src/Test2086'; -import Test2089 from './src/Test2089'; -import Test2142 from './src/Test2142'; -import Test2148 from './src/Test2148'; -import Test2196 from './src/Test2196'; -import Test2248 from './src/Test2248'; -import Test2266 from './src/Test2266'; -import Test2276 from './src/Test2276'; -import Test2327 from './src/Test2327'; -import Test2233 from './src/Test2233'; -import Test2363 from './src/Test2363'; -import Test2366 from './src/Test2366'; -import Test2380 from './src/Test2380'; -import Test2397 from './src/Test2397'; -import Test2403 from './src/Test2403'; -import Test2407 from './src/Test2407'; -import Test2417 from './src/Test2417'; -import Test2455 from './src/Test2455'; -import Test2471 from './src/Test2471'; - -export default function App() { - return ; -} diff --git a/tests-example/.bundle/config b/apps/tests-example/.bundle/config similarity index 100% rename from tests-example/.bundle/config rename to apps/tests-example/.bundle/config diff --git a/tests-example/.gitignore b/apps/tests-example/.gitignore similarity index 100% rename from tests-example/.gitignore rename to apps/tests-example/.gitignore diff --git a/tests-example/.watchmanconfig b/apps/tests-example/.watchmanconfig similarity index 100% rename from tests-example/.watchmanconfig rename to apps/tests-example/.watchmanconfig diff --git a/tests-example/Gemfile b/apps/tests-example/Gemfile similarity index 100% rename from tests-example/Gemfile rename to apps/tests-example/Gemfile diff --git a/tests-example/Gemfile.lock b/apps/tests-example/Gemfile.lock similarity index 100% rename from tests-example/Gemfile.lock rename to apps/tests-example/Gemfile.lock diff --git a/tests-example/__tests__/App.test.tsx b/apps/tests-example/__tests__/App.test.tsx similarity index 100% rename from tests-example/__tests__/App.test.tsx rename to apps/tests-example/__tests__/App.test.tsx diff --git a/tests-example/android/app/build.gradle b/apps/tests-example/android/app/build.gradle similarity index 100% rename from tests-example/android/app/build.gradle rename to apps/tests-example/android/app/build.gradle diff --git a/tests-example/android/app/debug.keystore b/apps/tests-example/android/app/debug.keystore similarity index 100% rename from tests-example/android/app/debug.keystore rename to apps/tests-example/android/app/debug.keystore diff --git a/tests-example/android/app/proguard-rules.pro b/apps/tests-example/android/app/proguard-rules.pro similarity index 100% rename from tests-example/android/app/proguard-rules.pro rename to apps/tests-example/android/app/proguard-rules.pro diff --git a/tests-example/android/app/src/debug/AndroidManifest.xml b/apps/tests-example/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from tests-example/android/app/src/debug/AndroidManifest.xml rename to apps/tests-example/android/app/src/debug/AndroidManifest.xml diff --git a/tests-example/android/app/src/main/AndroidManifest.xml b/apps/tests-example/android/app/src/main/AndroidManifest.xml similarity index 100% rename from tests-example/android/app/src/main/AndroidManifest.xml rename to apps/tests-example/android/app/src/main/AndroidManifest.xml diff --git a/tests-example/android/app/src/main/java/com/testsexample/MainActivity.kt b/apps/tests-example/android/app/src/main/java/com/testsexample/MainActivity.kt similarity index 100% rename from tests-example/android/app/src/main/java/com/testsexample/MainActivity.kt rename to apps/tests-example/android/app/src/main/java/com/testsexample/MainActivity.kt diff --git a/tests-example/android/app/src/main/java/com/testsexample/MainApplication.kt b/apps/tests-example/android/app/src/main/java/com/testsexample/MainApplication.kt similarity index 100% rename from tests-example/android/app/src/main/java/com/testsexample/MainApplication.kt rename to apps/tests-example/android/app/src/main/java/com/testsexample/MainApplication.kt diff --git a/tests-example/android/app/src/main/res/drawable/rn_edit_text_material.xml b/apps/tests-example/android/app/src/main/res/drawable/rn_edit_text_material.xml similarity index 100% rename from tests-example/android/app/src/main/res/drawable/rn_edit_text_material.xml rename to apps/tests-example/android/app/src/main/res/drawable/rn_edit_text_material.xml diff --git a/tests-example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/apps/tests-example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to apps/tests-example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/tests-example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/apps/tests-example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png rename to apps/tests-example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png diff --git a/tests-example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/apps/tests-example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to apps/tests-example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/tests-example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/apps/tests-example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png rename to apps/tests-example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png diff --git a/tests-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/apps/tests-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to apps/tests-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/tests-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/apps/tests-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png rename to apps/tests-example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/tests-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/apps/tests-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to apps/tests-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/tests-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/apps/tests-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png rename to apps/tests-example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/tests-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/apps/tests-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to apps/tests-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/tests-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/apps/tests-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from tests-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png rename to apps/tests-example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/tests-example/android/app/src/main/res/values/strings.xml b/apps/tests-example/android/app/src/main/res/values/strings.xml similarity index 100% rename from tests-example/android/app/src/main/res/values/strings.xml rename to apps/tests-example/android/app/src/main/res/values/strings.xml diff --git a/tests-example/android/app/src/main/res/values/styles.xml b/apps/tests-example/android/app/src/main/res/values/styles.xml similarity index 100% rename from tests-example/android/app/src/main/res/values/styles.xml rename to apps/tests-example/android/app/src/main/res/values/styles.xml diff --git a/tests-example/android/build.gradle b/apps/tests-example/android/build.gradle similarity index 100% rename from tests-example/android/build.gradle rename to apps/tests-example/android/build.gradle diff --git a/tests-example/android/gradle.properties b/apps/tests-example/android/gradle.properties similarity index 100% rename from tests-example/android/gradle.properties rename to apps/tests-example/android/gradle.properties diff --git a/tests-example/android/gradle/wrapper/gradle-wrapper.jar b/apps/tests-example/android/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from tests-example/android/gradle/wrapper/gradle-wrapper.jar rename to apps/tests-example/android/gradle/wrapper/gradle-wrapper.jar diff --git a/tests-example/android/gradle/wrapper/gradle-wrapper.properties b/apps/tests-example/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from tests-example/android/gradle/wrapper/gradle-wrapper.properties rename to apps/tests-example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/tests-example/android/gradlew b/apps/tests-example/android/gradlew similarity index 100% rename from tests-example/android/gradlew rename to apps/tests-example/android/gradlew diff --git a/tests-example/android/gradlew.bat b/apps/tests-example/android/gradlew.bat similarity index 100% rename from tests-example/android/gradlew.bat rename to apps/tests-example/android/gradlew.bat diff --git a/tests-example/android/settings.gradle b/apps/tests-example/android/settings.gradle similarity index 100% rename from tests-example/android/settings.gradle rename to apps/tests-example/android/settings.gradle diff --git a/tests-example/app.json b/apps/tests-example/app.json similarity index 100% rename from tests-example/app.json rename to apps/tests-example/app.json diff --git a/tests-example/babel.config.js b/apps/tests-example/babel.config.js similarity index 100% rename from tests-example/babel.config.js rename to apps/tests-example/babel.config.js diff --git a/tests-example/index.js b/apps/tests-example/index.js similarity index 79% rename from tests-example/index.js rename to apps/tests-example/index.js index e9757bd5c..467d3d868 100644 --- a/tests-example/index.js +++ b/apps/tests-example/index.js @@ -3,7 +3,7 @@ */ import { AppRegistry } from 'react-native'; -import App from '../apps/test-examples'; +import App from '../common/test'; import { name as appName } from './app.json'; AppRegistry.registerComponent(appName, () => App); diff --git a/tests-example/ios/.xcode.env b/apps/tests-example/ios/.xcode.env similarity index 100% rename from tests-example/ios/.xcode.env rename to apps/tests-example/ios/.xcode.env diff --git a/tests-example/ios/Podfile b/apps/tests-example/ios/Podfile similarity index 100% rename from tests-example/ios/Podfile rename to apps/tests-example/ios/Podfile diff --git a/tests-example/ios/Podfile.lock b/apps/tests-example/ios/Podfile.lock similarity index 100% rename from tests-example/ios/Podfile.lock rename to apps/tests-example/ios/Podfile.lock diff --git a/tests-example/ios/TestsExample.xcodeproj/project.pbxproj b/apps/tests-example/ios/TestsExample.xcodeproj/project.pbxproj similarity index 100% rename from tests-example/ios/TestsExample.xcodeproj/project.pbxproj rename to apps/tests-example/ios/TestsExample.xcodeproj/project.pbxproj diff --git a/tests-example/ios/TestsExample.xcodeproj/xcshareddata/xcschemes/TestsExample.xcscheme b/apps/tests-example/ios/TestsExample.xcodeproj/xcshareddata/xcschemes/TestsExample.xcscheme similarity index 100% rename from tests-example/ios/TestsExample.xcodeproj/xcshareddata/xcschemes/TestsExample.xcscheme rename to apps/tests-example/ios/TestsExample.xcodeproj/xcshareddata/xcschemes/TestsExample.xcscheme diff --git a/tests-example/ios/TestsExample.xcworkspace/contents.xcworkspacedata b/apps/tests-example/ios/TestsExample.xcworkspace/contents.xcworkspacedata similarity index 100% rename from tests-example/ios/TestsExample.xcworkspace/contents.xcworkspacedata rename to apps/tests-example/ios/TestsExample.xcworkspace/contents.xcworkspacedata diff --git a/tests-example/ios/TestsExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/apps/tests-example/ios/TestsExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from tests-example/ios/TestsExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to apps/tests-example/ios/TestsExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/tests-example/ios/TestsExample/AppDelegate.h b/apps/tests-example/ios/TestsExample/AppDelegate.h similarity index 100% rename from tests-example/ios/TestsExample/AppDelegate.h rename to apps/tests-example/ios/TestsExample/AppDelegate.h diff --git a/tests-example/ios/TestsExample/AppDelegate.mm b/apps/tests-example/ios/TestsExample/AppDelegate.mm similarity index 100% rename from tests-example/ios/TestsExample/AppDelegate.mm rename to apps/tests-example/ios/TestsExample/AppDelegate.mm diff --git a/tests-example/ios/TestsExample/Images.xcassets/AppIcon.appiconset/Contents.json b/apps/tests-example/ios/TestsExample/Images.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from tests-example/ios/TestsExample/Images.xcassets/AppIcon.appiconset/Contents.json rename to apps/tests-example/ios/TestsExample/Images.xcassets/AppIcon.appiconset/Contents.json diff --git a/tests-example/ios/TestsExample/Images.xcassets/Contents.json b/apps/tests-example/ios/TestsExample/Images.xcassets/Contents.json similarity index 100% rename from tests-example/ios/TestsExample/Images.xcassets/Contents.json rename to apps/tests-example/ios/TestsExample/Images.xcassets/Contents.json diff --git a/tests-example/ios/TestsExample/Info.plist b/apps/tests-example/ios/TestsExample/Info.plist similarity index 100% rename from tests-example/ios/TestsExample/Info.plist rename to apps/tests-example/ios/TestsExample/Info.plist diff --git a/tests-example/ios/TestsExample/LaunchScreen.storyboard b/apps/tests-example/ios/TestsExample/LaunchScreen.storyboard similarity index 100% rename from tests-example/ios/TestsExample/LaunchScreen.storyboard rename to apps/tests-example/ios/TestsExample/LaunchScreen.storyboard diff --git a/tests-example/ios/TestsExample/PrivacyInfo.xcprivacy b/apps/tests-example/ios/TestsExample/PrivacyInfo.xcprivacy similarity index 100% rename from tests-example/ios/TestsExample/PrivacyInfo.xcprivacy rename to apps/tests-example/ios/TestsExample/PrivacyInfo.xcprivacy diff --git a/tests-example/ios/TestsExample/main.m b/apps/tests-example/ios/TestsExample/main.m similarity index 100% rename from tests-example/ios/TestsExample/main.m rename to apps/tests-example/ios/TestsExample/main.m diff --git a/tests-example/ios/TestsExampleTests/Info.plist b/apps/tests-example/ios/TestsExampleTests/Info.plist similarity index 100% rename from tests-example/ios/TestsExampleTests/Info.plist rename to apps/tests-example/ios/TestsExampleTests/Info.plist diff --git a/tests-example/ios/TestsExampleTests/TestsExampleTests.m b/apps/tests-example/ios/TestsExampleTests/TestsExampleTests.m similarity index 100% rename from tests-example/ios/TestsExampleTests/TestsExampleTests.m rename to apps/tests-example/ios/TestsExampleTests/TestsExampleTests.m diff --git a/tests-example/jest.config.js b/apps/tests-example/jest.config.js similarity index 100% rename from tests-example/jest.config.js rename to apps/tests-example/jest.config.js diff --git a/tests-example/metro.config.js b/apps/tests-example/metro.config.js similarity index 100% rename from tests-example/metro.config.js rename to apps/tests-example/metro.config.js diff --git a/tests-example/package.json b/apps/tests-example/package.json similarity index 96% rename from tests-example/package.json rename to apps/tests-example/package.json index 825b82f2a..a8b1bbfe7 100644 --- a/tests-example/package.json +++ b/apps/tests-example/package.json @@ -12,7 +12,7 @@ "dependencies": { "react": "18.3.1", "react-native": "0.76.0", - "react-native-svg": "link:../" + "react-native-svg": "link:../../" }, "devDependencies": { "@babel/core": "^7.25.2", diff --git a/tests-example/yarn.lock b/apps/tests-example/yarn.lock similarity index 99% rename from tests-example/yarn.lock rename to apps/tests-example/yarn.lock index ff6ac79d3..aabfbd024 100644 --- a/tests-example/yarn.lock +++ b/apps/tests-example/yarn.lock @@ -5645,7 +5645,7 @@ react-is@^17.0.1: resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== -"react-native-svg@link:..": +"react-native-svg@link:../..": version "0.0.0" uid "" diff --git a/web-example/.gitignore b/apps/web-example/.gitignore similarity index 100% rename from web-example/.gitignore rename to apps/web-example/.gitignore diff --git a/web-example/app.json b/apps/web-example/app.json similarity index 100% rename from web-example/app.json rename to apps/web-example/app.json diff --git a/web-example/assets/favicon.png b/apps/web-example/assets/favicon.png similarity index 100% rename from web-example/assets/favicon.png rename to apps/web-example/assets/favicon.png diff --git a/web-example/babel.config.js b/apps/web-example/babel.config.js similarity index 100% rename from web-example/babel.config.js rename to apps/web-example/babel.config.js diff --git a/web-example/index.js b/apps/web-example/index.js similarity index 91% rename from web-example/index.js rename to apps/web-example/index.js index bce21f180..a6f6525e9 100644 --- a/web-example/index.js +++ b/apps/web-example/index.js @@ -2,7 +2,7 @@ import '@expo/metro-runtime'; import { registerRootComponent } from 'expo'; -import App from '../apps'; +import App from '../common'; // registerRootComponent calls AppRegistry.registerComponent('main', () => App); // It also ensures that whether you load the app in Expo Go or in a native build, diff --git a/web-example/metro.config.js b/apps/web-example/metro.config.js similarity index 100% rename from web-example/metro.config.js rename to apps/web-example/metro.config.js diff --git a/web-example/package.json b/apps/web-example/package.json similarity index 100% rename from web-example/package.json rename to apps/web-example/package.json diff --git a/web-example/tsconfig.json b/apps/web-example/tsconfig.json similarity index 100% rename from web-example/tsconfig.json rename to apps/web-example/tsconfig.json diff --git a/web-example/yarn.lock b/apps/web-example/yarn.lock similarity index 99% rename from web-example/yarn.lock rename to apps/web-example/yarn.lock index 81bd95347..b4a0807f6 100644 --- a/web-example/yarn.lock +++ b/apps/web-example/yarn.lock @@ -3357,14 +3357,6 @@ css-select@^5.1.0: domutils "^3.0.1" nth-check "^2.0.1" -css-tree@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d" - integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q== - dependencies: - mdn-data "2.0.14" - source-map "^0.6.1" - css-tree@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-2.3.1.tgz#10264ce1e5442e8572fc82fbe490644ff54b5c20" @@ -5878,11 +5870,6 @@ md5hex@^1.0.0: resolved "https://registry.yarnpkg.com/md5hex/-/md5hex-1.0.0.tgz#ed74b477a2ee9369f75efee2f08d5915e52a42e8" integrity sha512-c2YOUbp33+6thdCUi34xIyOU/a7bvGKj/3DB1iaPMTuPHf/Q2d5s4sn1FaCOO43XkXggnb08y5W2PU8UNYNLKQ== -mdn-data@2.0.14: - version "2.0.14" - resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50" - integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow== - mdn-data@2.0.28: version "2.0.28" resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.28.tgz#5ec48e7bef120654539069e1ae4ddc81ca490eba" @@ -8433,7 +8420,7 @@ walker@^1.0.7, walker@^1.0.8: dependencies: makeerror "1.0.12" -warn-once@0.1.1, warn-once@^0.1.0: +warn-once@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/warn-once/-/warn-once-0.1.1.tgz#952088f4fb56896e73fd4e6a3767272a3fccce43" integrity sha512-VkQZJbO8zVImzYFteBXvBOZEl1qL175WH8VmZcxF2fZAoudNhNDvHi+doCaAEdU2l2vtcIwa2zn0QK5+I1HQ3Q== diff --git a/fabric-windows-example/App.tsx b/fabric-windows-example/App.tsx deleted file mode 100644 index ea67c0132..000000000 --- a/fabric-windows-example/App.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import App from '../apps/examples'; - -export default App; diff --git a/idl/CSS Fonts.idl b/idl/CSS Fonts.idl deleted file mode 100644 index 452d77743..000000000 --- a/idl/CSS Fonts.idl +++ /dev/null @@ -1,22 +0,0 @@ -interface CSSFontFaceRule : CSSRule { - readonly attribute CSSStyleDeclaration style; -}; - -partial interface CSSStyleDeclaration { - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontFamily; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontWeight; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontStretch; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontStyle; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontSize; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontSizeAdjust; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString font; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontSynthesis; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontKerning; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantLigatures; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantPosition; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantCaps; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantNumeric; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariantEastAsian; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontVariant; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString fontFeatureSettings; -}; diff --git a/idl/CSS Text Decoration.idl b/idl/CSS Text Decoration.idl deleted file mode 100644 index 3fbcd183a..000000000 --- a/idl/CSS Text Decoration.idl +++ /dev/null @@ -1,12 +0,0 @@ -partial interface CSSStyleDeclaration { - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecorationLine; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecorationStyle; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecorationColor; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecoration; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textUnderlinePosition; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textEmphasisStyle; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textEmphasisColor; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textEmphasis; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textEmphasisPosition; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textShadow; -}; diff --git a/idl/CSS Text.idl b/idl/CSS Text.idl deleted file mode 100644 index a04027396..000000000 --- a/idl/CSS Text.idl +++ /dev/null @@ -1,18 +0,0 @@ -partial interface CSSStyleDeclaration { - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textTransform; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString whiteSpace; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString tabSize; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString wordBreak; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString lineBreak; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString hyphens; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString overflowWrap; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString wordWrap; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAlign; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAlignAll; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAlignLast; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textJustify; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString wordSpacing; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString letterSpacing; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textIndent; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString hangingPunctuation; -}; diff --git a/idl/CSS Transforms.idl b/idl/CSS Transforms.idl deleted file mode 100644 index 76cb016e1..000000000 --- a/idl/CSS Transforms.idl +++ /dev/null @@ -1,5 +0,0 @@ -partial interface CSSStyleDeclaration { - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transform; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transformOrigin; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString transformBox; -}; diff --git a/idl/CSS Writing Modes.idl b/idl/CSS Writing Modes.idl deleted file mode 100644 index fb9f50d40..000000000 --- a/idl/CSS Writing Modes.idl +++ /dev/null @@ -1,8 +0,0 @@ -partial interface CSSStyleDeclaration { - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString direction; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString unicodeBidi; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString writingMode; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textOrientation; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString glyphOrientationVertical; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textCombineUpright; -}; diff --git a/idl/filter-effects.idl b/idl/filter-effects.idl deleted file mode 100644 index a769cbd46..000000000 --- a/idl/filter-effects.idl +++ /dev/null @@ -1,317 +0,0 @@ -interface SVGFilterElement : SVGElement { - readonly attribute SVGAnimatedEnumeration filterUnits; - readonly attribute SVGAnimatedEnumeration primitiveUnits; - readonly attribute SVGAnimatedLength x; - readonly attribute SVGAnimatedLength y; - readonly attribute SVGAnimatedLength width; - readonly attribute SVGAnimatedLength height; -}; - -SVGFilterElement includes SVGURIReference; - -interface mixin SVGFilterPrimitiveStandardAttributes { - readonly attribute SVGAnimatedLength x; - readonly attribute SVGAnimatedLength y; - readonly attribute SVGAnimatedLength width; - readonly attribute SVGAnimatedLength height; - readonly attribute SVGAnimatedString result; -}; - -interface SVGFEBlendElement : SVGElement { - - // Blend Mode Types - const unsigned short SVG_FEBLEND_MODE_UNKNOWN = 0; - const unsigned short SVG_FEBLEND_MODE_NORMAL = 1; - const unsigned short SVG_FEBLEND_MODE_MULTIPLY = 2; - const unsigned short SVG_FEBLEND_MODE_SCREEN = 3; - const unsigned short SVG_FEBLEND_MODE_DARKEN = 4; - const unsigned short SVG_FEBLEND_MODE_LIGHTEN = 5; - const unsigned short SVG_FEBLEND_MODE_OVERLAY = 6; - const unsigned short SVG_FEBLEND_MODE_COLOR_DODGE = 7; - const unsigned short SVG_FEBLEND_MODE_COLOR_BURN = 8; - const unsigned short SVG_FEBLEND_MODE_HARD_LIGHT = 9; - const unsigned short SVG_FEBLEND_MODE_SOFT_LIGHT = 10; - const unsigned short SVG_FEBLEND_MODE_DIFFERENCE = 11; - const unsigned short SVG_FEBLEND_MODE_EXCLUSION = 12; - const unsigned short SVG_FEBLEND_MODE_HUE = 13; - const unsigned short SVG_FEBLEND_MODE_SATURATION = 14; - const unsigned short SVG_FEBLEND_MODE_COLOR = 15; - const unsigned short SVG_FEBLEND_MODE_LUMINOSITY = 16; - - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedString in2; - readonly attribute SVGAnimatedEnumeration mode; -}; - -SVGFEBlendElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEColorMatrixElement : SVGElement { - - // Color Matrix Types - const unsigned short SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; - const unsigned short SVG_FECOLORMATRIX_TYPE_MATRIX = 1; - const unsigned short SVG_FECOLORMATRIX_TYPE_SATURATE = 2; - const unsigned short SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; - const unsigned short SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; - - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedEnumeration type; - readonly attribute SVGAnimatedNumberList values; -}; - -SVGFEColorMatrixElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEComponentTransferElement : SVGElement { - readonly attribute SVGAnimatedString in1; -}; - -SVGFEComponentTransferElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGComponentTransferFunctionElement : SVGElement { - - // Component Transfer Types - const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; - const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; - const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; - const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; - const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; - const unsigned short SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; - - readonly attribute SVGAnimatedEnumeration type; - readonly attribute SVGAnimatedNumberList tableValues; - readonly attribute SVGAnimatedNumber slope; - readonly attribute SVGAnimatedNumber intercept; - readonly attribute SVGAnimatedNumber amplitude; - readonly attribute SVGAnimatedNumber exponent; - readonly attribute SVGAnimatedNumber offset; -}; - -interface SVGFEFuncRElement : SVGComponentTransferFunctionElement { -}; - -interface SVGFEFuncGElement : SVGComponentTransferFunctionElement { -}; - -interface SVGFEFuncBElement : SVGComponentTransferFunctionElement { -}; - -interface SVGFEFuncAElement : SVGComponentTransferFunctionElement { -}; - -interface SVGFECompositeElement : SVGElement { - - // Composite Operators - const unsigned short SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; - const unsigned short SVG_FECOMPOSITE_OPERATOR_OVER = 1; - const unsigned short SVG_FECOMPOSITE_OPERATOR_IN = 2; - const unsigned short SVG_FECOMPOSITE_OPERATOR_OUT = 3; - const unsigned short SVG_FECOMPOSITE_OPERATOR_ATOP = 4; - const unsigned short SVG_FECOMPOSITE_OPERATOR_XOR = 5; - const unsigned short SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; - - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedString in2; - readonly attribute SVGAnimatedEnumeration operator; - readonly attribute SVGAnimatedNumber k1; - readonly attribute SVGAnimatedNumber k2; - readonly attribute SVGAnimatedNumber k3; - readonly attribute SVGAnimatedNumber k4; -}; - -SVGFECompositeElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEConvolveMatrixElement : SVGElement { - - // Edge Mode Values - const unsigned short SVG_EDGEMODE_UNKNOWN = 0; - const unsigned short SVG_EDGEMODE_DUPLICATE = 1; - const unsigned short SVG_EDGEMODE_WRAP = 2; - const unsigned short SVG_EDGEMODE_NONE = 3; - - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedInteger orderX; - readonly attribute SVGAnimatedInteger orderY; - readonly attribute SVGAnimatedNumberList kernelMatrix; - readonly attribute SVGAnimatedNumber divisor; - readonly attribute SVGAnimatedNumber bias; - readonly attribute SVGAnimatedInteger targetX; - readonly attribute SVGAnimatedInteger targetY; - readonly attribute SVGAnimatedEnumeration edgeMode; - readonly attribute SVGAnimatedNumber kernelUnitLengthX; - readonly attribute SVGAnimatedNumber kernelUnitLengthY; - readonly attribute SVGAnimatedBoolean preserveAlpha; -}; - -SVGFEConvolveMatrixElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEDiffuseLightingElement : SVGElement { - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedNumber surfaceScale; - readonly attribute SVGAnimatedNumber diffuseConstant; - readonly attribute SVGAnimatedNumber kernelUnitLengthX; - readonly attribute SVGAnimatedNumber kernelUnitLengthY; -}; - -SVGFEDiffuseLightingElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEDistantLightElement : SVGElement { - readonly attribute SVGAnimatedNumber azimuth; - readonly attribute SVGAnimatedNumber elevation; -}; - -interface SVGFEPointLightElement : SVGElement { - readonly attribute SVGAnimatedNumber x; - readonly attribute SVGAnimatedNumber y; - readonly attribute SVGAnimatedNumber z; -}; - -interface SVGFESpotLightElement : SVGElement { - readonly attribute SVGAnimatedNumber x; - readonly attribute SVGAnimatedNumber y; - readonly attribute SVGAnimatedNumber z; - readonly attribute SVGAnimatedNumber pointsAtX; - readonly attribute SVGAnimatedNumber pointsAtY; - readonly attribute SVGAnimatedNumber pointsAtZ; - readonly attribute SVGAnimatedNumber specularExponent; - readonly attribute SVGAnimatedNumber limitingConeAngle; -}; - -interface SVGFEDisplacementMapElement : SVGElement { - - // Channel Selectors - const unsigned short SVG_CHANNEL_UNKNOWN = 0; - const unsigned short SVG_CHANNEL_R = 1; - const unsigned short SVG_CHANNEL_G = 2; - const unsigned short SVG_CHANNEL_B = 3; - const unsigned short SVG_CHANNEL_A = 4; - - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedString in2; - readonly attribute SVGAnimatedNumber scale; - readonly attribute SVGAnimatedEnumeration xChannelSelector; - readonly attribute SVGAnimatedEnumeration yChannelSelector; -}; - -SVGFEDisplacementMapElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEDropShadowElement : SVGElement { - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedNumber dx; - readonly attribute SVGAnimatedNumber dy; - readonly attribute SVGAnimatedNumber stdDeviationX; - readonly attribute SVGAnimatedNumber stdDeviationY; - - void setStdDeviation(float stdDeviationX, float stdDeviationY); -}; - -SVGFEDropShadowElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEFloodElement : SVGElement { -}; - -SVGFEFloodElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEGaussianBlurElement : SVGElement { - - // Edge Mode Values - const unsigned short SVG_EDGEMODE_UNKNOWN = 0; - const unsigned short SVG_EDGEMODE_DUPLICATE = 1; - const unsigned short SVG_EDGEMODE_WRAP = 2; - const unsigned short SVG_EDGEMODE_NONE = 3; - - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedNumber stdDeviationX; - readonly attribute SVGAnimatedNumber stdDeviationY; - readonly attribute SVGAnimatedEnumeration edgeMode; - - void setStdDeviation(float stdDeviationX, float stdDeviationY); -}; - -SVGFEGaussianBlurElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEImageElement : SVGElement { - readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio; - readonly attribute SVGAnimatedString crossOrigin; -}; - -SVGFEImageElement includes SVGFilterPrimitiveStandardAttributes; -SVGFEImageElement includes SVGURIReference; - -interface SVGFEMergeElement : SVGElement { -}; - -SVGFEMergeElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEMergeNodeElement : SVGElement { - readonly attribute SVGAnimatedString in1; -}; - -interface SVGFEMorphologyElement : SVGElement { - - // Morphology Operators - const unsigned short SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; - const unsigned short SVG_MORPHOLOGY_OPERATOR_ERODE = 1; - const unsigned short SVG_MORPHOLOGY_OPERATOR_DILATE = 2; - - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedEnumeration operator; - readonly attribute SVGAnimatedNumber radiusX; - readonly attribute SVGAnimatedNumber radiusY; -}; - -SVGFEMorphologyElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFEOffsetElement : SVGElement { - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedNumber dx; - readonly attribute SVGAnimatedNumber dy; -}; - -SVGFEOffsetElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFESpecularLightingElement : SVGElement { - readonly attribute SVGAnimatedString in1; - readonly attribute SVGAnimatedNumber surfaceScale; - readonly attribute SVGAnimatedNumber specularConstant; - readonly attribute SVGAnimatedNumber specularExponent; - readonly attribute SVGAnimatedNumber kernelUnitLengthX; - readonly attribute SVGAnimatedNumber kernelUnitLengthY; -}; - -SVGFESpecularLightingElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFETileElement : SVGElement { - readonly attribute SVGAnimatedString in1; -}; - -SVGFETileElement includes SVGFilterPrimitiveStandardAttributes; - -interface SVGFETurbulenceElement : SVGElement { - - // Turbulence Types - const unsigned short SVG_TURBULENCE_TYPE_UNKNOWN = 0; - const unsigned short SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; - const unsigned short SVG_TURBULENCE_TYPE_TURBULENCE = 2; - - // Stitch Options - const unsigned short SVG_STITCHTYPE_UNKNOWN = 0; - const unsigned short SVG_STITCHTYPE_STITCH = 1; - const unsigned short SVG_STITCHTYPE_NOSTITCH = 2; - - readonly attribute SVGAnimatedNumber baseFrequencyX; - readonly attribute SVGAnimatedNumber baseFrequencyY; - readonly attribute SVGAnimatedInteger numOctaves; - readonly attribute SVGAnimatedNumber seed; - readonly attribute SVGAnimatedEnumeration stitchTiles; - readonly attribute SVGAnimatedEnumeration type; -}; - -SVGFETurbulenceElement includes SVGFilterPrimitiveStandardAttributes; - -partial interface CSSStyleDeclaration { - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString filter; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString floodColor; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString floodOpacity; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString colorInterpolationFilters; - [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString lightingColor; -}; diff --git a/idl/svg.idl b/idl/svg.idl deleted file mode 100644 index fa85a78c1..000000000 --- a/idl/svg.idl +++ /dev/null @@ -1,688 +0,0 @@ -[Exposed=Window] -interface SVGElement : Element { - - [SameObject] readonly attribute SVGAnimatedString className; - - readonly attribute SVGSVGElement? ownerSVGElement; - readonly attribute SVGElement? viewportElement; -}; - -SVGElement includes GlobalEventHandlers; -SVGElement includes DocumentAndElementEventHandlers; -SVGElement includes SVGElementInstance; -SVGElement includes HTMLOrSVGElement; - -dictionary SVGBoundingBoxOptions { - boolean fill = true; - boolean stroke = false; - boolean markers = false; - boolean clipped = false; -}; - -interface SVGGraphicsElement : SVGElement { - [SameObject] readonly attribute SVGAnimatedTransformList transform; - - DOMRect getBBox(optional SVGBoundingBoxOptions options); - DOMMatrix? getCTM(); - DOMMatrix? getScreenCTM(); -}; - -SVGGraphicsElement includes SVGTests; - -[Exposed=Window] -interface SVGGeometryElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedNumber pathLength; - - boolean isPointInFill(optional DOMPointInit point); - boolean isPointInStroke(optional DOMPointInit point); - float getTotalLength(); - DOMPoint getPointAtLength(float distance); -}; - -[Exposed=Window] -interface SVGNumber { - attribute float value; -}; - -[Exposed=Window] -interface SVGLength { - - // Length Unit Types - const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0; - const unsigned short SVG_LENGTHTYPE_NUMBER = 1; - const unsigned short SVG_LENGTHTYPE_PERCENTAGE = 2; - const unsigned short SVG_LENGTHTYPE_EMS = 3; - const unsigned short SVG_LENGTHTYPE_EXS = 4; - const unsigned short SVG_LENGTHTYPE_PX = 5; - const unsigned short SVG_LENGTHTYPE_CM = 6; - const unsigned short SVG_LENGTHTYPE_MM = 7; - const unsigned short SVG_LENGTHTYPE_IN = 8; - const unsigned short SVG_LENGTHTYPE_PT = 9; - const unsigned short SVG_LENGTHTYPE_PC = 10; - - readonly attribute unsigned short unitType; - attribute float value; - attribute float valueInSpecifiedUnits; - attribute DOMString valueAsString; - - void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits); - void convertToSpecifiedUnits(unsigned short unitType); -}; - -[Exposed=Window] -interface SVGAngle { - - // Angle Unit Types - const unsigned short SVG_ANGLETYPE_UNKNOWN = 0; - const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1; - const unsigned short SVG_ANGLETYPE_DEG = 2; - const unsigned short SVG_ANGLETYPE_RAD = 3; - const unsigned short SVG_ANGLETYPE_GRAD = 4; - - readonly attribute unsigned short unitType; - attribute float value; - attribute float valueInSpecifiedUnits; - attribute DOMString valueAsString; - - void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits); - void convertToSpecifiedUnits(unsigned short unitType); -}; - -[Exposed=Window] -interface SVGNumberList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - void clear(); - SVGNumber initialize(SVGNumber newItem); - getter SVGNumber getItem(unsigned long index); - SVGNumber insertItemBefore(SVGNumber newItem, unsigned long index); - SVGNumber replaceItem(SVGNumber newItem, unsigned long index); - SVGNumber removeItem(unsigned long index); - SVGNumber appendItem(SVGNumber newItem); - setter void (unsigned long index, SVGNumber newItem); -}; - -[Exposed=Window] -interface SVGLengthList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - void clear(); - SVGLength initialize(SVGLength newItem); - getter SVGLength getItem(unsigned long index); - SVGLength insertItemBefore(SVGLength newItem, unsigned long index); - SVGLength replaceItem(SVGLength newItem, unsigned long index); - SVGLength removeItem(unsigned long index); - SVGLength appendItem(SVGLength newItem); - setter void (unsigned long index, SVGLength newItem); -}; - -[Exposed=Window] -interface SVGStringList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - void clear(); - DOMString initialize(DOMString newItem); - getter DOMString getItem(unsigned long index); - DOMString insertItemBefore(DOMString newItem, unsigned long index); - DOMString replaceItem(DOMString newItem, unsigned long index); - DOMString removeItem(unsigned long index); - DOMString appendItem(DOMString newItem); - setter void (unsigned long index, DOMString newItem); -}; - -[Exposed=Window] -interface SVGAnimatedBoolean { - attribute boolean baseVal; - readonly attribute boolean animVal; -}; - -[Exposed=Window] -interface SVGAnimatedEnumeration { - attribute unsigned short baseVal; - readonly attribute unsigned short animVal; -}; - -[Exposed=Window] -interface SVGAnimatedInteger { - attribute long baseVal; - readonly attribute long animVal; -}; - -[Exposed=Window] -interface SVGAnimatedNumber { - attribute float baseVal; - readonly attribute float animVal; -}; - -[Exposed=Window] -interface SVGAnimatedLength { - [SameObject] readonly attribute SVGLength baseVal; - [SameObject] readonly attribute SVGLength animVal; -}; - -[Exposed=Window] -interface SVGAnimatedAngle { - [SameObject] readonly attribute SVGAngle baseVal; - [SameObject] readonly attribute SVGAngle animVal; -}; - -[Exposed=Window] -interface SVGAnimatedString { - attribute DOMString baseVal; - readonly attribute DOMString animVal; -}; - -[Exposed=Window] -interface SVGAnimatedRect { - [SameObject] readonly attribute DOMRect baseVal; - [SameObject] readonly attribute DOMRectReadOnly animVal; -}; - -[Exposed=Window] -interface SVGAnimatedNumberList { - [SameObject] readonly attribute SVGNumberList baseVal; - [SameObject] readonly attribute SVGNumberList animVal; -}; - -[Exposed=Window] -interface SVGAnimatedLengthList { - [SameObject] readonly attribute SVGLengthList baseVal; - [SameObject] readonly attribute SVGLengthList animVal; -}; - -[Exposed=Window] -interface SVGUnitTypes { - // Unit Types - const unsigned short SVG_UNIT_TYPE_UNKNOWN = 0; - const unsigned short SVG_UNIT_TYPE_USERSPACEONUSE = 1; - const unsigned short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; -}; - -interface mixin SVGTests { - [SameObject] readonly attribute SVGStringList requiredExtensions; - [SameObject] readonly attribute SVGStringList systemLanguage; -}; - -interface mixin SVGFitToViewBox { - [SameObject] readonly attribute SVGAnimatedRect viewBox; - [SameObject] readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio; -}; - -interface mixin SVGZoomAndPan { - - // Zoom and Pan Types - const unsigned short SVG_ZOOMANDPAN_UNKNOWN = 0; - const unsigned short SVG_ZOOMANDPAN_DISABLE = 1; - const unsigned short SVG_ZOOMANDPAN_MAGNIFY = 2; - - attribute unsigned short zoomAndPan; -}; - -interface mixin SVGURIReference { - [SameObject] readonly attribute SVGAnimatedString href; -}; - -partial interface Document { - readonly attribute SVGSVGElement? rootElement; -}; - -[Exposed=Window] -interface SVGSVGElement : SVGGraphicsElement { - - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; - - attribute float currentScale; - [SameObject] readonly attribute DOMPointReadOnly currentTranslate; - - NodeList getIntersectionList(DOMRectReadOnly rect, SVGElement? referenceElement); - NodeList getEnclosureList(DOMRectReadOnly rect, SVGElement? referenceElement); - boolean checkIntersection(SVGElement element, DOMRectReadOnly rect); - boolean checkEnclosure(SVGElement element, DOMRectReadOnly rect); - - void deselectAll(); - - SVGNumber createSVGNumber(); - SVGLength createSVGLength(); - SVGAngle createSVGAngle(); - DOMPoint createSVGPoint(); - DOMMatrix createSVGMatrix(); - DOMRect createSVGRect(); - SVGTransform createSVGTransform(); - SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix); - - Element getElementById(DOMString elementId); - - // Deprecated methods that have no effect when called, - // but which are kept for compatibility reasons. - unsigned long suspendRedraw(unsigned long maxWaitMilliseconds); - void unsuspendRedraw(unsigned long suspendHandleID); - void unsuspendRedrawAll(); - void forceRedraw(); -}; - -SVGSVGElement includes SVGFitToViewBox; -SVGSVGElement includes SVGZoomAndPan; -SVGSVGElement includes WindowEventHandlers; - -[Exposed=Window] -interface SVGGElement : SVGGraphicsElement { -}; - -[Exposed=Window] -interface SVGDefsElement : SVGGraphicsElement { -}; - -[Exposed=Window] -interface SVGDescElement : SVGElement { -}; - -[Exposed=Window] -interface SVGMetadataElement : SVGElement { -}; - -[Exposed=Window] -interface SVGTitleElement : SVGElement { -}; - -[Exposed=Window] -interface SVGSymbolElement : SVGGraphicsElement { -}; - -SVGSymbolElement includes SVGFitToViewBox; - -[Exposed=Window] -interface SVGUseElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; - [SameObject] readonly attribute SVGElement? instanceRoot; - [SameObject] readonly attribute SVGElement? animatedInstanceRoot; -}; - -SVGUseElement includes SVGURIReference; - -[Exposed=Window] -interface SVGUseElementShadowRoot : ShadowRoot { -}; - -interface mixin SVGElementInstance { - [SameObject] readonly attribute SVGElement? correspondingElement; - [SameObject] readonly attribute SVGUseElement? correspondingUseElement; -}; - -[Constructor(Animation source, Animatable newTarget), Exposed=Window] -interface ShadowAnimation : Animation { - [SameObject] readonly attribute Animation sourceAnimation; -}; - -[Exposed=Window] -interface SVGSwitchElement : SVGGraphicsElement { -}; - -interface mixin GetSVGDocument { - Document getSVGDocument(); -}; - -[Exposed=Window] -interface SVGStyleElement : SVGElement { - attribute DOMString type; - attribute DOMString media; - attribute DOMString title; -}; - -SVGStyleElement includes LinkStyle; - -[Exposed=Window] -interface SVGTransform { - - // Transform Types - const unsigned short SVG_TRANSFORM_UNKNOWN = 0; - const unsigned short SVG_TRANSFORM_MATRIX = 1; - const unsigned short SVG_TRANSFORM_TRANSLATE = 2; - const unsigned short SVG_TRANSFORM_SCALE = 3; - const unsigned short SVG_TRANSFORM_ROTATE = 4; - const unsigned short SVG_TRANSFORM_SKEWX = 5; - const unsigned short SVG_TRANSFORM_SKEWY = 6; - - readonly attribute unsigned short type; - [SameObject] readonly attribute DOMMatrix matrix; - readonly attribute float angle; - - void setMatrix(optional DOMMatrix2DInit matrix); - void setTranslate(float tx, float ty); - void setScale(float sx, float sy); - void setRotate(float angle, float cx, float cy); - void setSkewX(float angle); - void setSkewY(float angle); -}; - -[Exposed=Window] -interface SVGTransformList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - void clear(); - SVGTransform initialize(SVGTransform newItem); - getter SVGTransform getItem(unsigned long index); - SVGTransform insertItemBefore(SVGTransform newItem, unsigned long index); - SVGTransform replaceItem(SVGTransform newItem, unsigned long index); - SVGTransform removeItem(unsigned long index); - SVGTransform appendItem(SVGTransform newItem); - setter void (unsigned long index, SVGTransform newItem); - - // Additional methods not common to other list interfaces. - SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix); - SVGTransform? consolidate(); -}; - -[Exposed=Window] -interface SVGAnimatedTransformList { - [SameObject] readonly attribute SVGTransformList baseVal; - [SameObject] readonly attribute SVGTransformList animVal; -}; - -[Exposed=Window] -interface SVGPreserveAspectRatio { - - // Alignment Types - const unsigned short SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; - const unsigned short SVG_PRESERVEASPECTRATIO_NONE = 1; - const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; - const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; - const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; - const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMID = 5; - const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; - const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; - const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; - const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; - const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; - - // Meet-or-slice Types - const unsigned short SVG_MEETORSLICE_UNKNOWN = 0; - const unsigned short SVG_MEETORSLICE_MEET = 1; - const unsigned short SVG_MEETORSLICE_SLICE = 2; - - attribute unsigned short align; - attribute unsigned short meetOrSlice; -}; - -[Exposed=Window] -interface SVGAnimatedPreserveAspectRatio { - [SameObject] readonly attribute SVGPreserveAspectRatio baseVal; - [SameObject] readonly attribute SVGPreserveAspectRatio animVal; -}; - -[Exposed=Window] -interface SVGPathElement : SVGGeometryElement { -}; - -[Exposed=Window] -interface SVGRectElement : SVGGeometryElement { - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; - [SameObject] readonly attribute SVGAnimatedLength rx; - [SameObject] readonly attribute SVGAnimatedLength ry; -}; - -[Exposed=Window] -interface SVGCircleElement : SVGGeometryElement { - [SameObject] readonly attribute SVGAnimatedLength cx; - [SameObject] readonly attribute SVGAnimatedLength cy; - [SameObject] readonly attribute SVGAnimatedLength r; -}; - -[Exposed=Window] -interface SVGEllipseElement : SVGGeometryElement { - [SameObject] readonly attribute SVGAnimatedLength cx; - [SameObject] readonly attribute SVGAnimatedLength cy; - [SameObject] readonly attribute SVGAnimatedLength rx; - [SameObject] readonly attribute SVGAnimatedLength ry; -}; - -[Exposed=Window] -interface SVGLineElement : SVGGeometryElement { - [SameObject] readonly attribute SVGAnimatedLength x1; - [SameObject] readonly attribute SVGAnimatedLength y1; - [SameObject] readonly attribute SVGAnimatedLength x2; - [SameObject] readonly attribute SVGAnimatedLength y2; -}; - -interface mixin SVGAnimatedPoints { - [SameObject] readonly attribute SVGPointList points; - [SameObject] readonly attribute SVGPointList animatedPoints; -}; - -[Exposed=Window] -interface SVGPointList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - void clear(); - DOMPoint initialize(DOMPoint newItem); - getter DOMPoint getItem(unsigned long index); - DOMPoint insertItemBefore(DOMPoint newItem, unsigned long index); - DOMPoint replaceItem(DOMPoint newItem, unsigned long index); - DOMPoint removeItem(unsigned long index); - DOMPoint appendItem(DOMPoint newItem); - setter void (unsigned long index, DOMPoint newItem); -}; - -[Exposed=Window] -interface SVGPolylineElement : SVGGeometryElement { -}; - -SVGPolylineElement includes SVGAnimatedPoints; - -[Exposed=Window] -interface SVGPolygonElement : SVGGeometryElement { -}; - -SVGPolygonElement includes SVGAnimatedPoints; - -[Exposed=Window] -interface SVGTextContentElement : SVGGraphicsElement { - - // lengthAdjust Types - const unsigned short LENGTHADJUST_UNKNOWN = 0; - const unsigned short LENGTHADJUST_SPACING = 1; - const unsigned short LENGTHADJUST_SPACINGANDGLYPHS = 2; - - [SameObject] readonly attribute SVGAnimatedLength textLength; - [SameObject] readonly attribute SVGAnimatedEnumeration lengthAdjust; - - long getNumberOfChars(); - float getComputedTextLength(); - float getSubStringLength(unsigned long charnum, unsigned long nchars); - DOMPoint getStartPositionOfChar(unsigned long charnum); - DOMPoint getEndPositionOfChar(unsigned long charnum); - DOMRect getExtentOfChar(unsigned long charnum); - float getRotationOfChar(unsigned long charnum); - long getCharNumAtPosition(optional DOMPointInit point); - void selectSubString(unsigned long charnum, unsigned long nchars); -}; - -[Exposed=Window] -interface SVGTextPositioningElement : SVGTextContentElement { - [SameObject] readonly attribute SVGAnimatedLengthList x; - [SameObject] readonly attribute SVGAnimatedLengthList y; - [SameObject] readonly attribute SVGAnimatedLengthList dx; - [SameObject] readonly attribute SVGAnimatedLengthList dy; - [SameObject] readonly attribute SVGAnimatedNumberList rotate; -}; - -[Exposed=Window] -interface SVGTextElement : SVGTextPositioningElement { -}; - -[Exposed=Window] -interface SVGTSpanElement : SVGTextPositioningElement { -}; - -[Exposed=Window] -interface SVGTextPathElement : SVGTextContentElement { - - // textPath Method Types - const unsigned short TEXTPATH_METHODTYPE_UNKNOWN = 0; - const unsigned short TEXTPATH_METHODTYPE_ALIGN = 1; - const unsigned short TEXTPATH_METHODTYPE_STRETCH = 2; - - // textPath Spacing Types - const unsigned short TEXTPATH_SPACINGTYPE_UNKNOWN = 0; - const unsigned short TEXTPATH_SPACINGTYPE_AUTO = 1; - const unsigned short TEXTPATH_SPACINGTYPE_EXACT = 2; - - [SameObject] readonly attribute SVGAnimatedLength startOffset; - [SameObject] readonly attribute SVGAnimatedEnumeration method; - [SameObject] readonly attribute SVGAnimatedEnumeration spacing; -}; - -SVGTextPathElement includes SVGURIReference; - -[Exposed=Window] -interface SVGImageElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; - [SameObject] readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio; - attribute DOMString? crossOrigin; -}; - -SVGImageElement includes SVGURIReference; - -[Exposed=Window] -interface SVGForeignObjectElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; -}; - -[Exposed=Window] -interface SVGMarkerElement : SVGElement { - - // Marker Unit Types - const unsigned short SVG_MARKERUNITS_UNKNOWN = 0; - const unsigned short SVG_MARKERUNITS_USERSPACEONUSE = 1; - const unsigned short SVG_MARKERUNITS_STROKEWIDTH = 2; - - // Marker Orientation Types - const unsigned short SVG_MARKER_ORIENT_UNKNOWN = 0; - const unsigned short SVG_MARKER_ORIENT_AUTO = 1; - const unsigned short SVG_MARKER_ORIENT_ANGLE = 2; - - [SameObject] readonly attribute SVGAnimatedLength refX; - [SameObject] readonly attribute SVGAnimatedLength refY; - [SameObject] readonly attribute SVGAnimatedEnumeration markerUnits; - [SameObject] readonly attribute SVGAnimatedLength markerWidth; - [SameObject] readonly attribute SVGAnimatedLength markerHeight; - [SameObject] readonly attribute SVGAnimatedEnumeration orientType; - [SameObject] readonly attribute SVGAnimatedAngle orientAngle; - attribute DOMString orient; - - void setOrientToAuto(); - void setOrientToAngle(SVGAngle angle); -}; - -SVGMarkerElement includes SVGFitToViewBox; - -[Exposed=Window] -interface SVGGradientElement : SVGElement { - - // Spread Method Types - const unsigned short SVG_SPREADMETHOD_UNKNOWN = 0; - const unsigned short SVG_SPREADMETHOD_PAD = 1; - const unsigned short SVG_SPREADMETHOD_REFLECT = 2; - const unsigned short SVG_SPREADMETHOD_REPEAT = 3; - - [SameObject] readonly attribute SVGAnimatedEnumeration gradientUnits; - [SameObject] readonly attribute SVGAnimatedTransformList gradientTransform; - [SameObject] readonly attribute SVGAnimatedEnumeration spreadMethod; -}; - -SVGGradientElement includes SVGURIReference; - - -[Exposed=Window] -interface SVGLinearGradientElement : SVGGradientElement { - [SameObject] readonly attribute SVGAnimatedLength x1; - [SameObject] readonly attribute SVGAnimatedLength y1; - [SameObject] readonly attribute SVGAnimatedLength x2; - [SameObject] readonly attribute SVGAnimatedLength y2; -}; - -[Exposed=Window] -interface SVGRadialGradientElement : SVGGradientElement { - [SameObject] readonly attribute SVGAnimatedLength cx; - [SameObject] readonly attribute SVGAnimatedLength cy; - [SameObject] readonly attribute SVGAnimatedLength r; - [SameObject] readonly attribute SVGAnimatedLength fx; - [SameObject] readonly attribute SVGAnimatedLength fy; - [SameObject] readonly attribute SVGAnimatedLength fr; -}; - -[Exposed=Window] -interface SVGStopElement : SVGElement { - [SameObject] readonly attribute SVGAnimatedNumber offset; -}; - -[Exposed=Window] -interface SVGPatternElement : SVGElement { - [SameObject] readonly attribute SVGAnimatedEnumeration patternUnits; - [SameObject] readonly attribute SVGAnimatedEnumeration patternContentUnits; - [SameObject] readonly attribute SVGAnimatedTransformList patternTransform; - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; -}; - -SVGPatternElement includes SVGFitToViewBox; -SVGPatternElement includes SVGURIReference; - - -[Exposed=Window] -interface SVGScriptElement : SVGElement { - attribute DOMString type; - attribute DOMString? crossOrigin; -}; - -SVGScriptElement includes SVGURIReference; - -[Exposed=Window] -interface SVGAElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedString target; - attribute DOMString download; - attribute USVString ping; - attribute DOMString rel; - [SameObject, PutForwards=value] readonly attribute DOMTokenList relList; - attribute DOMString hreflang; - attribute DOMString type; - - attribute DOMString text; - - attribute DOMString referrerPolicy; -}; - -SVGAElement includes SVGURIReference; -SVGAElement includes HTMLHyperlinkElementUtils; - -[Exposed=Window] -interface SVGViewElement : SVGElement {}; - -SVGViewElement includes SVGFitToViewBox; -SVGViewElement includes SVGZoomAndPan; diff --git a/jest.config.ts b/jest.config.ts index 7df13396d..47edc065e 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,12 +1,7 @@ import { Config } from '@jest/types'; const config: Config.InitialOptions = { - testPathIgnorePatterns: [ - '/node_modules/', - '/example/', - '/tests-example/', - '/fabric-example/', - ], + testPathIgnorePatterns: ['/node_modules/', '/apps/'], preset: 'react-native', verbose: true, globalSetup: '/e2e/setupJest.ts', diff --git a/package.json b/package.json index 35c0db132..23aef50e5 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "format": "yarn format-js && yarn format-ios && yarn format-java", "format-ios": "find apple/ common/ -iname *.h -o -iname *.m -o -iname *.cpp -o -iname *.mm | xargs clang-format -i", "format-java": "node ./scripts/format-java.js", - "format-js": "prettier --write README.md CONTRIBUTING.md CODE_OF_CONDUCT.md USAGE.md ./src/**/*.{ts,tsx} ./apps/**/*.tsx ./*-example/**/*.tsx", + "format-js": "prettier --write README.md CONTRIBUTING.md CODE_OF_CONDUCT.md USAGE.md ./src/**/*.{ts,tsx} ./apps/**/*.{ts,tsx}", "jest": "jest", "lint": "eslint --ext .ts,.tsx src", "peg": "pegjs -o src/lib/extract/transform.js ./src/lib/extract/transform.peg && peggy -o src/filter-image/extract/extractFiltersString.js src/filter-image/extract/extractFiltersString.pegjs && peggy -o src/lib/extract/transformToRn.js src/lib/extract/transformToRn.pegjs", @@ -122,7 +122,7 @@ "ws": "^8.18.0" }, "lint-staged": { - "{src,Example}/**/*.{js,ts,tsx}": "yarn format-js", + "{src,apps/common}/**/*.{js,ts,tsx}": "yarn format-js", "src/**/*.{js,ts,tsx}": "yarn lint", "apple/**/*.{h,m,mm,cpp}": "yarn format-ios", "android/src/**/*.java": "yarn format-java",