[jira] [Created] (CB-13961) Cordova failed to execute aapt bug

2018-03-08 Thread Marc (JIRA)
Marc created CB-13961:
-

 Summary: Cordova failed to execute aapt bug
 Key: CB-13961
 URL: https://issues.apache.org/jira/browse/CB-13961
 Project: Apache Cordova
  Issue Type: Bug
  Components: cordova-android
Affects Versions: cordova-android-7.0.0
 Environment: Windows 10

Android target 26

Plugins list:

cordova-plugin-admobpro 2.31.1 "AdMob Plugin Pro"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-extension 1.5.4 "Cordova Plugin Extension"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-http 1.1.0 "SSL Pinning"
cordova-plugin-vibration 3.0.1 "Vibration"
cordova-plugin-whitelist 1.3.3 "Whitelist"
Reporter: Marc
Assignee: Joe Bowser


I am recieveing an error on ":app:processArm64DebugResources" when building for 
android 7.0.0. The error message states "failed to execute aapt" during the 
build. This error is strange as my cordova project was working before, and then 
suddenly got this error, it is not affecting any other cordova projects when I 
build them.

I am new to cordova so if I have missed any information please ask.
{code:java}
$ cordova run android --device

You have been opted out of telemetry. To change this, run: cordova telemetry on.
Android Studio project detected

You have been opted out of telemetry. To change this, run: cordova telemetry on.

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-27,android-26,android-19
Gradle: installed C:\Program Files\Android\Android 
Studio\gradle\gradle-4.1\bin\gradle

Requirements check results for browser:
(node:12804) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 1): TypeError: Cannot read property 'forEach' of undefined
Android Studio project detected
ANDROID_HOME=C:\Users\user\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_45
studio
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now 
published.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' 
instead.
null
The Task.leftShift(Closure) method has been deprecated and is scheduled to be 
removed in Gradle 5.0. Please use Task.doLast(Action) instead.
    at 
build_c29bnu6ebta03cjhtpc9mt2gp.run(C:\Users\user\Documents\Coding\Project 
Grid\grid\platforms\android\app\build.gradle:145)
org.xwalk:xwalk_core_library:23+
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:prepareLintJar UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:platformAttrExtractor UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:javaPreCompileDebug UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug 
UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preArm64DebugBuild UP-TO-DATE
:app:compileArm64DebugAidl UP-TO-DATE
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileArm64DebugRenderscript UP-TO-DATE
:app:checkArm64DebugManifest UP-TO-DATE
:app:generateArm64DebugBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:app:mergeArm64DebugShaders UP-TO-DATE
:app:compileArm64DebugShaders UP-TO-DATE
:app:generateArm64DebugAssets UP-TO-DATE
:app:mergeArm64DebugAssets UP-TO-DATE
:app:createXwalkCommandLineFileArm64Debug
:app:generateArm64DebugResValues UP-TO-DATE
:app:generateArm64DebugResources UP-TO-DATE
:app:mergeArm64DebugResources UP-TO-DATE
:app:createArm64DebugCompatibleScreenManifests UP-TO-DATE
:app:processArm64DebugManifest UP-TO-DATE
:app:splitsDiscoveryTaskArm64Debug UP-TO-DATE
:app:processArm64DebugResourcesC:\Users\user\.gradle\caches\transforms-1\files-1.1\xwalk_core_library-23.53.589.4.aar\e854897d765996e71d496a6d28135238\res\values\dimens_03.xml:14:5-51:
 AAPT: error: resource android:attr/fontVariationSettings not found.

C:\Users\user\.gradle\caches\transforms-1\files-1.1\xwalk_core_library-23.53.589.4.aar\e854897d765996e71d496a6d28135238\res\values\dimens_03.xml:14:5-51:
 AAPT: error: resource android:attr/ttcIndex not found.

C:\Users\user\Documents\Coding\Project 

[jira] [Commented] (CB-13960) Typescript: FileWriter write argument definition shall include type string

2018-03-08 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16391626#comment-16391626
 ] 

ASF GitHub Bot commented on CB-13960:
-

vldmr-bus opened a new pull request #231: CB-13960: fix FileWriter.write 
argument type definition for typescript
URL: https://github.com/apache/cordova-plugin-file/pull/231
 
 
   Fix FileWriter.write argument type definition for typescript
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Typescript: FileWriter write argument definition shall include type string
> --
>
> Key: CB-13960
> URL: https://issues.apache.org/jira/browse/CB-13960
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file
>Reporter: Vladimir
>Priority: Major
>
> www\FileWriter.js has the following annotation on write method:
> {code:java}
> @param data text or blob to be writte{code}
> But types\index.d.ts has the following type definition:
> {code:java}
> /**
>  * Write the supplied data to the file at position.
>  * @param {Blob} data The blob to write.
>  */
> write(data: Blob): void;{code}
> Shall be as follows:
> {code:java}
> /**
>  * Write the supplied data to the file at position.
>  * @param {Blob|string} data The blob to write.
>  */
> write(data: Blob|string): void;{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-13960) Typescript: FileWriter write argument definition shall include type string

2018-03-08 Thread Vladimir (JIRA)
Vladimir created CB-13960:
-

 Summary: Typescript: FileWriter write argument definition shall 
include type string
 Key: CB-13960
 URL: https://issues.apache.org/jira/browse/CB-13960
 Project: Apache Cordova
  Issue Type: Bug
  Components: cordova-plugin-file
Reporter: Vladimir


www\FileWriter.js has the following annotation on write method:
{code:java}
@param data text or blob to be writte{code}
But types\index.d.ts has the following type definition:
{code:java}
/**
 * Write the supplied data to the file at position.
 * @param {Blob} data The blob to write.
 */
write(data: Blob): void;{code}
Shall be as follows:
{code:java}
/**
 * Write the supplied data to the file at position.
 * @param {Blob|string} data The blob to write.
 */
write(data: Blob|string): void;{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9841) Allow iOS status bar to animate hide/show

2018-03-08 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16391410#comment-16391410
 ] 

ASF GitHub Bot commented on CB-9841:


InternetExplorer8 commented on issue #37: CB-9841 - Allow iOS statusbar to 
animate hide/show
URL: 
https://github.com/apache/cordova-plugin-statusbar/pull/37#issuecomment-371524663
 
 
   Any chance to get this merged? Any way we can help out?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Allow iOS status bar to animate hide/show
> -
>
> Key: CB-9841
> URL: https://issues.apache.org/jira/browse/CB-9841
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-plugin-statusbar
> Environment: iOS
>Reporter: Andrei Stanica
>Priority: Minor
>  Labels: features
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> At the moment all the updates done to the status bar from cordova do not have 
> animation, be it hiding, showing or changing colour.
> It is suggested to modify the CDVStatusBar file to allow animation on 
> refreshStatusBarAppearance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13948) Apps with ampersand (&) in the name throw build error in cordova-ios@4.3.1

2018-03-08 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16391272#comment-16391272
 ] 

ASF GitHub Bot commented on CB-13948:
-

ronaldozanoni closed pull request #362: CB-13948 Properly encode app name to 
generate XML files using cordova-ios 4.3.1
URL: https://github.com/apache/cordova-ios/pull/362
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/CordovaLib/VERSION b/CordovaLib/VERSION
index f77856a6f..cc2fbe89b 100644
--- a/CordovaLib/VERSION
+++ b/CordovaLib/VERSION
@@ -1 +1 @@
-4.3.1
+4.3.2
diff --git a/CordovaLib/cordova.js b/CordovaLib/cordova.js
index 29be90991..9aa3d4bf3 100644
--- a/CordovaLib/cordova.js
+++ b/CordovaLib/cordova.js
@@ -8,9 +8,9 @@
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at
- 
+
  http://www.apache.org/licenses/LICENSE-2.0
