一行代码实现蒲公英市场APP检查更新!
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
library
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

pgyer-android-app-update

A light-weighted library which can update android app by pgyer app store.

step 1:

add below code in your app AndroidManifest.xml file.

<!-- 蒲公英 apiKey -->
        <meta-data
            android:name="PGYER_API_KEY"
            android:value="your app pgyer apiKey" />
        <!-- 蒲公英 appKey -->
        <meta-data
            android:name="PGYER_APP_KEY"
            android:value="your app pgyer apiKey" />

step 2:

implementation 'com.xsir:PgyerAndroidAppUpdate:<latest-version>'

Lastest version click to here.

step 3:

In MainActivity onCreate() method:

PgyerApi.checkUpdate(this);

LICENSE

Apache2.0