All Projects → hugeterry → Updatefun

hugeterry / Updatefun

Licence: apache-2.0
Android APP update library./android app自动检测更新库

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Updatefun

Appimageupdate
AppImageUpdate lets you update AppImages in a decentral way using information embedded in the AppImage itself.
Stars: ✭ 261 (-40%)
Mutual labels:  update
Rauc
Safe and secure software updates for embedded Linux
Stars: ✭ 360 (-17.24%)
Mutual labels:  update
Githubupdates
Cocoa framework to install application updates from GitHub releases.
Stars: ✭ 393 (-9.66%)
Mutual labels:  update
Onova
Unopinionated auto-update framework for desktop applications
Stars: ✭ 280 (-35.63%)
Mutual labels:  update
Pyupdater
Pyinstaller auto-update library
Stars: ✭ 300 (-31.03%)
Mutual labels:  update
Westore
更好的小程序项目架构
Stars: ✭ 3,897 (+795.86%)
Mutual labels:  update
amazon-workmail-lambda-templates
Serverless applications for Amazon WorkMail.
Stars: ✭ 17 (-96.09%)
Mutual labels:  update
Django Bulk Update
Bulk update using one query over Django ORM
Stars: ✭ 404 (-7.13%)
Mutual labels:  update
Appupdate
🚀 Android 版本更新 🚀 a library for android version update 🚀
Stars: ✭ 3,375 (+675.86%)
Mutual labels:  update
Siren
Siren checks a user's currently installed version of your iOS app against the version that is currently available in the App Store.
Stars: ✭ 3,892 (+794.71%)
Mutual labels:  update
Gandalf
Easily notify a user with a simple alert, inform them of an optional update, and in dire situations block the user from accessing older versions of the application completely.
Stars: ✭ 286 (-34.25%)
Mutual labels:  update
Electron Simple Updater
Simple way to enable update for the electron application
Stars: ✭ 292 (-32.87%)
Mutual labels:  update
React Query
⚛️ Hooks for fetching, caching and updating asynchronous data in React
Stars: ✭ 24,427 (+5515.4%)
Mutual labels:  update
Routeros Scripts
a collection of scripts for Mikrotik RouterOS
Stars: ✭ 270 (-37.93%)
Mutual labels:  update
Self update
Self updates for rust executables
Stars: ✭ 394 (-9.43%)
Mutual labels:  update
Graphql To Mongodb
Allows for generic run-time generation of filter types for existing graphql types and parsing client requests to mongodb find queries
Stars: ✭ 261 (-40%)
Mutual labels:  update
Go Github Selfupdate
Binary self-update mechanism for Go commands using GitHub
Stars: ✭ 370 (-14.94%)
Mutual labels:  update
Appupdater
🚀 AppUpdater一个专注于App更新,一键傻瓜式集成App版本升级的轻量开源库。(无需担心通知栏适配;无需担心重复点击下载;无需担心App安装等问题;这些AppUpdater都已帮您处理好。)
Stars: ✭ 406 (-6.67%)
Mutual labels:  update
Nupdate
A comfortable update solution for .NET-applications.
Stars: ✭ 394 (-9.43%)
Mutual labels:  update
Pipupgrade
🗽 Like yarn outdated/upgrade, but for pip. Upgrade all your pip packages and automate your Python Dependency Management.
Stars: ✭ 391 (-10.11%)
Mutual labels:  update

UpdateFun更新库

UpdateFun是一个fir.im的Android更新下载模块,在fir.im上上传自己的APP后接入该库即可实现检查更新下载

License Download

用法

Step 1

在gradle文件中加入下面的依赖:

dependencies {
    compile 'cn.hugeterry.updatefun:updatefun:2.0.6'
}

如果你使用Maven,那么加入下面的依赖:

<dependency>
  <groupId>cn.hugeterry.updatefun</groupId>
  <artifactId>updatefun</artifactId>
  <version>2.0.6</version>
  <type>pom</type>
</dependency>

Step 2

在主界面activity的onCreate()中加上以下语句进行初始化(请放在setContentView()方法的后面):

UpdateKey.API_TOKEN = "写上你fir.im账号的API_TOKEN";
UpdateKey.APP_ID = "写上APP的应用ID";
//下载方式:
//UpdateKey.DialogOrNotification=UpdateKey.WITH_DIALOG;通过Dialog来进行下载
//UpdateKey.DialogOrNotification=UpdateKey.WITH_NOTIFITION;通过通知栏来进行下载(默认)
UpdateFunGO.init(this);

Step 3

在主界面Activity中加上以下语句:

 @Override
    protected void onResume() {
        super.onResume();
        UpdateFunGO.onResume(this);
    }
  @Override
     protected void onStop() {
         super.onStop();
         UpdateFunGO.onStop(this);
     }

Step 4 (2.0.6以上版本必须加,兼容Android 7.0+,非Android 7.0的手机也要加)

在app文件夹下的build.gradle里添加:

android {
    defaultConfig {
        ...
        resValue "string", "updatefun_provider_file_authorities", "<packageName>.fileprovider"
    }
}

<packageName>为你的应用包名

大功告成,好好享用吧

其他功能

手动更新(需1.8.4以上版本)案例代码

请确保在你的app已添加依赖(见用法Step 1), 并已经写上你fir.im账号的API_TOKEN以及APP的应用ID(见用法Step 2)

在需要手动更新时调用:

UpdateFunGO.manualStart(this);

并在手动更新的当前Activity添加上以下代码:

 @Override
    protected void onResume() {
        super.onResume();
        UpdateFunGO.onResume(this);
    }
  @Override
     protected void onStop() {
         super.onStop();
         UpdateFunGO.onStop(this);
     }

即可实现手动更新

Demo

http://fir.im/updatefun

LICENSE

Copyright 2016 HugeTerry.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].