-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RCTDeprecation cocoapods integration (#41416)
Summary: Pull Request resolved: #41416 Changelog: [Internal] cocoapods boilerplate to integrate the first RCTFoundation library. decided to split this up so we can reference it easily in the future when adding new libs Reviewed By: cipolleschi Differential Revision: D51184321 fbshipit-source-id: 28696f0a8e43e0bcd24a37956823fb544ecd84be
- Loading branch information
1 parent
c06beae
commit e7500df
Showing
6 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
// Dummy file to make RCTDeprecation a valid framework. |
25 changes: 25 additions & 0 deletions
25
...ges/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# 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. | ||
|
||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json"))) | ||
version = package['version'] | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "RCTDeprecation" | ||
s.version = version | ||
s.author = "Meta Platforms, Inc. and its affiliates" | ||
s.license = package["license"] | ||
s.homepage = "https://reactnative.dev/" | ||
s.source = { :git => 'https://github.com/facebook/react-native.git', :tag => 'v#{version}' } | ||
s.summary = "Macros for marking APIs as deprecated" | ||
s.source_files = ["Exported/*.h", "RCTDeprecation.m"] | ||
s.pod_target_xcconfig = { | ||
"DEFINES_MODULE" => "YES", | ||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20" | ||
} | ||
s.compiler_flags = "-Wnullable-to-nonnull-conversion -Wnullability-completeness" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters