- [Fixed] Internal notes accidentally pushed to npm.
WARNING! Breaking Changes:
- [Changed]
basicAuth
has been replaced byauthorization
, see example of download configuration. (#54).
- [Fixed]
androidx.core
version was lowered for the time being, as otherwise the compileSdkVersion requirements are too high (#52).
- [Fixed] Builds failed with Capacitor (#45).
- [Fixed] Installation error with
cordova-common@4.1.0
(#49).
- [Added] Detailed documentation on how to configure the app as a device owner using a QR code.
- [Fixed]
ownerInstall
did not restart the app correctly on Android versions below 10 (#40).
WARNING! Breaking Changes:
- [Removed] XAPK-Support. I don't have time to support XAPK.
- [Removed] MD5 checksum is no longer offered. It is also no longer needed. The download method automatically checks if the package is valid.
- [Changed] The
getDownloadedUpdate
andinstall
methods now have no configuration parameter.
- [Added] XAPK-Support
- [Added] Device owner status can now be set without an additional plugin.
- [Added] Calling
openInstallSetting()
now waits for user input.
WARNING! Breaking Changes:
- [Removed] Can no longer be installed with Android Legacy Support Libraries.
- [Changed] Calculating the MD5 checksum is now opt-in.
- [Changed] The
getDownloadedUpdate
andinstall
methods now have a configuration object as the first parameter.
- [Fixed] Authorization headers were always sent even if
basicAuth
was not configured (#35).
- [Changed] The download method now returns the server response message and code in case of an error.
- [Changed] rootbeer is now used for the
isDeviceRooted()
method. This should make the result more reliable (#29). - [Fixed] Under certain circumstances, the update dialog did not open. Only with the second call of the
install()
method it showed up. - [Fixed]
canRequestPackageInstalls()
returned an error on Android < 8.
WARNING! Breaking Changes:
- [Changed] Some error messages have been changed. If you parse the message text here, you should check if everything still works.
- [Added] Root installation can now install third-party applications.
- [Fixed] Root installation failed if the update file had spaces in the name.
- [Changed] The error handling for the download method has been improved. The thrown exception for an invalid apk/zip file is now more readable (#28).
- [Added] New installation method for device owner apps (#13).
- [Added] Two helper methods for root installation:
isDeviceRooted()
andrequestRootAccess()
. - [Fixed] Removed
ACCESS_NETWORK_STATE
permission.
- [Added] TypeScript API (#17, #19)
- [Added] Capacitor instructions (#25)
- [Changed] Breaking Change: Download config option
basicAuth.userId
was renamed tobasicAuth.user
- [Changed] Breaking Change: Download result parameter
update
was renamed toname
.
- [Added] Support for HTTP Basic Auth added (#23).
- [Added] Two new functions:
canRequestPackageInstalls()
,openInstallSetting()
- [Fixed] The installation did not work with fullscreen apps (#27).
- [Changed] Breaking Change: Download config option
password
was renamed tozipPassword
.
- [Changed] Removed
line-replace
dependency inbefore-plugin-add
-Hook.
WARNING! Breaking Changes:
- [Changed] The complete plugin has been rewritten and greatly simplified. Details can be found in the revised
README.md
.
- [Changed] Minimum version of
cordova-android
was raised to9.0.0
. This allows the dependencycordova-plugin-androidx
to be omitted (#22). - [Added] There is now an alternative installation option without AndroidX. The legacy lib
android.support.v4
is used as a replacement.cordova plugin add cordova-plugin-apkupdater --variable AndroidXEnabled=false
- [Fixed] The app restart after an update was unreliable, especially with newer Android versions (#15).
- [Fixed] The acceleration of the background download when switching to WiFi did not work on Android 5 & 6 (#11).
- [Fixed] The
plugin.xml
file did not modifyAndroidManifest.xml
correctly. The changes could be overwritten by theconfig.xml
(#9). - [Fixed] The permission
android.permission.INTERNET
is now requested for older devices. - [Fixed] Under certain circumstances not the correct error message was thrown. Instead there was only:
SyntaxError: missing ) after argument list
. The stack of the error message was not escaped correctly.
- [Fixed] The compression node script
create-manifest.js
incorrectly searched recursively for the update file (#8).
-
[Changed] Migrated to the new Android Support Library: AndroidX (#2).
WARNING! Breaking Changes:
The minimum Cordova CLI version is increased from
7.1.0
to8.1.0
.
- [Fixed] In random cases, the method
backgroundDownload
could cause an infinite loop if you lost the internet connection.
- [Fixed] The
reset
method now works even if no manifest has been downloaded before. You can now also run it when a download is in progress.
- [Changed]
README.md
improvements
- [Added]
check
method now also accepts a direct URL to themanifest.json
file (#4). - [Changed]
setObserver
now provides significantly more reliable progress information. Especially if you pause the download and start it again. - [Fixed] Fixed
java.lang.IllegalArgumentException: NetworkCallback was already unregistered
. The error occurred during a cleanup procedure for the methodbackgroundDownload
.
- [Added] published to npm registry
-
[Added] Refactored Javascript API to use Promises (#1).
-
[Fixed] Replaced deprecated network methods in
ApkUpdater.java
(#3).WARNING! Breaking Changes:
The order of the arguments has been changed for the
backgroundDownload
-method.// Version 1.0.0: cordova.plugins.apkupdater.backgroundDownload(success?: function, failure?: function, interval: number) // Version 1.1.0: cordova.plugins.apkupdater.backgroundDownload(interval: number, success?: function, failure?: function)
- The first stable version.