flutter_xupdate는 Android 전용 앱 업데이트를 관리하는 라이브러리인 XUpdate를 통합한 Flutter 플러그인입니다. 안드로이드 기기에서 원활한 앱 내 업데이트 기능을 제공하며, 조용한 백그라운드 업데이트와 사용자에 의해 트리거되는 업데이트 프롬프트를 모두 지원합니다. 이 플러그인은 새 버전 확인, 업데이트 다운로드, 설치 과정을 간소화하여 앱 전체 재시작 없이도 가능하게 합니다. 업데이트 중 방해 요소를 최소화함으로써 사용자 경험을 향상시키도록 설계되었습니다.
사용 사례
앱 내 업데이트 알림
침묵적인 백그라운드 업데이트
수동 업데이트 트리거
버전 호환성 검사
진행 상황 추적 업데이트
주요 기능
안드로이드 전용 지원
백그라운드 업데이트 다운로드
사용자 정의 가능한 업데이트 대화 상자
진행 상황 모니터링
XUpdate 라이브러리와의 통합
적합한 대상
Android 중심의 Flutter 앱
자주 업데이트가 필요한 앱
XUpdate를 사용하는 개발자
경량 업데이트 로직이 필요한 프로젝트
고려 사항
안드로이드 플랫폼에 제한됨
업데이트 서버에 대한 수동 구성이 필요합니다
iOS 지원 없음
XUpdate 백엔드 설정에 따라 다릅니다
사용자 정의 UI 조정이 필요할 수 있습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
flutter_xupdate
A Flutter plugin for XUpdate -- Android Update Library。See the use Chinese Document for details。
【Note】: When you use the command flutter build apk to make a release package, If you use the topImageRes property, you must configure shrinkResources to false, otherwise the pop-up window will display an exception!
Property value
Initialization
Name
Type
Default
Description
debug
bool
false
Whether Output log
isPost
bool
false
Whether use post request
isPostJson
bool
false
Whether post request upload json format
timeout
int
20000(ms)
Request response timeout
isWifiOnly
bool
true
Whether update only under WiFi
isAutoMode
bool
false
Whether to turn on automatic mode
supportSilentInstall
bool
false
Whether to support silent installation requires that the device has root permission
enableRetry
bool
false
In the process of downloading, if you click Cancel, whether the pop-up window for retrying to switch the download mode will pop up
retryContent
String
''
Try the prompt content of the prompt pop-up window again
retryUrl
String
''
Retrying prompt pop-up URL to jump after clicking
params
Map
/
Public parameters to be set
CheckUpdate
Name
Type
Default
Description
url
String
/
URL of version check
params
Map
/
Parameters
supportBackgroundUpdate
bool
false
Whether to support background updates
isAutoMode
bool
false
Whether to turn on automatic mode
isCustomParse
bool
false
Is it a custom resolution protocol
themeColor
String
''
Apply pop-up theme color
topImageRes
String
''
The name of the top picture resource in the pop-up window
buttonTextColor
String
''
The color of the button text
widthRatio
double
/
Proportion of version update Prompter width to screen
heightRatio
double
/
Proportion of version update Prompter height to screen
overrideGlobalRetryStrategy
bool
false
Whether to override the global retry policy
enableRetry
bool
false
In the process of downloading, if you click Cancel, whether the pop-up window for retrying to switch the download mode will pop up
retryContent
String
''
Try the prompt content of the prompt pop-up window again