This library was designed with full customizability in mind. Whole library is based on three simple terms:
VersionProvider- provides version from some source, for example from your APK, Google Play, your server, or any other third party service. You can choose one of existing VersionProviders, or create your own.
UpdateView- abstraction of the way how we notify user about new version available (recommended update) or about necessary update (forced update). Predefined Activities and dialogs available again.
CheckInterval- how often should we ask VersionProviderfor new data. The under-the-hood strategy is to ask with every Activity.onResume()event if MinIntervalis already reached.
To init ForceUpdate library use this simple builder in your Application:
Library is able to detect crash during last version check and hangs main thread during next app start to avoid any other code execution and allow successful version check. If there is new version available it fires notification automatically.
Copyright 2016 SKOUMAL, s.r.o.
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
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