vaenow / cordova-plugin-app-update

App updater for Cordova/PhoneGap
MIT License
299 stars 147 forks source link

Fix build with cordova-android@7 #119

Closed ippeiukai closed 5 years ago

ippeiukai commented 5 years ago

fixes https://github.com/vaenow/cordova-plugin-app-update/issues/108

based on https://github.com/radiocutfm/cordova-plugin-app-update/commit/caed88112076f6e7d09bf52bd8e102d5a89e0af1

The cause of the issue is that cordova-android@7 maps file paths differently if source-file has .java suffix, but that logic fails to pick up directories containing .java files. See: https://github.com/apache/cordova-android/commit/a9e01f43095dfcea35a9d774f1c8a320b8aa6756#diff-4f73e5f70cec312ae82aa7d023e3c88bR39