Merge branch 'main' of github.com:facebook/flipper into universalBuild
This commit is contained in:
@@ -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
|
||||
@@ -99,10 +99,22 @@ object ComponentDataExtractor {
|
||||
val id = getMetadataId(componentName, field.name)
|
||||
val editorValue: EditorValue? = EditorRegistry.read(field.type, field, stateContainer)
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return InspectableObject(stateFields)
|
||||
}
|
||||
|
||||
|
||||
@@ -127,201 +127,69 @@ object LayoutPropExtractor {
|
||||
private val RotationId =
|
||||
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 SizeId = MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "size")
|
||||
private val ViewOutputId =
|
||||
MetadataRegister.register(MetadataRegister.TYPE_ATTRIBUTE, NAMESPACE, "viewOutput")
|
||||
|
||||
fun getInspectableBox(
|
||||
left: YogaValue?,
|
||||
top: YogaValue?,
|
||||
right: YogaValue?,
|
||||
bottom: YogaValue?,
|
||||
horizontal: YogaValue?,
|
||||
vertical: YogaValue?,
|
||||
all: YogaValue?,
|
||||
start: YogaValue?,
|
||||
end: YogaValue?
|
||||
/** constructs an object type containing any inputs that were provided and the resolved values */
|
||||
private fun getInspectableBox(
|
||||
leftInput: Inspectable?,
|
||||
topInput: Inspectable?,
|
||||
rightInput: Inspectable?,
|
||||
bottomInput: Inspectable?,
|
||||
horizontalInput: Inspectable?,
|
||||
verticalInput: Inspectable?,
|
||||
allInput: Inspectable?,
|
||||
startInput: Inspectable?,
|
||||
endInput: Inspectable?,
|
||||
leftResolved: Float?,
|
||||
topResolved: Float?,
|
||||
rightResolved: Float?,
|
||||
bottomResolved: Float?,
|
||||
): InspectableObject {
|
||||
val props = mutableMapOf<MetadataId, Inspectable>()
|
||||
|
||||
var actualLeft = 0
|
||||
var actualTop = 0
|
||||
var actualRight = 0
|
||||
var actualBottom = 0
|
||||
allInput?.let { props[AllId] = it }
|
||||
horizontalInput?.let { props[HorizontalId] = it }
|
||||
verticalInput?.let { props[VerticalId] = it }
|
||||
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 (yogaValue.unit != YogaUnit.UNDEFINED) {
|
||||
if (yogaValue.unit == YogaUnit.POINT || yogaValue.unit == YogaUnit.PERCENT) {
|
||||
val intValue = yogaValue.value.toInt()
|
||||
actualLeft = intValue
|
||||
actualTop = intValue
|
||||
actualRight = intValue
|
||||
actualBottom = intValue
|
||||
if (leftResolved != null &&
|
||||
rightResolved != null &&
|
||||
topResolved != null &&
|
||||
bottomResolved != null) {
|
||||
props[ResolvedId] =
|
||||
InspectableValue.SpaceBox(
|
||||
SpaceBox(
|
||||
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)
|
||||
}
|
||||
|
||||
fun getInspectableBoxRaw(
|
||||
left: Float?,
|
||||
top: Float?,
|
||||
right: Float?,
|
||||
bottom: Float?,
|
||||
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)
|
||||
}
|
||||
private fun toInspectable(yogaValue: YogaValue) =
|
||||
if (yogaValue.unit != YogaUnit.UNDEFINED) {
|
||||
InspectableValue.Text(yogaValue.toString())
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
||||
horizontal?.let { value ->
|
||||
if (!value.isNaN()) {
|
||||
val intValue = value.toInt()
|
||||
actualLeft = intValue
|
||||
actualRight = intValue
|
||||
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)
|
||||
private fun toInspectable(value: Float) =
|
||||
if (value.isNaN()) {
|
||||
null
|
||||
} else {
|
||||
InspectableValue.Number(value)
|
||||
}
|
||||
|
||||
fun getProps(component: DebugComponent): Map<MetadataId, Inspectable> {
|
||||
@@ -366,51 +234,68 @@ object LayoutPropExtractor {
|
||||
|
||||
props[MarginId] =
|
||||
getInspectableBox(
|
||||
layout.getMargin(YogaEdge.LEFT),
|
||||
layout.getMargin(YogaEdge.TOP),
|
||||
layout.getMargin(YogaEdge.RIGHT),
|
||||
layout.getMargin(YogaEdge.BOTTOM),
|
||||
layout.getMargin(YogaEdge.HORIZONTAL),
|
||||
layout.getMargin(YogaEdge.VERTICAL),
|
||||
layout.getMargin(YogaEdge.ALL),
|
||||
layout.getMargin(YogaEdge.START),
|
||||
layout.getMargin(YogaEdge.END))
|
||||
leftInput = toInspectable(layout.getMargin(YogaEdge.LEFT)),
|
||||
topInput = toInspectable(layout.getMargin(YogaEdge.TOP)),
|
||||
rightInput = toInspectable(layout.getMargin(YogaEdge.RIGHT)),
|
||||
bottomInput = toInspectable(layout.getMargin(YogaEdge.BOTTOM)),
|
||||
horizontalInput = toInspectable(layout.getMargin(YogaEdge.HORIZONTAL)),
|
||||
verticalInput = toInspectable(layout.getMargin(YogaEdge.VERTICAL)),
|
||||
allInput = toInspectable(layout.getMargin(YogaEdge.ALL)),
|
||||
startInput = toInspectable(layout.getMargin(YogaEdge.START)),
|
||||
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] =
|
||||
getInspectableBox(
|
||||
layout.getPadding(YogaEdge.LEFT),
|
||||
layout.getPadding(YogaEdge.TOP),
|
||||
layout.getPadding(YogaEdge.RIGHT),
|
||||
layout.getPadding(YogaEdge.BOTTOM),
|
||||
layout.getPadding(YogaEdge.HORIZONTAL),
|
||||
layout.getPadding(YogaEdge.VERTICAL),
|
||||
layout.getPadding(YogaEdge.ALL),
|
||||
layout.getPadding(YogaEdge.START),
|
||||
layout.getPadding(YogaEdge.END))
|
||||
leftInput = toInspectable(layout.getPadding(YogaEdge.LEFT)),
|
||||
topInput = toInspectable(layout.getPadding(YogaEdge.TOP)),
|
||||
rightInput = toInspectable(layout.getPadding(YogaEdge.RIGHT)),
|
||||
bottomInput = toInspectable(layout.getPadding(YogaEdge.BOTTOM)),
|
||||
horizontalInput = toInspectable(layout.getPadding(YogaEdge.HORIZONTAL)),
|
||||
verticalInput = toInspectable(layout.getPadding(YogaEdge.VERTICAL)),
|
||||
allInput = toInspectable(layout.getPadding(YogaEdge.ALL)),
|
||||
startInput = toInspectable(layout.getPadding(YogaEdge.START)),
|
||||
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] =
|
||||
getInspectableBoxRaw(
|
||||
layout.getBorderWidth(YogaEdge.LEFT),
|
||||
layout.getBorderWidth(YogaEdge.TOP),
|
||||
layout.getBorderWidth(YogaEdge.RIGHT),
|
||||
layout.getBorderWidth(YogaEdge.BOTTOM),
|
||||
layout.getBorderWidth(YogaEdge.HORIZONTAL),
|
||||
layout.getBorderWidth(YogaEdge.VERTICAL),
|
||||
layout.getBorderWidth(YogaEdge.ALL),
|
||||
layout.getBorderWidth(YogaEdge.START),
|
||||
layout.getBorderWidth(YogaEdge.END))
|
||||
getInspectableBox(
|
||||
toInspectable(layout.getBorderWidth(YogaEdge.LEFT)),
|
||||
toInspectable(layout.getBorderWidth(YogaEdge.TOP)),
|
||||
toInspectable(layout.getBorderWidth(YogaEdge.RIGHT)),
|
||||
toInspectable(layout.getBorderWidth(YogaEdge.BOTTOM)),
|
||||
toInspectable(layout.getBorderWidth(YogaEdge.HORIZONTAL)),
|
||||
toInspectable(layout.getBorderWidth(YogaEdge.VERTICAL)),
|
||||
toInspectable(layout.getBorderWidth(YogaEdge.ALL)),
|
||||
toInspectable(layout.getBorderWidth(YogaEdge.START)),
|
||||
toInspectable(layout.getBorderWidth(YogaEdge.END)),
|
||||
null, // todo expose layout border from litho
|
||||
null,
|
||||
null,
|
||||
null)
|
||||
|
||||
props[PositionId] =
|
||||
getInspectableBox(
|
||||
layout.getPosition(YogaEdge.LEFT),
|
||||
layout.getPosition(YogaEdge.TOP),
|
||||
layout.getPosition(YogaEdge.RIGHT),
|
||||
layout.getPosition(YogaEdge.BOTTOM),
|
||||
layout.getPosition(YogaEdge.HORIZONTAL),
|
||||
layout.getPosition(YogaEdge.VERTICAL),
|
||||
layout.getPosition(YogaEdge.ALL),
|
||||
layout.getPosition(YogaEdge.START),
|
||||
layout.getPosition(YogaEdge.END))
|
||||
toInspectable(layout.getPosition(YogaEdge.LEFT)),
|
||||
toInspectable(layout.getPosition(YogaEdge.TOP)),
|
||||
toInspectable(layout.getPosition(YogaEdge.RIGHT)),
|
||||
toInspectable(layout.getPosition(YogaEdge.BOTTOM)),
|
||||
toInspectable(layout.getPosition(YogaEdge.HORIZONTAL)),
|
||||
toInspectable(layout.getPosition(YogaEdge.VERTICAL)),
|
||||
toInspectable(layout.getPosition(YogaEdge.ALL)),
|
||||
toInspectable(layout.getPosition(YogaEdge.START)),
|
||||
toInspectable(layout.getPosition(YogaEdge.END)),
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null)
|
||||
|
||||
val viewOutput: MutableMap<MetadataId, Inspectable> = mutableMapOf()
|
||||
viewOutput[HasViewOutputId] = InspectableValue.Boolean(layout.hasViewOutput())
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
* 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.model.InspectableArray
|
||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableObject
|
||||
import com.facebook.flipper.plugins.uidebugger.model.InspectableValue
|
||||
import com.facebook.litho.KStateContainer
|
||||
@@ -16,16 +16,22 @@ import org.junit.Test
|
||||
class KStateContainerExtractionTest {
|
||||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testCanExtractKState() {
|
||||
fun testCanExtractKStateIntoSeparateAttributesByIndex() {
|
||||
|
||||
// this test ensures that our reflection based extraction doesn't break if the KState class
|
||||
// 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 first = MetadataRegister.get("kstate", "0")?.id ?: -1
|
||||
val second = MetadataRegister.get("kstate", "1")?.id ?: -2
|
||||
assertEquals(
|
||||
InspectableObject(
|
||||
mapOf(first to InspectableValue.Text("foo"), second to InspectableValue.Boolean(true))),
|
||||
result,
|
||||
InspectableObject(mapOf(1 to InspectableArray(listOf(InspectableValue.Text("foo"))))))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,12 @@ import com.facebook.flipper.plugins.uidebugger.common.BitmapPool
|
||||
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister
|
||||
import com.facebook.flipper.plugins.uidebugger.model.FrameworkEvent
|
||||
import com.facebook.flipper.plugins.uidebugger.model.FrameworkEventMetadata
|
||||
import com.facebook.flipper.plugins.uidebugger.model.TraversalError
|
||||
import com.facebook.flipper.plugins.uidebugger.observers.TreeObserverFactory
|
||||
import com.facebook.flipper.plugins.uidebugger.observers.TreeObserverManager
|
||||
import com.facebook.flipper.plugins.uidebugger.scheduler.SharedThrottle
|
||||
import com.facebook.flipper.plugins.uidebugger.traversal.PartialLayoutTraversal
|
||||
import kotlinx.serialization.json.Json
|
||||
|
||||
interface ConnectionListener {
|
||||
fun onConnect()
|
||||
@@ -34,8 +36,7 @@ class UIDContext(
|
||||
private val pendingFrameworkEvents: MutableList<FrameworkEvent>
|
||||
) {
|
||||
|
||||
val layoutTraversal: PartialLayoutTraversal =
|
||||
PartialLayoutTraversal(descriptorRegister, observerFactory)
|
||||
val layoutTraversal: PartialLayoutTraversal = PartialLayoutTraversal(this)
|
||||
|
||||
val treeObserverManager = TreeObserverManager(this)
|
||||
val sharedThrottle: SharedThrottle = SharedThrottle()
|
||||
@@ -45,6 +46,11 @@ class UIDContext(
|
||||
synchronized(pendingFrameworkEvents) { pendingFrameworkEvents.add(frameworkEvent) }
|
||||
}
|
||||
|
||||
fun onError(traversalError: TraversalError) {
|
||||
connectionRef.connection?.send(
|
||||
TraversalError.name, Json.encodeToString(TraversalError.serializer(), traversalError))
|
||||
}
|
||||
|
||||
fun extractPendingFrameworkEvents(): List<FrameworkEvent> {
|
||||
synchronized(pendingFrameworkEvents) {
|
||||
val copy = pendingFrameworkEvents.toList()
|
||||
|
||||
@@ -23,6 +23,9 @@ object ViewPagerDescriptor : ChainedDescriptor<ViewPager>() {
|
||||
|
||||
override fun onGetActiveChild(node: ViewPager): Any? {
|
||||
val child = node.getChildAt(node.currentItem)
|
||||
if (child == null) {
|
||||
return null
|
||||
}
|
||||
val fragment = FragmentTracker.getFragment(child)
|
||||
if (fragment != null) {
|
||||
return fragment
|
||||
|
||||
@@ -10,21 +10,21 @@ package com.facebook.flipper.plugins.uidebugger.model
|
||||
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class InitEvent(val rootId: Id, val frameworkEventMetadata: List<FrameworkEventMetadata>) {
|
||||
class InitEvent(val rootId: Id, val frameworkEventMetadata: List<FrameworkEventMetadata>) {
|
||||
companion object {
|
||||
const val name = "init"
|
||||
}
|
||||
}
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class MetadataUpdateEvent(val attributeMetadata: Map<MetadataId, Metadata> = emptyMap()) {
|
||||
class MetadataUpdateEvent(val attributeMetadata: Map<MetadataId, Metadata> = emptyMap()) {
|
||||
companion object {
|
||||
const val name = "metadataUpdate"
|
||||
}
|
||||
}
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class FrameScanEvent(
|
||||
class FrameScanEvent(
|
||||
val frameTime: Long,
|
||||
val nodes: List<Node>,
|
||||
val snapshot: Snapshot?,
|
||||
@@ -35,11 +35,23 @@ data class FrameScanEvent(
|
||||
}
|
||||
}
|
||||
|
||||
@kotlinx.serialization.Serializable data class Snapshot(val nodeId: Id, val data: String)
|
||||
@kotlinx.serialization.Serializable
|
||||
class TraversalError(
|
||||
val nodeName: String,
|
||||
val errorType: String,
|
||||
val errorMessage: String,
|
||||
val stack: String
|
||||
) {
|
||||
companion object {
|
||||
const val name = "traversalError"
|
||||
}
|
||||
}
|
||||
|
||||
@kotlinx.serialization.Serializable class Snapshot(val nodeId: Id, val data: String)
|
||||
|
||||
/** Separate optional performance statistics event */
|
||||
@kotlinx.serialization.Serializable
|
||||
data class PerfStatsEvent(
|
||||
class PerfStatsEvent(
|
||||
val txId: Long,
|
||||
val observerType: String,
|
||||
val nodesCount: Int,
|
||||
|
||||
@@ -10,13 +10,13 @@ package com.facebook.flipper.plugins.uidebugger.model
|
||||
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class FrameworkEventMetadata(
|
||||
class FrameworkEventMetadata(
|
||||
val type: String,
|
||||
val documentation: String,
|
||||
)
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class FrameworkEvent(
|
||||
class FrameworkEvent(
|
||||
val treeId: Id,
|
||||
val nodeId: Id,
|
||||
val type: String,
|
||||
|
||||
@@ -17,7 +17,7 @@ typealias MetadataId = Int
|
||||
* identity, attributes, layout, documentation, or a custom type.
|
||||
*/
|
||||
@kotlinx.serialization.Serializable
|
||||
data class Metadata(
|
||||
class Metadata(
|
||||
val id: MetadataId,
|
||||
val type: String,
|
||||
val namespace: String,
|
||||
|
||||
@@ -22,7 +22,7 @@ data class Bounds(val x: Int, val y: Int, val width: Int, val height: Int) {
|
||||
}
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class SpaceBox(val top: Int, val right: Int, val bottom: Int, val left: Int) {
|
||||
class SpaceBox(val top: Int, val right: Int, val bottom: Int, val left: Int) {
|
||||
companion object {
|
||||
fun fromRect(rect: Rect): SpaceBox {
|
||||
return SpaceBox(rect.top, rect.right, rect.bottom, rect.left)
|
||||
@@ -31,7 +31,7 @@ data class SpaceBox(val top: Int, val right: Int, val bottom: Int, val left: Int
|
||||
}
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class Color(val r: Int, val g: Int, val b: Int, val a: Int) {
|
||||
class Color(val r: Int, val g: Int, val b: Int, val a: Int) {
|
||||
companion object {
|
||||
fun fromColor(color: Int): Color {
|
||||
val alpha: Int = (color shr 24) and 0xFF / 255
|
||||
@@ -48,20 +48,20 @@ data class Color(val r: Int, val g: Int, val b: Int, val a: Int) {
|
||||
}
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class Coordinate(
|
||||
class Coordinate(
|
||||
@Serializable(with = NumberSerializer::class) val x: Number,
|
||||
@Serializable(with = NumberSerializer::class) val y: Number
|
||||
) {}
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class Coordinate3D(
|
||||
class Coordinate3D(
|
||||
@Serializable(with = NumberSerializer::class) val x: Number,
|
||||
@Serializable(with = NumberSerializer::class) val y: Number,
|
||||
@Serializable(with = NumberSerializer::class) val z: Number
|
||||
) {}
|
||||
|
||||
@kotlinx.serialization.Serializable
|
||||
data class Size(
|
||||
class Size(
|
||||
@Serializable(with = NumberSerializer::class) val width: Number,
|
||||
@Serializable(with = NumberSerializer::class) val height: Number
|
||||
) {}
|
||||
|
||||
@@ -25,6 +25,7 @@ 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 java.io.ByteArrayOutputStream
|
||||
import java.util.concurrent.atomic.AtomicInteger
|
||||
@@ -107,7 +108,19 @@ class TreeObserverManager(val context: UIDContext) {
|
||||
|
||||
val workerThreadStartTimestamp = System.currentTimeMillis()
|
||||
|
||||
val nodes = batchedUpdate.updates.flatMap { it.deferredNodes.map { it.value() } }
|
||||
val nodes =
|
||||
try {
|
||||
batchedUpdate.updates.flatMap { it.deferredNodes.map { it.value() } }
|
||||
} catch (exception: Exception) {
|
||||
context.onError(
|
||||
TraversalError(
|
||||
"DeferredProcessing",
|
||||
exception.javaClass.simpleName,
|
||||
exception.message ?: "",
|
||||
exception.stackTraceToString()))
|
||||
return
|
||||
}
|
||||
|
||||
val frameworkEvents = context.extractPendingFrameworkEvents()
|
||||
val snapshotUpdate = batchedUpdate.updates.find { it.snapshot != null }
|
||||
val deferredComputationEndTimestamp = System.currentTimeMillis()
|
||||
|
||||
@@ -9,11 +9,11 @@ package com.facebook.flipper.plugins.uidebugger.traversal
|
||||
|
||||
import android.util.Log
|
||||
import com.facebook.flipper.plugins.uidebugger.LogTag
|
||||
import com.facebook.flipper.plugins.uidebugger.descriptors.DescriptorRegister
|
||||
import com.facebook.flipper.plugins.uidebugger.core.UIDContext
|
||||
import com.facebook.flipper.plugins.uidebugger.descriptors.Id
|
||||
import com.facebook.flipper.plugins.uidebugger.descriptors.NodeDescriptor
|
||||
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.MaybeDeferred
|
||||
|
||||
@@ -24,12 +24,11 @@ import com.facebook.flipper.plugins.uidebugger.util.MaybeDeferred
|
||||
* - The second item are any observable roots discovered.
|
||||
*/
|
||||
class PartialLayoutTraversal(
|
||||
private val descriptorRegister: DescriptorRegister,
|
||||
private val treeObserverFactory: TreeObserverFactory,
|
||||
private val context: UIDContext,
|
||||
) {
|
||||
|
||||
@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?>>> {
|
||||
|
||||
@@ -47,12 +46,13 @@ class PartialLayoutTraversal(
|
||||
|
||||
try {
|
||||
// If we encounter a node that has it own observer, don't traverse
|
||||
if (node != root && treeObserverFactory.hasObserverFor(node)) {
|
||||
if (node != root && context.observerFactory.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)
|
||||
if (shallow.contains(node)) {
|
||||
@@ -82,13 +82,13 @@ class PartialLayoutTraversal(
|
||||
var activeChildId: Id? = null
|
||||
if (activeChild != null) {
|
||||
val activeChildDescriptor =
|
||||
descriptorRegister.descriptorForClassUnsafe(activeChild.javaClass)
|
||||
context.descriptorRegister.descriptorForClassUnsafe(activeChild.javaClass)
|
||||
activeChildId = activeChildDescriptor.getId(activeChild)
|
||||
}
|
||||
|
||||
val childrenIds = mutableListOf<Id>()
|
||||
children.forEach { child ->
|
||||
val childDescriptor = descriptorRegister.descriptorForClassUnsafe(child.javaClass)
|
||||
val childDescriptor = context.descriptorRegister.descriptorForClassUnsafe(child.javaClass)
|
||||
childrenIds.add(childDescriptor.getId(child))
|
||||
stack.add(Pair(child, curId))
|
||||
// If there is an active child then don't traverse it
|
||||
@@ -117,6 +117,12 @@ class PartialLayoutTraversal(
|
||||
})
|
||||
} catch (exception: 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()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import org.robolectric.annotation.LooperMode;
|
||||
|
||||
@LooperMode(LEGACY)
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
@Config(sdk = 16)
|
||||
@Config(sdk = 19)
|
||||
public class InspectorFlipperPluginTest {
|
||||
|
||||
private MockApplicationDescriptor mApplicationDescriptor;
|
||||
|
||||
@@ -11,7 +11,7 @@ buildscript {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.1.0'
|
||||
classpath 'com.android.tools.build:gradle:8.1.2'
|
||||
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.25.3'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
|
||||
classpath "org.jetbrains.kotlin:kotlin-serialization:$KOTLIN_VERSION"
|
||||
|
||||
@@ -13,5 +13,6 @@ react-native/ReactNativeFlipperExample
|
||||
scripts/generate-changelog.js
|
||||
static/index.js
|
||||
static/defaultPlugins/*
|
||||
static/facebook/flipper-server-app-template
|
||||
generated
|
||||
flipper-server/static
|
||||
|
||||
@@ -204,7 +204,7 @@ module.exports = {
|
||||
'no-dupe-class-members': 0,
|
||||
'@typescript-eslint/no-redeclare': 1,
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
1,
|
||||
2,
|
||||
{
|
||||
ignoreRestSiblings: true,
|
||||
varsIgnorePattern: '^_',
|
||||
|
||||
1
desktop/.gitignore
vendored
1
desktop/.gitignore
vendored
@@ -12,3 +12,4 @@ tsc-error.log
|
||||
/flipper-server/static/
|
||||
/static/flipper-server-log*
|
||||
/static/.audit.json
|
||||
/static/icons/*_d.png
|
||||
|
||||
@@ -22,7 +22,6 @@ import {
|
||||
checkPortInUse,
|
||||
getAuthToken,
|
||||
getEnvironmentInfo,
|
||||
hasAuthToken,
|
||||
setupPrefetcher,
|
||||
startFlipperServer,
|
||||
startServer,
|
||||
@@ -112,19 +111,6 @@ async function getFlipperServer(
|
||||
);
|
||||
const keytar: KeytarModule | undefined = await getKeytarModule(staticPath);
|
||||
const port = 52342;
|
||||
/**
|
||||
* Only attempt to use the auth token if one is available. Otherwise,
|
||||
* trying to get the auth token will try to generate one if it does not exist.
|
||||
* At this state, it would be impossible to generate it as our certificates
|
||||
* may not be available yet.
|
||||
*/
|
||||
let token: string | undefined;
|
||||
if (await hasAuthToken()) {
|
||||
token = await getAuthToken();
|
||||
}
|
||||
|
||||
const searchParams = new URLSearchParams(token ? {token} : {});
|
||||
const TCPconnectionURL = new URL(`ws://localhost:${port}?${searchParams}`);
|
||||
|
||||
async function shutdown(): Promise<boolean> {
|
||||
console.info('[flipper-server] Attempt to shutdown.');
|
||||
@@ -173,6 +159,10 @@ async function getFlipperServer(
|
||||
environmentInfo,
|
||||
);
|
||||
|
||||
const token: string = await getAuthToken();
|
||||
const searchParams = new URLSearchParams({token});
|
||||
const TCPconnectionURL = new URL(`ws://localhost:${port}?${searchParams}`);
|
||||
|
||||
const companionEnv = await initCompanionEnv(server);
|
||||
await server.connect();
|
||||
await readyForIncomingConnections(server, companionEnv);
|
||||
|
||||
@@ -19,9 +19,8 @@ test('filled icons get correct local path', () => {
|
||||
name: 'star',
|
||||
variant: 'filled',
|
||||
size: 12,
|
||||
density: 2,
|
||||
});
|
||||
expect(iconPath).toBe(path.join('icons', 'star-filled-12@2x.png'));
|
||||
expect(iconPath).toBe(path.join('icons', 'star-filled_d.png'));
|
||||
});
|
||||
|
||||
test('outline icons get correct local path', () => {
|
||||
@@ -29,9 +28,8 @@ test('outline icons get correct local path', () => {
|
||||
name: 'star',
|
||||
variant: 'outline',
|
||||
size: 12,
|
||||
density: 2,
|
||||
});
|
||||
expect(iconPath).toBe(path.join('icons', 'star-outline-12@2x.png'));
|
||||
expect(iconPath).toBe(path.join('icons', 'star-outline_d.png'));
|
||||
});
|
||||
|
||||
test('filled icons get correct URL', async () => {
|
||||
@@ -39,11 +37,10 @@ test('filled icons get correct URL', async () => {
|
||||
name: 'star',
|
||||
variant: 'filled',
|
||||
size: 12,
|
||||
density: 2,
|
||||
} as const;
|
||||
const iconUrl = getPublicIconUrl(icon);
|
||||
expect(iconUrl).toBe(
|
||||
'https://facebook.com/images/assets_DO_NOT_HARDCODE/facebook_icons/star_filled_12.png', // TODO: support density?
|
||||
'https://facebook.com/images/assets_DO_NOT_HARDCODE/facebook_icons/star_filled_12.png',
|
||||
);
|
||||
const staticPath = getRenderHostInstance().serverConfig.paths.staticPath;
|
||||
const localUrl = getLocalIconUrl(icon, iconUrl, staticPath, false);
|
||||
@@ -51,7 +48,7 @@ test('filled icons get correct URL', async () => {
|
||||
expect(localUrl).toBe(iconUrl);
|
||||
|
||||
// ... let's mock a file
|
||||
const iconPath = path.join(staticPath, 'icons', 'star-filled-12@2x.png');
|
||||
const iconPath = path.join(staticPath, 'icons', 'star-filled_d.png');
|
||||
try {
|
||||
await fs.promises.writeFile(
|
||||
iconPath,
|
||||
|
||||
@@ -23,7 +23,7 @@ let _icons: Icons | undefined;
|
||||
|
||||
function getIconsSync(staticPath: string): Icons {
|
||||
return (
|
||||
_icons! ??
|
||||
_icons ??
|
||||
(_icons = JSON.parse(
|
||||
fs.readFileSync(path.join(staticPath, 'icons.json'), {encoding: 'utf8'}),
|
||||
))
|
||||
@@ -31,10 +31,7 @@ function getIconsSync(staticPath: string): Icons {
|
||||
}
|
||||
|
||||
export function buildLocalIconPath(icon: Icon) {
|
||||
return path.join(
|
||||
'icons',
|
||||
`${icon.name}-${icon.variant}-${icon.size}@${icon.density}x.png`,
|
||||
);
|
||||
return path.join('icons', `${icon.name}-${icon.variant}_d.png`);
|
||||
}
|
||||
|
||||
export function getLocalIconUrl(
|
||||
@@ -68,7 +65,7 @@ function tryRegisterIcon(icon: Icon, url: string, staticPath: string) {
|
||||
if (res.status !== 200) {
|
||||
throw new Error(
|
||||
// eslint-disable-next-line prettier/prettier
|
||||
`Trying to use icon '${entryName}' with size ${size} and density ${icon.density}, however the icon doesn't seem to exists at ${url}: ${res.status}`,
|
||||
`Trying to use icon '${entryName}' with size ${size}, however the icon doesn't seem to exists at ${url}: ${res.status}`,
|
||||
);
|
||||
}
|
||||
if (!existing.includes(size)) {
|
||||
|
||||
19
desktop/doctor/src/fb-stubs/validateSelectedXcodeVersion.tsx
Normal file
19
desktop/doctor/src/fb-stubs/validateSelectedXcodeVersion.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {FlipperDoctor} from 'flipper-common';
|
||||
|
||||
export async function validateSelectedXcodeVersion(
|
||||
_selectedPath: string,
|
||||
): Promise<FlipperDoctor.HealthcheckRunResult> {
|
||||
return {
|
||||
hasProblem: false,
|
||||
message: '',
|
||||
};
|
||||
}
|
||||
@@ -18,6 +18,7 @@ import * as path from 'path';
|
||||
import type {FlipperDoctor} from 'flipper-common';
|
||||
import * as fs_extra from 'fs-extra';
|
||||
import {getIdbInstallationInstructions} from './fb-stubs/idbInstallationInstructions';
|
||||
import {validateSelectedXcodeVersion} from './fb-stubs/validateSelectedXcodeVersion';
|
||||
|
||||
export function getHealthchecks(): FlipperDoctor.Healthchecks {
|
||||
return {
|
||||
@@ -177,25 +178,39 @@ export function getHealthchecks(): FlipperDoctor.Healthchecks {
|
||||
isRequired: true,
|
||||
run: async (_: FlipperDoctor.EnvironmentInfo) => {
|
||||
const result = await tryExecuteCommand('xcode-select -p');
|
||||
const selectXcodeCommands = [
|
||||
{
|
||||
title: 'Select Xcode version',
|
||||
command: `sudo xcode-select -switch <path/to/>Xcode.app`,
|
||||
},
|
||||
];
|
||||
if (result.hasProblem) {
|
||||
return {
|
||||
hasProblem: true,
|
||||
message: `Xcode version is not selected. You can select it using command "sudo xcode-select -switch <path/to/>Xcode.app". ${result.message}.`,
|
||||
message: `Xcode version is not selected. ${result.message}.`,
|
||||
commands: selectXcodeCommands,
|
||||
};
|
||||
}
|
||||
const selectedXcode = result.stdout!.toString().trim();
|
||||
const selectedXcode = result.stdout.toString().trim();
|
||||
if (selectedXcode == '/Library/Developer/CommandLineTools') {
|
||||
return {
|
||||
hasProblem: true,
|
||||
message: `xcode-select has no Xcode selected, You can select it using command "sudo xcode-select -switch <path/to/>Xcode.app".`,
|
||||
message: `xcode-select has no Xcode selected.`,
|
||||
commands: selectXcodeCommands,
|
||||
};
|
||||
}
|
||||
if ((await fs_extra.pathExists(selectedXcode)) == false) {
|
||||
return {
|
||||
hasProblem: true,
|
||||
message: `xcode-select has path of ${selectedXcode}, however this path does not exist on disk. Run "sudo xcode-select --switch" with a valid Xcode.app path.`,
|
||||
message: `xcode-select has path of ${selectedXcode}, however this path does not exist on disk.`,
|
||||
commands: selectXcodeCommands,
|
||||
};
|
||||
}
|
||||
const validatedXcodeVersion =
|
||||
await validateSelectedXcodeVersion(selectedXcode);
|
||||
if (validatedXcodeVersion.hasProblem) {
|
||||
return validatedXcodeVersion;
|
||||
}
|
||||
return {
|
||||
hasProblem: false,
|
||||
message: `xcode-select has path of ${selectedXcode}.`,
|
||||
|
||||
@@ -64,14 +64,28 @@ export namespace FlipperDoctor {
|
||||
) => Promise<HealthcheckRunResult>;
|
||||
};
|
||||
|
||||
export type CliCommand = {
|
||||
title: string;
|
||||
command: string;
|
||||
};
|
||||
|
||||
export type HealthcheckRunResult = {
|
||||
hasProblem: boolean;
|
||||
message: string;
|
||||
/**
|
||||
* Commands to show to mitigate a problem or hint for more information
|
||||
*/
|
||||
commands?: CliCommand[];
|
||||
};
|
||||
|
||||
export type SubprocessHealtcheckRunResult = HealthcheckRunResult & {
|
||||
stdout?: string;
|
||||
};
|
||||
export type SubprocessHealtcheckRunResult =
|
||||
| (HealthcheckRunResult & {
|
||||
hasProblem: true;
|
||||
})
|
||||
| (HealthcheckRunResult & {
|
||||
hasProblem: false;
|
||||
stdout: string;
|
||||
});
|
||||
|
||||
export type CategoryResult = [
|
||||
string,
|
||||
@@ -99,6 +113,7 @@ export namespace FlipperDoctor {
|
||||
status: HealthcheckStatus;
|
||||
isAcknowledged?: boolean;
|
||||
message?: string;
|
||||
commands?: CliCommand[];
|
||||
};
|
||||
|
||||
export type HealthcheckReportItem = {
|
||||
|
||||
@@ -380,6 +380,7 @@ export type FlipperServerCommands = {
|
||||
shutdown: () => Promise<void>;
|
||||
'is-logged-in': () => Promise<boolean>;
|
||||
'environment-info': () => Promise<EnvironmentInfo>;
|
||||
'move-pwa': () => Promise<void>;
|
||||
};
|
||||
|
||||
export type GraphResponse = {
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
"immer": "^9.0.18",
|
||||
"js-base64": "^3.7.5",
|
||||
"p-map": "^4.0.0",
|
||||
"reconnecting-websocket": "^4.4.0",
|
||||
"semver": "^7.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -20,7 +20,6 @@ type Icon = {
|
||||
name: string;
|
||||
variant: 'outline' | 'filled';
|
||||
size: number;
|
||||
density: number;
|
||||
};
|
||||
|
||||
interface NotificationAction {
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
"@types/react-color": "2.13.5",
|
||||
"@types/react-dom": "^17.0.13",
|
||||
"dayjs": "^1.11.10",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"flipper-common": "0.0.0",
|
||||
"flipper-plugin-core": "0.0.0",
|
||||
"immer": "^9.0.18",
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import React, {CSSProperties, forwardRef} from 'react';
|
||||
import React from 'react';
|
||||
import styled from '@emotion/styled';
|
||||
import {
|
||||
normalizePadding,
|
||||
|
||||
@@ -16,7 +16,6 @@ import React, {
|
||||
} from 'react';
|
||||
import {Badge, Tooltip, Typography, Button} from 'antd';
|
||||
import styled from '@emotion/styled';
|
||||
import {keyframes} from '@emotion/css';
|
||||
import reactElementToJSXString from 'react-element-to-jsx-string';
|
||||
import {SandyPluginContext} from '../plugin/PluginContext';
|
||||
import {createState} from 'flipper-plugin-core';
|
||||
|
||||
@@ -29,6 +29,7 @@ export const Panel: React.FC<{
|
||||
pad?: Spacing;
|
||||
gap?: Spacing;
|
||||
extraActions?: React.ReactElement | null;
|
||||
className?: string;
|
||||
}> = (props) => {
|
||||
const [collapsed, setCollapsed] = useLocalStorageState(
|
||||
`panel:${props.title}:collapsed`,
|
||||
@@ -45,6 +46,7 @@ export const Panel: React.FC<{
|
||||
return (
|
||||
<TrackingScope scope={props.title}>
|
||||
<StyledCollapse
|
||||
className={props.className}
|
||||
bordered={false}
|
||||
activeKey={collapsed ? undefined : props.title}
|
||||
onChange={toggle}>
|
||||
|
||||
@@ -13,7 +13,7 @@ import {theme} from '../theme';
|
||||
|
||||
const containerStyle = css`
|
||||
flex: 1 0 auto;
|
||||
background-color: ${theme.white};
|
||||
background-color: ${theme.backgroundDefault};
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-radius: ${theme.borderRadius};
|
||||
|
||||
@@ -32,6 +32,37 @@ export const PowerSearchEnumTerm: React.FC<PowerSearchEnumTermProps> = ({
|
||||
}));
|
||||
}, [enumLabels]);
|
||||
|
||||
const width = React.useMemo(() => {
|
||||
const minWidth = 100;
|
||||
const maxWidth = 250;
|
||||
|
||||
let longestOptionLabelWidth = 0;
|
||||
Object.values(enumLabels).forEach((label) => {
|
||||
if (label.length > longestOptionLabelWidth) {
|
||||
longestOptionLabelWidth = label.length;
|
||||
}
|
||||
});
|
||||
|
||||
// 10px is an emperically calculated multiplier.
|
||||
// A proper way to do it is to actually render the longest option and measure it
|
||||
// But then we will have to render top X longest options,
|
||||
// because, potentially, a string with X reeeeally wide chars could be longer than X+1 narrow chars.
|
||||
// Anyhow, it seems too complex for such a simple thing a detecting the width of the select and teh dropdown
|
||||
// (the dropdown is the one that actually matters from the UX perspective - users use it to select the option they want)
|
||||
// Feel to increase 10 to any other value if necessary (11?)
|
||||
const longestOptionsLabelWidthPx = longestOptionLabelWidth * 10;
|
||||
|
||||
if (longestOptionsLabelWidthPx < minWidth) {
|
||||
return minWidth;
|
||||
}
|
||||
|
||||
if (longestOptionsLabelWidthPx > maxWidth) {
|
||||
return maxWidth;
|
||||
}
|
||||
|
||||
return longestOptionsLabelWidthPx;
|
||||
}, [enumLabels]);
|
||||
|
||||
const selectValueRef = React.useRef<string>();
|
||||
if (defaultValue && !selectValueRef.current) {
|
||||
selectValueRef.current = defaultValue;
|
||||
@@ -41,7 +72,7 @@ export const PowerSearchEnumTerm: React.FC<PowerSearchEnumTermProps> = ({
|
||||
return (
|
||||
<Select
|
||||
autoFocus
|
||||
style={{width: 100}}
|
||||
style={{width}}
|
||||
placeholder="..."
|
||||
options={options}
|
||||
defaultOpen
|
||||
|
||||
@@ -35,6 +35,12 @@ export {PowerSearchConfig, OperatorConfig, FieldConfig, SearchExpressionTerm};
|
||||
|
||||
type PowerSearchProps = {
|
||||
config: PowerSearchConfig;
|
||||
// Overrides current state of the component with every update.
|
||||
// It is the way to continuously force update the state of the power search externally.
|
||||
// Takes prefernce over `initialSearchExpression`.
|
||||
searchExpression?: SearchExpressionTerm[];
|
||||
// Component stays uncontrolled and maintains its own state.
|
||||
// It is respected only on initialization and any future updates are ignored.
|
||||
initialSearchExpression?: SearchExpressionTerm[];
|
||||
onSearchExpressionChange: (searchExpression: SearchExpressionTerm[]) => void;
|
||||
onConfirmUnknownOption?: (
|
||||
@@ -46,13 +52,22 @@ const OPTION_KEY_DELIMITER = '::';
|
||||
|
||||
export const PowerSearch: React.FC<PowerSearchProps> = ({
|
||||
config,
|
||||
searchExpression: searchExpressionExternal,
|
||||
initialSearchExpression,
|
||||
onSearchExpressionChange,
|
||||
onConfirmUnknownOption,
|
||||
}) => {
|
||||
const [searchExpression, setSearchExpression] = React.useState<
|
||||
IncompleteSearchExpressionTerm[]
|
||||
>(initialSearchExpression ?? []);
|
||||
>(() => {
|
||||
if (searchExpressionExternal) {
|
||||
return searchExpressionExternal;
|
||||
}
|
||||
if (initialSearchExpression) {
|
||||
return initialSearchExpression;
|
||||
}
|
||||
return [];
|
||||
});
|
||||
|
||||
const onSearchExpressionChangeLatestRef = useLatestRef(
|
||||
onSearchExpressionChange,
|
||||
@@ -69,6 +84,12 @@ export const PowerSearch: React.FC<PowerSearchProps> = ({
|
||||
}
|
||||
}, [searchExpression, onSearchExpressionChangeLatestRef]);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (searchExpressionExternal) {
|
||||
setSearchExpression(searchExpressionExternal);
|
||||
}
|
||||
}, [searchExpressionExternal]);
|
||||
|
||||
const options: PowerSearchTermFinderOptionGroup[] = React.useMemo(() => {
|
||||
const groupedOptions: PowerSearchTermFinderOptionGroup[] = [];
|
||||
|
||||
@@ -112,7 +133,7 @@ export const PowerSearch: React.FC<PowerSearchProps> = ({
|
||||
{searchExpression.map((searchTerm, i) => {
|
||||
return (
|
||||
<PowerSearchTerm
|
||||
key={i.toString()}
|
||||
key={JSON.stringify(searchTerm)}
|
||||
searchTerm={searchTerm}
|
||||
onCancel={() => {
|
||||
setSearchExpression((prevSearchExpression) => {
|
||||
|
||||
@@ -25,7 +25,7 @@ export function Tabs({
|
||||
localStorageKeyOverride, //set this if you need to have a dynamic number of tabs, you do *not* need to namespace with the plugin name
|
||||
...baseProps
|
||||
}: {grow?: boolean; localStorageKeyOverride?: string} & TabsProps) {
|
||||
const keys: string[] = [];
|
||||
const keys: string[] = baseProps.items?.map((item) => item.key) ?? [];
|
||||
const keyedChildren = Children.map(children, (child: any, idx) => {
|
||||
if (!child || typeof child !== 'object') {
|
||||
return;
|
||||
@@ -53,13 +53,13 @@ export function Tabs({
|
||||
});
|
||||
|
||||
const [activeTab, setActiveTab] = useLocalStorageState<string | undefined>(
|
||||
'Tabs:' + localStorageKeyOverride ?? keys.join(','),
|
||||
'Tabs:' + (localStorageKeyOverride ?? keys.join(',')),
|
||||
undefined,
|
||||
);
|
||||
|
||||
return (
|
||||
<AntdTabs
|
||||
activeKey={activeTab}
|
||||
activeKey={keys.includes(activeTab ?? 'not-there') ? activeTab : keys[0]}
|
||||
onChange={(key) => {
|
||||
setActiveTab(key);
|
||||
}}
|
||||
|
||||
@@ -673,7 +673,7 @@ export function DataTable<T extends object>(
|
||||
<Searchbar gap>
|
||||
<PowerSearch
|
||||
config={powerSearchConfig}
|
||||
initialSearchExpression={searchExpression}
|
||||
searchExpression={searchExpression}
|
||||
onSearchExpressionChange={(newSearchExpression) => {
|
||||
tableManager.setSearchExpression(newSearchExpression);
|
||||
}}
|
||||
|
||||
@@ -7,15 +7,9 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import React, {CSSProperties, forwardRef} from 'react';
|
||||
import React, {CSSProperties} from 'react';
|
||||
import styled from '@emotion/styled';
|
||||
import {
|
||||
normalizePadding,
|
||||
normalizeSpace,
|
||||
PaddingProps,
|
||||
Spacing,
|
||||
theme,
|
||||
} from './theme';
|
||||
import {normalizeSpace, Spacing, theme} from './theme';
|
||||
|
||||
import type {SplitLayoutProps} from './Layout';
|
||||
import {Sidebar} from './Sidebar';
|
||||
|
||||
@@ -74,7 +74,7 @@ export function initializeRenderHost(
|
||||
},
|
||||
getLocalIconUrl(icon, url) {
|
||||
if (isProduction()) {
|
||||
return `icons/${icon.name}-${icon.variant}-${icon.size}@${icon.density}x.png`;
|
||||
return `icons/${icon.name}-${icon.variant}_d.png`;
|
||||
}
|
||||
return url;
|
||||
},
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user