简体   繁体   English

如何在我的 podfile 中指定 react-native-onesignal 的版本?

[英]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.

相关问题 如何使用react-native-onesignal发送本地推送通知 - How to send local push notification with react-native-onesignal 如何让 react-native-onesignal 在所有设备上都能正常工作? - How could I make react-native-onesignal work on all devices? 如何从 react-native-onesignal 获取 pushToken? - How to get pushToken from react-native-onesignal? 使用react native在iOS上安装react-native-onesignal时出错 - Error installing react-native-onesignal on iOS using react native 可用于Firebase的Google Analytics(分析)使用react-native-onesignal - Is react-native-onesignal avaiable for Google Analytics for Firebase react-native-onesignal在不打开通知的情况下接收推送通知 - react-native-onesignal receive push notification without opening notification 无法确定任务 ':react-native-onesignal:compileDebugAidl' 的依赖关系 - Could not determine the dependencies of task ':react-native-onesignal:compileDebugAidl' 包 react-native-onesignal 已被忽略,因为它包含无效的配置 - Package react-native-onesignal has been ignored because it contains invalid configuration react-native-onesignal无法获得类型为org.gradle.api.Project的根项目“ weather”的未知属性“ android” - react-native-onesignal Could not get unknown property 'android' for root project 'weather' of type org.gradle.api.Project 安装 react-native-onesignal 时无法解决:com.google.android.gms:play-services-ads-identifier:12.0.1 - Failed to resolve: com.google.android.gms:play-services-ads-identifier:12.0.1 when installing react-native-onesignal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM