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

Add support for setting channelID afterwards #68

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

onevcat
Copy link
Member

@onevcat onevcat commented Jan 24, 2024

This can improve the usability of LineSDK, giving it a way to set channelID after the Awake is called. Fixes #67

@onevcat
Copy link
Member Author

onevcat commented Jan 24, 2024

@k0uhe1D Please check it and let me know if this can be a possible fix for your case. Thanks!

Copy link

@k0uhe1D k0uhe1D left a comment

Choose a reason for hiding this comment

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

Yes, with this correction, there is no problem with my modifications.
Thank you for the quick fix!


if (!string.IsNullOrEmpty(channelID)) {
SetupSDK();
}
Copy link

Choose a reason for hiding this comment

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

Suggested change
}
} else {
Debug.LogWarning("LINE SDK channel ID is not set.");
}

Copy link
Member Author

@onevcat onevcat Jan 24, 2024

Choose a reason for hiding this comment

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

I considered to add an else here but decided not to do that finally. If we treat "leaving empty and calling Setup manually" as a possible and normal case, we should not produce a warning for this case.

Instead, an SDK error and/or the exception in Setup method will play the role of telling something goes wrong.

Copy link

@daviscdev daviscdev left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks!

@onevcat onevcat merged commit da5e0e2 into master Jan 25, 2024
1 check passed
@onevcat onevcat deleted the fix/postponable-setup branch January 25, 2024 03:11
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.

Request to Change the Timing of SetupSDK() Call in LineSDK.
3 participants