Commit db377e191848f78637fdb5b68e0a5af7e0c13ce6

Authored by 刘宏哲
1 parent d59ce108

feat(app): update ui

... ... @@ -30,7 +30,7 @@ class PushService with WidgetsBindingObserver {
int _retryAttempt = 0;
Future<void> registerPushToken() async {
if (isOhos()) {
if (!isOhos()) {
return;
}
... ...
... ... @@ -257,12 +257,21 @@ class WebSocketService with WidgetsBindingObserver {
void didChangeAppLifecycleState(AppLifecycleState state) {
switch (state) {
case AppLifecycleState.resumed:
// Do not wait for a background reconnect backoff after returning to
// the foreground. A disconnected socket should be restored at once.
if (_socket == null && !_isConnecting) {
_cancelReconnect();
}
_connectIfNeeded();
return;
case AppLifecycleState.inactive:
return;
case AppLifecycleState.hidden:
case AppLifecycleState.paused:
// Keep the authenticated socket alive in the background. The OS may
// still suspend networking or reclaim the process, in which case the
// existing disconnect handler will reconnect when execution resumes.
return;
case AppLifecycleState.detached:
_cancelReconnect();
_closeSocket();
... ...
{
"app": {
"bundleName": "com.doublefeel.hmapp",
"vendor": "example",
"versionCode": 1000000,
"vendor": "DiDi",
"versionCode": 100,
"versionName": "2.7.0",
"icon": "$media:app_icon",
"label": "$string:app_name"
... ...
... ... @@ -2,13 +2,13 @@
QA
========================
# 构建 QA 包(给测试人员使用)
hvigorw --mode module -p module=entry@qa -p product=qa -p buildMode=release assembleHap
# 构建 QA APP 包(给测试人员使用)
hvigorw --mode project -p product=qa -p buildMode=release assembleApp --analyze=normal --parallel --incremental --daemon
========================
Release
========================
# 构建 Release 包
hvigorw --mode module -p module=entry@release -p product=release -p buildMode=release assembleHap
\ No newline at end of file
# 构建用于上架的 Release APP 包
hvigorw --mode project -p product=release -p buildMode=release assembleApp --analyze=normal --parallel --incremental --daemon
... ...
... ... @@ -2,7 +2,7 @@ name: doublefeel_flutter
description: "A new Flutter project."
publish_to: 'none'
version: 2.7.0+1000000
version: 2.7.0+100
environment:
sdk: ^3.6.2
... ...