Compare commits
239 Commits
8385b205c3
...
universalB
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c4d607788 | |||
|
|
57584a38fa | ||
|
|
24fa44448e | ||
|
|
272b96f1d4 | ||
|
|
f24d7dbf6a | ||
|
|
ba6133e38a | ||
|
|
1a4c602fd8 | ||
|
|
3b1763bd7d | ||
|
|
4e10bb1b43 | ||
|
|
d8f507dba0 | ||
|
|
244573abe3 | ||
|
|
a9c5dd746a | ||
|
|
ce5527513e | ||
|
|
2318bffd07 | ||
|
|
5e26d863f1 | ||
|
|
d22d362c31 | ||
|
|
72a92e1380 | ||
|
|
685a0e53d7 | ||
|
|
4477f3b550 | ||
|
|
b908ab50ac | ||
|
|
5693ac7205 | ||
|
|
1c706b52bc | ||
|
|
88d8567310 | ||
|
|
0425dfd4e5 | ||
|
|
202e6b6148 | ||
|
|
294f39eceb | ||
|
|
864e296f35 | ||
|
|
877253191d | ||
|
|
7e2508f045 | ||
|
|
fb37f27ff5 | ||
|
|
387d546e77 | ||
|
|
ec9bc8a29f | ||
|
|
e3038a3393 | ||
|
|
b9fa86e77f | ||
|
|
bf67b19c4a | ||
|
|
288e8e2d48 | ||
|
|
dd9279bf7a | ||
|
|
e225d9e1c3 | ||
|
|
ace3626938 | ||
|
|
7fa24636ca | ||
|
|
d515342526 | ||
|
|
7c972a982a | ||
|
|
edc46dc2b1 | ||
|
|
39d84e3bfc | ||
|
|
bfc4e959bc | ||
|
|
b34718ac32 | ||
|
|
f01568bf59 | ||
|
|
ed7a7f7bd0 | ||
|
|
6ccae92918 | ||
|
|
6b54bd3173 | ||
|
|
f1b35ca592 | ||
|
|
65d2ce7ed5 | ||
|
|
af3f11521b | ||
|
|
067693f3c8 | ||
|
|
11ec4c3107 | ||
|
|
7de92cb34a | ||
|
|
9166939214 | ||
|
|
49abb4dd41 | ||
|
|
0889a0e02d | ||
|
|
6c4c579f27 | ||
|
|
b633766199 | ||
|
|
ed80151768 | ||
|
|
9910807826 | ||
|
|
f6445fea43 | ||
|
|
d88cf41a24 | ||
|
|
bc77dcf326 | ||
|
|
1199e1f667 | ||
|
|
cb485613e4 | ||
|
|
9dea899701 | ||
|
|
437e67cd7f | ||
|
|
4ada8b9322 | ||
|
|
a400eb2872 | ||
|
|
0cbd640e5c | ||
|
|
45157c3675 | ||
|
|
b7a4741e40 | ||
|
|
5269800738 | ||
|
|
9ca6f01c40 | ||
|
|
cd9db40e4f | ||
|
|
2d28ca2c37 | ||
|
|
2d253b1387 | ||
|
|
e5f6ad0ca6 | ||
|
|
b08e6feb44 | ||
|
|
91efcce5c5 | ||
|
|
a1070b8cea | ||
|
|
d023bcc42e | ||
|
|
04b4bf7bdf | ||
|
|
4b3f572205 | ||
|
|
8348d617d0 | ||
|
|
6e19c4155c | ||
|
|
8ef29c8160 | ||
|
|
69378c4b09 | ||
|
|
d54bd7c3ba | ||
|
|
54217f2c79 | ||
|
|
b5cb7fcce2 | ||
|
|
284dee0460 | ||
|
|
51e149765e | ||
|
|
f856cedf81 | ||
|
|
3993e7461d | ||
|
|
640fb86edc | ||
|
|
4d0a5ff42b | ||
|
|
03c2828630 | ||
|
|
e461229075 | ||
|
|
92d1454140 | ||
|
|
9b9eb00b63 | ||
|
|
137e75ad46 | ||
|
|
9164e04e29 | ||
|
|
3dc9cc5d3d | ||
|
|
4bb0f59ab8 | ||
|
|
a8f5fecc2b | ||
|
|
701ae01501 | ||
|
|
da5856138d | ||
|
|
3536ffe737 | ||
|
|
39b1b37172 | ||
| ea082e7a3e | |||
|
|
4fa25b0770 | ||
|
|
ddeda3f851 | ||
|
|
7c5ede7a5e | ||
|
|
d9ecac4bc2 | ||
|
|
9c5df1516f | ||
|
|
36cb69e1fd | ||
|
|
99dbcfa079 | ||
|
|
3bb3ce6a66 | ||
|
|
62e9181075 | ||
|
|
bd6e1285da | ||
|
|
44b8a39874 | ||
|
|
5b89331ea2 | ||
|
|
d26612d840 | ||
|
|
6e64f53046 | ||
|
|
d85adc030f | ||
|
|
6bf93347ee | ||
|
|
c93c494ef4 | ||
|
|
87cb9bd77a | ||
|
|
afae1bd141 | ||
|
|
d5a0c206f2 | ||
|
|
8f1b4ffa1c | ||
|
|
fecaa8d974 | ||
|
|
e72dcbb28d | ||
|
|
c8ee1847a2 | ||
|
|
1a98038979 | ||
|
|
08e742ceff | ||
|
|
368dfc90f6 | ||
|
|
7a6f95d120 | ||
|
|
b4f77da11a | ||
|
|
6d3ff9d5d9 | ||
|
|
9f78eb3f00 | ||
|
|
620b41b691 | ||
|
|
254110bf02 | ||
|
|
0f3f4de25e | ||
|
|
7bbc386d71 | ||
|
|
6dd1fcd569 | ||
|
|
43530e3bbf | ||
|
|
3706be8b2f | ||
|
|
8086816f82 | ||
|
|
57d4e86545 | ||
|
|
560a50485c | ||
|
|
6bec2d659e | ||
|
|
87d9414bf0 | ||
| 69522523c6 | |||
| 304bd81e07 | |||
|
|
34bbd41547 | ||
|
|
2c1e814264 | ||
|
|
f0023ea79d | ||
|
|
9aadcefbf9 | ||
|
|
92e831cc40 | ||
|
|
f3449a5641 | ||
|
|
115cb1af71 | ||
|
|
20a1b9d255 | ||
|
|
8af6ca7f02 | ||
|
|
aafd7e12df | ||
|
|
457361985c | ||
|
|
ce693ef33e | ||
|
|
fa2845d86d | ||
|
|
1b0eb31bd9 | ||
|
|
184316545a | ||
|
|
b4d80c3f80 | ||
|
|
f5d974a26c | ||
|
|
65de40be7c | ||
|
|
b184500d94 | ||
|
|
50b06f2efd | ||
|
|
abefa2165f | ||
|
|
ecfa9451db | ||
|
|
6970edcc69 | ||
|
|
eb5618d643 | ||
|
|
554cc88462 | ||
|
|
8c5078dc08 | ||
|
|
97f01d0057 | ||
|
|
7f6d1cf55b | ||
|
|
da7917cefe | ||
|
|
bf49924f0c | ||
|
|
3ed89a50bb | ||
|
|
1f13a9dab5 | ||
|
|
cdb96df06f | ||
|
|
b3497a1642 | ||
|
|
25245506c7 | ||
|
|
b306a5591e | ||
|
|
4b915da47c | ||
|
|
21057fba01 | ||
|
|
9c36fd5371 | ||
|
|
280d9544d1 | ||
|
|
94120d61aa | ||
|
|
05242b4ee9 | ||
|
|
cd4640326c | ||
|
|
92ca5edaea | ||
|
|
efdcaee302 | ||
|
|
12ebf5ec51 | ||
|
|
0509022dd5 | ||
|
|
baf9d9ab37 | ||
|
|
663380e721 | ||
|
|
4834fda6fa | ||
|
|
fd774a2d52 | ||
|
|
a978c96987 | ||
|
|
b507f7743e | ||
|
|
edc69ac8ee | ||
|
|
aea77cc4da | ||
|
|
a8be443670 | ||
|
|
450e6f2d7c | ||
|
|
64d97998fd | ||
|
|
ee7f12ef85 | ||
|
|
da903b8bc5 | ||
|
|
a0ffacb6b6 | ||
|
|
f6de499171 | ||
|
|
82f0c0eb9e | ||
|
|
53e44da116 | ||
|
|
30100989f4 | ||
|
|
8b24560bc0 | ||
|
|
f10ea61ffc | ||
|
|
f12fc5c983 | ||
|
|
b9952410b3 | ||
|
|
683fbfd6fb | ||
|
|
a0a9465c0b | ||
|
|
3d4b36f14e | ||
|
|
65fef5fbc3 | ||
|
|
b6560e1c74 | ||
|
|
73862c9408 | ||
|
|
1a6e0ef42e | ||
|
|
7040e56185 | ||
|
|
cc76a21d80 | ||
|
|
17103ce1fa | ||
|
|
51c8881fc7 |
121
.github/workflows/release.yml
vendored
121
.github/workflows/release.yml
vendored
@@ -45,38 +45,6 @@ jobs:
|
|||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
build-mac:
|
|
||||||
needs:
|
|
||||||
- release
|
|
||||||
runs-on: macos-latest
|
|
||||||
env:
|
|
||||||
desktop-directory: ./desktop
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3.5.3
|
|
||||||
with:
|
|
||||||
ref: ${{ needs.release.outputs.tag }}
|
|
||||||
- uses: actions/setup-node@v3.6.0
|
|
||||||
with:
|
|
||||||
node-version: '18.x'
|
|
||||||
- name: Install
|
|
||||||
uses: nick-fields/retry@v2.8.3
|
|
||||||
with:
|
|
||||||
timeout_minutes: 10
|
|
||||||
max_attempts: 3
|
|
||||||
command: cd ${{env.desktop-directory}} && yarn
|
|
||||||
- name: Build
|
|
||||||
uses: nick-fields/retry@v2.8.3
|
|
||||||
with:
|
|
||||||
timeout_minutes: 30
|
|
||||||
max_attempts: 3
|
|
||||||
command: cd ${{env.desktop-directory}} && yarn build --mac --mac-dmg
|
|
||||||
- name: Upload
|
|
||||||
uses: actions/upload-artifact@v3.1.2
|
|
||||||
with:
|
|
||||||
name: 'Flipper-mac.dmg'
|
|
||||||
path: 'dist/Flipper-mac.dmg'
|
|
||||||
|
|
||||||
build-server-mac:
|
build-server-mac:
|
||||||
needs:
|
needs:
|
||||||
- release
|
- release
|
||||||
@@ -112,72 +80,6 @@ jobs:
|
|||||||
name: 'Flipper-server-mac-aarch64.dmg'
|
name: 'Flipper-server-mac-aarch64.dmg'
|
||||||
path: 'dist/Flipper-server-mac-aarch64.dmg'
|
path: 'dist/Flipper-server-mac-aarch64.dmg'
|
||||||
|
|
||||||
build-linux:
|
|
||||||
needs:
|
|
||||||
- release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
desktop-directory: ./desktop
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3.5.3
|
|
||||||
with:
|
|
||||||
ref: ${{ needs.release.outputs.tag }}
|
|
||||||
- uses: actions/setup-node@v3.6.0
|
|
||||||
with:
|
|
||||||
node-version: '18.x'
|
|
||||||
- name: Install
|
|
||||||
uses: nick-fields/retry@v2.8.3
|
|
||||||
with:
|
|
||||||
timeout_minutes: 10
|
|
||||||
max_attempts: 3
|
|
||||||
command: cd ${{env.desktop-directory}} && yarn
|
|
||||||
- name: Build
|
|
||||||
uses: nick-fields/retry@v2.8.3
|
|
||||||
with:
|
|
||||||
timeout_minutes: 30
|
|
||||||
max_attempts: 3
|
|
||||||
command: cd ${{env.desktop-directory}} && yarn build --linux
|
|
||||||
- name: Upload Linux
|
|
||||||
uses: actions/upload-artifact@v3.1.2
|
|
||||||
with:
|
|
||||||
name: 'Flipper-linux.zip'
|
|
||||||
path: 'dist/Flipper-linux.zip'
|
|
||||||
|
|
||||||
build-win:
|
|
||||||
needs:
|
|
||||||
- release
|
|
||||||
runs-on: windows-latest
|
|
||||||
env:
|
|
||||||
desktop-directory: ./desktop
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3.5.3
|
|
||||||
with:
|
|
||||||
ref: ${{ needs.release.outputs.tag }}
|
|
||||||
- uses: actions/setup-node@v3.6.0
|
|
||||||
with:
|
|
||||||
node-version: '18.x'
|
|
||||||
- name: Install
|
|
||||||
uses: nick-fields/retry@v2.8.3
|
|
||||||
with:
|
|
||||||
timeout_minutes: 10
|
|
||||||
max_attempts: 3
|
|
||||||
shell: pwsh
|
|
||||||
command: cd ${{env.desktop-directory}}; yarn
|
|
||||||
- name: Build
|
|
||||||
uses: nick-fields/retry@v2.8.3
|
|
||||||
with:
|
|
||||||
timeout_minutes: 30
|
|
||||||
max_attempts: 3
|
|
||||||
shell: pwsh
|
|
||||||
command: cd ${{env.desktop-directory}}; yarn build --win
|
|
||||||
- name: Upload Windows
|
|
||||||
uses: actions/upload-artifact@v3.1.2
|
|
||||||
with:
|
|
||||||
name: 'Flipper-win.zip'
|
|
||||||
path: 'dist/Flipper-win.zip'
|
|
||||||
|
|
||||||
build-flipper-server:
|
build-flipper-server:
|
||||||
needs:
|
needs:
|
||||||
- release
|
- release
|
||||||
@@ -210,9 +112,6 @@ jobs:
|
|||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs:
|
needs:
|
||||||
- build-win
|
|
||||||
- build-linux
|
|
||||||
- build-mac
|
|
||||||
- build-server-mac
|
- build-server-mac
|
||||||
- build-flipper-server
|
- build-flipper-server
|
||||||
- release
|
- release
|
||||||
@@ -222,12 +121,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v3.5.3
|
- uses: actions/checkout@v3.5.3
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release.outputs.tag }}
|
ref: ${{ needs.release.outputs.tag }}
|
||||||
- name: Download Mac
|
|
||||||
if: ${{ needs.release.outputs.tag != '' }}
|
|
||||||
uses: actions/download-artifact@v1
|
|
||||||
with:
|
|
||||||
name: 'Flipper-mac.dmg'
|
|
||||||
path: 'Flipper-mac.dmg'
|
|
||||||
- name: Download Flipper Server x86-64
|
- name: Download Flipper Server x86-64
|
||||||
if: ${{ needs.release.outputs.tag != '' }}
|
if: ${{ needs.release.outputs.tag != '' }}
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
@@ -240,18 +133,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: 'Flipper-server-mac-aarch64.dmg'
|
name: 'Flipper-server-mac-aarch64.dmg'
|
||||||
path: 'Flipper-server-mac-aarch64.dmg'
|
path: 'Flipper-server-mac-aarch64.dmg'
|
||||||
- name: Download Linux
|
|
||||||
if: ${{ needs.release.outputs.tag != '' }}
|
|
||||||
uses: actions/download-artifact@v1
|
|
||||||
with:
|
|
||||||
name: 'Flipper-linux.zip'
|
|
||||||
path: 'Flipper-linux.zip'
|
|
||||||
- name: Download Windows
|
|
||||||
if: ${{ needs.release.outputs.tag != '' }}
|
|
||||||
uses: actions/download-artifact@v1
|
|
||||||
with:
|
|
||||||
name: 'Flipper-win.zip'
|
|
||||||
path: 'Flipper-win.zip'
|
|
||||||
- name: Download Flipper Server
|
- name: Download Flipper Server
|
||||||
if: ${{ needs.release.outputs.tag != '' }}
|
if: ${{ needs.release.outputs.tag != '' }}
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
@@ -265,7 +146,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
created_tag: ${{ needs.release.outputs.tag }}
|
created_tag: ${{ needs.release.outputs.tag }}
|
||||||
args: Flipper-mac.dmg/Flipper-mac.dmg Flipper-linux.zip/Flipper-linux.zip Flipper-win.zip/Flipper-win.zip flipper-server.tgz/flipper-server.tgz Flipper-server-mac-x64.dmg/Flipper-server-mac-x64.dmg Flipper-server-mac-aarch64.dmg/Flipper-server-mac-aarch64.dmg
|
args: flipper-server.tgz/flipper-server.tgz Flipper-server-mac-x64.dmg/Flipper-server-mac-x64.dmg Flipper-server-mac-aarch64.dmg/Flipper-server-mac-aarch64.dmg
|
||||||
- name: Set up npm token
|
- name: Set up npm token
|
||||||
run: echo "//registry.yarnpkg.com/:_authToken=${{ secrets.FLIPPER_NPM_TOKEN }}" >> ~/.npmrc
|
run: echo "//registry.yarnpkg.com/:_authToken=${{ secrets.FLIPPER_NPM_TOKEN }}" >> ~/.npmrc
|
||||||
- name: Publish flipper-server on NPM
|
- name: Publish flipper-server on NPM
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -50,6 +50,7 @@ xplat/build
|
|||||||
|
|
||||||
# Mac OS X
|
# Mac OS X
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
facebook/flipper-server/Resources/
|
||||||
|
|
||||||
# Automatically generated
|
# Automatically generated
|
||||||
docs/extending/ui-components.mdx
|
docs/extending/ui-components.mdx
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# This source code is licensed under the MIT license found in the
|
# This source code is licensed under the MIT license found in the
|
||||||
# LICENSE file in the root directory of this source tree.
|
# LICENSE file in the root directory of this source tree.
|
||||||
|
|
||||||
flipperkit_version = '0.222.0'
|
flipperkit_version = '0.233.0'
|
||||||
Pod::Spec.new do |spec|
|
Pod::Spec.new do |spec|
|
||||||
spec.name = 'Flipper'
|
spec.name = 'Flipper'
|
||||||
spec.cocoapods_version = '>= 1.10'
|
spec.cocoapods_version = '>= 1.10'
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# LICENSE file in the root directory of this source tree.
|
# LICENSE file in the root directory of this source tree.
|
||||||
|
|
||||||
folly_compiler_flags = '-DDEBUG=1 -DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_HAVE_BACKTRACE=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
folly_compiler_flags = '-DDEBUG=1 -DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_HAVE_BACKTRACE=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
||||||
flipperkit_version = '0.222.0'
|
flipperkit_version = '0.233.0'
|
||||||
Pod::Spec.new do |spec|
|
Pod::Spec.new do |spec|
|
||||||
spec.name = 'FlipperKit'
|
spec.name = 'FlipperKit'
|
||||||
spec.version = flipperkit_version
|
spec.version = flipperkit_version
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -13,6 +13,24 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
---
|
||||||
|
## Important Accouncement
|
||||||
|
|
||||||
|
Flipper is moving away from its Electron distribution to an in-Browser experience.
|
||||||
|
|
||||||
|
**How does this affect me?**
|
||||||
|
|
||||||
|
Functionality hasn't changed. The UI remains unchanged. Flipper will run in your default browser instead of a standalone application.
|
||||||
|
If you build from source, Flipper will open in the browser instead of a standalone app. We also provide a MacOS app for the Flipper runtime which can be run and will also open Flipper in the browser.
|
||||||
|
|
||||||
|
The last Electron release is [v0.239.0](https://github.com/facebook/flipper/releases/tag/v0.239.0). As such, future releases will not include Electron artifacts.
|
||||||
|
|
||||||
|
### React Native support
|
||||||
|
|
||||||
|
If you are debugging React Native applications, v0.239.0 will be the last release with support for it due to technical limitations for React Dev Tools and Hermes Debugger plugins. As such, please refer to that release when debugging React Native applications.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
Flipper (formerly Sonar) is a platform for debugging mobile apps on iOS and Android and JS apps in your browser or in Node.js. Visualize, inspect, and control your apps from a simple desktop interface. Use Flipper as is or extend it using the plugin API.
|
Flipper (formerly Sonar) is a platform for debugging mobile apps on iOS and Android and JS apps in your browser or in Node.js. Visualize, inspect, and control your apps from a simple desktop interface. Use Flipper as is or extend it using the plugin API.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.10.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.11.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.11.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.12.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.13.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.14.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.14.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.14.2'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.2'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.15.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.2'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.16.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.2'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.16.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.2'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.16.2'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.2'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.17.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Flipper-Folly', '~>1.2'
|
|
||||||
spec.dependency 'Flipper-RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/Flipper-RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.17.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Flipper-Folly', '~>1.2'
|
|
||||||
spec.dependency 'Flipper-RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/Flipper-RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.18.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Flipper-Folly', '~>1.2'
|
|
||||||
spec.dependency 'Flipper-RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/Flipper-RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.19.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Flipper-Folly', '~>1.2'
|
|
||||||
spec.dependency 'Flipper-RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/Flipper-RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.20.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h','xplat/utils/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}','xplat/Flipper/utils/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Flipper-Folly', '1.3.0'
|
|
||||||
spec.dependency 'Flipper-RSocket', '0.10.4'
|
|
||||||
spec.compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/Flipper-RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.8.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.8.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
flipperkit_version = '0.9.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Flipper'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+flipperkit_version }
|
|
||||||
spec.module_name = 'Flipper'
|
|
||||||
spec.public_header_files = 'xplat/Flipper/*.h'
|
|
||||||
spec.source_files = 'xplat/Flipper/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,149 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.10.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/Utilities/**/*.{h,m}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,161 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.11.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/Utilities/**/*.{h,m}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,163 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.11.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/Utilities/**/*.{h,m}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,164 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.12.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/Utilities/**/*.{h,m}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,183 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.13.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitCrashReporterPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitCrashReporterPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitCrashReporterPlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.14.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.14.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.14.2'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Folly', '~>1.2'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.15.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Folly', '~>1.2'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.10'
|
|
||||||
flipperkit_version = '0.16.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBDefines.h is imported as <FBDefines/FBDefines.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBDefines.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Folly', '~>1.2'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBDefines.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.10'
|
|
||||||
flipperkit_version = '0.16.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBDefines.h is imported as <FBDefines/FBDefines.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBDefines.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Folly', '~>1.2'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBDefines.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.10'
|
|
||||||
flipperkit_version = '0.16.2'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBDefines.h is imported as <FBDefines/FBDefines.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBDefines.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Folly', '~>1.2'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBDefines.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.10'
|
|
||||||
flipperkit_version = '0.17.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBDefines.h is imported as <FBDefines/FBDefines.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBDefines.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Flipper-Folly', '~>1.2'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBDefines.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.10'
|
|
||||||
flipperkit_version = '0.17.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBDefines.h is imported as <FBDefines/FBDefines.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBDefines.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Flipper-Folly', '~>1.2'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBDefines.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.10'
|
|
||||||
flipperkit_version = '0.18.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBDefines.h is imported as <FBDefines/FBDefines.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBDefines.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Flipper-Folly', '~>1.2'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBDefines.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.10'
|
|
||||||
flipperkit_version = '0.19.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBDefines.h is imported as <FBDefines/FBDefines.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBDefines.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Flipper-Folly', '~>1.2'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBDefines.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFLIPPER_OSS=1 -DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.12.0-pre.1'
|
|
||||||
yogakit_version = '~> 1.12.0-pre.1'
|
|
||||||
flipperkit_version = '0.20.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBDefines.h is imported as <FBDefines/FBDefines.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBDefines.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other FlipperKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FKPortForwarding" do |ss|
|
|
||||||
ss.header_dir = "FKPortForwarding"
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'Flipper-PeerTalk', '~>0.0.4'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.{h,m}'
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FKPortForwarding/FKPortForwarding{Server,Common}.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'FlipperKit/FKPortForwarding'
|
|
||||||
ss.dependency 'Flipper-Folly', '1.3.0'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h',
|
|
||||||
'iOS/FBDefines/FBDefines.h',
|
|
||||||
'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperDiagnosticsViewController,FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h'
|
|
||||||
ss.private_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit', '~> 0.25'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKSubDescriptor.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitExamplePlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitExamplePlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitExamplePlugin/FlipperKitExamplePlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitExamplePlugin/**/*.{h,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.8.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/Utilities/**/*.{h,m}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.8.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/Utilities/**/*.{h,m}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,149 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
flipperkit_version = '0.9.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'FlipperKit'
|
|
||||||
spec.version = flipperkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+flipperkit_version }
|
|
||||||
spec.module_name = 'FlipperKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <FlipperKit/t/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'FlipperKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/FlipperKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'FlipperKit/FBDefines'
|
|
||||||
ss.dependency 'FlipperKit/FBCxxUtils'
|
|
||||||
ss.dependency 'FlipperKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Flipper', '~>'+flipperkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FlipperKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/FlipperKit/CppBridge/*.{h,mm}', 'iOS/FlipperKit/FBCxxUtils/*.{h,mm}', 'iOS/FlipperKit/Utilities/**/*.{h,m}', 'iOS/FlipperKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/FlipperKit/**/{FlipperStateUpdateListener,FlipperClient,FlipperPlugin,FlipperConnection,FlipperResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/FlipperKit/iOS/FlipperKit\" \"$(PODS_ROOT)\"/Headers/Private/FlipperKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/FlipperKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/FlipperKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.dependency 'FlipperKit/FlipperKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "FlipperKitUserDefaultsPlugin" do |ss|
|
|
||||||
ss.header_dir = "FlipperKitUserDefaultsPlugin"
|
|
||||||
ss.dependency 'FlipperKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/FlipperKitUserDefaultsPlugin/**/*.{h,m}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,175 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Folly",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"license": {
|
|
||||||
"type": "Apache License, Version 2.0"
|
|
||||||
},
|
|
||||||
"homepage": "https://github.com/facebook/folly",
|
|
||||||
"summary": "An open-source C++ library developed and used at Facebook.",
|
|
||||||
"authors": "Facebook",
|
|
||||||
"source": {
|
|
||||||
"git": "https://github.com/facebook/folly.git",
|
|
||||||
"branch": "master"
|
|
||||||
},
|
|
||||||
"module_name": "folly",
|
|
||||||
"dependencies": {
|
|
||||||
"boost-for-react-native": [
|
|
||||||
|
|
||||||
],
|
|
||||||
"DoubleConversion": [
|
|
||||||
|
|
||||||
],
|
|
||||||
"glog": [
|
|
||||||
|
|
||||||
],
|
|
||||||
"OpenSSL-Static": [
|
|
||||||
"1.0.2.c1"
|
|
||||||
],
|
|
||||||
"CocoaLibEvent": [
|
|
||||||
"~> 1.0"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"compiler_flags": "-DFOLLY_HAVE_PTHREAD=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -frtti\n -fexceptions\n -std=c++14\n -Wno-error\n -Wno-unused-local-typedefs\n -Wno-unused-variable\n -Wno-sign-compare\n -Wno-comment\n -Wno-return-type\n -Wno-global-constructors",
|
|
||||||
"source_files": [
|
|
||||||
"folly/system/*.cpp",
|
|
||||||
"folly/portability/Config.h",
|
|
||||||
"folly/Executor.h",
|
|
||||||
"folly/Function.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/Portability.h",
|
|
||||||
"folly/Traits.h",
|
|
||||||
"folly/functional/Invoke.h",
|
|
||||||
"folly/CPortability.h",
|
|
||||||
"folly/dynamic.h",
|
|
||||||
"folly/json_pointer.h",
|
|
||||||
"folly/Expected.h",
|
|
||||||
"folly/Preprocessor.h",
|
|
||||||
"folly/Optional.h",
|
|
||||||
"folly/Unit.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/lang/ColdClass.h",
|
|
||||||
"folly/CppAttributes.h",
|
|
||||||
"folly/json.h",
|
|
||||||
"folly/Range.h",
|
|
||||||
"folly/hash/SpookyHashV2.h",
|
|
||||||
"folly/lang/Exception.h",
|
|
||||||
"folly/portability/Constexpr.h",
|
|
||||||
"folly/CpuId.h",
|
|
||||||
"folly/Likely.h",
|
|
||||||
"folly/detail/RangeCommon.h",
|
|
||||||
"folly/detail/RangeSse42.h",
|
|
||||||
"folly/portability/String.h",
|
|
||||||
"folly/dynamic-inl.h",
|
|
||||||
"folly/Conv.h",
|
|
||||||
"folly/Demangle.h",
|
|
||||||
"folly/FBString.h",
|
|
||||||
"folly/hash/Hash.h",
|
|
||||||
"folly/memory/Malloc.h",
|
|
||||||
"folly/io/async/AsyncTimeout.h",
|
|
||||||
"folly/**/*.h",
|
|
||||||
"folly/memory/detail/MallocImpl.h",
|
|
||||||
"folly/String.h",
|
|
||||||
"folly/*.h",
|
|
||||||
"folly/portability/PThread.h",
|
|
||||||
"folly/futures/*.h",
|
|
||||||
"folly/futures/detail/*.h",
|
|
||||||
"folly/Executor.cpp",
|
|
||||||
"folly/memory/detail/MallocImpl.cpp",
|
|
||||||
"folly/String.cpp",
|
|
||||||
"folly/*.cpp",
|
|
||||||
"folly/detail/*.cpp",
|
|
||||||
"folly/hash/*.cpp",
|
|
||||||
"folly/portability/*.cpp",
|
|
||||||
"folly/ScopeGuard.h",
|
|
||||||
"folly/lang/ColdClass.cpp",
|
|
||||||
"folly/lang/Assume.h",
|
|
||||||
"folly/lang/Assume.cpp",
|
|
||||||
"folly/io/async/*.cpp",
|
|
||||||
"folly/io/async/ssl/*.cpp",
|
|
||||||
"folly/io/*.cpp",
|
|
||||||
"folly/synchronization/*.cpp",
|
|
||||||
"folly/lang/*.cpp",
|
|
||||||
"folly/memory/*.cpp",
|
|
||||||
"folly/futures/*.cpp",
|
|
||||||
"folly/futures/detail/*.cpp",
|
|
||||||
"folly/experimental/hazptr/*.cpp",
|
|
||||||
"folly/executors/*.cpp",
|
|
||||||
"folly/concurrency/*.cpp",
|
|
||||||
"folly/ssl/*.cpp",
|
|
||||||
"folly/ssl/detail/*.cpp"
|
|
||||||
],
|
|
||||||
"preserve_paths": [
|
|
||||||
"folly/*.h",
|
|
||||||
"folly/portability/*.h",
|
|
||||||
"folly/lang/*.h",
|
|
||||||
"folly/functional/*.h",
|
|
||||||
"folly/detail/*.h",
|
|
||||||
"folly/hash/*.h",
|
|
||||||
"folly/memory/*.h",
|
|
||||||
"folly/**/*.h",
|
|
||||||
"folly/futures/detail/*.h",
|
|
||||||
"folly/futures/*.h"
|
|
||||||
],
|
|
||||||
"header_mappings_dir": "folly",
|
|
||||||
"header_dir": "folly",
|
|
||||||
"libraries": "stdc++",
|
|
||||||
"private_header_files": [
|
|
||||||
"folly/portability/Stdlib.h",
|
|
||||||
"folly/portability/Stdio.h"
|
|
||||||
],
|
|
||||||
"public_header_files": [
|
|
||||||
"folly/portability/Config.h",
|
|
||||||
"folly/Executor.h",
|
|
||||||
"folly/Function.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/Portability.h",
|
|
||||||
"folly/Traits.h",
|
|
||||||
"folly/functional/Invoke.h",
|
|
||||||
"folly/CPortability.h",
|
|
||||||
"folly/dynamic.h",
|
|
||||||
"folly/json_pointer.h",
|
|
||||||
"folly/Expected.h",
|
|
||||||
"folly/Preprocessor.h",
|
|
||||||
"folly/Optional.h",
|
|
||||||
"folly/Unit.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/lang/ColdClass.h",
|
|
||||||
"folly/CppAttributes.h",
|
|
||||||
"folly/json.h",
|
|
||||||
"folly/Range.h",
|
|
||||||
"folly/hash/SpookyHashV2.h",
|
|
||||||
"folly/lang/Exception.h",
|
|
||||||
"folly/portability/Constexpr.h",
|
|
||||||
"folly/CpuId.h",
|
|
||||||
"folly/Likely.h",
|
|
||||||
"folly/detail/RangeCommon.h",
|
|
||||||
"folly/detail/RangeSse42.h",
|
|
||||||
"folly/portability/String.h",
|
|
||||||
"folly/dynamic-inl.h",
|
|
||||||
"folly/Conv.h",
|
|
||||||
"folly/Demangle.h",
|
|
||||||
"folly/FBString.h",
|
|
||||||
"folly/hash/Hash.h",
|
|
||||||
"folly/memory/Malloc.h",
|
|
||||||
"folly/io/async/AsyncTimeout.h",
|
|
||||||
"folly/**/*.h",
|
|
||||||
"folly/memory/detail/MallocImpl.h",
|
|
||||||
"folly/String.h",
|
|
||||||
"folly/*.h",
|
|
||||||
"folly/portability/PThread.h",
|
|
||||||
"folly/futures/*.h",
|
|
||||||
"folly/futures/detail/*.h"
|
|
||||||
],
|
|
||||||
"user_target_xcconfig": {
|
|
||||||
"ONLY_ACTIVE_ARCH": "YES"
|
|
||||||
},
|
|
||||||
"pod_target_xcconfig": {
|
|
||||||
"USE_HEADERMAP": "NO",
|
|
||||||
"ONLY_ACTIVE_ARCH": "YES",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD": "c++11",
|
|
||||||
"HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\""
|
|
||||||
},
|
|
||||||
"platforms": {
|
|
||||||
"ios": "8.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,176 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Folly",
|
|
||||||
"version": "1.1.0",
|
|
||||||
"license": {
|
|
||||||
"type": "Apache License, Version 2.0"
|
|
||||||
},
|
|
||||||
"homepage": "https://github.com/facebook/folly",
|
|
||||||
"summary": "An open-source C++ library developed and used at Facebook.",
|
|
||||||
"authors": "Facebook",
|
|
||||||
"source": {
|
|
||||||
"git": "https://github.com/facebook/folly.git",
|
|
||||||
"tag": "v2018.08.06.00"
|
|
||||||
},
|
|
||||||
"module_name": "folly",
|
|
||||||
"dependencies": {
|
|
||||||
"boost-for-react-native": [
|
|
||||||
|
|
||||||
],
|
|
||||||
"DoubleConversion": [
|
|
||||||
|
|
||||||
],
|
|
||||||
"glog": [
|
|
||||||
|
|
||||||
],
|
|
||||||
"OpenSSL-Static": [
|
|
||||||
"1.0.2.c1"
|
|
||||||
],
|
|
||||||
"CocoaLibEvent": [
|
|
||||||
"~> 1.0"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"compiler_flags": "-DFOLLY_HAVE_PTHREAD=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -frtti\n -fexceptions\n -std=c++14\n -Wno-error\n -Wno-unused-local-typedefs\n -Wno-unused-variable\n -Wno-sign-compare\n -Wno-comment\n -Wno-return-type\n -Wno-global-constructors",
|
|
||||||
"source_files": [
|
|
||||||
"folly/system/*.cpp",
|
|
||||||
"folly/portability/Config.h",
|
|
||||||
"folly/Executor.h",
|
|
||||||
"folly/Function.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/Portability.h",
|
|
||||||
"folly/Traits.h",
|
|
||||||
"folly/functional/Invoke.h",
|
|
||||||
"folly/CPortability.h",
|
|
||||||
"folly/dynamic.h",
|
|
||||||
"folly/json_pointer.h",
|
|
||||||
"folly/Expected.h",
|
|
||||||
"folly/Preprocessor.h",
|
|
||||||
"folly/Optional.h",
|
|
||||||
"folly/Unit.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/lang/ColdClass.h",
|
|
||||||
"folly/CppAttributes.h",
|
|
||||||
"folly/json.h",
|
|
||||||
"folly/Range.h",
|
|
||||||
"folly/hash/SpookyHashV2.h",
|
|
||||||
"folly/lang/Exception.h",
|
|
||||||
"folly/portability/Constexpr.h",
|
|
||||||
"folly/CpuId.h",
|
|
||||||
"folly/Likely.h",
|
|
||||||
"folly/detail/RangeCommon.h",
|
|
||||||
"folly/detail/RangeSse42.h",
|
|
||||||
"folly/portability/String.h",
|
|
||||||
"folly/dynamic-inl.h",
|
|
||||||
"folly/Conv.h",
|
|
||||||
"folly/Demangle.h",
|
|
||||||
"folly/FBString.h",
|
|
||||||
"folly/hash/Hash.h",
|
|
||||||
"folly/memory/Malloc.h",
|
|
||||||
"folly/io/async/AsyncTimeout.h",
|
|
||||||
"folly/**/*.h",
|
|
||||||
"folly/memory/detail/MallocImpl.h",
|
|
||||||
"folly/String.h",
|
|
||||||
"folly/*.h",
|
|
||||||
"folly/portability/PThread.h",
|
|
||||||
"folly/futures/*.h",
|
|
||||||
"folly/futures/detail/*.h",
|
|
||||||
"folly/Executor.cpp",
|
|
||||||
"folly/memory/detail/MallocImpl.cpp",
|
|
||||||
"folly/String.cpp",
|
|
||||||
"folly/*.cpp",
|
|
||||||
"folly/detail/*.cpp",
|
|
||||||
"folly/hash/*.cpp",
|
|
||||||
"folly/portability/*.cpp",
|
|
||||||
"folly/ScopeGuard.h",
|
|
||||||
"folly/lang/ColdClass.cpp",
|
|
||||||
"folly/lang/Assume.h",
|
|
||||||
"folly/lang/Assume.cpp",
|
|
||||||
"folly/io/async/*.cpp",
|
|
||||||
"folly/io/async/ssl/*.cpp",
|
|
||||||
"folly/io/*.cpp",
|
|
||||||
"folly/synchronization/*.cpp",
|
|
||||||
"folly/lang/*.cpp",
|
|
||||||
"folly/memory/*.cpp",
|
|
||||||
"folly/futures/*.cpp",
|
|
||||||
"folly/futures/detail/*.cpp",
|
|
||||||
"folly/experimental/hazptr/*.cpp",
|
|
||||||
"folly/executors/*.cpp",
|
|
||||||
"folly/concurrency/*.cpp",
|
|
||||||
"folly/ssl/*.cpp",
|
|
||||||
"folly/ssl/detail/*.cpp",
|
|
||||||
"folly/container/detail/*.cpp"
|
|
||||||
],
|
|
||||||
"preserve_paths": [
|
|
||||||
"folly/*.h",
|
|
||||||
"folly/portability/*.h",
|
|
||||||
"folly/lang/*.h",
|
|
||||||
"folly/functional/*.h",
|
|
||||||
"folly/detail/*.h",
|
|
||||||
"folly/hash/*.h",
|
|
||||||
"folly/memory/*.h",
|
|
||||||
"folly/**/*.h",
|
|
||||||
"folly/futures/detail/*.h",
|
|
||||||
"folly/futures/*.h"
|
|
||||||
],
|
|
||||||
"header_mappings_dir": "folly",
|
|
||||||
"header_dir": "folly",
|
|
||||||
"libraries": "stdc++",
|
|
||||||
"private_header_files": [
|
|
||||||
"folly/portability/Stdlib.h",
|
|
||||||
"folly/portability/Stdio.h"
|
|
||||||
],
|
|
||||||
"public_header_files": [
|
|
||||||
"folly/portability/Config.h",
|
|
||||||
"folly/Executor.h",
|
|
||||||
"folly/Function.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/Portability.h",
|
|
||||||
"folly/Traits.h",
|
|
||||||
"folly/functional/Invoke.h",
|
|
||||||
"folly/CPortability.h",
|
|
||||||
"folly/dynamic.h",
|
|
||||||
"folly/json_pointer.h",
|
|
||||||
"folly/Expected.h",
|
|
||||||
"folly/Preprocessor.h",
|
|
||||||
"folly/Optional.h",
|
|
||||||
"folly/Unit.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/lang/ColdClass.h",
|
|
||||||
"folly/CppAttributes.h",
|
|
||||||
"folly/json.h",
|
|
||||||
"folly/Range.h",
|
|
||||||
"folly/hash/SpookyHashV2.h",
|
|
||||||
"folly/lang/Exception.h",
|
|
||||||
"folly/portability/Constexpr.h",
|
|
||||||
"folly/CpuId.h",
|
|
||||||
"folly/Likely.h",
|
|
||||||
"folly/detail/RangeCommon.h",
|
|
||||||
"folly/detail/RangeSse42.h",
|
|
||||||
"folly/portability/String.h",
|
|
||||||
"folly/dynamic-inl.h",
|
|
||||||
"folly/Conv.h",
|
|
||||||
"folly/Demangle.h",
|
|
||||||
"folly/FBString.h",
|
|
||||||
"folly/hash/Hash.h",
|
|
||||||
"folly/memory/Malloc.h",
|
|
||||||
"folly/io/async/AsyncTimeout.h",
|
|
||||||
"folly/**/*.h",
|
|
||||||
"folly/memory/detail/MallocImpl.h",
|
|
||||||
"folly/String.h",
|
|
||||||
"folly/*.h",
|
|
||||||
"folly/portability/PThread.h",
|
|
||||||
"folly/futures/*.h",
|
|
||||||
"folly/futures/detail/*.h"
|
|
||||||
],
|
|
||||||
"user_target_xcconfig": {
|
|
||||||
"ONLY_ACTIVE_ARCH": "YES"
|
|
||||||
},
|
|
||||||
"pod_target_xcconfig": {
|
|
||||||
"USE_HEADERMAP": "NO",
|
|
||||||
"ONLY_ACTIVE_ARCH": "YES",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD": "c++11",
|
|
||||||
"HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\""
|
|
||||||
},
|
|
||||||
"platforms": {
|
|
||||||
"ios": "8.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,177 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Folly",
|
|
||||||
"version": "1.2.0",
|
|
||||||
"license": {
|
|
||||||
"type": "Apache License, Version 2.0"
|
|
||||||
},
|
|
||||||
"homepage": "https://github.com/facebook/folly",
|
|
||||||
"summary": "An open-source C++ library developed and used at Facebook.",
|
|
||||||
"authors": "Facebook",
|
|
||||||
"source": {
|
|
||||||
"git": "https://github.com/facebook/folly.git",
|
|
||||||
"tag": "v2019.01.14.00"
|
|
||||||
},
|
|
||||||
"module_name": "folly",
|
|
||||||
"dependencies": {
|
|
||||||
"boost-for-react-native": [
|
|
||||||
|
|
||||||
],
|
|
||||||
"DoubleConversion": [
|
|
||||||
|
|
||||||
],
|
|
||||||
"glog": [
|
|
||||||
|
|
||||||
],
|
|
||||||
"OpenSSL-Static": [
|
|
||||||
"1.0.2.c1"
|
|
||||||
],
|
|
||||||
"CocoaLibEvent": [
|
|
||||||
"~> 1.0"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"compiler_flags": "-DFOLLY_HAVE_PTHREAD=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -frtti\n -fexceptions\n -std=c++14\n -Wno-error\n -Wno-unused-local-typedefs\n -Wno-unused-variable\n -Wno-sign-compare\n -Wno-comment\n -Wno-return-type\n -Wno-global-constructors",
|
|
||||||
"source_files": [
|
|
||||||
"folly/system/*.cpp",
|
|
||||||
"folly/portability/Config.h",
|
|
||||||
"folly/Executor.h",
|
|
||||||
"folly/Function.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/Portability.h",
|
|
||||||
"folly/Traits.h",
|
|
||||||
"folly/functional/Invoke.h",
|
|
||||||
"folly/CPortability.h",
|
|
||||||
"folly/dynamic.h",
|
|
||||||
"folly/json_pointer.h",
|
|
||||||
"folly/Expected.h",
|
|
||||||
"folly/Preprocessor.h",
|
|
||||||
"folly/Optional.h",
|
|
||||||
"folly/Unit.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/lang/ColdClass.h",
|
|
||||||
"folly/CppAttributes.h",
|
|
||||||
"folly/json.h",
|
|
||||||
"folly/Range.h",
|
|
||||||
"folly/hash/SpookyHashV2.h",
|
|
||||||
"folly/lang/Exception.h",
|
|
||||||
"folly/portability/Constexpr.h",
|
|
||||||
"folly/CpuId.h",
|
|
||||||
"folly/Likely.h",
|
|
||||||
"folly/detail/RangeCommon.h",
|
|
||||||
"folly/detail/RangeSse42.h",
|
|
||||||
"folly/portability/String.h",
|
|
||||||
"folly/dynamic-inl.h",
|
|
||||||
"folly/Conv.h",
|
|
||||||
"folly/Demangle.h",
|
|
||||||
"folly/FBString.h",
|
|
||||||
"folly/hash/Hash.h",
|
|
||||||
"folly/memory/Malloc.h",
|
|
||||||
"folly/io/async/AsyncTimeout.h",
|
|
||||||
"folly/**/*.h",
|
|
||||||
"folly/memory/detail/MallocImpl.h",
|
|
||||||
"folly/String.h",
|
|
||||||
"folly/*.h",
|
|
||||||
"folly/portability/PThread.h",
|
|
||||||
"folly/futures/*.h",
|
|
||||||
"folly/futures/detail/*.h",
|
|
||||||
"folly/Executor.cpp",
|
|
||||||
"folly/memory/detail/MallocImpl.cpp",
|
|
||||||
"folly/String.cpp",
|
|
||||||
"folly/*.cpp",
|
|
||||||
"folly/net/*.cpp",
|
|
||||||
"folly/detail/*.cpp",
|
|
||||||
"folly/hash/*.cpp",
|
|
||||||
"folly/portability/*.cpp",
|
|
||||||
"folly/ScopeGuard.h",
|
|
||||||
"folly/lang/ColdClass.cpp",
|
|
||||||
"folly/lang/Assume.h",
|
|
||||||
"folly/lang/Assume.cpp",
|
|
||||||
"folly/io/async/*.cpp",
|
|
||||||
"folly/io/async/ssl/*.cpp",
|
|
||||||
"folly/io/*.cpp",
|
|
||||||
"folly/synchronization/*.cpp",
|
|
||||||
"folly/lang/*.cpp",
|
|
||||||
"folly/memory/*.cpp",
|
|
||||||
"folly/futures/*.cpp",
|
|
||||||
"folly/futures/detail/*.cpp",
|
|
||||||
"folly/experimental/hazptr/*.cpp",
|
|
||||||
"folly/executors/*.cpp",
|
|
||||||
"folly/concurrency/*.cpp",
|
|
||||||
"folly/ssl/*.cpp",
|
|
||||||
"folly/ssl/detail/*.cpp",
|
|
||||||
"folly/container/detail/*.cpp"
|
|
||||||
],
|
|
||||||
"preserve_paths": [
|
|
||||||
"folly/*.h",
|
|
||||||
"folly/portability/*.h",
|
|
||||||
"folly/lang/*.h",
|
|
||||||
"folly/functional/*.h",
|
|
||||||
"folly/detail/*.h",
|
|
||||||
"folly/hash/*.h",
|
|
||||||
"folly/memory/*.h",
|
|
||||||
"folly/**/*.h",
|
|
||||||
"folly/futures/detail/*.h",
|
|
||||||
"folly/futures/*.h"
|
|
||||||
],
|
|
||||||
"header_mappings_dir": "folly",
|
|
||||||
"header_dir": "folly",
|
|
||||||
"libraries": "stdc++",
|
|
||||||
"private_header_files": [
|
|
||||||
"folly/portability/Stdlib.h",
|
|
||||||
"folly/portability/Stdio.h"
|
|
||||||
],
|
|
||||||
"public_header_files": [
|
|
||||||
"folly/portability/Config.h",
|
|
||||||
"folly/Executor.h",
|
|
||||||
"folly/Function.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/Portability.h",
|
|
||||||
"folly/Traits.h",
|
|
||||||
"folly/functional/Invoke.h",
|
|
||||||
"folly/CPortability.h",
|
|
||||||
"folly/dynamic.h",
|
|
||||||
"folly/json_pointer.h",
|
|
||||||
"folly/Expected.h",
|
|
||||||
"folly/Preprocessor.h",
|
|
||||||
"folly/Optional.h",
|
|
||||||
"folly/Unit.h",
|
|
||||||
"folly/Utility.h",
|
|
||||||
"folly/lang/ColdClass.h",
|
|
||||||
"folly/CppAttributes.h",
|
|
||||||
"folly/json.h",
|
|
||||||
"folly/Range.h",
|
|
||||||
"folly/hash/SpookyHashV2.h",
|
|
||||||
"folly/lang/Exception.h",
|
|
||||||
"folly/portability/Constexpr.h",
|
|
||||||
"folly/CpuId.h",
|
|
||||||
"folly/Likely.h",
|
|
||||||
"folly/detail/RangeCommon.h",
|
|
||||||
"folly/detail/RangeSse42.h",
|
|
||||||
"folly/portability/String.h",
|
|
||||||
"folly/dynamic-inl.h",
|
|
||||||
"folly/Conv.h",
|
|
||||||
"folly/Demangle.h",
|
|
||||||
"folly/FBString.h",
|
|
||||||
"folly/hash/Hash.h",
|
|
||||||
"folly/memory/Malloc.h",
|
|
||||||
"folly/io/async/AsyncTimeout.h",
|
|
||||||
"folly/**/*.h",
|
|
||||||
"folly/memory/detail/MallocImpl.h",
|
|
||||||
"folly/String.h",
|
|
||||||
"folly/*.h",
|
|
||||||
"folly/portability/PThread.h",
|
|
||||||
"folly/futures/*.h",
|
|
||||||
"folly/futures/detail/*.h"
|
|
||||||
],
|
|
||||||
"user_target_xcconfig": {
|
|
||||||
"ONLY_ACTIVE_ARCH": "YES"
|
|
||||||
},
|
|
||||||
"pod_target_xcconfig": {
|
|
||||||
"USE_HEADERMAP": "NO",
|
|
||||||
"ONLY_ACTIVE_ARCH": "YES",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD": "c++11",
|
|
||||||
"HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\""
|
|
||||||
},
|
|
||||||
"platforms": {
|
|
||||||
"ios": "8.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'PeerTalk'
|
|
||||||
spec.version = '0.0.2'
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'http://rsms.me/peertalk/'
|
|
||||||
spec.authors = { 'Rasmus Andersson' => 'rasmus@notion.se' }
|
|
||||||
spec.summary = 'iOS and OS X Cocoa library for communicating over USB and TCP.'
|
|
||||||
|
|
||||||
spec.source = { :git => "https://github.com/rsms/peertalk.git" }
|
|
||||||
spec.source_files = 'peertalk/*.{h,m}'
|
|
||||||
spec.requires_arc = true
|
|
||||||
spec.ios.deployment_target = '8.4'
|
|
||||||
spec.osx.deployment_target = '10.10'
|
|
||||||
|
|
||||||
spec.description = " PeerTalk is a iOS and OS X Cocoa library for communicating over USB and TCP.\n\n Highlights:\n\n * Provides you with USB device attach/detach events and attached device's info\n * Can connect to TCP services on supported attached devices (e.g. an iPhone), bridging the communication over USB transport\n * Offers a higher-level API (PTChannel and PTProtocol) for convenient implementations.\n * Tested and designed for libdispatch (aka Grand Central Dispatch).\n"
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
# cocoapods-private-repo
|
|
||||||
A private CocoaPods repository to host podspecs like SonarKit or any of its dependencies.
|
|
||||||
In order to publish new podspecs to this private repository you must run `pod repo push` command:
|
|
||||||
`pod repo push [REPO] [NAME.podspec]`. Please refer to the `pod repo push --help` command in case you need to pass any specific flags to the command.
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'RSocket'
|
|
||||||
spec.version = '0.10.0'
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/rsocket/rsocket-cpp'
|
|
||||||
spec.summary = 'C++ implementation of RSocket'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/rsocket/rsocket-cpp.git', :branch => "master"}
|
|
||||||
spec.module_name = 'RSocket'
|
|
||||||
spec.static_framework = 'true'
|
|
||||||
spec.source_files = 'rsocket/benchmarks/*.{h,cpp,m,mm}',
|
|
||||||
'rsocket/framing/*.{h,cpp,m,mm}',
|
|
||||||
'rsocket/internal/*.{h,cpp,m,mm}',
|
|
||||||
'rsocket/statemachine/*.{h,cpp,m,mm}',
|
|
||||||
'rsocket/transports/*.{h,cpp,m,mm}',
|
|
||||||
'rsocket/transports/**/*.{h,cpp,m,mm}',
|
|
||||||
'yarpl/observable/*.{h,cpp,m,mm}',
|
|
||||||
'yarpl/flowable/*.{h,cpp,m,mm}',
|
|
||||||
'rsocket/*.{h,cpp,m,mm}'
|
|
||||||
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.compiler_flags = '-std=c++1y'
|
|
||||||
spec.dependency 'Folly'
|
|
||||||
spec.compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -frtti
|
|
||||||
-fexceptions
|
|
||||||
-std=c++14
|
|
||||||
-Wno-error
|
|
||||||
-Wno-unused-local-typedefs
|
|
||||||
-Wno-unused-variable
|
|
||||||
-Wno-sign-compare
|
|
||||||
-Wno-comment
|
|
||||||
-Wno-return-type
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.preserve_paths = 'rsocket/benchmarks/*.h',
|
|
||||||
'rsocket/framing/*.h',
|
|
||||||
'rsocket/internal/*.h',
|
|
||||||
'rsocket/statemachine/*.h',
|
|
||||||
'rsocket/transports/*.h',
|
|
||||||
'rsocket/*.h',
|
|
||||||
'yarpl/flowable/*.h',
|
|
||||||
'yarpl/observable/*.h',
|
|
||||||
'yarpl/perf/*.h',
|
|
||||||
'yarpl/single/*.h',
|
|
||||||
'yarpl/utils/*.h',
|
|
||||||
'yarpl/*.h',
|
|
||||||
'**/*.h'
|
|
||||||
spec.header_mappings_dir = 'rsocket'
|
|
||||||
spec.header_dir = 'rsocket'
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/DoubleConversion\"/**" }
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Sonar'
|
|
||||||
spec.version = '0.0.1'
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = 'true'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:branch => 'master' }
|
|
||||||
spec.module_name = 'Sonar'
|
|
||||||
spec.header_dir = 'Sonar'
|
|
||||||
spec.header_mappings_dir = 'xplat/Sonar'
|
|
||||||
spec.public_header_files = 'xplat/Sonar/*.h'
|
|
||||||
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly'
|
|
||||||
spec.dependency 'RSocket'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Sonar'
|
|
||||||
spec.version = '0.6.12'
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v0.6.12' }
|
|
||||||
spec.module_name = 'Sonar'
|
|
||||||
spec.public_header_files = 'xplat/Sonar/*.h'
|
|
||||||
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.0'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
sonarkit_version = '0.6.13'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Sonar'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+sonarkit_version }
|
|
||||||
spec.module_name = 'Sonar'
|
|
||||||
spec.public_header_files = 'xplat/Sonar/*.h'
|
|
||||||
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.0'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
sonarkit_version = '0.6.14'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Sonar'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+sonarkit_version }
|
|
||||||
spec.module_name = 'Sonar'
|
|
||||||
spec.public_header_files = 'xplat/Sonar/*.h'
|
|
||||||
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.0'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
sonarkit_version = '0.6.15'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Sonar'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+sonarkit_version }
|
|
||||||
spec.module_name = 'Sonar'
|
|
||||||
spec.public_header_files = 'xplat/Sonar/*.h'
|
|
||||||
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.0'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
sonarkit_version = '0.6.16'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Sonar'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+sonarkit_version }
|
|
||||||
spec.module_name = 'Sonar'
|
|
||||||
spec.public_header_files = 'xplat/Sonar/*.h'
|
|
||||||
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
sonarkit_version = '0.7.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Sonar'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+sonarkit_version }
|
|
||||||
spec.module_name = 'Sonar'
|
|
||||||
spec.public_header_files = 'xplat/Sonar/*.h'
|
|
||||||
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
sonarkit_version = '0.7.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Sonar'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+sonarkit_version }
|
|
||||||
spec.module_name = 'Sonar'
|
|
||||||
spec.public_header_files = 'xplat/Sonar/*.h'
|
|
||||||
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
sonarkit_version = '0.7.2'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'Sonar'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/sonar'
|
|
||||||
spec.summary = 'SonarKit core cpp code with network implementation'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag => 'v'+sonarkit_version }
|
|
||||||
spec.module_name = 'Sonar'
|
|
||||||
spec.public_header_files = 'xplat/Sonar/*.h'
|
|
||||||
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'
|
|
||||||
spec.libraries = "stdc++"
|
|
||||||
spec.dependency 'Folly', '~>1.1'
|
|
||||||
spec.dependency 'RSocket', '~>0.10'
|
|
||||||
spec.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0 -Wall
|
|
||||||
-std=c++14
|
|
||||||
-Wno-global-constructors'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/RSocket\" \"$(PODS_ROOT)/DoubleConversion\"" }
|
|
||||||
end
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'SonarKit'
|
|
||||||
spec.version = '0.0.1'
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:branch=> "master" }
|
|
||||||
spec.module_name = 'SonarKit'
|
|
||||||
spec.platforms = { :ios => "8.0" }
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'Folly', '~>1.0'
|
|
||||||
ss.dependency 'Sonar', '~>0.0.1'
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.source_files = 'iOS/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/**/*.{h,cpp,m,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h, mm}'
|
|
||||||
ss.public_header_files = 'iOS/SonarKit/CppBridge/*.{h}',
|
|
||||||
'iOS/SonarKit/SonarClient.h',
|
|
||||||
'iOS/SonarKit/SonarDeviceData.h',
|
|
||||||
'iOS/SonarKit/SonarPlugin.h',
|
|
||||||
'iOS/SonarKit/SonarResponder.h',
|
|
||||||
'iOS/SonarKit/SonarConnection.h',
|
|
||||||
'iOS/SonarKit/SKMacros.h'
|
|
||||||
|
|
||||||
ss.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\" \"$(PODS_ROOT)/ComponentKit\"/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKDispatchQueue.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'SonarKit'
|
|
||||||
spec.version = '0.6.12'
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v0.6.12" }
|
|
||||||
spec.module_name = 'SonarKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'Folly', '~>1.0'
|
|
||||||
ss.dependency 'Sonar', '~>0.6'
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.source_files = 'iOS/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/**/*.{h,cpp,m,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h, mm}'
|
|
||||||
ss.public_header_files = 'iOS/SonarKit/CppBridge/*.{h}',
|
|
||||||
'iOS/SonarKit/SonarClient.h',
|
|
||||||
'iOS/SonarKit/SonarDeviceData.h',
|
|
||||||
'iOS/SonarKit/SonarPlugin.h',
|
|
||||||
'iOS/SonarKit/SonarResponder.h',
|
|
||||||
'iOS/SonarKit/SonarConnection.h',
|
|
||||||
'iOS/SonarKit/SKMacros.h'
|
|
||||||
|
|
||||||
ss.compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\" \"$(PODS_ROOT)/ComponentKit\"/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKDispatchQueue.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\"" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
sonarkit_version = '0.6.13'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'SonarKit'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+sonarkit_version }
|
|
||||||
spec.module_name = 'SonarKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <SonarKit/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/CppBridge/**/*.{h,mm}'
|
|
||||||
ss.public_header_files = 'iOS/SonarKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'SonarKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'SonarKit/FBDefines'
|
|
||||||
ss.dependency 'SonarKit/FBCxxUtils'
|
|
||||||
ss.dependency 'SonarKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.0'
|
|
||||||
ss.dependency 'Sonar', '~>'+sonarkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/CppBridge/*.{h,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h,mm}', 'iOS/SonarKit/Utilities/**/*.{h,m}', 'iOS/SonarKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/SonarKit/**/{SonarClient,SonarPlugin,SonarConnection,SonarResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/SonarKit/iOS/SonarKit\" \"$(PODS_ROOT)\"/Headers/Private/SonarKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKDispatchQueue.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
sonarkit_version = '0.6.14'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'SonarKit'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+sonarkit_version }
|
|
||||||
spec.module_name = 'SonarKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <SonarKit/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'SonarKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'SonarKit/FBDefines'
|
|
||||||
ss.dependency 'SonarKit/FBCxxUtils'
|
|
||||||
ss.dependency 'SonarKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.0'
|
|
||||||
ss.dependency 'Sonar', '~>'+sonarkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/CppBridge/*.{h,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h,mm}', 'iOS/SonarKit/Utilities/**/*.{h,m}', 'iOS/SonarKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/SonarKit/**/{SonarClient,SonarPlugin,SonarConnection,SonarResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/SonarKit/iOS/SonarKit\" \"$(PODS_ROOT)\"/Headers/Private/SonarKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKDispatchQueue.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
sonarkit_version = '0.6.15'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'SonarKit'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+sonarkit_version }
|
|
||||||
spec.module_name = 'SonarKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <SonarKit/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'SonarKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'SonarKit/FBDefines'
|
|
||||||
ss.dependency 'SonarKit/FBCxxUtils'
|
|
||||||
ss.dependency 'SonarKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.0'
|
|
||||||
ss.dependency 'Sonar', '~>'+sonarkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/CppBridge/*.{h,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h,mm}', 'iOS/SonarKit/Utilities/**/*.{h,m}', 'iOS/SonarKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/FBMacros.h', 'iOS/SonarKit/**/{SonarClient,SonarPlugin,SonarConnection,SonarResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/SonarKit/iOS/SonarKit\" \"$(PODS_ROOT)\"/Headers/Private/SonarKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKDispatchQueue.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
sonarkit_version = '0.6.16'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'SonarKit'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+sonarkit_version }
|
|
||||||
spec.module_name = 'SonarKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <SonarKit/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'SonarKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'SonarKit/FBDefines'
|
|
||||||
ss.dependency 'SonarKit/FBCxxUtils'
|
|
||||||
ss.dependency 'SonarKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Sonar', '~>'+sonarkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/CppBridge/*.{h,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h,mm}', 'iOS/SonarKit/Utilities/**/*.{h,m}', 'iOS/SonarKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/SonarKit/**/{SonarClient,SonarPlugin,SonarConnection,SonarResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/SonarKit/iOS/SonarKit\" \"$(PODS_ROOT)\"/Headers/Private/SonarKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
sonarkit_version = '0.7.0'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'SonarKit'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+sonarkit_version }
|
|
||||||
spec.module_name = 'SonarKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <SonarKit/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'SonarKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'SonarKit/FBDefines'
|
|
||||||
ss.dependency 'SonarKit/FBCxxUtils'
|
|
||||||
ss.dependency 'SonarKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Sonar', '~>'+sonarkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/CppBridge/*.{h,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h,mm}', 'iOS/SonarKit/Utilities/**/*.{h,m}', 'iOS/SonarKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/SonarKit/**/{FlipperStateUpdateListener,SonarClient,SonarPlugin,SonarConnection,SonarResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/SonarKit/iOS/SonarKit\" \"$(PODS_ROOT)\"/Headers/Private/SonarKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
sonarkit_version = '0.7.1'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'SonarKit'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+sonarkit_version }
|
|
||||||
spec.module_name = 'SonarKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <SonarKit/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'SonarKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'SonarKit/FBDefines'
|
|
||||||
ss.dependency 'SonarKit/FBCxxUtils'
|
|
||||||
ss.dependency 'SonarKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Sonar', '~>'+sonarkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/CppBridge/*.{h,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h,mm}', 'iOS/SonarKit/Utilities/**/*.{h,m}', 'iOS/SonarKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/SonarKit/**/{FlipperStateUpdateListener,SonarClient,SonarPlugin,SonarConnection,SonarResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/SonarKit/iOS/SonarKit\" \"$(PODS_ROOT)\"/Headers/Private/SonarKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the MIT license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree.
|
|
||||||
|
|
||||||
folly_compiler_flags = '-DFB_SONARKIT_ENABLED=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0'
|
|
||||||
yoga_version = '~> 1.9'
|
|
||||||
yogakit_version = '~>1.8'
|
|
||||||
sonarkit_version = '0.7.2'
|
|
||||||
Pod::Spec.new do |spec|
|
|
||||||
spec.name = 'SonarKit'
|
|
||||||
spec.version = sonarkit_version
|
|
||||||
spec.license = { :type => 'MIT' }
|
|
||||||
spec.homepage = 'https://github.com/facebook/Sonar'
|
|
||||||
spec.summary = 'Sonar iOS podspec'
|
|
||||||
spec.authors = 'Facebook'
|
|
||||||
spec.static_framework = true
|
|
||||||
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
|
|
||||||
:tag=> "v"+sonarkit_version }
|
|
||||||
spec.module_name = 'SonarKit'
|
|
||||||
spec.platforms = { :ios => "8.4" }
|
|
||||||
spec.default_subspecs = "Core"
|
|
||||||
|
|
||||||
# This subspec is necessary since FBMacros.h is imported as <FBDefines/FBMacros.h>
|
|
||||||
# inside SKMacros.h, which is a public header file. Defining this directory as a
|
|
||||||
# subspec with header_dir = 'FBDefines' allows this to work, even though it wouldn't
|
|
||||||
# generally (you would need to import <SonarKit/FBDefines/FBMacros.h>)
|
|
||||||
spec.subspec 'FBDefines' do |ss|
|
|
||||||
ss.header_dir = 'FBDefines'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
ss.public_header_files = 'iOS/FBDefines/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'CppBridge' do |ss|
|
|
||||||
ss.header_dir = 'CppBridge'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/CppBridge/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/CppBridge/**/*.h'
|
|
||||||
ss.preserve_path = 'SonarKit/CppBridge/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec 'FBCxxUtils' do |ss|
|
|
||||||
ss.header_dir = 'FBCxxUtils'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBCxxUtils/**/*.{h,mm}'
|
|
||||||
# We set these files as private headers since they only need to be accessed
|
|
||||||
# by other SonarKit source files
|
|
||||||
ss.private_header_files = 'iOS/SonarKit/FBCxxUtils/**/*.h'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "Core" do |ss|
|
|
||||||
ss.dependency 'SonarKit/FBDefines'
|
|
||||||
ss.dependency 'SonarKit/FBCxxUtils'
|
|
||||||
ss.dependency 'SonarKit/CppBridge'
|
|
||||||
ss.dependency 'Folly', '~>1.1'
|
|
||||||
ss.dependency 'Sonar', '~>'+sonarkit_version
|
|
||||||
ss.dependency 'CocoaAsyncSocket', '~> 7.6'
|
|
||||||
ss.dependency 'PeerTalk', '~>0.0.2'
|
|
||||||
ss.dependency 'OpenSSL-Static', '1.0.2.c1'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.source_files = 'iOS/SonarKit/FBDefines/*.{h,cpp,m,mm}', 'iOS/SonarKit/CppBridge/*.{h,mm}', 'iOS/SonarKit/FBCxxUtils/*.{h,mm}', 'iOS/SonarKit/Utilities/**/*.{h,m}', 'iOS/SonarKit/*.{h,m,mm}'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h',
|
|
||||||
'iOS/FBDefines/FBMacros.h',
|
|
||||||
'iOS/SonarKit/**/{FlipperStateUpdateListener,SonarClient,SonarPlugin,SonarConnection,SonarResponder,SKMacros}.h'
|
|
||||||
header_search_paths = "\"$(PODS_ROOT)/SonarKit/iOS/SonarKit\" \"$(PODS_ROOT)\"/Headers/Private/SonarKit/** \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/PeerTalkSonar\""
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"DEFINES_MODULE" => "YES",
|
|
||||||
"HEADER_SEARCH_PATHS" => header_search_paths }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'YogaKit', yogakit_version
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SonarKitLayoutPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTouch.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKDescriptorMapper.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNodeDescriptor.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKInvalidation.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKNamed.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKTapListener.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKObject.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/SKHighlightOverlay.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/UIColor+SKSonarValueCoder.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKObjectHash.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKSwizzle.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/utils/SKYogaKitHelper.h'
|
|
||||||
ss.source_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutPlugin/**/*.{h,cpp,m,mm}'
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitLayoutComponentKitSupport" do |ss|
|
|
||||||
ss.header_dir = "SonarKitLayoutComponentKitSupport"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'Yoga', yoga_version
|
|
||||||
ss.dependency 'ComponentKit'
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.dependency 'SonarKit/SonarKitLayoutPlugin'
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SonarKitLayoutComponentKitSupport.h',
|
|
||||||
'iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/SKComponentLayoutWrapper.h'
|
|
||||||
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitLayoutPlugin/SonarKitLayoutComponentKitSupport/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
|
|
||||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SonarKitNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SonarKitNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKBufferingPlugin.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKNetworkReporter.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKRequestInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SKResponseInfo.h',
|
|
||||||
'iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/SonarKitNetworkPlugin.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SonarKitNetworkPlugin/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
|
|
||||||
spec.subspec "SKIOSNetworkPlugin" do |ss|
|
|
||||||
ss.header_dir = "SKIOSNetworkPlugin"
|
|
||||||
ss.dependency 'SonarKit/Core'
|
|
||||||
ss.dependency 'SonarKit/SonarKitNetworkPlugin'
|
|
||||||
ss.compiler_flags = folly_compiler_flags
|
|
||||||
ss.public_header_files = 'iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/SKIOSNetworkAdapter.h'
|
|
||||||
ss.source_files = "iOS/Plugins/SonarKitNetworkPlugin/SKIOSNetworkPlugin/**/*.{h,cpp,m,mm}"
|
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/SonarKit/**" }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
package com.facebook.flipper.plugins.jetpackcompose.descriptors
|
package com.facebook.flipper.plugins.jetpackcompose.descriptors
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import com.facebook.flipper.plugins.jetpackcompose.model.ComposeInnerViewNode
|
import com.facebook.flipper.plugins.jetpackcompose.model.ComposeInnerViewNode
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
||||||
@@ -49,13 +48,6 @@ object ComposeInnerViewDescriptor : NodeDescriptor<ComposeInnerViewNode> {
|
|||||||
return ViewDescriptor.getChildren(node.view)
|
return ViewDescriptor.getChildren(node.view)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getSnapshot(node: ComposeInnerViewNode, bitmap: Bitmap?): Bitmap? {
|
|
||||||
if (node.view is ViewGroup) {
|
|
||||||
return ViewGroupDescriptor.getSnapshot(node.view, bitmap)
|
|
||||||
}
|
|
||||||
return ViewDescriptor.getSnapshot(node.view, bitmap)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun getActiveChild(node: ComposeInnerViewNode): Any? {
|
override fun getActiveChild(node: ComposeInnerViewNode): Any? {
|
||||||
if (node.view is ViewGroup) {
|
if (node.view is ViewGroup) {
|
||||||
return ViewGroupDescriptor.getActiveChild(node.view)
|
return ViewGroupDescriptor.getActiveChild(node.view)
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
package com.facebook.flipper.plugins.jetpackcompose.descriptors
|
package com.facebook.flipper.plugins.jetpackcompose.descriptors
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
|
||||||
import com.facebook.flipper.plugins.jetpackcompose.model.ComposeNode
|
import com.facebook.flipper.plugins.jetpackcompose.model.ComposeNode
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.BaseTags
|
import com.facebook.flipper.plugins.uidebugger.descriptors.BaseTags
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
||||||
@@ -130,8 +129,6 @@ object ComposeNodeDescriptor : NodeDescriptor<ComposeNode> {
|
|||||||
|
|
||||||
override fun getQualifiedName(node: ComposeNode): String = node.inspectorNode.name
|
override fun getQualifiedName(node: ComposeNode): String = node.inspectorNode.name
|
||||||
|
|
||||||
override fun getSnapshot(node: ComposeNode, bitmap: Bitmap?): Bitmap? = null
|
|
||||||
|
|
||||||
override fun getActiveChild(node: ComposeNode): Any? = null
|
override fun getActiveChild(node: ComposeNode): Any? = null
|
||||||
|
|
||||||
override fun getTags(node: ComposeNode): Set<String> = setOf(BaseTags.Android, "Compose")
|
override fun getTags(node: ComposeNode): Set<String> = setOf(BaseTags.Android, "Compose")
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
package com.facebook.flipper.plugins.uidebugger.litho.descriptors
|
package com.facebook.flipper.plugins.uidebugger.litho.descriptors
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister
|
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.MetadataRegister
|
import com.facebook.flipper.plugins.uidebugger.descriptors.MetadataRegister
|
||||||
@@ -102,10 +101,13 @@ class DebugComponentDescriptor(val register: DescriptorRegister) : NodeDescripto
|
|||||||
override fun getAttributes(
|
override fun getAttributes(
|
||||||
node: DebugComponent
|
node: DebugComponent
|
||||||
): MaybeDeferred<Map<MetadataId, InspectableObject>> {
|
): MaybeDeferred<Map<MetadataId, InspectableObject>> {
|
||||||
|
|
||||||
|
// this accesses the litho view so do this on the main thread
|
||||||
|
val mountingData = getMountingData(node)
|
||||||
|
|
||||||
return Deferred {
|
return Deferred {
|
||||||
val attributeSections = mutableMapOf<MetadataId, InspectableObject>()
|
val attributeSections = mutableMapOf<MetadataId, InspectableObject>()
|
||||||
|
|
||||||
val mountingData = getMountingData(node)
|
|
||||||
attributeSections[MountingDataId] = InspectableObject(mountingData)
|
attributeSections[MountingDataId] = InspectableObject(mountingData)
|
||||||
|
|
||||||
val layoutProps = LayoutPropExtractor.getProps(node)
|
val layoutProps = LayoutPropExtractor.getProps(node)
|
||||||
@@ -139,8 +141,6 @@ class DebugComponentDescriptor(val register: DescriptorRegister) : NodeDescripto
|
|||||||
return tags
|
return tags
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getSnapshot(node: DebugComponent, bitmap: Bitmap?): Bitmap? = null
|
|
||||||
|
|
||||||
override fun getInlineAttributes(node: DebugComponent): Map<String, String> {
|
override fun getInlineAttributes(node: DebugComponent): Map<String, String> {
|
||||||
val attributes = mutableMapOf<String, String>()
|
val attributes = mutableMapOf<String, String>()
|
||||||
val key = node.key
|
val key = node.key
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ object TextDrawableDescriptor : ChainedDescriptor<TextDrawable>() {
|
|||||||
attributeSections: MutableMap<MetadataId, InspectableObject>
|
attributeSections: MutableMap<MetadataId, InspectableObject>
|
||||||
) {
|
) {
|
||||||
val props =
|
val props =
|
||||||
mapOf<Int, Inspectable>(TextAttributeId to InspectableValue.Text(node.text.toString()))
|
mapOf<Int, Inspectable>(
|
||||||
|
TextAttributeId to InspectableValue.Text(node.text?.toString() ?: "null"))
|
||||||
|
|
||||||
attributeSections[SectionId] = InspectableObject(props)
|
attributeSections[SectionId] = InspectableObject(props)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,10 +99,22 @@ object ComponentDataExtractor {
|
|||||||
val id = getMetadataId(componentName, field.name)
|
val id = getMetadataId(componentName, field.name)
|
||||||
val editorValue: EditorValue? = EditorRegistry.read(field.type, field, stateContainer)
|
val editorValue: EditorValue? = EditorRegistry.read(field.type, field, stateContainer)
|
||||||
if (editorValue != null) {
|
if (editorValue != null) {
|
||||||
|
|
||||||
|
val inspectable = toInspectable(field.name, editorValue)
|
||||||
|
|
||||||
|
if (inspectable is InspectableArray) {
|
||||||
|
inspectable.items.forEachIndexed { idx, item ->
|
||||||
|
val metadataId =
|
||||||
|
MetadataRegister.register(
|
||||||
|
MetadataRegister.TYPE_ATTRIBUTE, "kstate", idx.toString())
|
||||||
|
stateFields[metadataId] = item
|
||||||
|
}
|
||||||
|
} else {
|
||||||
stateFields[id] = toInspectable(field.name, editorValue)
|
stateFields[id] = toInspectable(field.name, editorValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return InspectableObject(stateFields)
|
return InspectableObject(stateFields)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ package com.facebook.flipper.plugins.uidebugger.litho.descriptors.props
|
|||||||
|
|
||||||
import android.graphics.drawable.ColorDrawable
|
import android.graphics.drawable.ColorDrawable
|
||||||
import android.graphics.drawable.Drawable
|
import android.graphics.drawable.Drawable
|
||||||
import com.facebook.flipper.plugins.uidebugger.common.enumToInspectableSet
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.MetadataRegister
|
import com.facebook.flipper.plugins.uidebugger.descriptors.MetadataRegister
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.*
|
import com.facebook.flipper.plugins.uidebugger.model.*
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.enumToInspectableSet
|
||||||
import com.facebook.litho.DebugComponent
|
import com.facebook.litho.DebugComponent
|
||||||
import com.facebook.yoga.*
|
import com.facebook.yoga.*
|
||||||
|
|
||||||
@@ -127,201 +127,69 @@ object LayoutPropExtractor {
|
|||||||
private val RotationId =
|
private val RotationId =
|
||||||
MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "rotation")
|
MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "rotation")
|
||||||
|
|
||||||
private val EmptyId = MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "")
|
private val ResolvedId =
|
||||||
|
MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "resolved")
|
||||||
private val NoneId = MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "none")
|
private val NoneId = MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "none")
|
||||||
private val SizeId = MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "size")
|
private val SizeId = MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "size")
|
||||||
private val ViewOutputId =
|
private val ViewOutputId =
|
||||||
MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "viewOutput")
|
MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "viewOutput")
|
||||||
|
|
||||||
fun getInspectableBox(
|
/** constructs an object type containing any inputs that were provided and the resolved values */
|
||||||
left: YogaValue?,
|
private fun getInspectableBox(
|
||||||
top: YogaValue?,
|
leftInput: Inspectable?,
|
||||||
right: YogaValue?,
|
topInput: Inspectable?,
|
||||||
bottom: YogaValue?,
|
rightInput: Inspectable?,
|
||||||
horizontal: YogaValue?,
|
bottomInput: Inspectable?,
|
||||||
vertical: YogaValue?,
|
horizontalInput: Inspectable?,
|
||||||
all: YogaValue?,
|
verticalInput: Inspectable?,
|
||||||
start: YogaValue?,
|
allInput: Inspectable?,
|
||||||
end: YogaValue?
|
startInput: Inspectable?,
|
||||||
|
endInput: Inspectable?,
|
||||||
|
leftResolved: Float?,
|
||||||
|
topResolved: Float?,
|
||||||
|
rightResolved: Float?,
|
||||||
|
bottomResolved: Float?,
|
||||||
): InspectableObject {
|
): InspectableObject {
|
||||||
val props = mutableMapOf<MetadataId, Inspectable>()
|
val props = mutableMapOf<MetadataId, Inspectable>()
|
||||||
|
|
||||||
var actualLeft = 0
|
allInput?.let { props[AllId] = it }
|
||||||
var actualTop = 0
|
horizontalInput?.let { props[HorizontalId] = it }
|
||||||
var actualRight = 0
|
verticalInput?.let { props[VerticalId] = it }
|
||||||
var actualBottom = 0
|
leftInput?.let { props[LeftId] = it }
|
||||||
|
rightInput?.let { props[RightId] = it }
|
||||||
|
topInput?.let { props[TopId] = it }
|
||||||
|
bottomInput?.let { props[BottomId] = it }
|
||||||
|
startInput?.let { props[StartId] = it }
|
||||||
|
endInput?.let { props[EndId] = it }
|
||||||
|
|
||||||
all?.let { yogaValue ->
|
if (leftResolved != null &&
|
||||||
if (yogaValue.unit != YogaUnit.UNDEFINED) {
|
rightResolved != null &&
|
||||||
if (yogaValue.unit == YogaUnit.POINT || yogaValue.unit == YogaUnit.PERCENT) {
|
topResolved != null &&
|
||||||
val intValue = yogaValue.value.toInt()
|
bottomResolved != null) {
|
||||||
actualLeft = intValue
|
props[ResolvedId] =
|
||||||
actualTop = intValue
|
InspectableValue.SpaceBox(
|
||||||
actualRight = intValue
|
SpaceBox(
|
||||||
actualBottom = intValue
|
left = leftResolved.toInt(),
|
||||||
|
right = rightResolved.toInt(),
|
||||||
|
bottom = bottomResolved.toInt(),
|
||||||
|
top = topResolved.toInt()))
|
||||||
}
|
}
|
||||||
|
|
||||||
props[AllId] = InspectableValue.Text(yogaValue.toString())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
horizontal?.let { yogaValue ->
|
|
||||||
if (yogaValue.unit != YogaUnit.UNDEFINED) {
|
|
||||||
if (yogaValue.unit == YogaUnit.POINT || yogaValue.unit == YogaUnit.PERCENT) {
|
|
||||||
val intValue = yogaValue.value.toInt()
|
|
||||||
actualLeft = intValue
|
|
||||||
actualRight = intValue
|
|
||||||
}
|
|
||||||
|
|
||||||
props[HorizontalId] = InspectableValue.Text(yogaValue.toString())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
vertical?.let { yogaValue ->
|
|
||||||
if (yogaValue.unit != YogaUnit.UNDEFINED) {
|
|
||||||
if (yogaValue.unit == YogaUnit.POINT || yogaValue.unit == YogaUnit.PERCENT) {
|
|
||||||
val intValue = yogaValue.value.toInt()
|
|
||||||
actualTop = intValue
|
|
||||||
actualBottom = intValue
|
|
||||||
}
|
|
||||||
|
|
||||||
props[VerticalId] = InspectableValue.Text(yogaValue.toString())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
left?.let { yogaValue ->
|
|
||||||
if (yogaValue.unit != YogaUnit.UNDEFINED) {
|
|
||||||
if (yogaValue.unit == YogaUnit.POINT || yogaValue.unit == YogaUnit.PERCENT) {
|
|
||||||
val intValue = yogaValue.value.toInt()
|
|
||||||
actualLeft = intValue
|
|
||||||
}
|
|
||||||
|
|
||||||
props[LeftId] = InspectableValue.Text(yogaValue.toString())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
right?.let { yogaValue ->
|
|
||||||
if (yogaValue.unit != YogaUnit.UNDEFINED) {
|
|
||||||
if (yogaValue.unit == YogaUnit.POINT || yogaValue.unit == YogaUnit.PERCENT) {
|
|
||||||
val intValue = yogaValue.value.toInt()
|
|
||||||
actualRight = intValue
|
|
||||||
}
|
|
||||||
|
|
||||||
props[RightId] = InspectableValue.Text(yogaValue.toString())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
top?.let { yogaValue ->
|
|
||||||
if (yogaValue.unit != YogaUnit.UNDEFINED) {
|
|
||||||
if (yogaValue.unit == YogaUnit.POINT || yogaValue.unit == YogaUnit.PERCENT) {
|
|
||||||
val intValue = yogaValue.value.toInt()
|
|
||||||
actualTop = intValue
|
|
||||||
}
|
|
||||||
|
|
||||||
props[TopId] = InspectableValue.Text(yogaValue.toString())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bottom?.let { yogaValue ->
|
|
||||||
if (yogaValue.unit != YogaUnit.UNDEFINED) {
|
|
||||||
if (yogaValue.unit == YogaUnit.POINT || yogaValue.unit == YogaUnit.PERCENT) {
|
|
||||||
val intValue = yogaValue.value.toInt()
|
|
||||||
actualBottom = intValue
|
|
||||||
}
|
|
||||||
|
|
||||||
props[BottomId] = InspectableValue.Text(yogaValue.toString())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
props[EmptyId] =
|
|
||||||
InspectableValue.SpaceBox(SpaceBox(actualTop, actualRight, actualBottom, actualLeft))
|
|
||||||
|
|
||||||
return InspectableObject(props)
|
return InspectableObject(props)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getInspectableBoxRaw(
|
private fun toInspectable(yogaValue: YogaValue) =
|
||||||
left: Float?,
|
if (yogaValue.unit != YogaUnit.UNDEFINED) {
|
||||||
top: Float?,
|
InspectableValue.Text(yogaValue.toString())
|
||||||
right: Float?,
|
} else {
|
||||||
bottom: Float?,
|
null
|
||||||
horizontal: Float?,
|
|
||||||
vertical: Float?,
|
|
||||||
all: Float?,
|
|
||||||
start: Float?,
|
|
||||||
end: Float?
|
|
||||||
): InspectableObject {
|
|
||||||
val props = mutableMapOf<MetadataId, Inspectable>()
|
|
||||||
|
|
||||||
var actualLeft = 0
|
|
||||||
var actualTop = 0
|
|
||||||
var actualRight = 0
|
|
||||||
var actualBottom = 0
|
|
||||||
|
|
||||||
all?.let { value ->
|
|
||||||
if (!value.isNaN()) {
|
|
||||||
val intValue = value.toInt()
|
|
||||||
actualLeft = intValue
|
|
||||||
actualTop = intValue
|
|
||||||
actualRight = intValue
|
|
||||||
actualBottom = intValue
|
|
||||||
props[AllId] = InspectableValue.Number(value)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
horizontal?.let { value ->
|
private fun toInspectable(value: Float) =
|
||||||
if (!value.isNaN()) {
|
if (value.isNaN()) {
|
||||||
val intValue = value.toInt()
|
null
|
||||||
actualLeft = intValue
|
} else {
|
||||||
actualRight = intValue
|
InspectableValue.Number(value)
|
||||||
props[HorizontalId] = InspectableValue.Number(value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
vertical?.let { value ->
|
|
||||||
if (!value.isNaN()) {
|
|
||||||
val intValue = value.toInt()
|
|
||||||
actualTop = intValue
|
|
||||||
actualBottom = intValue
|
|
||||||
props[VerticalId] = InspectableValue.Number(value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
left?.let { value ->
|
|
||||||
if (!value.isNaN()) {
|
|
||||||
val intValue = value.toInt()
|
|
||||||
actualLeft = intValue
|
|
||||||
props[LeftId] = InspectableValue.Number(value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
right?.let { value ->
|
|
||||||
if (!value.isNaN()) {
|
|
||||||
val intValue = value.toInt()
|
|
||||||
actualRight = intValue
|
|
||||||
props[RightId] = InspectableValue.Number(value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
top?.let { value ->
|
|
||||||
if (!value.isNaN()) {
|
|
||||||
val intValue = value.toInt()
|
|
||||||
actualTop = intValue
|
|
||||||
props[TopId] = InspectableValue.Number(value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bottom?.let { value ->
|
|
||||||
if (!value.isNaN()) {
|
|
||||||
val intValue = value.toInt()
|
|
||||||
actualBottom = intValue
|
|
||||||
props[BottomId] = InspectableValue.Number(value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
props[EmptyId] =
|
|
||||||
InspectableValue.SpaceBox(SpaceBox(actualTop, actualRight, actualBottom, actualLeft))
|
|
||||||
|
|
||||||
return InspectableObject(props)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getProps(component: DebugComponent): Map<MetadataId, Inspectable> {
|
fun getProps(component: DebugComponent): Map<MetadataId, Inspectable> {
|
||||||
@@ -366,51 +234,68 @@ object LayoutPropExtractor {
|
|||||||
|
|
||||||
props[MarginId] =
|
props[MarginId] =
|
||||||
getInspectableBox(
|
getInspectableBox(
|
||||||
layout.getMargin(YogaEdge.LEFT),
|
leftInput = toInspectable(layout.getMargin(YogaEdge.LEFT)),
|
||||||
layout.getMargin(YogaEdge.TOP),
|
topInput = toInspectable(layout.getMargin(YogaEdge.TOP)),
|
||||||
layout.getMargin(YogaEdge.RIGHT),
|
rightInput = toInspectable(layout.getMargin(YogaEdge.RIGHT)),
|
||||||
layout.getMargin(YogaEdge.BOTTOM),
|
bottomInput = toInspectable(layout.getMargin(YogaEdge.BOTTOM)),
|
||||||
layout.getMargin(YogaEdge.HORIZONTAL),
|
horizontalInput = toInspectable(layout.getMargin(YogaEdge.HORIZONTAL)),
|
||||||
layout.getMargin(YogaEdge.VERTICAL),
|
verticalInput = toInspectable(layout.getMargin(YogaEdge.VERTICAL)),
|
||||||
layout.getMargin(YogaEdge.ALL),
|
allInput = toInspectable(layout.getMargin(YogaEdge.ALL)),
|
||||||
layout.getMargin(YogaEdge.START),
|
startInput = toInspectable(layout.getMargin(YogaEdge.START)),
|
||||||
layout.getMargin(YogaEdge.END))
|
endInput = toInspectable(layout.getMargin(YogaEdge.END)),
|
||||||
|
leftResolved = layout.getLayoutMargin(YogaEdge.LEFT),
|
||||||
|
rightResolved = layout.getLayoutMargin(YogaEdge.RIGHT),
|
||||||
|
topResolved = layout.getLayoutMargin(YogaEdge.TOP),
|
||||||
|
bottomResolved = layout.getLayoutMargin(YogaEdge.BOTTOM),
|
||||||
|
)
|
||||||
|
|
||||||
props[PaddingId] =
|
props[PaddingId] =
|
||||||
getInspectableBox(
|
getInspectableBox(
|
||||||
layout.getPadding(YogaEdge.LEFT),
|
leftInput = toInspectable(layout.getPadding(YogaEdge.LEFT)),
|
||||||
layout.getPadding(YogaEdge.TOP),
|
topInput = toInspectable(layout.getPadding(YogaEdge.TOP)),
|
||||||
layout.getPadding(YogaEdge.RIGHT),
|
rightInput = toInspectable(layout.getPadding(YogaEdge.RIGHT)),
|
||||||
layout.getPadding(YogaEdge.BOTTOM),
|
bottomInput = toInspectable(layout.getPadding(YogaEdge.BOTTOM)),
|
||||||
layout.getPadding(YogaEdge.HORIZONTAL),
|
horizontalInput = toInspectable(layout.getPadding(YogaEdge.HORIZONTAL)),
|
||||||
layout.getPadding(YogaEdge.VERTICAL),
|
verticalInput = toInspectable(layout.getPadding(YogaEdge.VERTICAL)),
|
||||||
layout.getPadding(YogaEdge.ALL),
|
allInput = toInspectable(layout.getPadding(YogaEdge.ALL)),
|
||||||
layout.getPadding(YogaEdge.START),
|
startInput = toInspectable(layout.getPadding(YogaEdge.START)),
|
||||||
layout.getPadding(YogaEdge.END))
|
endInput = toInspectable(layout.getPadding(YogaEdge.END)),
|
||||||
|
leftResolved = layout.getLayoutPadding(YogaEdge.LEFT),
|
||||||
|
rightResolved = layout.getLayoutPadding(YogaEdge.RIGHT),
|
||||||
|
topResolved = layout.getLayoutPadding(YogaEdge.TOP),
|
||||||
|
bottomResolved = layout.getLayoutPadding(YogaEdge.BOTTOM))
|
||||||
|
|
||||||
props[BorderId] =
|
props[BorderId] =
|
||||||
getInspectableBoxRaw(
|
getInspectableBox(
|
||||||
layout.getBorderWidth(YogaEdge.LEFT),
|
toInspectable(layout.getBorderWidth(YogaEdge.LEFT)),
|
||||||
layout.getBorderWidth(YogaEdge.TOP),
|
toInspectable(layout.getBorderWidth(YogaEdge.TOP)),
|
||||||
layout.getBorderWidth(YogaEdge.RIGHT),
|
toInspectable(layout.getBorderWidth(YogaEdge.RIGHT)),
|
||||||
layout.getBorderWidth(YogaEdge.BOTTOM),
|
toInspectable(layout.getBorderWidth(YogaEdge.BOTTOM)),
|
||||||
layout.getBorderWidth(YogaEdge.HORIZONTAL),
|
toInspectable(layout.getBorderWidth(YogaEdge.HORIZONTAL)),
|
||||||
layout.getBorderWidth(YogaEdge.VERTICAL),
|
toInspectable(layout.getBorderWidth(YogaEdge.VERTICAL)),
|
||||||
layout.getBorderWidth(YogaEdge.ALL),
|
toInspectable(layout.getBorderWidth(YogaEdge.ALL)),
|
||||||
layout.getBorderWidth(YogaEdge.START),
|
toInspectable(layout.getBorderWidth(YogaEdge.START)),
|
||||||
layout.getBorderWidth(YogaEdge.END))
|
toInspectable(layout.getBorderWidth(YogaEdge.END)),
|
||||||
|
null, // todo expose layout border from litho
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null)
|
||||||
|
|
||||||
props[PositionId] =
|
props[PositionId] =
|
||||||
getInspectableBox(
|
getInspectableBox(
|
||||||
layout.getPosition(YogaEdge.LEFT),
|
toInspectable(layout.getPosition(YogaEdge.LEFT)),
|
||||||
layout.getPosition(YogaEdge.TOP),
|
toInspectable(layout.getPosition(YogaEdge.TOP)),
|
||||||
layout.getPosition(YogaEdge.RIGHT),
|
toInspectable(layout.getPosition(YogaEdge.RIGHT)),
|
||||||
layout.getPosition(YogaEdge.BOTTOM),
|
toInspectable(layout.getPosition(YogaEdge.BOTTOM)),
|
||||||
layout.getPosition(YogaEdge.HORIZONTAL),
|
toInspectable(layout.getPosition(YogaEdge.HORIZONTAL)),
|
||||||
layout.getPosition(YogaEdge.VERTICAL),
|
toInspectable(layout.getPosition(YogaEdge.VERTICAL)),
|
||||||
layout.getPosition(YogaEdge.ALL),
|
toInspectable(layout.getPosition(YogaEdge.ALL)),
|
||||||
layout.getPosition(YogaEdge.START),
|
toInspectable(layout.getPosition(YogaEdge.START)),
|
||||||
layout.getPosition(YogaEdge.END))
|
toInspectable(layout.getPosition(YogaEdge.END)),
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null)
|
||||||
|
|
||||||
val viewOutput: MutableMap<MetadataId, Inspectable> = mutableMapOf()
|
val viewOutput: MutableMap<MetadataId, Inspectable> = mutableMapOf()
|
||||||
viewOutput[HasViewOutputId] = InspectableValue.Boolean(layout.hasViewOutput())
|
viewOutput[HasViewOutputId] = InspectableValue.Boolean(layout.hasViewOutput())
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.descriptors.MetadataRegister
|
||||||
import com.facebook.flipper.plugins.uidebugger.litho.descriptors.props.ComponentDataExtractor
|
import com.facebook.flipper.plugins.uidebugger.litho.descriptors.props.ComponentDataExtractor
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableArray
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableValue
|
import com.facebook.flipper.plugins.uidebugger.model.InspectableValue
|
||||||
import com.facebook.litho.KStateContainer
|
import com.facebook.litho.KStateContainer
|
||||||
@@ -16,16 +16,22 @@ import org.junit.Test
|
|||||||
class KStateContainerExtractionTest {
|
class KStateContainerExtractionTest {
|
||||||
@Test
|
@Test
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
fun testCanExtractKState() {
|
fun testCanExtractKStateIntoSeparateAttributesByIndex() {
|
||||||
|
|
||||||
// this test ensures that our reflection based extraction doesn't break if the KState class
|
// this test ensures that our reflection based extraction doesn't break if the KState class
|
||||||
// structure changes
|
// structure changes
|
||||||
val stateContainer = KStateContainer.withNewState(null, "foo")
|
MetadataRegister.reset()
|
||||||
|
val stateContainer =
|
||||||
|
KStateContainer.withNewState(KStateContainer.withNewState(null, "foo"), true)
|
||||||
|
|
||||||
val result = ComponentDataExtractor.getState(stateContainer, "Comp1")
|
val result = ComponentDataExtractor.getState(stateContainer, "Comp1")
|
||||||
|
|
||||||
|
val first = MetadataRegister.get("kstate", "0")?.id ?: -1
|
||||||
|
val second = MetadataRegister.get("kstate", "1")?.id ?: -2
|
||||||
assertEquals(
|
assertEquals(
|
||||||
|
InspectableObject(
|
||||||
|
mapOf(first to InspectableValue.Text("foo"), second to InspectableValue.Boolean(true))),
|
||||||
result,
|
result,
|
||||||
InspectableObject(mapOf(1 to InspectableArray(listOf(InspectableValue.Text("foo"))))))
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,13 +75,13 @@ dependencies {
|
|||||||
|
|
||||||
// Compose
|
// Compose
|
||||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||||
implementation 'androidx.activity:activity-ktx:1.7.2'
|
implementation 'androidx.activity:activity-ktx:1.8.0'
|
||||||
implementation 'androidx.compose.runtime:runtime:1.4.3'
|
implementation 'androidx.compose.runtime:runtime:1.5.4'
|
||||||
implementation 'androidx.activity:activity-compose:1.7.2'
|
implementation 'androidx.activity:activity-compose:1.8.0'
|
||||||
implementation 'androidx.compose.ui:ui:1.4.3'
|
implementation 'androidx.compose.ui:ui:1.5.4'
|
||||||
implementation 'androidx.compose.material3:material3:1.1.1'
|
implementation 'androidx.compose.material3:material3:1.1.2'
|
||||||
implementation 'androidx.compose.ui:ui-tooling:1.4.3'
|
implementation 'androidx.compose.ui:ui-tooling:1.5.4'
|
||||||
implementation 'androidx.compose.ui:ui-tooling-preview:1.4.3'
|
implementation 'androidx.compose.ui:ui-tooling-preview:1.5.4'
|
||||||
|
|
||||||
// Third-party
|
// Third-party
|
||||||
implementation deps.soloader
|
implementation deps.soloader
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import com.facebook.flipper.plugins.uidebugger.UIDebuggerFlipperPlugin;
|
|||||||
import com.facebook.flipper.plugins.uidebugger.core.UIDContext;
|
import com.facebook.flipper.plugins.uidebugger.core.UIDContext;
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister;
|
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister;
|
||||||
import com.facebook.flipper.plugins.uidebugger.litho.UIDebuggerLithoSupport;
|
import com.facebook.flipper.plugins.uidebugger.litho.UIDebuggerLithoSupport;
|
||||||
import com.facebook.flipper.plugins.uidebugger.observers.TreeObserverFactory;
|
|
||||||
import com.facebook.litho.config.ComponentsConfiguration;
|
import com.facebook.litho.config.ComponentsConfiguration;
|
||||||
import com.facebook.litho.editor.flipper.LithoFlipperDescriptors;
|
import com.facebook.litho.editor.flipper.LithoFlipperDescriptors;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@@ -63,7 +62,6 @@ public final class FlipperInitializer {
|
|||||||
client.addPlugin(NavigationFlipperPlugin.getInstance());
|
client.addPlugin(NavigationFlipperPlugin.getInstance());
|
||||||
|
|
||||||
DescriptorRegister descriptorRegister = DescriptorRegister.Companion.withDefaults();
|
DescriptorRegister descriptorRegister = DescriptorRegister.Companion.withDefaults();
|
||||||
TreeObserverFactory treeObserverFactory = TreeObserverFactory.Companion.withDefaults();
|
|
||||||
UIDContext uidContext = UIDContext.Companion.create((Application) context);
|
UIDContext uidContext = UIDContext.Companion.create((Application) context);
|
||||||
UIDebuggerLithoSupport.INSTANCE.enable(uidContext);
|
UIDebuggerLithoSupport.INSTANCE.enable(uidContext);
|
||||||
UIDebuggerComposeSupport.INSTANCE.enable(uidContext);
|
UIDebuggerComposeSupport.INSTANCE.enable(uidContext);
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class AccessibilityRoleUtil {
|
|||||||
* <p>https://github.com/google/talkback/blob/master/compositor/src/main/res/raw/compositor.json
|
* <p>https://github.com/google/talkback/blob/master/compositor/src/main/res/raw/compositor.json
|
||||||
*/
|
*/
|
||||||
public enum AccessibilityRole {
|
public enum AccessibilityRole {
|
||||||
NONE(null, ""),
|
NONE("android.view.View", ""),
|
||||||
BUTTON("android.widget.Button", "Button"),
|
BUTTON("android.widget.Button", "Button"),
|
||||||
CHECK_BOX("android.widget.CompoundButton", "Check box"),
|
CHECK_BOX("android.widget.CompoundButton", "Check box"),
|
||||||
DROP_DOWN_LIST("android.widget.Spinner", "Drop down list"),
|
DROP_DOWN_LIST("android.widget.Spinner", "Drop down list"),
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ class UIDebuggerFlipperPlugin(val context: UIDContext) : FlipperPlugin {
|
|||||||
MetadataUpdateEvent.serializer(),
|
MetadataUpdateEvent.serializer(),
|
||||||
MetadataUpdateEvent(MetadataRegister.extractPendingMetadata())))
|
MetadataUpdateEvent(MetadataRegister.extractPendingMetadata())))
|
||||||
|
|
||||||
context.treeObserverManager.start()
|
context.updateQueue.start()
|
||||||
|
context.decorViewTracker.start()
|
||||||
|
|
||||||
context.connectionListeners.forEach { it.onConnect() }
|
context.connectionListeners.forEach { it.onConnect() }
|
||||||
}
|
}
|
||||||
@@ -59,7 +60,9 @@ class UIDebuggerFlipperPlugin(val context: UIDContext) : FlipperPlugin {
|
|||||||
|
|
||||||
MetadataRegister.reset()
|
MetadataRegister.reset()
|
||||||
|
|
||||||
context.treeObserverManager.stop()
|
context.decorViewTracker.stop()
|
||||||
|
context.updateQueue.stop()
|
||||||
|
|
||||||
context.bitmapPool.recycleAll()
|
context.bitmapPool.recycleAll()
|
||||||
context.connectionListeners.forEach { it.onDisconnect() }
|
context.connectionListeners.forEach { it.onDisconnect() }
|
||||||
context.clearFrameworkEvents()
|
context.clearFrameworkEvents()
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import android.app.Activity
|
|||||||
import android.app.Application
|
import android.app.Application
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.view.View
|
||||||
import java.lang.ref.WeakReference
|
import java.lang.ref.WeakReference
|
||||||
import java.lang.reflect.Field
|
import java.lang.reflect.Field
|
||||||
import java.lang.reflect.Method
|
import java.lang.reflect.Method
|
||||||
@@ -103,6 +104,11 @@ object ActivityTracker : Application.ActivityLifecycleCallbacks {
|
|||||||
return stack
|
return stack
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val decorViewToActivityMap: Map<View, Activity>
|
||||||
|
get() {
|
||||||
|
return activitiesStack.toList().associateBy { it.window.decorView }
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Activity tracker is used to track activities. However, it cannot track via life-cycle events
|
* Activity tracker is used to track activities. However, it cannot track via life-cycle events
|
||||||
* all those activities that were created prior to initialisation via the `start(application:
|
* all those activities that were created prior to initialisation via the `start(application:
|
||||||
|
|||||||
@@ -17,10 +17,11 @@ class ApplicationRef(val application: Application) {
|
|||||||
|
|
||||||
// the root view resolver will contain all root views 100% It is needed for 2 cases:
|
// the root view resolver will contain all root views 100% It is needed for 2 cases:
|
||||||
// 1. In some cases an activity will not be picked up by the activity tracker,
|
// 1. In some cases an activity will not be picked up by the activity tracker,
|
||||||
// the root view resolver will at least find the decor view
|
// the root view resolver will at least find the decor view, this is the case for various
|
||||||
|
// kinds of custom overlays
|
||||||
// 2. Dialog fragments
|
// 2. Dialog fragments
|
||||||
val rootsResolver: RootViewResolver = RootViewResolver()
|
val rootsResolver: RootViewResolver = RootViewResolver()
|
||||||
|
val windowManagerUtility = WindowManagerUtility()
|
||||||
val activitiesStack: List<Activity>
|
val activitiesStack: List<Activity>
|
||||||
get() {
|
get() {
|
||||||
return ActivityTracker.activitiesStack
|
return ActivityTracker.activitiesStack
|
||||||
|
|||||||
@@ -5,18 +5,17 @@
|
|||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.facebook.flipper.plugins.uidebugger.common
|
package com.facebook.flipper.plugins.uidebugger.core
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
|
||||||
|
|
||||||
/** BitmapPool is intended to be used on the main thread. In other words, it is not thread-safe. */
|
/** BitmapPool is intended to be used on the main thread. In other words, it is not thread-safe. */
|
||||||
class BitmapPool(private val config: Bitmap.Config = Bitmap.Config.RGB_565) {
|
class BitmapPool(private val config: Bitmap.Config = Bitmap.Config.RGB_565) {
|
||||||
|
|
||||||
interface ReusableBitmap {
|
interface ReusableBitmap {
|
||||||
val bitmap: Bitmap?
|
val bitmap: Bitmap
|
||||||
|
|
||||||
fun readyForReuse()
|
fun readyForReuse()
|
||||||
}
|
}
|
||||||
@@ -57,7 +56,7 @@ class BitmapPool(private val config: Bitmap.Config = Bitmap.Config.RGB_565) {
|
|||||||
override fun readyForReuse() {
|
override fun readyForReuse() {
|
||||||
val key = generateKey(bitmap.width, bitmap.height)
|
val key = generateKey(bitmap.width, bitmap.height)
|
||||||
|
|
||||||
mainScope.launch {
|
synchronized(this@BitmapPool) {
|
||||||
if (isRecycled) {
|
if (isRecycled) {
|
||||||
bitmap.recycle()
|
bitmap.recycle()
|
||||||
} else {
|
} else {
|
||||||
@@ -0,0 +1,127 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.facebook.flipper.plugins.uidebugger.core
|
||||||
|
|
||||||
|
import android.app.Activity
|
||||||
|
import android.util.Log
|
||||||
|
import android.view.View
|
||||||
|
import android.view.ViewTreeObserver
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.LogTag
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.descriptors.ApplicationRefDescriptor
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.descriptors.ViewDescriptor
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.StopWatch
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.Throttler
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.objectIdentity
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The UIDebugger does 3 things:
|
||||||
|
* 1. Observe changes
|
||||||
|
* 2. Traverse UI hierarchy, gathering tree
|
||||||
|
* 3. Generate snapshot
|
||||||
|
*
|
||||||
|
* All 3 of these stages need to work on the same view else there will be major inconsistencies
|
||||||
|
*
|
||||||
|
* The first responsibility of this class is to track changes to root views, find the top most decor
|
||||||
|
* view and add a pre draw observer to it. There should only ever be one active predraw listener at
|
||||||
|
* once.
|
||||||
|
*
|
||||||
|
* This pre-draw observer triggers a full traversal of the UI, the traversal of the hierarchy might
|
||||||
|
* skip some branches (active child) so its essential that both the active child decision and top
|
||||||
|
* root decision match.
|
||||||
|
*
|
||||||
|
* The observer also triggers a snapshot, again its essential the same root view as we do for
|
||||||
|
* traversal and observation
|
||||||
|
*/
|
||||||
|
class DecorViewTracker(private val context: UIDContext, private val snapshotter: Snapshotter) {
|
||||||
|
|
||||||
|
private var currentDecorView: View? = null
|
||||||
|
private var preDrawListener: ViewTreeObserver.OnPreDrawListener? = null
|
||||||
|
private val mStopWatch = StopWatch()
|
||||||
|
|
||||||
|
fun start() {
|
||||||
|
|
||||||
|
val applicationRef = context.applicationRef
|
||||||
|
|
||||||
|
val rootViewListener =
|
||||||
|
object : RootViewResolver.Listener {
|
||||||
|
override fun onRootViewAdded(rootView: View) {}
|
||||||
|
|
||||||
|
override fun onRootViewRemoved(rootView: View) {}
|
||||||
|
|
||||||
|
override fun onRootViewsChanged(rootViews: List<View>) {
|
||||||
|
// remove predraw listen from current view as its going away or will be covered
|
||||||
|
Log.i(LogTag, "Removing pre draw listener from ${currentDecorView?.objectIdentity()}")
|
||||||
|
currentDecorView?.viewTreeObserver?.removeOnPreDrawListener(preDrawListener)
|
||||||
|
|
||||||
|
// setup new listener on top most view, that will be the active child in traversal
|
||||||
|
|
||||||
|
val decorViewToActivity: Map<View, Activity> = ActivityTracker.decorViewToActivityMap
|
||||||
|
|
||||||
|
val topView =
|
||||||
|
rootViews.lastOrNull { view ->
|
||||||
|
val activityOrView = decorViewToActivity[view] ?: view
|
||||||
|
ApplicationRefDescriptor.isUsefulRoot(activityOrView)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (topView != null) {
|
||||||
|
val throttler =
|
||||||
|
Throttler(500) { currentDecorView?.let { traverseSnapshotAndSend(it) } }
|
||||||
|
|
||||||
|
preDrawListener =
|
||||||
|
ViewTreeObserver.OnPreDrawListener {
|
||||||
|
throttler.trigger()
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
|
topView.viewTreeObserver.addOnPreDrawListener(preDrawListener)
|
||||||
|
currentDecorView = topView
|
||||||
|
|
||||||
|
Log.i(LogTag, "Added pre draw listener to ${topView.objectIdentity()}")
|
||||||
|
|
||||||
|
// schedule traversal immediately when we detect a new decor view
|
||||||
|
throttler.trigger()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
context.applicationRef.rootsResolver.attachListener(rootViewListener)
|
||||||
|
// On subscribe, trigger a traversal on whatever roots we have
|
||||||
|
rootViewListener.onRootViewsChanged(applicationRef.rootsResolver.rootViews())
|
||||||
|
|
||||||
|
Log.i(
|
||||||
|
LogTag,
|
||||||
|
"Starting tracking root views, currently ${context.applicationRef.rootsResolver.rootViews().size} root views")
|
||||||
|
}
|
||||||
|
|
||||||
|
fun stop() {
|
||||||
|
context.applicationRef.rootsResolver.attachListener(null)
|
||||||
|
currentDecorView?.viewTreeObserver?.removeOnPreDrawListener(preDrawListener)
|
||||||
|
currentDecorView = null
|
||||||
|
preDrawListener = null
|
||||||
|
}
|
||||||
|
|
||||||
|
private suspend fun traverseSnapshotAndSend(decorView: View) {
|
||||||
|
|
||||||
|
val startTimestamp = System.currentTimeMillis()
|
||||||
|
|
||||||
|
val (nodes, traversalTime) =
|
||||||
|
StopWatch.time { context.layoutTraversal.traverse(context.applicationRef) }
|
||||||
|
|
||||||
|
val (reusableBitmap, snapshotMs) = StopWatch.timeSuspend { snapshotter.takeSnapshot(decorView) }
|
||||||
|
|
||||||
|
context.updateQueue.enqueueUpdate(
|
||||||
|
Update(
|
||||||
|
ViewDescriptor.getId(decorView),
|
||||||
|
nodes,
|
||||||
|
startTimestamp,
|
||||||
|
traversalTime,
|
||||||
|
snapshotMs,
|
||||||
|
System.currentTimeMillis(),
|
||||||
|
reusableBitmap))
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,15 +5,14 @@
|
|||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.facebook.flipper.plugins.uidebugger.traversal
|
package com.facebook.flipper.plugins.uidebugger.core
|
||||||
|
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import com.facebook.flipper.plugins.uidebugger.LogTag
|
import com.facebook.flipper.plugins.uidebugger.LogTag
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.NodeDescriptor
|
import com.facebook.flipper.plugins.uidebugger.descriptors.NodeDescriptor
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.Node
|
import com.facebook.flipper.plugins.uidebugger.model.Node
|
||||||
import com.facebook.flipper.plugins.uidebugger.observers.TreeObserverFactory
|
import com.facebook.flipper.plugins.uidebugger.model.TraversalError
|
||||||
import com.facebook.flipper.plugins.uidebugger.util.Immediate
|
import com.facebook.flipper.plugins.uidebugger.util.Immediate
|
||||||
import com.facebook.flipper.plugins.uidebugger.util.MaybeDeferred
|
import com.facebook.flipper.plugins.uidebugger.util.MaybeDeferred
|
||||||
|
|
||||||
@@ -23,22 +22,20 @@ import com.facebook.flipper.plugins.uidebugger.util.MaybeDeferred
|
|||||||
* - The first item in the pair is the visited nodes.
|
* - The first item in the pair is the visited nodes.
|
||||||
* - The second item are any observable roots discovered.
|
* - The second item are any observable roots discovered.
|
||||||
*/
|
*/
|
||||||
class PartialLayoutTraversal(
|
class LayoutTraversal(
|
||||||
private val descriptorRegister: DescriptorRegister,
|
private val context: UIDContext,
|
||||||
private val treeObserverFactory: TreeObserverFactory,
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
@Suppress("unchecked_cast")
|
@Suppress("unchecked_cast")
|
||||||
internal fun NodeDescriptor<*>.asAny(): NodeDescriptor<Any> = this as NodeDescriptor<Any>
|
private fun NodeDescriptor<*>.asAny(): NodeDescriptor<Any> = this as NodeDescriptor<Any>
|
||||||
|
|
||||||
fun traverse(root: Any, parentId: Id?): Pair<List<MaybeDeferred<Node>>, List<Pair<Any, Id?>>> {
|
fun traverse(root: Any): MutableList<MaybeDeferred<Node>> {
|
||||||
|
|
||||||
val visited = mutableListOf<MaybeDeferred<Node>>()
|
val visited = mutableListOf<MaybeDeferred<Node>>()
|
||||||
val observableRoots = mutableListOf<Pair<Any, Id?>>()
|
|
||||||
|
|
||||||
// cur and parent Id
|
// cur and parent Id
|
||||||
val stack = mutableListOf<Pair<Any, Id?>>()
|
val stack = mutableListOf<Pair<Any, Id?>>()
|
||||||
stack.add(Pair(root, parentId))
|
stack.add(Pair(root, null))
|
||||||
|
|
||||||
val shallow = mutableSetOf<Any>()
|
val shallow = mutableSetOf<Any>()
|
||||||
|
|
||||||
@@ -46,13 +43,9 @@ class PartialLayoutTraversal(
|
|||||||
val (node, parentId) = stack.removeLast()
|
val (node, parentId) = stack.removeLast()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// If we encounter a node that has it own observer, don't traverse
|
|
||||||
if (node != root && treeObserverFactory.hasObserverFor(node)) {
|
|
||||||
observableRoots.add((node to parentId))
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
val descriptor = descriptorRegister.descriptorForClassUnsafe(node::class.java).asAny()
|
val descriptor =
|
||||||
|
context.descriptorRegister.descriptorForClassUnsafe(node::class.java).asAny()
|
||||||
|
|
||||||
val curId = descriptor.getId(node)
|
val curId = descriptor.getId(node)
|
||||||
if (shallow.contains(node)) {
|
if (shallow.contains(node)) {
|
||||||
@@ -82,13 +75,13 @@ class PartialLayoutTraversal(
|
|||||||
var activeChildId: Id? = null
|
var activeChildId: Id? = null
|
||||||
if (activeChild != null) {
|
if (activeChild != null) {
|
||||||
val activeChildDescriptor =
|
val activeChildDescriptor =
|
||||||
descriptorRegister.descriptorForClassUnsafe(activeChild.javaClass)
|
context.descriptorRegister.descriptorForClassUnsafe(activeChild.javaClass)
|
||||||
activeChildId = activeChildDescriptor.getId(activeChild)
|
activeChildId = activeChildDescriptor.getId(activeChild)
|
||||||
}
|
}
|
||||||
|
|
||||||
val childrenIds = mutableListOf<Id>()
|
val childrenIds = mutableListOf<Id>()
|
||||||
children.forEach { child ->
|
children.forEach { child ->
|
||||||
val childDescriptor = descriptorRegister.descriptorForClassUnsafe(child.javaClass)
|
val childDescriptor = context.descriptorRegister.descriptorForClassUnsafe(child.javaClass)
|
||||||
childrenIds.add(childDescriptor.getId(child))
|
childrenIds.add(childDescriptor.getId(child))
|
||||||
stack.add(Pair(child, curId))
|
stack.add(Pair(child, curId))
|
||||||
// If there is an active child then don't traverse it
|
// If there is an active child then don't traverse it
|
||||||
@@ -117,9 +110,15 @@ class PartialLayoutTraversal(
|
|||||||
})
|
})
|
||||||
} catch (exception: Exception) {
|
} catch (exception: Exception) {
|
||||||
Log.e(LogTag, "Error while processing node ${node.javaClass.name} $node", exception)
|
Log.e(LogTag, "Error while processing node ${node.javaClass.name} $node", exception)
|
||||||
|
context.onError(
|
||||||
|
TraversalError(
|
||||||
|
node.javaClass.simpleName,
|
||||||
|
exception.javaClass.simpleName,
|
||||||
|
exception.message ?: "",
|
||||||
|
exception.stackTraceToString()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Pair(visited, observableRoots)
|
return visited
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,12 +10,14 @@ package com.facebook.flipper.plugins.uidebugger.core
|
|||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.view.View
|
import android.view.View
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.WindowManagerCommon
|
||||||
import java.lang.reflect.Field
|
import java.lang.reflect.Field
|
||||||
import java.lang.reflect.InvocationTargetException
|
import java.lang.reflect.InvocationTargetException
|
||||||
import java.lang.reflect.Modifier
|
import java.lang.reflect.Modifier
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides access to all root views in an application.
|
* Provides access to all root views in an application, as well as the ability to listen to changes
|
||||||
|
* in root views
|
||||||
*
|
*
|
||||||
* 95% of the time this is unnecessary and we can operate solely on current Activity's root view as
|
* 95% of the time this is unnecessary and we can operate solely on current Activity's root view as
|
||||||
* indicated by getWindow().getDecorView(). However in the case of popup windows, menus, and dialogs
|
* indicated by getWindow().getDecorView(). However in the case of popup windows, menus, and dialogs
|
||||||
@@ -67,15 +69,13 @@ class RootViewResolver {
|
|||||||
private fun initialize() {
|
private fun initialize() {
|
||||||
|
|
||||||
initialized = true
|
initialized = true
|
||||||
val accessClass =
|
|
||||||
if (Build.VERSION.SDK_INT > 16) WINDOW_MANAGER_GLOBAL_CLAZZ else WINDOW_MANAGER_IMPL_CLAZZ
|
|
||||||
val instanceMethod = if (Build.VERSION.SDK_INT > 16) GET_GLOBAL_INSTANCE else GET_DEFAULT_IMPL
|
|
||||||
try {
|
try {
|
||||||
val clazz = Class.forName(accessClass)
|
|
||||||
val getMethod = clazz.getMethod(instanceMethod)
|
|
||||||
windowManagerObj = getMethod.invoke(null)
|
|
||||||
|
|
||||||
val viewsField: Field = clazz.getDeclaredField(VIEWS_FIELD)
|
val (windowManager, windowManagerClas) =
|
||||||
|
WindowManagerCommon.getGlobalWindowManager() ?: return
|
||||||
|
windowManagerObj = windowManager
|
||||||
|
|
||||||
|
val viewsField: Field = windowManagerClas.getDeclaredField(VIEWS_FIELD)
|
||||||
|
|
||||||
viewsField.let { vf ->
|
viewsField.let { vf ->
|
||||||
vf.isAccessible = true
|
vf.isAccessible = true
|
||||||
@@ -98,11 +98,7 @@ class RootViewResolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val WINDOW_MANAGER_IMPL_CLAZZ = "android.view.WindowManagerImpl"
|
|
||||||
private const val WINDOW_MANAGER_GLOBAL_CLAZZ = "android.view.WindowManagerGlobal"
|
|
||||||
private const val VIEWS_FIELD = "mViews"
|
private const val VIEWS_FIELD = "mViews"
|
||||||
private const val GET_DEFAULT_IMPL = "getDefault"
|
|
||||||
private const val GET_GLOBAL_INSTANCE = "getInstance"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class ObservableViewArrayList : ArrayList<View>() {
|
class ObservableViewArrayList : ArrayList<View>() {
|
||||||
|
|||||||
@@ -0,0 +1,168 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.facebook.flipper.plugins.uidebugger.core
|
||||||
|
|
||||||
|
import android.app.Activity
|
||||||
|
import android.graphics.Canvas
|
||||||
|
import android.os.Build
|
||||||
|
import android.os.Handler
|
||||||
|
import android.os.Looper
|
||||||
|
import android.util.Log
|
||||||
|
import android.view.PixelCopy
|
||||||
|
import android.view.View
|
||||||
|
import androidx.annotation.RequiresApi
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.LogTag
|
||||||
|
import kotlin.coroutines.Continuation
|
||||||
|
import kotlin.coroutines.resume
|
||||||
|
import kotlin.coroutines.suspendCoroutine
|
||||||
|
|
||||||
|
interface Snapshotter {
|
||||||
|
suspend fun takeSnapshot(view: View): BitmapPool.ReusableBitmap?
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Takes a snapshot by redrawing the view into a bitmap backed canvas, Since this is software
|
||||||
|
* rendering there can be discrepancies between the real image and the snapshot:
|
||||||
|
* 1. It can be unreliable when snapshotting views that are added directly to window manager
|
||||||
|
* 2. It doesn't include certain types of content (video / images)
|
||||||
|
*/
|
||||||
|
class CanvasSnapshotter(private val bitmapPool: BitmapPool) : Snapshotter {
|
||||||
|
override suspend fun takeSnapshot(view: View): BitmapPool.ReusableBitmap? {
|
||||||
|
|
||||||
|
return SnapshotCommon.doSnapshotWithErrorHandling(bitmapPool, view, fallback = null) { bitmap ->
|
||||||
|
val canvas = Canvas(bitmap.bitmap)
|
||||||
|
view.draw(canvas)
|
||||||
|
true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Uses the new api to snapshot any view regardless whether its attached to a activity or not,
|
||||||
|
* requires no hacks
|
||||||
|
*/
|
||||||
|
@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||||
|
class ModernPixelCopySnapshotter(
|
||||||
|
private val bitmapPool: BitmapPool,
|
||||||
|
private val fallback: Snapshotter
|
||||||
|
) : Snapshotter {
|
||||||
|
private var handler = Handler(Looper.getMainLooper())
|
||||||
|
|
||||||
|
override suspend fun takeSnapshot(view: View): BitmapPool.ReusableBitmap? {
|
||||||
|
|
||||||
|
return if (view.isHardwareAccelerated) {
|
||||||
|
SnapshotCommon.doSnapshotWithErrorHandling(bitmapPool, view, fallback) { reusableBitmap ->
|
||||||
|
suspendCoroutine { continuation ->
|
||||||
|
// Since android U this api is actually async
|
||||||
|
val request =
|
||||||
|
PixelCopy.Request.Builder.ofWindow(view)
|
||||||
|
.setDestinationBitmap(reusableBitmap.bitmap)
|
||||||
|
.build()
|
||||||
|
PixelCopy.request(
|
||||||
|
request,
|
||||||
|
{ handler.post(it) },
|
||||||
|
{ continuation.resume(it.status == PixelCopy.SUCCESS) })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fallback.takeSnapshot(view)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Uses pixel copy api to do a snapshot, this is accurate but prior to android U we have to use a
|
||||||
|
* bit of hack to get the surface for root views not associated to an activity (added directly to
|
||||||
|
* the window manager)
|
||||||
|
*/
|
||||||
|
@RequiresApi(Build.VERSION_CODES.O)
|
||||||
|
class PixelCopySnapshotter(
|
||||||
|
private val bitmapPool: BitmapPool,
|
||||||
|
private val applicationRef: ApplicationRef,
|
||||||
|
private val fallback: Snapshotter
|
||||||
|
) : Snapshotter {
|
||||||
|
private var handler = Handler(Looper.getMainLooper())
|
||||||
|
|
||||||
|
override suspend fun takeSnapshot(view: View): BitmapPool.ReusableBitmap? {
|
||||||
|
|
||||||
|
return if (view.isHardwareAccelerated) {
|
||||||
|
SnapshotCommon.doSnapshotWithErrorHandling(bitmapPool, view, fallback) {
|
||||||
|
tryCopyViaActivityWindow(view, it) || tryCopyViaInternalSurface(view, it)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fallback.takeSnapshot(view)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private suspend fun tryCopyViaActivityWindow(
|
||||||
|
view: View,
|
||||||
|
bitmap: BitmapPool.ReusableBitmap
|
||||||
|
): Boolean {
|
||||||
|
|
||||||
|
val decorViewToActivity: Map<View, Activity> = ActivityTracker.decorViewToActivityMap
|
||||||
|
|
||||||
|
val activityForDecorView = decorViewToActivity[view] ?: return false
|
||||||
|
|
||||||
|
return suspendCoroutine { continuation ->
|
||||||
|
PixelCopy.request(
|
||||||
|
activityForDecorView.window, bitmap.bitmap, pixelCopyCallback(continuation), handler)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private suspend fun tryCopyViaInternalSurface(
|
||||||
|
view: View,
|
||||||
|
bitmap: BitmapPool.ReusableBitmap
|
||||||
|
): Boolean {
|
||||||
|
val surface = applicationRef.windowManagerUtility.surfaceForRootView(view) ?: return false
|
||||||
|
|
||||||
|
return suspendCoroutine { continuation ->
|
||||||
|
PixelCopy.request(surface, bitmap.bitmap, pixelCopyCallback(continuation), handler)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun pixelCopyCallback(continuation: Continuation<Boolean>): (Int) -> Unit =
|
||||||
|
{ result: Int ->
|
||||||
|
if (result == PixelCopy.SUCCESS) {
|
||||||
|
continuation.resume(true)
|
||||||
|
} else {
|
||||||
|
Log.w(LogTag, "Pixel copy failed, code $result")
|
||||||
|
continuation.resume(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
internal object SnapshotCommon {
|
||||||
|
|
||||||
|
internal suspend fun doSnapshotWithErrorHandling(
|
||||||
|
bitmapPool: BitmapPool,
|
||||||
|
view: View,
|
||||||
|
fallback: Snapshotter?,
|
||||||
|
snapshotStrategy: suspend (reuseableBitmap: BitmapPool.ReusableBitmap) -> Boolean
|
||||||
|
): BitmapPool.ReusableBitmap? {
|
||||||
|
if (view.width <= 0 || view.height <= 0) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
var reusableBitmap: BitmapPool.ReusableBitmap? = null
|
||||||
|
try {
|
||||||
|
reusableBitmap = bitmapPool.getBitmap(view.width, view.height)
|
||||||
|
if (snapshotStrategy(reusableBitmap)) {
|
||||||
|
return reusableBitmap
|
||||||
|
}
|
||||||
|
} catch (e: OutOfMemoryError) {
|
||||||
|
Log.e(LogTag, "OOM when taking snapshot")
|
||||||
|
} catch (e: Exception) {
|
||||||
|
// there was some problem with the pixel copy, fall back to canvas impl
|
||||||
|
Log.e(LogTag, "Exception when taking snapshot", e)
|
||||||
|
}
|
||||||
|
|
||||||
|
// something went wrong, use fallback, make sure to give bitmap back to pool first
|
||||||
|
Log.i(LogTag, "Using fallback snapshot method")
|
||||||
|
reusableBitmap?.readyForReuse()
|
||||||
|
return fallback?.takeSnapshot(view)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,15 +8,15 @@
|
|||||||
package com.facebook.flipper.plugins.uidebugger.core
|
package com.facebook.flipper.plugins.uidebugger.core
|
||||||
|
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
|
import android.os.Build
|
||||||
|
import android.util.Log
|
||||||
import com.facebook.flipper.core.FlipperConnection
|
import com.facebook.flipper.core.FlipperConnection
|
||||||
import com.facebook.flipper.plugins.uidebugger.common.BitmapPool
|
import com.facebook.flipper.plugins.uidebugger.LogTag
|
||||||
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister
|
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.FrameworkEvent
|
import com.facebook.flipper.plugins.uidebugger.model.FrameworkEvent
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.FrameworkEventMetadata
|
import com.facebook.flipper.plugins.uidebugger.model.FrameworkEventMetadata
|
||||||
import com.facebook.flipper.plugins.uidebugger.observers.TreeObserverFactory
|
import com.facebook.flipper.plugins.uidebugger.model.TraversalError
|
||||||
import com.facebook.flipper.plugins.uidebugger.observers.TreeObserverManager
|
import kotlinx.serialization.json.Json
|
||||||
import com.facebook.flipper.plugins.uidebugger.scheduler.SharedThrottle
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.traversal.PartialLayoutTraversal
|
|
||||||
|
|
||||||
interface ConnectionListener {
|
interface ConnectionListener {
|
||||||
fun onConnect()
|
fun onConnect()
|
||||||
@@ -28,23 +28,39 @@ class UIDContext(
|
|||||||
val applicationRef: ApplicationRef,
|
val applicationRef: ApplicationRef,
|
||||||
val connectionRef: ConnectionRef,
|
val connectionRef: ConnectionRef,
|
||||||
val descriptorRegister: DescriptorRegister,
|
val descriptorRegister: DescriptorRegister,
|
||||||
val observerFactory: TreeObserverFactory,
|
|
||||||
val frameworkEventMetadata: MutableList<FrameworkEventMetadata>,
|
val frameworkEventMetadata: MutableList<FrameworkEventMetadata>,
|
||||||
val connectionListeners: MutableList<ConnectionListener>,
|
val connectionListeners: MutableList<ConnectionListener>,
|
||||||
private val pendingFrameworkEvents: MutableList<FrameworkEvent>
|
private val pendingFrameworkEvents: MutableList<FrameworkEvent>
|
||||||
) {
|
) {
|
||||||
|
|
||||||
val layoutTraversal: PartialLayoutTraversal =
|
|
||||||
PartialLayoutTraversal(descriptorRegister, observerFactory)
|
|
||||||
|
|
||||||
val treeObserverManager = TreeObserverManager(this)
|
|
||||||
val sharedThrottle: SharedThrottle = SharedThrottle()
|
|
||||||
val bitmapPool = BitmapPool()
|
val bitmapPool = BitmapPool()
|
||||||
|
private val canvasSnapshotter = CanvasSnapshotter(bitmapPool)
|
||||||
|
|
||||||
|
private val snapshotter =
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||||
|
ModernPixelCopySnapshotter(bitmapPool, canvasSnapshotter)
|
||||||
|
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
|
PixelCopySnapshotter(bitmapPool, applicationRef, canvasSnapshotter)
|
||||||
|
} else {
|
||||||
|
Log.w(
|
||||||
|
LogTag,
|
||||||
|
"Using legacy snapshot mode, use device with API level >=26 to for pixel copy snapshot ")
|
||||||
|
canvasSnapshotter
|
||||||
|
}
|
||||||
|
|
||||||
|
val decorViewTracker: DecorViewTracker = DecorViewTracker(this, snapshotter)
|
||||||
|
val updateQueue: UpdateQueue = UpdateQueue(this)
|
||||||
|
val layoutTraversal: LayoutTraversal = LayoutTraversal(this)
|
||||||
|
|
||||||
fun addFrameworkEvent(frameworkEvent: FrameworkEvent) {
|
fun addFrameworkEvent(frameworkEvent: FrameworkEvent) {
|
||||||
synchronized(pendingFrameworkEvents) { pendingFrameworkEvents.add(frameworkEvent) }
|
synchronized(pendingFrameworkEvents) { pendingFrameworkEvents.add(frameworkEvent) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun onError(traversalError: TraversalError) {
|
||||||
|
connectionRef.connection?.send(
|
||||||
|
TraversalError.name, Json.encodeToString(TraversalError.serializer(), traversalError))
|
||||||
|
}
|
||||||
|
|
||||||
fun extractPendingFrameworkEvents(): List<FrameworkEvent> {
|
fun extractPendingFrameworkEvents(): List<FrameworkEvent> {
|
||||||
synchronized(pendingFrameworkEvents) {
|
synchronized(pendingFrameworkEvents) {
|
||||||
val copy = pendingFrameworkEvents.toList()
|
val copy = pendingFrameworkEvents.toList()
|
||||||
@@ -63,7 +79,6 @@ class UIDContext(
|
|||||||
ApplicationRef(application),
|
ApplicationRef(application),
|
||||||
ConnectionRef(null),
|
ConnectionRef(null),
|
||||||
descriptorRegister = DescriptorRegister.withDefaults(),
|
descriptorRegister = DescriptorRegister.withDefaults(),
|
||||||
observerFactory = TreeObserverFactory.withDefaults(),
|
|
||||||
frameworkEventMetadata = mutableListOf(),
|
frameworkEventMetadata = mutableListOf(),
|
||||||
connectionListeners = mutableListOf(),
|
connectionListeners = mutableListOf(),
|
||||||
pendingFrameworkEvents = mutableListOf())
|
pendingFrameworkEvents = mutableListOf())
|
||||||
|
|||||||
@@ -0,0 +1,163 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.facebook.flipper.plugins.uidebugger.core
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
|
import android.graphics.Bitmap
|
||||||
|
import android.util.Base64
|
||||||
|
import android.util.Base64OutputStream
|
||||||
|
import android.util.Log
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.LogTag
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.descriptors.MetadataRegister
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.model.FrameScanEvent
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.model.MetadataUpdateEvent
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.model.Node
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.model.PerfStatsEvent
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.model.Snapshot
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.model.TraversalError
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.MaybeDeferred
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.StopWatch
|
||||||
|
import java.io.ByteArrayOutputStream
|
||||||
|
import kotlinx.coroutines.*
|
||||||
|
import kotlinx.coroutines.channels.Channel
|
||||||
|
import kotlinx.coroutines.channels.Channel.Factory.CONFLATED
|
||||||
|
import kotlinx.serialization.json.Json
|
||||||
|
|
||||||
|
data class Update(
|
||||||
|
val snapshotNode: Id,
|
||||||
|
val deferredNodes: List<MaybeDeferred<Node>>,
|
||||||
|
val startTimestamp: Long,
|
||||||
|
val traversalMS: Long,
|
||||||
|
val snapshotMS: Long,
|
||||||
|
val queuedTimestamp: Long,
|
||||||
|
val snapshotBitmap: BitmapPool.ReusableBitmap?
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holds an update and manages a coroutine which serially reads from queue and sends to flipper
|
||||||
|
* desktop
|
||||||
|
*/
|
||||||
|
class UpdateQueue(val context: UIDContext) {
|
||||||
|
|
||||||
|
// conflated channel means we only hold 1 item and newer values override older ones,
|
||||||
|
// there is no point processing frames that the desktop cant keep up with since we only display
|
||||||
|
// the latest
|
||||||
|
private val frameChannel = Channel<Update>(CONFLATED)
|
||||||
|
|
||||||
|
private var job: Job? = null
|
||||||
|
private val workerScope = CoroutineScope(Dispatchers.IO)
|
||||||
|
private val stopWatch = StopWatch()
|
||||||
|
|
||||||
|
fun enqueueUpdate(update: Update) {
|
||||||
|
frameChannel.trySend(update)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Sets up the root observer
|
||||||
|
* 2. Starts worker to listen to channel, which serializers and sends data over connection
|
||||||
|
*/
|
||||||
|
@SuppressLint("NewApi")
|
||||||
|
fun start() {
|
||||||
|
|
||||||
|
job =
|
||||||
|
workerScope.launch {
|
||||||
|
while (isActive) {
|
||||||
|
try {
|
||||||
|
val update = frameChannel.receive()
|
||||||
|
sendUpdate(update)
|
||||||
|
} catch (e: CancellationException) {} catch (e: java.lang.Exception) {
|
||||||
|
Log.e(LogTag, "Unexpected Error in channel ", e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Log.i(LogTag, "Shutting down worker")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun stop() {
|
||||||
|
job?.cancel()
|
||||||
|
job = null
|
||||||
|
// drain channel
|
||||||
|
frameChannel.tryReceive()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun sendUpdate(update: Update) {
|
||||||
|
|
||||||
|
val queuingTimeMs = System.currentTimeMillis() - update.queuedTimestamp
|
||||||
|
|
||||||
|
stopWatch.start()
|
||||||
|
val nodes =
|
||||||
|
try {
|
||||||
|
update.deferredNodes.map { it.value() }
|
||||||
|
} catch (exception: Exception) {
|
||||||
|
context.onError(
|
||||||
|
TraversalError(
|
||||||
|
"DeferredProcessing",
|
||||||
|
exception.javaClass.simpleName,
|
||||||
|
exception.message ?: "",
|
||||||
|
exception.stackTraceToString()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
val deferredComputationEndTimestamp = stopWatch.stop()
|
||||||
|
|
||||||
|
val frameworkEvents = context.extractPendingFrameworkEvents()
|
||||||
|
|
||||||
|
var snapshot: Snapshot? = null
|
||||||
|
if (update.snapshotBitmap != null) {
|
||||||
|
val stream = ByteArrayOutputStream()
|
||||||
|
val base64Stream = Base64OutputStream(stream, Base64.DEFAULT)
|
||||||
|
update.snapshotBitmap.bitmap.compress(Bitmap.CompressFormat.PNG, 100, base64Stream)
|
||||||
|
snapshot = Snapshot(update.snapshotNode, stream.toString())
|
||||||
|
update.snapshotBitmap.readyForReuse()
|
||||||
|
}
|
||||||
|
|
||||||
|
// it is important this comes after deferred processing since the deferred processing can create
|
||||||
|
// metadata
|
||||||
|
sendMetadata()
|
||||||
|
|
||||||
|
val (serialized, serializationTimeMs) =
|
||||||
|
StopWatch.time {
|
||||||
|
Json.encodeToString(
|
||||||
|
FrameScanEvent.serializer(),
|
||||||
|
FrameScanEvent(update.startTimestamp, nodes, snapshot, frameworkEvents))
|
||||||
|
}
|
||||||
|
|
||||||
|
val (_, sendTimeMs) =
|
||||||
|
StopWatch.time { context.connectionRef.connection?.send(FrameScanEvent.name, serialized) }
|
||||||
|
|
||||||
|
// Note about payload size:
|
||||||
|
// Payload size is an approximation as it assumes all characters
|
||||||
|
// are ASCII encodable, this should be true for most of the payload content.
|
||||||
|
// So, assume each character will at most occupy one byte.
|
||||||
|
val perfStats =
|
||||||
|
PerfStatsEvent(
|
||||||
|
txId = update.startTimestamp,
|
||||||
|
nodesCount = nodes.size,
|
||||||
|
start = update.startTimestamp,
|
||||||
|
traversalMS = update.traversalMS,
|
||||||
|
snapshotMS = update.snapshotMS,
|
||||||
|
queuingMS = queuingTimeMs,
|
||||||
|
deferredComputationMS = deferredComputationEndTimestamp,
|
||||||
|
serializationMS = serializationTimeMs,
|
||||||
|
socketMS = sendTimeMs,
|
||||||
|
payloadSize = serialized.length)
|
||||||
|
|
||||||
|
context.connectionRef.connection?.send(
|
||||||
|
PerfStatsEvent.name, Json.encodeToString(PerfStatsEvent.serializer(), perfStats))
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun sendMetadata() {
|
||||||
|
val metadata = MetadataRegister.extractPendingMetadata()
|
||||||
|
if (metadata.isNotEmpty()) {
|
||||||
|
context.connectionRef.connection?.send(
|
||||||
|
MetadataUpdateEvent.name,
|
||||||
|
Json.encodeToString(MetadataUpdateEvent.serializer(), MetadataUpdateEvent(metadata)))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.facebook.flipper.plugins.uidebugger.core
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
|
import android.util.Log
|
||||||
|
import android.view.Surface
|
||||||
|
import android.view.View
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.LogTag
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.WindowManagerCommon
|
||||||
|
import java.lang.reflect.Field
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is related to root view resolver, it also accesses parts of the global window manager
|
||||||
|
*/
|
||||||
|
class WindowManagerUtility {
|
||||||
|
|
||||||
|
private var initialized = false
|
||||||
|
|
||||||
|
// type is RootViewImpl
|
||||||
|
private var rootsImpls: ArrayList<*>? = null
|
||||||
|
private var mSurfaceField: Field? = null
|
||||||
|
private var mViewField: Field? = null
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the surface for a given root view to allow snapshotting with pixelcopy. In the window
|
||||||
|
* manager there exists 2 arrays that contain similar data
|
||||||
|
* 1. mViews (this is what we track in the observable array in the root view resolver), these are
|
||||||
|
* the root decor views
|
||||||
|
* 2. mRoots - this is an internal class that holds a reference to the decor view as well as other
|
||||||
|
* internal bits (including the surface).
|
||||||
|
*
|
||||||
|
* Therefore we go through the roots and check for a view that matches the target, if it
|
||||||
|
* matches we return the surface. It is possible for us to observe these 2 arrays slightly out
|
||||||
|
* of sync with each other which is why we do this equality matching on the view field
|
||||||
|
*
|
||||||
|
* The reason we do this and not just grab the last view is because sometimes there is a
|
||||||
|
* 'empty' root view at the top we need to ignore. The decision to decide which view to
|
||||||
|
* snapshot is done else where as it needs to be synced with the observation and traversal
|
||||||
|
*/
|
||||||
|
fun surfaceForRootView(rootView: View): Surface? {
|
||||||
|
if (!initialized) {
|
||||||
|
initialize()
|
||||||
|
}
|
||||||
|
|
||||||
|
val roots = rootsImpls ?: return null
|
||||||
|
for (i in roots.size - 1 downTo 0) {
|
||||||
|
val rootViewImpl = roots[i]
|
||||||
|
val view = mViewField?.get(rootViewImpl)
|
||||||
|
if (view == rootView) {
|
||||||
|
return mSurfaceField?.get(rootViewImpl) as? Surface
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressLint("PrivateApi")
|
||||||
|
private fun initialize() {
|
||||||
|
|
||||||
|
try {
|
||||||
|
val (windowManager, windowManagerClass) =
|
||||||
|
WindowManagerCommon.getGlobalWindowManager() ?: return
|
||||||
|
|
||||||
|
val rootsField: Field = windowManagerClass.getDeclaredField(ROOTS_FIELD)
|
||||||
|
rootsField.isAccessible = true
|
||||||
|
rootsImpls = rootsField.get(windowManager) as ArrayList<*>?
|
||||||
|
|
||||||
|
val rootViewImplClass = Class.forName(VIEW_ROOT_IMPL_CLAZZ)
|
||||||
|
mSurfaceField = rootViewImplClass.getDeclaredField(SURFACE_FIELD)
|
||||||
|
mSurfaceField?.isAccessible = true
|
||||||
|
|
||||||
|
mViewField = rootViewImplClass.getDeclaredField(VIEW_FIELD)
|
||||||
|
mViewField?.isAccessible = true
|
||||||
|
|
||||||
|
initialized = true
|
||||||
|
} catch (exception: Exception) {
|
||||||
|
Log.e(LogTag, "Failed to initialize WindowManagerUtility", exception)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
private const val VIEW_ROOT_IMPL_CLAZZ = "android.view.ViewRootImpl"
|
||||||
|
private const val SURFACE_FIELD = "mSurface"
|
||||||
|
private const val VIEW_FIELD = "mView"
|
||||||
|
private const val ROOTS_FIELD = "mRoots"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,6 +10,7 @@ package com.facebook.flipper.plugins.uidebugger.descriptors
|
|||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.core.ActivityTracker
|
||||||
import com.facebook.flipper.plugins.uidebugger.core.ApplicationRef
|
import com.facebook.flipper.plugins.uidebugger.core.ApplicationRef
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
||||||
import com.facebook.flipper.plugins.uidebugger.util.DisplayMetrics
|
import com.facebook.flipper.plugins.uidebugger.util.DisplayMetrics
|
||||||
@@ -18,15 +19,7 @@ object ApplicationRefDescriptor : ChainedDescriptor<ApplicationRef>() {
|
|||||||
|
|
||||||
override fun onGetActiveChild(node: ApplicationRef): Any? {
|
override fun onGetActiveChild(node: ApplicationRef): Any? {
|
||||||
val children = onGetChildren(node)
|
val children = onGetChildren(node)
|
||||||
if (children.isNotEmpty()) {
|
return children.lastOrNull(ApplicationRefDescriptor::isUsefulRoot)
|
||||||
val last = children.last()
|
|
||||||
if (last.javaClass.simpleName.contains("OverlayHandlerView")) {
|
|
||||||
return children.getOrNull(children.size - 2)
|
|
||||||
}
|
|
||||||
return last
|
|
||||||
}
|
|
||||||
|
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onGetBounds(node: ApplicationRef): Bounds = DisplayMetrics.getDisplayBounds()
|
override fun onGetBounds(node: ApplicationRef): Bounds = DisplayMetrics.getDisplayBounds()
|
||||||
@@ -41,26 +34,51 @@ object ApplicationRefDescriptor : ChainedDescriptor<ApplicationRef>() {
|
|||||||
override fun onGetChildren(node: ApplicationRef): List<Any> {
|
override fun onGetChildren(node: ApplicationRef): List<Any> {
|
||||||
val children = mutableListOf<Any>()
|
val children = mutableListOf<Any>()
|
||||||
|
|
||||||
val activeRoots = node.rootsResolver.rootViews()
|
val rootViews = node.rootsResolver.rootViews()
|
||||||
|
|
||||||
val decorViewToActivity: Map<View, Activity> =
|
val decorViewToActivity: Map<View, Activity> = ActivityTracker.decorViewToActivityMap
|
||||||
node.activitiesStack.toList().map { it.window.decorView to it }.toMap()
|
|
||||||
|
|
||||||
for (root in activeRoots) {
|
for (root in rootViews) {
|
||||||
// if there is an activity for this root view use that,
|
// if there is an activity for this root view use that,
|
||||||
// if not just return the mystery floating decor view
|
// if not just return the root view that was added directly to the window manager
|
||||||
val activity = decorViewToActivity[root]
|
val activity = decorViewToActivity[root]
|
||||||
if (activity != null) {
|
if (activity != null) {
|
||||||
children.add(activity)
|
children.add(activity)
|
||||||
} else {
|
} else {
|
||||||
if (root is ViewGroup && root.childCount > 0) {
|
|
||||||
// sometimes there is a root view on top that has no children and we dont want to add
|
|
||||||
// these as they will become active
|
|
||||||
children.add(root)
|
children.add(root)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return children
|
return children
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* arg is either an acitivity if the root view has one other views the root view attached to the
|
||||||
|
* window manager returns boolean indicating whether we are interested in it and whether we should
|
||||||
|
* track, traverse and snapshot it
|
||||||
|
*/
|
||||||
|
fun isUsefulRoot(rootViewOrActivity: Any): Boolean {
|
||||||
|
val className = rootViewOrActivity.javaClass.name
|
||||||
|
|
||||||
|
if (className.contains("mediagallery.ui.MediaGalleryActivity")) {
|
||||||
|
// this activity doesn't contain the content and its actually in the decor view behind it, so
|
||||||
|
// skip it :/
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rootViewOrActivity is Activity) {
|
||||||
|
// in general we want views attached to activities
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
val isFoldableOverlayInfraView = className.contains("OverlayHandlerView")
|
||||||
|
return if (isFoldableOverlayInfraView) {
|
||||||
|
false
|
||||||
|
} else if (rootViewOrActivity is ViewGroup) {
|
||||||
|
// sometimes there is a root view on top that has no children that isn't useful to inspect
|
||||||
|
rootViewOrActivity.childCount > 0
|
||||||
|
} else {
|
||||||
|
false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
package com.facebook.flipper.plugins.uidebugger.descriptors
|
package com.facebook.flipper.plugins.uidebugger.descriptors
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
||||||
@@ -133,15 +132,6 @@ abstract class ChainedDescriptor<T> : NodeDescriptor<T> {
|
|||||||
*/
|
*/
|
||||||
open fun onGetAttributes(node: T, attributeSections: MutableMap<MetadataId, InspectableObject>) {}
|
open fun onGetAttributes(node: T, attributeSections: MutableMap<MetadataId, InspectableObject>) {}
|
||||||
|
|
||||||
/** Get a snapshot of the node. */
|
|
||||||
final override fun getSnapshot(node: T, bitmap: Bitmap?): Bitmap? {
|
|
||||||
return onGetSnapshot(node, bitmap) ?: mSuper?.onGetSnapshot(node, bitmap)
|
|
||||||
}
|
|
||||||
|
|
||||||
open fun onGetSnapshot(node: T, bitmap: Bitmap?): Bitmap? {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
final override fun getInlineAttributes(node: T): Map<String, String> {
|
final override fun getInlineAttributes(node: T): Map<String, String> {
|
||||||
|
|
||||||
val builder = mutableMapOf<String, String>()
|
val builder = mutableMapOf<String, String>()
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ import android.view.Window
|
|||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.viewpager.widget.ViewPager
|
import androidx.viewpager.widget.ViewPager
|
||||||
import com.facebook.flipper.plugins.uidebugger.common.UIDebuggerException
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.core.ApplicationRef
|
import com.facebook.flipper.plugins.uidebugger.core.ApplicationRef
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.UIDebuggerException
|
||||||
|
|
||||||
class DescriptorRegister {
|
class DescriptorRegister {
|
||||||
private val register: MutableMap<Class<*>, NodeDescriptor<*>> = HashMap()
|
private val register: MutableMap<Class<*>, NodeDescriptor<*>> = HashMap()
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ package com.facebook.flipper.plugins.uidebugger.descriptors
|
|||||||
|
|
||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import android.widget.ImageView.ScaleType
|
import android.widget.ImageView.ScaleType
|
||||||
import com.facebook.flipper.plugins.uidebugger.common.EnumMapping
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.common.enumMapping
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.common.enumToInspectableSet
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.Inspectable
|
import com.facebook.flipper.plugins.uidebugger.model.Inspectable
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.EnumMapping
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.enumMapping
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.enumToInspectableSet
|
||||||
|
|
||||||
object ImageViewDescriptor : ChainedDescriptor<ImageView>() {
|
object ImageViewDescriptor : ChainedDescriptor<ImageView>() {
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
package com.facebook.flipper.plugins.uidebugger.descriptors
|
package com.facebook.flipper.plugins.uidebugger.descriptors
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
||||||
@@ -58,13 +57,6 @@ interface NodeDescriptor<T> {
|
|||||||
/** The children this node exposes in the inspector. */
|
/** The children this node exposes in the inspector. */
|
||||||
fun getChildren(node: T): List<Any>
|
fun getChildren(node: T): List<Any>
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a snapshot of the node. Bitmaps are not cheap to create, so accept one as an optional
|
|
||||||
* parameter. If a bitmap is provided, it will be used by the canvas to draw on it. Otherwise, a
|
|
||||||
* bitmap will be created.
|
|
||||||
*/
|
|
||||||
fun getSnapshot(node: T, bitmap: Bitmap?): Bitmap? = null
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If you have overlapping children this indicates which child is active / on top, we will only
|
* If you have overlapping children this indicates which child is active / on top, we will only
|
||||||
* listen to / traverse this child. If return null we assume all children are 'active'
|
* listen to / traverse this child. If return null we assume all children are 'active'
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
package com.facebook.flipper.plugins.uidebugger.descriptors
|
package com.facebook.flipper.plugins.uidebugger.descriptors
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
||||||
@@ -34,6 +33,4 @@ object ObjectDescriptor : NodeDescriptor<Any> {
|
|||||||
override fun getBounds(node: Any): Bounds = Bounds(0, 0, 0, 0)
|
override fun getBounds(node: Any): Bounds = Bounds(0, 0, 0, 0)
|
||||||
|
|
||||||
override fun getTags(node: Any): Set<String> = setOf(BaseTags.Unknown)
|
override fun getTags(node: Any): Set<String> = setOf(BaseTags.Unknown)
|
||||||
|
|
||||||
override fun getSnapshot(node: Any, bitmap: Bitmap?): Bitmap? = null
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
package com.facebook.flipper.plugins.uidebugger.descriptors
|
package com.facebook.flipper.plugins.uidebugger.descriptors
|
||||||
|
|
||||||
import android.graphics.Bitmap
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
import com.facebook.flipper.plugins.uidebugger.model.Bounds
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
import com.facebook.flipper.plugins.uidebugger.model.MetadataId
|
||||||
@@ -42,7 +41,4 @@ object OffsetChildDescriptor : NodeDescriptor<OffsetChild> {
|
|||||||
node.descriptor.getAttributes(node.child)
|
node.descriptor.getAttributes(node.child)
|
||||||
|
|
||||||
override fun getTags(node: OffsetChild): Set<String> = node.descriptor.getTags(node.child)
|
override fun getTags(node: OffsetChild): Set<String> = node.descriptor.getTags(node.child)
|
||||||
|
|
||||||
override fun getSnapshot(node: OffsetChild, bitmap: Bitmap?): Bitmap? =
|
|
||||||
node.descriptor.getSnapshot(node.child, bitmap)
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
package com.facebook.flipper.plugins.uidebugger.descriptors
|
package com.facebook.flipper.plugins.uidebugger.descriptors
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.graphics.Bitmap
|
|
||||||
import android.graphics.Canvas
|
|
||||||
import android.graphics.Rect
|
import android.graphics.Rect
|
||||||
import android.graphics.drawable.ColorDrawable
|
import android.graphics.drawable.ColorDrawable
|
||||||
import android.graphics.drawable.Drawable
|
import android.graphics.drawable.Drawable
|
||||||
@@ -21,8 +19,8 @@ import android.view.ViewGroup
|
|||||||
import android.widget.FrameLayout
|
import android.widget.FrameLayout
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
import androidx.viewpager.widget.ViewPager
|
import androidx.viewpager.widget.ViewPager
|
||||||
import com.facebook.flipper.plugins.uidebugger.common.*
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.*
|
import com.facebook.flipper.plugins.uidebugger.model.*
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.EnumMapping
|
||||||
import com.facebook.flipper.plugins.uidebugger.util.ResourcesUtil
|
import com.facebook.flipper.plugins.uidebugger.util.ResourcesUtil
|
||||||
import java.lang.reflect.Field
|
import java.lang.reflect.Field
|
||||||
import kotlinx.serialization.json.JsonElement
|
import kotlinx.serialization.json.JsonElement
|
||||||
@@ -380,30 +378,6 @@ object ViewDescriptor : ChainedDescriptor<View>() {
|
|||||||
attributes["id"] = value
|
attributes["id"] = value
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onGetSnapshot(node: View, bitmap: Bitmap?): Bitmap? {
|
|
||||||
if (node.width <= 0 || node.height <= 0) {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
var workingBitmap = bitmap
|
|
||||||
|
|
||||||
try {
|
|
||||||
val differentSize =
|
|
||||||
if (bitmap != null) (node.width != bitmap.width || node.height != bitmap.height)
|
|
||||||
else false
|
|
||||||
if (workingBitmap == null || differentSize) {
|
|
||||||
val viewWidth: Int = node.width
|
|
||||||
val viewHeight: Int = node.height
|
|
||||||
|
|
||||||
workingBitmap = BitmapPool.createBitmapWithDefaultConfig(viewWidth, viewHeight)
|
|
||||||
}
|
|
||||||
|
|
||||||
val canvas = Canvas(workingBitmap)
|
|
||||||
node.draw(canvas)
|
|
||||||
} catch (e: OutOfMemoryError) {}
|
|
||||||
|
|
||||||
return workingBitmap
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun fromDrawable(d: Drawable?): Inspectable? {
|
private fun fromDrawable(d: Drawable?): Inspectable? {
|
||||||
return if (d is ColorDrawable) {
|
return if (d is ColorDrawable) {
|
||||||
InspectableValue.Color(Color.fromColor(d.color))
|
InspectableValue.Color(Color.fromColor(d.color))
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import android.os.Build
|
|||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.core.view.ViewGroupCompat
|
import androidx.core.view.ViewGroupCompat
|
||||||
import com.facebook.flipper.plugins.uidebugger.common.EnumMapping
|
|
||||||
import com.facebook.flipper.plugins.uidebugger.core.FragmentTracker
|
import com.facebook.flipper.plugins.uidebugger.core.FragmentTracker
|
||||||
import com.facebook.flipper.plugins.uidebugger.model.*
|
import com.facebook.flipper.plugins.uidebugger.model.*
|
||||||
|
import com.facebook.flipper.plugins.uidebugger.util.EnumMapping
|
||||||
|
|
||||||
object ViewGroupDescriptor : ChainedDescriptor<ViewGroup>() {
|
object ViewGroupDescriptor : ChainedDescriptor<ViewGroup>() {
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ object ViewPagerDescriptor : ChainedDescriptor<ViewPager>() {
|
|||||||
|
|
||||||
override fun onGetActiveChild(node: ViewPager): Any? {
|
override fun onGetActiveChild(node: ViewPager): Any? {
|
||||||
val child = node.getChildAt(node.currentItem)
|
val child = node.getChildAt(node.currentItem)
|
||||||
|
if (child == null) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
val fragment = FragmentTracker.getFragment(child)
|
val fragment = FragmentTracker.getFragment(child)
|
||||||
if (fragment != null) {
|
if (fragment != null) {
|
||||||
return fragment
|
return fragment
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user