mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Resolve issue with plugin target-dir="app*" subdirs (#572)
(subdirectories) such as "appco", with unit tests to verify Needed for @katzer plugins that use de/appplant subdirectory, for example: * cordova-plugin-local-notifications * cordova-plugin-badge * cordova-plugin-background-mode Also needed for cordova-plugin-inappbrowser Co-authored-by: Christopher J. Brody <chris.brody@gmail.com> Co-authored-by: Julio César <jcesarmobile@gmail.com> Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
This commit is contained in:
+1
-1
@@ -295,7 +295,7 @@ function generateAttributeError (attribute, element, id) {
|
||||
function getInstallDestination (obj) {
|
||||
var APP_MAIN_PREFIX = 'app/src/main';
|
||||
|
||||
if (obj.targetDir.includes('app')) {
|
||||
if (obj.targetDir.startsWith('app')) {
|
||||
// If any source file is using the new app directory structure,
|
||||
// don't penalize it
|
||||
return path.join(obj.targetDir, path.basename(obj.src));
|
||||
|
||||
Reference in New Issue
Block a user