Latest 0.55.4
Homepage https://github.com/zramals/pod4ReactNative
License MIT
Platforms ios 8.0, requires ARC
Authors

pod4ReactNative将React Native封装到了一个Pod库中,便于项目以模块化方式引入React Native。

  • 由于官方RN并没有pod版本,主要使用npm引入,但是对于iOS组件化工程来说,pod组件十分必要,并不是所有独立工程都需要RN。
  • 故稍作修改,直接使用对应版本RN打pod库,以供组件化使用。
  • pod4ReactNative版本对应RN版本

Latest podspec

{
    "name": "pod4ReactNative",
    "version": "0.55.4",
    "summary": "pod for ReactNative",
    "description": "pod for ReactNative with RN v0.55.4.",
    "homepage": "https://github.com/zramals/pod4ReactNative",
    "license": "MIT",
    "authors": {
        "zramals": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zramals/pod4ReactNative.git",
        "tag": "rn0.55.4"
    },
    "default_subspecs": [
        "yoga",
        "Core",
        "CxxBridge",
        "DevSupport",
        "RCTWebSocket",
        "RCTText",
        "RCTAnimation",
        "RCTImage"
    ],
    "header_dir": "React",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "pod_target_xcconfig": {
        "CLANG_CXX_LANGUAGE_STANDARD": "c++14",
        "OTHER_LDFLAGS": "-ObjC",
        "HEADER_SEARCH_PATHS": "'$(PODS_TARGET_SRCROOT)/rn-source/ReactCommon' '$(PODS_ROOT)/Folly' '$(PODS_ROOT)/boost-for-react-native' '$(PODS_ROOT)/DoubleConversion'"
    },
    "cocoapods_version": ">= 1.2.0",
    "subspecs": [
        {
            "name": "Core",
            "dependencies": {
                "pod4ReactNative/yoga": []
            },
            "source_files": "rn-source/React/**/*.{c,h,m,mm,S,cpp}",
            "ios": {
                "exclude_files": "rn-source/React/**/RCTTV*.*"
            },
            "exclude_files": [
                "rn-source/**/__tests__/*",
                "rn-source/IntegrationTests/*",
                "rn-source/React/DevSupport/*",
                "rn-source/React/Inspector/*",
                "rn-source/ReactCommon/yoga/*",
                "rn-source/React/Cxx*/*",
                "rn-source/React/Fabric/*",
                "rn-source/React/**/RCTTV*.*"
            ],
            "header_dir": "React",
            "frameworks": "JavaScriptCore",
            "libraries": "stdc++"
        },
        {
            "name": "CxxBridge",
            "dependencies": {
                "Folly": [
                    "2016.09.26.00"
                ],
                "pod4ReactNative/Core": [],
                "pod4ReactNative/cxxreact": []
            },
            "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
            "private_header_files": "rn-source/React/Cxx*/*.h",
            "source_files": "rn-source/React/Cxx*/*.{h,m,mm}"
        },
        {
            "name": "DevSupport",
            "dependencies": {
                "pod4ReactNative/Core": [],
                "pod4ReactNative/RCTWebSocket": []
            },
            "source_files": [
                "rn-source/React/DevSupport/*",
                "rn-source/React/Inspector/*"
            ]
        },
        {
            "name": "jschelpers",
            "dependencies": {
                "Folly": [
                    "2016.09.26.00"
                ],
                "pod4ReactNative/PrivateDatabase": []
            },
            "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
            "source_files": "rn-source/ReactCommon/jschelpers/*.{cpp,h}",
            "private_header_files": "rn-source/ReactCommon/jschelpers/*.h",
            "frameworks": "JavaScriptCore"
        },
        {
            "name": "jsinspector",
            "source_files": "rn-source/ReactCommon/jsinspector/*.{cpp,h}",
            "private_header_files": "rn-source/ReactCommon/jsinspector/*.h"
        },
        {
            "name": "PrivateDatabase",
            "source_files": "rn-source/ReactCommon/privatedata/*.{cpp,h}",
            "private_header_files": "rn-source/ReactCommon/privatedata/*.h"
        },
        {
            "name": "cxxreact",
            "dependencies": {
                "pod4ReactNative/jschelpers": [],
                "pod4ReactNative/jsinspector": [],
                "boost-for-react-native": [
                    "1.63.0"
                ],
                "Folly": [
                    "2016.09.26.00"
                ]
            },
            "compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
            "source_files": "rn-source/ReactCommon/cxxreact/*.{cpp,h}",
            "exclude_files": "rn-source/ReactCommon/cxxreact/SampleCxxModule.*",
            "private_header_files": "rn-source/ReactCommon/cxxreact/*.h"
        },
        {
            "name": "ART",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/ART/**/*.{h,m}"
        },
        {
            "name": "RCTActionSheet",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/ActionSheetIOS/*.{h,m}"
        },
        {
            "name": "RCTAnimation",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/NativeAnimation/{Drivers/*,Nodes/*,*}.{h,m}",
            "header_dir": "RCTAnimation"
        },
        {
            "name": "RCTBlob",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/Blob/*.{h,m,mm}",
            "preserve_paths": "rn-source/Libraries/Blob/*.js"
        },
        {
            "name": "RCTCameraRoll",
            "dependencies": {
                "pod4ReactNative/Core": [],
                "pod4ReactNative/RCTImage": []
            },
            "source_files": "rn-source/Libraries/CameraRoll/*.{h,m}"
        },
        {
            "name": "RCTGeolocation",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/Geolocation/*.{h,m}"
        },
        {
            "name": "RCTImage",
            "dependencies": {
                "pod4ReactNative/Core": [],
                "pod4ReactNative/RCTNetwork": []
            },
            "source_files": "rn-source/Libraries/Image/*.{h,m}"
        },
        {
            "name": "RCTNetwork",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/Network/*.{h,m,mm}"
        },
        {
            "name": "RCTPushNotification",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/PushNotificationIOS/*.{h,m}"
        },
        {
            "name": "RCTSettings",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/Settings/*.{h,m}"
        },
        {
            "name": "RCTText",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/Text/**/*.{h,m}"
        },
        {
            "name": "RCTVibration",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/Vibration/*.{h,m}"
        },
        {
            "name": "RCTWebSocket",
            "dependencies": {
                "pod4ReactNative/Core": [],
                "pod4ReactNative/RCTBlob": [],
                "pod4ReactNative/fishhook": []
            },
            "source_files": "rn-source/Libraries/WebSocket/*.{h,m}"
        },
        {
            "name": "fishhook",
            "header_dir": "fishhook",
            "source_files": "rn-source/Libraries/fishhook/*.{h,c}"
        },
        {
            "name": "RCTLinkingIOS",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/LinkingIOS/*.{h,m}"
        },
        {
            "name": "RCTTest",
            "dependencies": {
                "pod4ReactNative/Core": []
            },
            "source_files": "rn-source/Libraries/RCTTest/**/*.{h,m}",
            "frameworks": "XCTest"
        },
        {
            "name": "_ignore_me_subspec_for_linting_",
            "dependencies": {
                "pod4ReactNative/Core": [],
                "pod4ReactNative/CxxBridge": []
            }
        },
        {
            "name": "yoga",
            "header_dir": "yoga",
            "requires_arc": false,
            "compiler_flags": [
                "-fno-omit-frame-pointer",
                "-fexceptions",
                "-Wall",
                "-Werror",
                "-std=c++1y",
                "-fPIC"
            ],
            "source_files": "rn-source/ReactCommon/yoga/yoga/**/*.{cpp,h}"
        }
    ]
}

Pin It on Pinterest

Share This