zeking_app_upgrade 0.0.4 copy "zeking_app_upgrade: ^0.0.4" to clipboard
zeking_app_upgrade: ^0.0.4 copied to clipboard

Flutter App版本更新

zekingappupgrade #

1.介绍 #

功能:版本更新

本插件不提供默认的 版本更新弹框 样式,为了更自由吧,弹框可以自己实现。 只提供关键的功能方法

2. 具体功能: #



    IOS:   1. 获取 app名,包名,版本名称,版本号
           2. 通过 appid 获取 appStroe 上已发布 app 的 版本信息(版本名称,更新说明,下载链接)
           3. 通过 appId 跳转到 appStore
           4. 通过 服务器上的 plist 文件获取企业级 app 的最新版本名 (使用范围:企业级App,ipa和plist放在公司服务器上)
           5. 下载 获取公司服务器上企业级app 的ipa                (使用范围:企业级App,ipa和plist放在公司服务器上)

    Android:
            1. 获取 app名,包名,版本名称,版本号
            2. 获取保存下载的apk所在的路径
            3. 安装Apk

3. 使用注意 #

使用:如果你需要支持Android平台,在./android/app/src/main/AndroidManifest.xml文件中配置provider,代码如下:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.zeking.zekingappupgrade_example">
    <application
        android:name="io.flutter.app.FlutterApplication"
        android:icon="@mipmap/ic_launcher"
        android:label="flutter_upgrade_example">
				...
        <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="com.zeking.zekingappupgrade_example.fileprovider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                tools:replace="android:resource"
                android:resource="@xml/file_paths" />
        </provider>
    </application>
</manifest>

provider中authorities的值为当前App的包名,和顶部的package值保持一致。

0
likes
15
pub points
0%
popularity

Publisher

unverified uploader

Flutter App版本更新

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on zeking_app_upgrade