[英]How do I specify the version of react-native-onesignal in my podfile?
I'm following this guide on how to set up OneSignal with React Native.我正在关注如何使用 React Native 设置 OneSignal 的本指南。 In the section where it says In your Podfile, add the notification service extension...
, it says to add the following to my Podfile:在它说In your Podfile, add the notification service extension...
的部分中,它说将以下内容添加到我的 Podfile 中:
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignal', '>= 2.9.3', '< 3.0'
end
I think this is outdated though, because my version of react-native-onesignal
is 3.7.2.我认为这已经过时了,因为我的react-native-onesignal
版本是 3.7.2。 How should I change this line in my Podfile to accommodate this newer version?我应该如何更改我的 Podfile 中的这一行以适应这个新版本?
You haven't specified which version range you think is appropriate instead, but if this Pod follows the common convention where breaking changes only happen when the major version changes, then you would use the constraints您尚未指定您认为合适的版本范围,但如果此 Pod 遵循仅在主要版本更改时发生重大更改的通用约定,那么您将使用约束
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignal', '>= 3.7.2', '< 4.0'
end
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.