Flutter/라이브러리

Flutter Upgrader package 사용해보기 - 3

smileDeveloper 2023. 2. 13. 09:47
반응형
SMALL

https://pub.dev/packages/upgrader Upgrader Package 총 정리 시간입니다.

 

upgrader | Flutter Package

Flutter package for prompting users to upgrade when there is a newer version of the app in the store.

pub.dev

1. appcast.xml 파일을 깃허브에 업로드

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
    <channel>
        <title>Hanoi</title>
        <!-- Android -->
        <item>
            <title>v4.0.0</title>
            <description>업데이트가 되었습니다!</description>
            <pubDate>Fri, 21 Oct 2022 12:00:00 +0000</pubDate>
            <enclosure url="https://play.google.com/store/apps/details?id=com.develop.hanoi" sparkle:version="1.0.4" sparkle:os="android" />
        </item>
        <item>
            <title>v4.0.0</title>
            <description>업데이트가 되었습니다!</description>
            <pubDate>Tue, 13 Oct 2022 12:00:00 +0000</pubDate>
            <enclosure url="https://play.google.com/store/apps/details?id=com.develop.hanoi" sparkle:version="1.0.3" sparkle:os="android" />	
        </item>	

    </channel>	
</rss>

2. 앱 시작 후 가장 처음 페이지에 UpgraderAlert로 감싸고 upgrader 설정하기

3. Upgrader 메세지 설정하기

4. 업그레이드 될 때마다 appcast 버전 바꿔주기

 

appcast.xml에 대한 자세한 내용은

https://sparkle-project.org/documentation/ 을 참고해주세요.

 

Documentation - Sparkle: open source software update framework for macOS

Basic Setup If your app already has an older version of Sparkle or you wish to migrate to Sparkle 2, please see upgrading from previous versions. Sandboxed applications are only supported in Sparkle 2. 1. Add the Sparkle framework to your project If you us

sparkle-project.org

 

궁금하신 내용이 있으시다면 댓글로 남겨주세요!

 

감사합니다!!

반응형
LIST