snipking / cordova-hot-code-push

Plugin add hot update ability to cordova app
MIT License
35 stars 15 forks source link

Doesn't build for Android with gradle 7.4.2 #14

Open glennra opened 1 year ago

glennra commented 1 year ago
Problem

Plugin doesn't build for android with gradle 7.4

Steps to reproduce

Run cordova build android

error:

Cause of issue

https://github.com/snipking/cordova-hot-code-push/blob/c8f73fc0606f27ad13d5c78d696d9f91a51d5d29/src/android/chcp.gradle#L12

The compile directive is deprecated and should be implementation.

System info

Cordova Packages:

cli: 11.0.0
    common: 4.0.2
    create: 4.0.0
    lib: 11.0.0
        common: 4.0.2
        fetch: 3.0.1
        serve: 4.0.0

Project Installed Platforms:

android: 11.0.0
browser: 6.0.0
ios: 6.2.0
eltonbor commented 1 year ago

As a quick fix: go to platforms/android/cordova-hot-code-push-plugin-renew/app-chcp.gradle and change compile to implementation