【发布时间】:2017-03-04 06:14:36
【问题描述】:
Firebase 建议在您只有一个目标时使用它来支持多个环境。不过这是在 swift 上,因为 react-native 中的 appledelegate.m 不使用 swift,所以目标 c 上会是什么。
let filePath = Bundle.main.path(forResource: "MyGoogleService", ofType: "plist")
guard let fileopts = FIROptions.init(contentsOfFile: filePath)
else { assert(false, "Couldn't load config file") }
FIRApp.configure(with: fileopts)
【问题讨论】:
标签: ios objective-c swift react-native