mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
CB-11244: Added remapping for drawables
This commit is contained in:
parent
b1f527e682
commit
2534a3c767
9
bin/templates/cordova/lib/pluginHandlers.js
vendored
9
bin/templates/cordova/lib/pluginHandlers.js
vendored
@ -1,7 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
*
|
|
||||||
* Copyright 2013 Anis Kadri
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
@ -71,10 +68,12 @@ var handlers = {
|
|||||||
},
|
},
|
||||||
'resource-file': {
|
'resource-file': {
|
||||||
install: function (obj, plugin, project, options) {
|
install: function (obj, plugin, project, options) {
|
||||||
copyFile(plugin.dir, obj.src, project.projectDir, path.normalize(obj.target), !!(options && options.link));
|
var dest = path.join('app/src/main', path.normalize(obj.target));
|
||||||
|
copyFile(plugin.dir, obj.src, project.projectDir, dest, !!(options && options.link));
|
||||||
},
|
},
|
||||||
uninstall: function (obj, plugin, project, options) {
|
uninstall: function (obj, plugin, project, options) {
|
||||||
removeFile(project.projectDir, path.normalize(obj.target));
|
var dest = path.join('app/src/main', path.normalize(obj.target));
|
||||||
|
removeFile(dest, path.normalize(obj.target));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'framework': {
|
'framework': {
|
||||||
|
Loading…
Reference in New Issue
Block a user