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

[MOBILE-3980] Add enableChannelCreation method #533

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Conversation

Ulrico972
Copy link
Contributor

@Ulrico972 Ulrico972 commented Nov 9, 2023

What do these changes do?

Add an enableChannelCreation method and mark it as deprecated along with the isChannelCreationDelayEnabled config.

Why are these changes necessary?

To not block people that would still use the isChannelCreationDelayEnabled config.

How did you verify these changes?

Tested on iOS.
Android is working fine at APK.On my side, something with my environment is blocking for now, about CMake in the NDK...

Verification Screenshots:

Anything else a reviewer should know?

@Ulrico972 Ulrico972 self-assigned this Nov 9, 2023
@Ulrico972 Ulrico972 requested a review from rlepinski as a code owner November 9, 2023 15:45
channelEnableChannelCreation:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject) {
NSError *error;
[AirshipReactNative.shared channelEnableChannelCreationAndReturnError:&error];
Copy link
Contributor Author

@Ulrico972 Ulrico972 Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this... I think it's right to add that "AndReturnError" thing but I don't fully understand how it would work lol.
Also, I'm wondering why we still have this class in objective C when we have those methods tagged with @objc in the Swift class? Any idea @rlepinski ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need the obj-c for c++ bindings with the react plugin. This looks correct to me, thats standard objc bindings for errors

@Ulrico972 Ulrico972 merged commit a8dcfdf into main Nov 13, 2023
2 checks passed
@Ulrico972 Ulrico972 deleted the MOBILE-3980 branch November 13, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants