From ed6872fa10c8c3f06d043c01efc301e6be9efd10 Mon Sep 17 00:00:00 2001 From: Eric Fisher Date: Fri, 22 Jun 2018 11:19:52 -0700 Subject: [PATCH] CB-14163: (android) * Replace usage of ext.postBuildExtras wth usage of cdvPluginPostBuildExtras * Add reference to build-extras.gradle in plugin.xml --- plugin.xml | 1 + src/android/build-extras.gradle | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin.xml b/plugin.xml index 90ff927d4..fa9f83079 100644 --- a/plugin.xml +++ b/plugin.xml @@ -162,6 +162,7 @@ to config.xml in order for the application to find previously stored files. + diff --git a/src/android/build-extras.gradle b/src/android/build-extras.gradle index a0a7844af..516e70d25 100644 --- a/src/android/build-extras.gradle +++ b/src/android/build-extras.gradle @@ -16,7 +16,7 @@ specific language governing permissions and limitations under the License. */ -ext.postBuildExtras = { +cdvPluginPostBuildExtras.add({ def inAssetsDir = file("assets") def outAssetsDir = inAssetsDir def outFile = new File(outAssetsDir, "cdvasset.manifest") @@ -44,4 +44,4 @@ ext.postBuildExtras = { newTask.outputs.file outFile def preBuildTask = tasks["preBuild"] preBuildTask.dependsOn(newTask) -} +})