From 3b6b8092f2b92406ac809d29b57786d0064e6bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20=C3=87a=C4=9Fatay=20Tulun?= Date: Fri, 11 Oct 2019 22:36:37 +0300 Subject: [PATCH] Fixed build error when using NativeScript 6. --- lib/postinstall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/postinstall.js b/lib/postinstall.js index 34c3c00..7df05c2 100644 --- a/lib/postinstall.js +++ b/lib/postinstall.js @@ -19,7 +19,7 @@ function writeFabricServiceGradleHook() { var path = require("path"); var fs = require("fs"); module.exports = function($logger, $projectData, hookArgs) { - var platform = hookArgs.platform.toLowerCase(); + var platform = (hookArgs.platform || hookArgs.prepareData.platform).toLowerCase(); function updateAppGradleScript(file) { var appBuildGradleContent = fs.readFileSync(file).toString();