我们已经使用 Flutter 在与 GMS 集成的 Google Play 中发布了多个应用程序。现在,我们想将现有的应用程序发布到华为应用程序库。目前,该应用程序已与 GMS 和 HMS 集成以进行推送通知,并且运行良好。为了区分应用程序,我们使用与 Google Play 商店不同的签名为 App Gallery 签名。
经过一番研究,我们发现app bundle id 需要以.huawei 后缀结尾才能与IAP 集成。我们不使用任何 IAP,但将来可能会使用。但是,我们在构建应用程序时遇到了一些问题,因为 GMS 的 bundle id 没有使用 .huawei 后缀。我们更喜欢为 Google Play 和 App Gallery 组合相同的代码库。
我的问题是,是否有必要为华为应用程序库中发布的应用程序包 ID 包含 .huawei 后缀。如果是,使用 Flutter 为 Google Play 和 App Gallery 部署应用程序的最佳方法是什么。
当我尝试在 Codemagic 上测试构建时,测试失败。我尝试更改 widget_test.dart 代码,问题仍未解决。如何解决这个问题?
这是codemagic抛出的错误。
== QA ==
== flutter test --machine ==
{"protocolVersion":"0.1.1","runnerVersion":null,"pid":949,"type":"start","time":0}
{"suite":{"id":0,"platform":"vm","path":"/Users/builder/clone/test/widget_test.dart"},"type":"suite","time":1}
{"test":{"id":1,"name":"loading /Users/builder/clone/test/widget_test.dart","suiteID":0,"groupIDs":[],"metadata":{"skip":false,"skipReason":null},"line":null,"column":null,"url":null},"type":"testStart","time":3}
{"count":1,"type":"allSuites","time":7}
{"testID":1,"result":"success","skipped":false,"hidden":true,"type":"testDone","time":15317}
{"group":{"id":2,"suiteID":0,"parentID":null,"name":null,"metadata":{"skip":false,"skipReason":null},"testCount":1,"line":null,"column":null,"url":null},"type":"group","time":15341}
{"test":{"id":3,"name":"Counter increments smoke test","suiteID":0,"groupIDs":[2],"metadata":{"skip":false,"skipReason":null},"line":107,"column":3,"url":"package:flutter_test/src/widget_tester.dart","root_line":14,"root_column":3,"root_url":"file:///Users/builder/clone/test/widget_test.dart"},"type":"testStart","time":15343}
{"testID":3,"messageType":"print","message":"??? EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ?????????????????????????????????????????????????????\nThe following TestFailure object was thrown running a test:\n Expected: exactly one matching node in the widget tree\n Actual: ?:<zero widgets with text \"0\" (ignoring offstage widgets)>\n Which: means none were found but one was expected\n\nWhen the exception was thrown, this was the stack:\n#4 main.<anonymous closure> (file:///Users/builder/clone/test/widget_test.dart:19:5)\n<asynchronous suspension>\n#5 …Run Code Online (Sandbox Code Playgroud) I'm working on a little project and I implemented a button in that with a hover and CSS properties.
But the thing is after clicking on it, it reverts back to the normal basic button. i.e. it loses all it's CSS properties.
I tried to see if the JavaScript is a reason for this change but I failed to find the reason behind it.
HTML
<button class="btn6">1 MB</button>
Run Code Online (Sandbox Code Playgroud)
CSS Button:
.btn6, .btn6:link, .btn6:visited {
padding: 15px;
border: 3px solid #333; …Run Code Online (Sandbox Code Playgroud)