GithubHelp home page GithubHelp logo

salvatoretrimarchi / appupdatechecker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mitmel/appupdatechecker

0.0 2.0 0.0 144 KB

A simple Android app update checking tool

Home Page: http://mobile.mit.edu/

License: Other

Python 35.45% Java 64.55%

appupdatechecker's Introduction

App Update Checker

A simple non-Market way to keep your app updated.

All it requires to set up is a URL pointing to a JSON document describing your app's changes.

It will compare its version code (from the manifest file) to the versions listed in the JSON. If there are newer version(s), it will provide the changelog between the installed version and the latest version. The updater checks against the versionCode, but displays the versionName.

While you can create your own OnAppUpdateListener to listen for new updates, OnUpdateDialog is a handy implementation that displays a Dialog with a bulleted list and a button to do the upgrade.

The JSON format looks like this:

{
    "package": {
        "downloadUrl": "http://coolapp.example.com/myapp.apk"
    },

    "0.2": {
    "versionCode": 2,
    "changelog": ["New automatic update checker", "Improved template interactions"]
    },
    "0.1": {
    "versionCode": 1,
    "changelog": ["fixed crash"]
    }
}

Publishing steps

  1. point the app updater to a URL you control (in the strings.xml file)
  2. upload apk to server
  3. generate the json document that the app updater looks at which contains information about the release. There's a python script that can generate such documents in the app updater's source.
  4. publish the json document at the URL in step 1
  5. every time the app starts, it'll check to see if there's an update to that json file. It has a backoff threshhold that's set compile time for the app updater so it won't check it if it already checked it within N minutes.

License

AppUpdateChecker
Copyright (C) 2011 MIT Mobile Experience Lab

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

appupdatechecker's People

Contributors

rbanker avatar xxv avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.