- 
+
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -19,7 +19,7 @@
  under the License.
 */
 ;(function() {
-var PLATFORM_VERSION_BUILD_LABEL = '4.3.1';
+var PLATFORM_VERSION_BUILD_LABEL = '4.3.2';
 // file: src/scripts/require.js
 
 /*jshint -W079 */
@@ -962,7 +962,7 @@ function iOSExec() {
 // CB-10530
 function proxyChanged() {
 var cexec = cordovaExec();
-   
+
 return (execProxy !== cexec && // proxy objects are different
 iOSExec !== cexec  // proxy object is not the current iOSExec
 );
@@ -979,14 +979,14 @@ function handleBridgeChange() {
 var action = command[2];
 var actionArgs = command[3];
 var callbacks = cordova.callbacks[callbackId] || {};
-
+
 execProxy(callbacks.success, callbacks.fail, service, action, 
actionArgs);
-
+
 commandString = commandQueue.shift();
 };
 return true;
 }
-
+
 return false;
 }
 
@@ -996,7 +996,7 @@ function pokeNative() {
 setTimeout(pokeNative);
 return;
 }
-
+
 // Check if they've removed it from the DOM, and put it back if so.
 if (execIframe && execIframe.contentWindow) {
 execIframe.contentWindow.location = 'gap://ready';
diff --git a/bin/lib/create.js b/bin/lib/create.js
index 89b9c8a9f..d62a44cd5 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -24,6 +24,7 @@ var shell = require('shelljs'),
 path = require('path'),
 fs = require('fs'),
 plist = require('plist'),
+xmlescape = require('xml-escape'),
 ROOT = path.join(__dirname, '..', '..'),
 events = require('cordova-common').events;
 
@@ -145,10 +146,14 @@ function copyTemplateFiles(project_path, project_name, 
project_template_dir, pac
  * - ./__PROJECT_NAME__/Resources/__PROJECT_NAME__-info.plist
  * - ./__PROJECT_NAME__/Resources/__PROJECT_NAME__-Prefix.plist
  */
+
+// https://issues.apache.org/jira/browse/CB-12402 - Encode XML characters 
properly
+var project_name_xml_esc = xmlescape(project_name);
+shell.sed('-i', /__PROJECT_NAME__/g, project_name_xml_esc, 
path.join(r+'.xcworkspace', 'contents.xcworkspacedata'));
+shell.sed('-i', /__PROJECT_NAME__/g, project_name_xml_esc, 
path.join(r+'.xcworkspace', 'xcshareddata', 'xcschemes', project_name 
+'.xcscheme'));
+
 var project_name_esc = project_name.replace(/&/g, '\\&');
 shell.sed('-i', /__PROJECT_NAME__/g, project_name_esc, 
path.join(r+'.xcodeproj', 'project.pbxproj'));
-shell.sed('-i', /__PROJECT_NAME__/g, project_name_esc, 
path.join(r+'.xcworkspace', 'contents.xcworkspacedata'));
-shell.sed('-i', /__PROJECT_NAME__/g, project_name_esc, 
path.join(r+'.xcworkspace', 'xcshareddata', 'xcschemes', project_name 
+'.xcscheme'));
 shell.sed('-i', /__PROJECT_NAME__/g, project_name_esc, path.join(r, 
'Classes', 'AppDelegate.h'));
 shell.sed('-i', /__PROJECT_NAME__/g, project_name_esc, path.join(r, 
'Classes', 'AppDelegate.m'));
 shell.sed('-i', /__PROJECT_NAME__/g, project_name_esc, path.join(r, 
'Classes', 'MainViewController.h'));
diff --git a/bin/templates/scripts/cordova/version 
b/bin/templates/scripts/cordova/version
index 9f3eb4799..e3d0fb4c4 100755
--- a/bin/templates/scripts/cordova/version
+++ b/bin/templates/scripts/cordova/version
@@ -26,7 +26,7 @@
 */
 
 // Coho updates this line
-var VERSION="4.3.1";
+var VERSION="4.3.2";
 
 module.exports.version = VERSION;
 
diff --git a/node_modules/xml-escape/LICENSE b/node_modules/xml-escape/LICENSE
new file mode 100644
index 0..bd261effa
--- /dev/null
+++ 

[jira] [Closed] (CB-13948) Apps with ampersand (&) in the name throw build error in cordova-ios@4.3.1

2018-03-08 Thread Ronaldo Zanoni (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ronaldo Zanoni closed CB-13948.
---
Resolution: Won't Fix

This task is being closed due the team does not make back releases, as you can 
see here https://github.com/apache/cordova-ios/pull/361

> Apps with ampersand (&) in the name throw build error in cordova-ios@4.3.1
> --
>
> Key: CB-13948
> URL: https://issues.apache.org/jira/browse/CB-13948
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Affects Versions: 4.3.1
>Reporter: Ronaldo Zanoni
>Assignee: Suraj Pindoria
>Priority: Major
>
> Cordova apps with an ampersand in the name give a build error in cordova-ios 
> 4.3.1:
> "xcodebuild: error: Unable to load workspace 'Tom & Jerry.xcworkspace'.
> Reason: Could not open workspace file at ~/git/Tom & Jerry/platforms/ios/Tom 
> & Jerry.xcworkspace/contents.xcworkspacedata"
> I found that the problem is with the .xcworkspace file. The ampersand doesn't 
> get encoded in the XML files that are generated.
> PR that created the problem: [https://github.com/apache/cordova-ios/pull/247]
> Reproduce:
> 1. run cordova create HelloCordova
> 2. edit config.xml  tag inside to "Tom & Jerry"
> 3. run cordova platform add ios@4.3.1
> 4. run cordova build ios 
> --> ERROR
> *NOTE*: This was fixed in the _cordova-ios 4.4.0_, but that version has 
> removed the _IOS 8_ support and we need that support yet.
> So, the solution is merge the branch _origin/4.3.x_ with this pull request: 
> [https://github.com/apache/cordova-ios/pull/288]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13948) Apps with ampersand (&) in the name throw build error in cordova-ios@4.3.1

2018-03-08 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16391265#comment-16391265
 ] 

ASF GitHub Bot commented on CB-13948:
-

ronaldozanoni commented on issue #361: CB-13948 Properly encode app name to 
generate XML files using cordova-ios 4.3.1
URL: https://github.com/apache/cordova-ios/pull/361#issuecomment-371494009
 
 
   @shazron sure. I'm going to close the 
https://github.com/apache/cordova-ios/pull/362 and the JIRA task too.
   If someone else needs it, use the branch from my fork 
https://github.com/ronaldozanoni/cordova-ios/tree/xml-encoded-fix-4.3.1


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Apps with ampersand (&) in the name throw build error in cordova-ios@4.3.1
> --
>
> Key: CB-13948
> URL: https://issues.apache.org/jira/browse/CB-13948
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Affects Versions: 4.3.1
>Reporter: Ronaldo Zanoni
>Assignee: Suraj Pindoria
>Priority: Major
>
> Cordova apps with an ampersand in the name give a build error in cordova-ios 
> 4.3.1:
> "xcodebuild: error: Unable to load workspace 'Tom & Jerry.xcworkspace'.
> Reason: Could not open workspace file at ~/git/Tom & Jerry/platforms/ios/Tom 
> & Jerry.xcworkspace/contents.xcworkspacedata"
> I found that the problem is with the .xcworkspace file. The ampersand doesn't 
> get encoded in the XML files that are generated.
> PR that created the problem: [https://github.com/apache/cordova-ios/pull/247]
> Reproduce:
> 1. run cordova create HelloCordova
> 2. edit config.xml  tag inside to "Tom & Jerry"
> 3. run cordova platform add ios@4.3.1
> 4. run cordova build ios 
> --> ERROR
> *NOTE*: This was fixed in the _cordova-ios 4.4.0_, but that version has 
> removed the _IOS 8_ support and we need that support yet.
> So, the solution is merge the branch _origin/4.3.x_ with this pull request: 
> [https://github.com/apache/cordova-ios/pull/288]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12074) Cookies are ignored on first application execution

2018-03-08 Thread Mikkel Abildtoft (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16391108#comment-16391108
 ] 

Mikkel Abildtoft commented on CB-12074:
---

I'm also quite interested in knowing what the status on this is?

> Cookies are ignored on first application execution
> --
>
> Key: CB-12074
> URL: https://issues.apache.org/jira/browse/CB-12074
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-wkwebview-engine
> Environment: Cordova 5.4.0, iOS 9.3.5
>Reporter: Maxim
>Assignee: Shazron Abdullah
>Priority: Major
>  Labels: wkwebview-known-issues
>
> Our application authenticates to the server. The server sets a 'JSESSIONID' 
> cookie. The cookie is used by the server for session management. 
> The issue is WKWebView does not send this cookie back to the server on 
> subsequent requests. However, this only happens on first execution of the 
> application, after its installation. Once the application closed and 
> re-opened, the cookies are properly sent and authentication completes 
> successfully. 
> The problematic behavior is consistent, and was observed on several devices. 
> On the other hand, there are no such issues with UIWebView. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org