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

Remove ObjC headers instructions #1172

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,6 @@ To run the tests:

_Note:_ Running the `UI` and `IntegrationTests` schemes follows the same steps as above, just replacing the `UnitTests` scheme name in step 3.

## Importing Header Files

### Importing a Swift module into Obj-C

To import a Braintree framework written in **Swift** into an Objective-C file, use the following syntax:
```objc
#if __has_include(<Braintree/Braintree-Swift.h>) // CocoaPods
#import <Braintree/Braintree-Swift.h>

#elif __has_include("Braintree-Swift.h") // CocoaPods for ReactNative
/* Use quoted style when importing Swift headers for ReactNative support
* See https://github.com/braintree/braintree_ios/issues/671
*/
#import "Braintree-Swift.h"

#elif SWIFT_PACKAGE // SPM
/* Use @import for SPM support
* See https://forums.swift.org/t/using-a-swift-package-in-a-mixed-swift-and-objective-c-project/27348
*/
@import BraintreeCore;

#else // Carthage
#import <BraintreeCore/BraintreeCore-Swift.h>
#endif
```

## Releasing

Refer to the `ios/releases` section in the internal SDK Knowledge Repo.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ Here are a few ways to get in touch:

## Help

* Read the headers
* [Read the Braintree docs](https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/ios/v5)
* [Check out the reference docs](https://braintree.github.io/braintree_ios/)
* Find a bug? [Open an issue](https://github.com/braintree/braintree_ios/issues)
Expand Down
Loading