如何测试是Google签名在工作中或不在flutter应用程序上
我与团队一起制作了一个Flutter应用程序。但是,一旦iOS/runner/info.plist更改,Google登录就被打破了。解决此问题后,我想编写一个测试来测试此问题。
重新产生此错误的方法:
- 单击“继续”:
- 选择我的电子邮件:
这些步骤后,应用程序将立即关闭。
我正在尝试使用集成测试来测试它再次破裂,但是我无法在步骤1中的集成测试中单击“继续”按钮,因为那不是我的Flutter应用程序的小部件。颤动的集成测试似乎只能操纵Flutter应用程序中的小部件。
I working on a flutter APP with my team. But once the ios/Runner/Info.plist change, the google sign-in was broken. I want to write a test to test this problem after this problem is solved.
The way to re-produce this error:
- click the "Continue":
- Select my email:
After these steps, the APP will close immediately.
I'm trying to use an integration test to test it from preventing it broken again, But I cannot click the "Continue" button in the integration test in step 1 because that is not my flutter APP's widget. The flutter integration test seems can only manipulate the widget in the flutter APP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iOS/Runner/info.plist更改是什么意思?
您的意思是添加cfbundleurltypes吗?
如果是这种情况,请确保在info.plist和googleservice-info.plist中都相同。
还要尝试使用XCode运行,并在App Craches沟中检查控制台中出现什么错误。
What do you mean by the ios/Runner/Info.plist change?
do you mean after adding the CFBundleURLTypes?
if that is the case then make sure that the googleusercontent is the same in both the Info.plist and GoogleService-Info.plist.
Also try running using Xcode and check what error appears in Console when the app craches.