Skip to content

Commit

Permalink
#45 - Builds failed with Capacitor
Browse files Browse the repository at this point in the history
  • Loading branch information
kolbasa committed Apr 21, 2023
1 parent fcdd0f8 commit e060198
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 38 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# CHANGELOG

## 4.0.2 - 2023-04-21

- [Fixed] Builds failed with Capacitor ([#45](https://github.com/kolbasa/cordova-plugin-apkupdater/issues/45)).

## 4.0.1 - 2022-11-23

- [Fixed] Installation error with `cordova-common@4.1.0`
- [Fixed] Installation error with `cordova-common@4.1.0` ([#49](https://github.com/kolbasa/cordova-plugin-apkupdater/issues/49)).

## 4.0.0 - 2021-12-10

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Michael Jedich
Copyright (c) 2023 Michael Jedich

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-apkupdater",
"version": "4.0.1",
"version": "4.0.2",
"description": "This plugin allows your Android app to download and install compressed updates without the Google Play Store.",
"cordova": {
"id": "cordova-plugin-apkupdater",
Expand Down
67 changes: 32 additions & 35 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-apkupdater" version="4.0.1">
id="cordova-plugin-apkupdater" version="4.0.2">

<name>Apk Updater</name>
<license>MIT</license>
Expand All @@ -26,8 +26,8 @@

<platform name="android">

<framework src="net.lingala.zip4j:zip4j:2.9.1"/>
<framework src="androidx.core:core:1.6.0"/>
<framework src="net.lingala.zip4j:zip4j:2.11.5"/>
<framework src="androidx.core:core:1.7.0"/>
<framework src="com.scottyab:rootbeer-lib:0.1.0"/>

<config-file target="config.xml" parent="/*">
Expand All @@ -46,53 +46,50 @@
</config-file>

<config-file target="AndroidManifest.xml" parent="application">
<provider
android:name="de.kolbasa.apkupdater.tools.FileProvider"
android:authorities="${applicationId}.apkupdater.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/apkupdater_paths">
</meta-data>
</provider>
<receiver android:name="de.kolbasa.apkupdater.tools.DAReceiver"
android:label="@string/app_name"
android:description="@string/app_name"
<provider android:name="de.kolbasa.apkupdater.tools.FileProvider"
android:authorities="${applicationId}.apkupdater.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/apkupdater_paths"/>
</provider>
<receiver android:name="de.kolbasa.apkupdater.tools.DAReceiver" android:exported="false"
android:permission="android.permission.BIND_DEVICE_ADMIN">
<meta-data
android:name="android.app.device_admin"
android:resource="@xml/device_admin">
</meta-data>
<meta-data android:name="android.app.device_admin" android:resource="@xml/device_admin"/>
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
</intent-filter>
</receiver>
<receiver android:name="de.kolbasa.apkupdater.tools.PackageReplacedReceiver"
android:label="@string/app_name"
android:description="@string/app_name"
android:exported="false">
<receiver android:name="de.kolbasa.apkupdater.tools.PackageReplacedReceiver" android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
</intent-filter>
</receiver>
</config-file>

<!-- source-files -->
<source-file src="src/android/ApkUpdater.java" target-dir="src/de/kolbasa/apkupdater"/>
<source-file src="src/android/downloader/FileDownloader.java" target-dir="src/de/kolbasa/apkupdater/downloader"/>
<source-file src="src/android/downloader/FileDownloader.java"
target-dir="src/de/kolbasa/apkupdater/downloader"/>
<source-file src="src/android/downloader/Progress.java" target-dir="src/de/kolbasa/apkupdater/downloader"/>
<source-file src="src/android/exceptions/ActionInProgressException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/DownloadFailedException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/DownloadInProgressException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/DownloadNotRunningException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/InstallationFailedException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/InvalidPackageException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/PlatformNotSupportedException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/ActionInProgressException.java"
target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/DownloadFailedException.java"
target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/DownloadInProgressException.java"
target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/DownloadNotRunningException.java"
target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/InstallationFailedException.java"
target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/InvalidPackageException.java"
target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/PlatformNotSupportedException.java"
target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/RootException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/UnzipException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/UpdateNotFoundException.java" target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/UnzipException.java"
target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/exceptions/UpdateNotFoundException.java"
target-dir="src/de/kolbasa/apkupdater/exceptions"/>
<source-file src="src/android/tools/ApkInstaller.java" target-dir="src/de/kolbasa/apkupdater/tools"/>
<source-file src="src/android/tools/AppData.java" target-dir="src/de/kolbasa/apkupdater/tools"/>
<source-file src="src/android/tools/ArchiveManager.java" target-dir="src/de/kolbasa/apkupdater/tools"/>
Expand Down

0 comments on commit e060198

Please sign in to comment.