Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate the remaining Podspec #41359

Closed
wants to merge 7 commits into from

Commits on Nov 8, 2023

  1. Add helper function to create header_search_path

    Summary:
    Last week I helped macOS to work with static framework.
    When multiple platforms are specified, frameworks are build in two variants, the iOS and macOS one.
    
    This break all the HEADER_SEARCH_PATHS as now we have to properly specify the base folder from which the search path is generated.
    See also [this PR](microsoft#1967) where I manually make MacOS work with `use_framewroks!`
    
    In order to make the infra scalable and avoid a maintenance nightmare for macOS and future platform, we are introducing this function that should factor out the platforms from the generation of header search paths.
    
    ## Changelog:
    [Internal] - Add helper function to create header_search_path
    
    Differential Revision: D51026356
    
    fbshipit-source-id: b9690e9f9699b1e4a914295a8a1303966e045c9e
    Riccardo Cipolleschi authored and facebook-github-bot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    cbb3f34 View commit details
    Browse the repository at this point in the history
  2. Add helper function to add dependencies (facebook#41354)

    Summary:
    Pull Request resolved: facebook#41354
    
    In order to make the infra scalable and avoid a maintenance nightmare for macOS and future platform, we are introducing this function that automate adding a dependency to a podspec and it generates the required search paths.
    
    ## Context
    Last week I helped macOS to work with static framework.
    When multiple platforms are specified, frameworks are build in two variants, the iOS and macOS one.
    
    This break all the HEADER_SEARCH_PATHS as now we have to properly specify the base folder from which the search path is generated.
    See also [this PR](microsoft#1967) where I manually make MacOS work with `use_framewroks!`
    
    ## Changelog:
    [Internal] - Add helper function to create header_search_path
    
    Differential Revision: https://www.internalfb.com/diff/D51027343?entry_point=27
    
    fbshipit-source-id: dca4f3fb1fd9e15f7f3523b82870c71eb28c8e10
    Riccardo Cipolleschi authored and facebook-github-bot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    4c38f2e View commit details
    Browse the repository at this point in the history
  3. Add add_dependency function to ract_native_pods and Migrate React-RCT…

    …AppDelegate (facebook#41355)
    
    Summary:
    Pull Request resolved: facebook#41355
    
    This change expose a new API to react_native_pod to add dependencies that automatically configure their search paths when using frameworksa and with multiple Apple platforms.
    It also migrates React-RCTAppDelegate to this new mechanism to test that it works.
    
    ## Context
    Last week I helped macOS to work with static framework.
    When multiple platforms are specified, frameworks are build in two variants, the iOS and macOS one.
    
    This break all the HEADER_SEARCH_PATHS as now we have to properly specify the base folder from which the search path is generated.
    See also [this PR](microsoft#1967) where I manually make MacOS work with `use_framewroks!`
    
    ## Changelog:
    [Internal] - Add helper function to create header_search_path
    
    Differential Revision: https://internalfb.com/D51029484
    
    fbshipit-source-id: ff39bb51a0b76c5139dc7f174ea49df7b2d54df4
    Riccardo Cipolleschi authored and facebook-github-bot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    6ba9589 View commit details
    Browse the repository at this point in the history
  4. Cleanup React-Core

    Summary:
    React-Core does not depends on any bit of ReactCommon, React-RCTFabric or React-NativeModuleApple, so I'm cleaning that up.
    
    ## Context
    Last week I helped macOS to work with static framework.
    When multiple platforms are specified, frameworks are build in two variants, the iOS and macOS one.
    
    This break all the HEADER_SEARCH_PATHS as now we have to properly specify the base folder from which the search path is generated.
    See also [this PR](microsoft#1967) where I manually make MacOS work with `use_framewroks!`
    
    ## Changelog:
    [Internal] - Add helper function to create header_search_path
    
    Differential Revision: D51030115
    
    fbshipit-source-id: c770d922cb43fcbd147a8ed3d3b394f8edc95f13
    Riccardo Cipolleschi authored and facebook-github-bot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    23fb040 View commit details
    Browse the repository at this point in the history
  5. Migrate React-RCTBlob to add_dependency

    Summary:
    This change migrate React-RCTBlob to the new add_dependency to improve its compatibility with macOS and to remove some maintenance burden.
    
    ## Context
    Last week I helped macOS to work with static framework.
    When multiple platforms are specified, frameworks are build in two variants, the iOS and macOS one.
    
    This break all the HEADER_SEARCH_PATHS as now we have to properly specify the base folder from which the search path is generated.
    See also [this PR](microsoft#1967) where I manually make MacOS work with `use_framewroks!`
    
    ## Changelog:
    [Internal] - Add helper function to create header_search_path
    
    Differential Revision: D51030365
    
    fbshipit-source-id: a13c5acd65807847a2c9f780b65f9be5e3a034f7
    Riccardo Cipolleschi authored and facebook-github-bot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    1620881 View commit details
    Browse the repository at this point in the history
  6. Expose function to create Header Search Paths and migrate Ruby Code

    Summary:
    This change expose a missing function to create Header Search Paths when a podspec can't depend on another one explicitly.
    This also migrate the ruby code to this new function.
    
    ## Context
    Last week I helped macOS to work with static framework.
    When multiple platforms are specified, frameworks are build in two variants, the iOS and macOS one.
    
    This break all the HEADER_SEARCH_PATHS as now we have to properly specify the base folder from which the search path is generated.
    See also [this PR](microsoft#1967) where I manually make MacOS work with `use_framewroks!`
    
    ## Changelog:
    [Internal] - Add helper function to create header_search_path
    
    Differential Revision: D51068390
    
    fbshipit-source-id: c8fcc4d83ce6b8ac10563b0a62a8fe6fd3f799ba
    Riccardo Cipolleschi authored and facebook-github-bot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    21f00f8 View commit details
    Browse the repository at this point in the history
  7. Migrate the remaining Podspec (facebook#41359)

    Summary:
    Pull Request resolved: facebook#41359
    
    This change migrates the remaining podspecs to the new functions, so we do not depend on hardcoded values anymore and we can scale the solution to other platforms.
    
    ## Context
    Last week I helped macOS to work with static framework.
    When multiple platforms are specified, frameworks are build in two variants, the iOS and macOS one.
    
    This break all the HEADER_SEARCH_PATHS as now we have to properly specify the base folder from which the search path is generated.
    See also [this PR](microsoft#1967) where I manually make MacOS work with `use_framewroks!`
    
    ## Changelog:
    [Internal] - Add helper function to create header_search_path
    
    Reviewed By: shwanton
    
    Differential Revision: D51068403
    
    fbshipit-source-id: ca69263265404fc3fe2f5ca7a0f7e31f8ec54568
    cipolleschi authored and facebook-github-bot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    37cddcc View commit details
    Browse the repository at this point in the history