[jira] [Closed] (CB-13738) Cordova plugin camera error
[ https://issues.apache.org/jira/browse/CB-13738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Jarc closed CB-13738. Resolution: Fixed Problem was in our automated jenkins build. Jenkins didnt update plugin from 2.x to 4.0.1 Now jenkns was forced to update plugins and it works > Cordova plugin camera error > > > Key: CB-13738 > URL: https://issues.apache.org/jira/browse/CB-13738 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: device: Samsung Galaxy XCover 4 > Android v7.0 > Ionic v1.7.16 > Cordova v6.5.0 > cordova-plugin-camera v4.0.1 > platform added: > Creating Cordova project for the Android platform: > Android target: android-26 > Subproject Path: CordovaLib > Android project created with cordova-android@6.4.0 >Reporter: Adrian Jarc > Attachments: log.txt > > > In a project I am making with cordova-plugin-camera on android 7.0 I get the > following error while trying to call camera: > android.os.FileUriExposedException: > file:///storage/emulated/0/Android/data/com.comland.mightyfields.eg/cache/.Pic.jpg > exposed beyond app through ClipData.Item.getUri(). The application has > rights to access file storage and camera but once camera is being called > nothing happens and android monitor catches this error (full log found in > attached file log.txt) > Problem doesn't happen if do 'ionic run android' but once I upload and > install apk build with ionic build android this problem starts appearing. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13737) Splash screen images are resized incorrectly on iPhone X
[ https://issues.apache.org/jira/browse/CB-13737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16315954#comment-16315954 ] ASF GitHub Bot commented on CB-13737: - idoodler commented on issue #146: CB-13737 (iOS): fix Splash screen images for iPhone X URL: https://github.com/apache/cordova-plugin-splashscreen/pull/146#issuecomment-355919840 I can't wait for this PR to be merged! 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 > Splash screen images are resized incorrectly on iPhone X > > > Key: CB-13737 > URL: https://issues.apache.org/jira/browse/CB-13737 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-splashscreen > Environment: iOS 11 / iPhone X >Reporter: jcesarmobile >Assignee: jcesarmobile > Labels: splashscreen > > When not using storyboard, the splash images are not correctly resized for > iPhone X. So when it switches from the launch image to the splash image there > is a noticeable change. > Also, the landscape image is not displayed, it will show the portrait one. > {code} > width="1125" /> > src="res/screens/ios/Default-Landscape-2436h.png" width="2436" /> > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13737) Splash screen images are resized incorrectly on iPhone X
[ https://issues.apache.org/jira/browse/CB-13737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16315965#comment-16315965 ] ASF GitHub Bot commented on CB-13737: - jcesarmobile commented on issue #146: CB-13737 (iOS): fix Splash screen images for iPhone X URL: https://github.com/apache/cordova-plugin-splashscreen/pull/146#issuecomment-355920838 @idoodler have you tried? does it work fine for you? 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 > Splash screen images are resized incorrectly on iPhone X > > > Key: CB-13737 > URL: https://issues.apache.org/jira/browse/CB-13737 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-splashscreen > Environment: iOS 11 / iPhone X >Reporter: jcesarmobile >Assignee: jcesarmobile > Labels: splashscreen > > When not using storyboard, the splash images are not correctly resized for > iPhone X. So when it switches from the launch image to the splash image there > is a noticeable change. > Also, the landscape image is not displayed, it will show the portrait one. > {code} > width="1125" /> > src="res/screens/ios/Default-Landscape-2436h.png" width="2436" /> > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-13739) Android build is broken due to libraries with text relocations
Alexander Tchitchigin created CB-13739: -- Summary: Android build is broken due to libraries with text relocations Key: CB-13739 URL: https://issues.apache.org/jira/browse/CB-13739 Project: Apache Cordova Issue Type: Bug Components: cordova-android Affects Versions: cordova-android-7.0.0 Environment: Build systems: Ubuntu Linux and PhoneGap Build Android versions: 5.0.2 and 7.1.2 Reporter: Alexander Tchitchigin Assignee: Joe Bowser Attachments: photo_2018-01-08_12-25-17.jpg When I build an Android app and run it on a device I get the result in the screenshot: there are a number of libraries with text relocations that Android refuses to load hence the application is broken and doesn't work. Release build refuses to start at all. Before updating Cordova and Android SDK everything worked OK, I was able to build and run the app and previous version is published to Google Play. But I didn't memorize the version number when it all worked, unfortunately. App code was updated either but I don't see how updated JS, CSS and images could make Cordova link with new libraries with relocations. Cordova behaves the same to me both locally with the latest version (cordova 8.0.0, android 7.0.0) and in PhoneGap Build. I'd like to know the right build settings to produce working build or at least some workaround. I tried to play with cdvBuildToolsVersion and cdvCompileSdkVersion but had no success. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13393) Cordova-screen-plugin fails to rotate viewport to orientation when locked and device rotated to that orientation previously
[ https://issues.apache.org/jira/browse/CB-13393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16316093#comment-16316093 ] Pablo Caselas commented on CB-13393: Bug still happening on cordova-ios 4.5.4 and cordova-plugin-statusbar 2.4.0. Your hack works just fine. No need to delay it 100 ms, just setTimeout() and will work like a charm. > Cordova-screen-plugin fails to rotate viewport to orientation when locked and > device rotated to that orientation previously > --- > > Key: CB-13393 > URL: https://issues.apache.org/jira/browse/CB-13393 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-screen-orientation >Affects Versions: 4.4.0 > Environment: iOS >Reporter: Nick Marsh >Assignee: Vishal Mishra >Priority: Minor > Attachments: hello.zip, hellofixed.zip > > > For simplicity, I'll use only one combination of portrait and landscape to > describe the issue. > 1. Begin with the device locked in Portrait > (screen.orientation.lock('portrait') has been invoked). > 2. Physically rotate the device to landscape. Observe that the viewport does > not rotate (correct function). > 3. invoke screen.orientation.lock('landscape') > 4. Observe that the viewport does not rotate to landscape, although the > device's orientation remains locked. > This can be reproduced by reversing landscape and portrait as well. Observed > on iOS 11 with cordova engine 4.4.0, screen-orientation 2.0.1, and statusbar > 2.2.3. > The attached cordova project will reproduce this issue. It begins by > unlocking the orientation. After 5 seconds, it locks the orientation to > landscape. When this happens, physically rotate the device to portrait. After > 5 seconds, it will attempt to lock itself to portrait, but fail to do so. It > might take a couple tries to get the timing right. If needed, I can attach a > video of the bug. > The current workaround seems to be to re-invoke a lock to the device's > currently locked orientation prior to locking to the new orientation - see > the "fixed" project for an example of that. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13737) Splash screen images are resized incorrectly on iPhone X
[ https://issues.apache.org/jira/browse/CB-13737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16316193#comment-16316193 ] ASF GitHub Bot commented on CB-13737: - idoodler commented on issue #146: CB-13737 (iOS): fix Splash screen images for iPhone X URL: https://github.com/apache/cordova-plugin-splashscreen/pull/146#issuecomment-355951325 @jcesarmobile Yes, I can confirm, it is working on my iPhone X (Real device) 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 > Splash screen images are resized incorrectly on iPhone X > > > Key: CB-13737 > URL: https://issues.apache.org/jira/browse/CB-13737 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-splashscreen > Environment: iOS 11 / iPhone X >Reporter: jcesarmobile >Assignee: jcesarmobile > Labels: splashscreen > > When not using storyboard, the splash images are not correctly resized for > iPhone X. So when it switches from the launch image to the splash image there > is a noticeable change. > Also, the landscape image is not displayed, it will show the portrait one. > {code} > width="1125" /> > src="res/screens/ios/Default-Landscape-2436h.png" width="2436" /> > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13737) Splash screen images are resized incorrectly on iPhone X
[ https://issues.apache.org/jira/browse/CB-13737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16316459#comment-16316459 ] ASF GitHub Bot commented on CB-13737: - lobo87 commented on issue #146: CB-13737 (iOS): fix Splash screen images for iPhone X URL: https://github.com/apache/cordova-plugin-splashscreen/pull/146#issuecomment-355993477 was thinking about creating a PR on my own, then saw your solution. We have nearly the same implementation, with the only difference that i split up iphone6Plus and iPhoneX conditions for more readability. However +1 for your solution! 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 > Splash screen images are resized incorrectly on iPhone X > > > Key: CB-13737 > URL: https://issues.apache.org/jira/browse/CB-13737 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-splashscreen > Environment: iOS 11 / iPhone X >Reporter: jcesarmobile >Assignee: jcesarmobile > Labels: splashscreen > > When not using storyboard, the splash images are not correctly resized for > iPhone X. So when it switches from the launch image to the splash image there > is a noticeable change. > Also, the landscape image is not displayed, it will show the portrait one. > {code} > width="1125" /> > src="res/screens/ios/Default-Landscape-2436h.png" width="2436" /> > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13737) Splash screen images are resized incorrectly on iPhone X
[ https://issues.apache.org/jira/browse/CB-13737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16316461#comment-16316461 ] ASF GitHub Bot commented on CB-13737: - lobo87 commented on issue #146: CB-13737 (iOS): fix Splash screen images for iPhone X URL: https://github.com/apache/cordova-plugin-splashscreen/pull/146#issuecomment-355993477 @jcesarmobile was thinking about creating a PR on my own, then saw your solution. We have nearly the same implementation, with the only difference that i split up iphone6Plus and iPhoneX conditions for more readability. However +1 for your solution! 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 > Splash screen images are resized incorrectly on iPhone X > > > Key: CB-13737 > URL: https://issues.apache.org/jira/browse/CB-13737 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-splashscreen > Environment: iOS 11 / iPhone X >Reporter: jcesarmobile >Assignee: jcesarmobile > Labels: splashscreen > > When not using storyboard, the splash images are not correctly resized for > iPhone X. So when it switches from the launch image to the splash image there > is a noticeable change. > Also, the landscape image is not displayed, it will show the portrait one. > {code} > width="1125" /> > src="res/screens/ios/Default-Landscape-2436h.png" width="2436" /> > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13737) Splash screen images are resized incorrectly on iPhone X
[ https://issues.apache.org/jira/browse/CB-13737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16316490#comment-16316490 ] ASF GitHub Bot commented on CB-13737: - jcesarmobile commented on issue #146: CB-13737 (iOS): fix Splash screen images for iPhone X URL: https://github.com/apache/cordova-plugin-splashscreen/pull/146#issuecomment-355999725 Yeah, I did it this way to avoid duplicating the landscape/portrait part, we could probably improve that part entirely. I will merge it later 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 > Splash screen images are resized incorrectly on iPhone X > > > Key: CB-13737 > URL: https://issues.apache.org/jira/browse/CB-13737 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-splashscreen > Environment: iOS 11 / iPhone X >Reporter: jcesarmobile >Assignee: jcesarmobile > Labels: splashscreen > > When not using storyboard, the splash images are not correctly resized for > iPhone X. So when it switches from the launch image to the splash image there > is a noticeable change. > Also, the landscape image is not displayed, it will show the portrait one. > {code} > width="1125" /> > src="res/screens/ios/Default-Landscape-2436h.png" width="2436" /> > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13583) Gray bar in status area when using inappbrowser
[ https://issues.apache.org/jira/browse/CB-13583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317036#comment-16317036 ] Jacob Weber commented on CB-13583: -- [~jcesarmobile] It looks like your branch removes it completely. That's okay, but then it's removed for other devices besides the iPhone X, which I agree might not be desirable. My issue was just with the iPhone X, and the fact that it looks bad there. That could be fixed by removing it entirely on that device, or changing it so it's only visible in portrait mode, and covers the whole time/battery areas. > Gray bar in status area when using inappbrowser > --- > > Key: CB-13583 > URL: https://issues.apache.org/jira/browse/CB-13583 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-inappbrowser > Environment: Mac OS 10.13.1, Xcode 9.1 >Reporter: Jacob Weber > Attachments: config.xml, landscape-to-portrait-to-landscape.png, > portrait-to-landscape.png, portrait.png > > > Use the attached config.xml in a new Cordova project. Add viewport-fit=cover > to index.html, and add Default@2x~universal~anyany.png file for the splash > image. > Open the project in an iPhone X simulator, running iOS 11.1. > In portrait mode, call window.open('https://www.google.com', '_blank'). > You'll see a gray area where the status bar would be on older devices (see > portrait.png). Rotate to landscape, and it's still there (see > portrait-to-landscape.png). > Close the browser. Now in landscape, run the window.open command again. > Rotate to portrait, then back to landscape. Now you'll see a gray area, but > it only covers half of the screen (see > landscape-to-portrait-to-landscape.png). > (Note that I used the "master" version of cordova-ios and some plugins, since > it seems like there are some unreleased fixes for the iPhone X, like > CB-13505). -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13583) Gray bar in status area when using inappbrowser
[ https://issues.apache.org/jira/browse/CB-13583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317036#comment-16317036 ] Jacob Weber edited comment on CB-13583 at 1/8/18 8:49 PM: -- [~jcesarmobile] It looks like your branch removes it completely (correct me if I'm reading it wrong). That's okay, but then it's removed for other devices besides the iPhone X, which I agree might not be desirable. My issue was just with the iPhone X, and the fact that it looks bad there. That could be fixed by removing it entirely on that device, or changing it so it's only visible in portrait mode, and covers the whole time/battery areas. was (Author: jweber): [~jcesarmobile] It looks like your branch removes it completely. That's okay, but then it's removed for other devices besides the iPhone X, which I agree might not be desirable. My issue was just with the iPhone X, and the fact that it looks bad there. That could be fixed by removing it entirely on that device, or changing it so it's only visible in portrait mode, and covers the whole time/battery areas. > Gray bar in status area when using inappbrowser > --- > > Key: CB-13583 > URL: https://issues.apache.org/jira/browse/CB-13583 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-inappbrowser > Environment: Mac OS 10.13.1, Xcode 9.1 >Reporter: Jacob Weber > Attachments: config.xml, landscape-to-portrait-to-landscape.png, > portrait-to-landscape.png, portrait.png > > > Use the attached config.xml in a new Cordova project. Add viewport-fit=cover > to index.html, and add Default@2x~universal~anyany.png file for the splash > image. > Open the project in an iPhone X simulator, running iOS 11.1. > In portrait mode, call window.open('https://www.google.com', '_blank'). > You'll see a gray area where the status bar would be on older devices (see > portrait.png). Rotate to landscape, and it's still there (see > portrait-to-landscape.png). > Close the browser. Now in landscape, run the window.open command again. > Rotate to portrait, then back to landscape. Now you'll see a gray area, but > it only covers half of the screen (see > landscape-to-portrait-to-landscape.png). > (Note that I used the "master" version of cordova-ios and some plugins, since > it seems like there are some unreleased fixes for the iPhone X, like > CB-13505). -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13583) Gray bar in status area when using inappbrowser
[ https://issues.apache.org/jira/browse/CB-13583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317054#comment-16317054 ] Jeff Norris commented on CB-13583: -- I agree with Jacob, this is only an issue on the iPhone X Portrait mode (and any future notched phones). I would at the very least have an option to only remove it on the phones that have a notch. > Gray bar in status area when using inappbrowser > --- > > Key: CB-13583 > URL: https://issues.apache.org/jira/browse/CB-13583 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-inappbrowser > Environment: Mac OS 10.13.1, Xcode 9.1 >Reporter: Jacob Weber > Attachments: config.xml, landscape-to-portrait-to-landscape.png, > portrait-to-landscape.png, portrait.png > > > Use the attached config.xml in a new Cordova project. Add viewport-fit=cover > to index.html, and add Default@2x~universal~anyany.png file for the splash > image. > Open the project in an iPhone X simulator, running iOS 11.1. > In portrait mode, call window.open('https://www.google.com', '_blank'). > You'll see a gray area where the status bar would be on older devices (see > portrait.png). Rotate to landscape, and it's still there (see > portrait-to-landscape.png). > Close the browser. Now in landscape, run the window.open command again. > Rotate to portrait, then back to landscape. Now you'll see a gray area, but > it only covers half of the screen (see > landscape-to-portrait-to-landscape.png). > (Note that I used the "master" version of cordova-ios and some plugins, since > it seems like there are some unreleased fixes for the iPhone X, like > CB-13505). -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-13740) CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning)
Sasha Kalmikov created CB-13740: --- Summary: CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning) Key: CB-13740 URL: https://issues.apache.org/jira/browse/CB-13740 Project: Apache Cordova Issue Type: Bug Components: cordova-cli Environment: Windows 10 Node: v7.5.0 NPM: 4.1.2 Reporter: Sasha Kalmikov When running "cordova requirements" following error thrown: {noformat} Requirements check results for browser: (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13740) CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning)
[ https://issues.apache.org/jira/browse/CB-13740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sasha Kalmikov updated CB-13740: Environment: Windows 10 Node: v7.5.0 NPM: 4.1.2 Cordova: 8.0.0 was: Windows 10 Node: v7.5.0 NPM: 4.1.2 > CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning) > > > Key: CB-13740 > URL: https://issues.apache.org/jira/browse/CB-13740 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli > Environment: Windows 10 > Node: v7.5.0 > NPM: 4.1.2 > Cordova: 8.0.0 >Reporter: Sasha Kalmikov > > When running "cordova requirements" following error thrown: > {noformat} > Requirements check results for browser: > (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection > (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined > (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. > In the future, promise rejections that are not handled will terminate the > Node.js process with a non-zero exit code. > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13740) CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning)
[ https://issues.apache.org/jira/browse/CB-13740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sasha Kalmikov updated CB-13740: Environment: Windows 10 Node: v7.5.0 NPM: 4.1.2 Cordova CLI: 8.0.0 was: Windows 10 Node: v7.5.0 NPM: 4.1.2 Cordova: 8.0.0 > CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning) > > > Key: CB-13740 > URL: https://issues.apache.org/jira/browse/CB-13740 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli > Environment: Windows 10 > Node: v7.5.0 > NPM: 4.1.2 > Cordova CLI: 8.0.0 >Reporter: Sasha Kalmikov > > When running "cordova requirements" following error thrown: > {noformat} > Requirements check results for browser: > (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection > (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined > (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. > In the future, promise rejections that are not handled will terminate the > Node.js process with a non-zero exit code. > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13740) CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning)
[ https://issues.apache.org/jira/browse/CB-13740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sasha Kalmikov updated CB-13740: Component/s: cordova-browser > CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning) > > > Key: CB-13740 > URL: https://issues.apache.org/jira/browse/CB-13740 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-browser, cordova-cli > Environment: Windows 10 > Node: v7.5.0 > NPM: 4.1.2 > Cordova CLI: 8.0.0 >Reporter: Sasha Kalmikov > > When running "cordova requirements" following error thrown: > {noformat} > Requirements check results for browser: > (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection > (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined > (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. > In the future, promise rejections that are not handled will terminate the > Node.js process with a non-zero exit code. > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13740) CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning)
[ https://issues.apache.org/jira/browse/CB-13740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sasha Kalmikov updated CB-13740: Environment: Windows 10 Node: v7.5.0 NPM: 4.1.2 Cordova CLI: 8.0.0 --- macOS High Sierra 10.13.1 node - v9.3.0 npm - 5.6.0 cordova - 8.0.0 was: Windows 10 Node: v7.5.0 NPM: 4.1.2 Cordova CLI: 8.0.0 > CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning) > > > Key: CB-13740 > URL: https://issues.apache.org/jira/browse/CB-13740 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-browser, cordova-cli > Environment: Windows 10 > Node: v7.5.0 > NPM: 4.1.2 > Cordova CLI: 8.0.0 > --- > macOS High Sierra 10.13.1 > node - v9.3.0 > npm - 5.6.0 > cordova - 8.0.0 >Reporter: Sasha Kalmikov > > When running "cordova requirements" following error thrown: > {noformat} > Requirements check results for browser: > (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection > (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined > (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. > In the future, promise rejections that are not handled will terminate the > Node.js process with a non-zero exit code. > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317078#comment-16317078 ] ASF subversion and git services commented on CB-7684: - Commit a7e376adb78dad85b6c5d15058c5317ad7d2bf72 in cordova-plugin-media's branch refs/heads/master from [~adriano.digiovanni] [ https://gitbox.apache.org/repos/asf?p=cordova-plugin-media.git;h=a7e376a ] CB-7684 (#143) * do not deactivate avsession when items finish playing * CB76-84: check if any audio file is playing or recording before deactivating the avsession * CB-7684: add ios preference to keep avsession always active * CB-7684: change variable name to uppercase * CB-7684: change variable name to uppercase in CDVSound.m, too * CB-7684: fix plugin definition * CB-7684: activate avsession during plugin initialization * update plugin definition to solve merge conflict * update plugin definition to fix merge conflict * update plugin definition to fix merge conflict > [Media] CDVSound Kills any and all playing sound files when a single file > finishes > -- > > Key: CB-7684 > URL: https://issues.apache.org/jira/browse/CB-7684 > Project: Apache Cordova > Issue Type: Sub-task > Components: cordova-plugin-media >Affects Versions: 3.5.0 > Environment: iOS >Reporter: Nathan Stryker > > The CDVSound file will kill all playing media files when ever a single file > completes playing. The issue is around like 691 in the method > "AudioDidFinishPlaying", with the code: > if (self.avSession) { > [self.avSession setActive:NO error:nil]; > } > The reason I think this is a bug is that if a user as Music file A playing in > a loop and Music file B plays, when B completes the "setActive:NO" will kill > the avSession of both A and B. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317080#comment-16317080 ] ASF subversion and git services commented on CB-7684: - Commit a7e376adb78dad85b6c5d15058c5317ad7d2bf72 in cordova-plugin-media's branch refs/heads/master from [~adriano.digiovanni] [ https://gitbox.apache.org/repos/asf?p=cordova-plugin-media.git;h=a7e376a ] CB-7684 (#143) * do not deactivate avsession when items finish playing * CB76-84: check if any audio file is playing or recording before deactivating the avsession * CB-7684: add ios preference to keep avsession always active * CB-7684: change variable name to uppercase * CB-7684: change variable name to uppercase in CDVSound.m, too * CB-7684: fix plugin definition * CB-7684: activate avsession during plugin initialization * update plugin definition to solve merge conflict * update plugin definition to fix merge conflict * update plugin definition to fix merge conflict > [Media] CDVSound Kills any and all playing sound files when a single file > finishes > -- > > Key: CB-7684 > URL: https://issues.apache.org/jira/browse/CB-7684 > Project: Apache Cordova > Issue Type: Sub-task > Components: cordova-plugin-media >Affects Versions: 3.5.0 > Environment: iOS >Reporter: Nathan Stryker > > The CDVSound file will kill all playing media files when ever a single file > completes playing. The issue is around like 691 in the method > "AudioDidFinishPlaying", with the code: > if (self.avSession) { > [self.avSession setActive:NO error:nil]; > } > The reason I think this is a bug is that if a user as Music file A playing in > a loop and Music file B plays, when B completes the "setActive:NO" will kill > the avSession of both A and B. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317074#comment-16317074 ] ASF subversion and git services commented on CB-7684: - Commit a7e376adb78dad85b6c5d15058c5317ad7d2bf72 in cordova-plugin-media's branch refs/heads/master from [~adriano.digiovanni] [ https://gitbox.apache.org/repos/asf?p=cordova-plugin-media.git;h=a7e376a ] CB-7684 (#143) * do not deactivate avsession when items finish playing * CB76-84: check if any audio file is playing or recording before deactivating the avsession * CB-7684: add ios preference to keep avsession always active * CB-7684: change variable name to uppercase * CB-7684: change variable name to uppercase in CDVSound.m, too * CB-7684: fix plugin definition * CB-7684: activate avsession during plugin initialization * update plugin definition to solve merge conflict * update plugin definition to fix merge conflict * update plugin definition to fix merge conflict > [Media] CDVSound Kills any and all playing sound files when a single file > finishes > -- > > Key: CB-7684 > URL: https://issues.apache.org/jira/browse/CB-7684 > Project: Apache Cordova > Issue Type: Sub-task > Components: cordova-plugin-media >Affects Versions: 3.5.0 > Environment: iOS >Reporter: Nathan Stryker > > The CDVSound file will kill all playing media files when ever a single file > completes playing. The issue is around like 691 in the method > "AudioDidFinishPlaying", with the code: > if (self.avSession) { > [self.avSession setActive:NO error:nil]; > } > The reason I think this is a bug is that if a user as Music file A playing in > a loop and Music file B plays, when B completes the "setActive:NO" will kill > the avSession of both A and B. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13740) CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning)
[ https://issues.apache.org/jira/browse/CB-13740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sasha Kalmikov updated CB-13740: Environment: Windows 10 Node: v7.5.0 NPM: 4.1.2 Cordova CLI: 8.0.0 --- macOS High Sierra 10.13.1 Node - v9.3.0 NPM - 5.6.0 Cordova CLI- 8.0.0 was: Windows 10 Node: v7.5.0 NPM: 4.1.2 Cordova CLI: 8.0.0 --- macOS High Sierra 10.13.1 node - v9.3.0 npm - 5.6.0 cordova - 8.0.0 > CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning) > > > Key: CB-13740 > URL: https://issues.apache.org/jira/browse/CB-13740 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-browser, cordova-cli > Environment: Windows 10 > Node: v7.5.0 > NPM: 4.1.2 > Cordova CLI: 8.0.0 > --- > macOS High Sierra 10.13.1 > Node - v9.3.0 > NPM - 5.6.0 > Cordova CLI- 8.0.0 >Reporter: Sasha Kalmikov > > When running "cordova requirements" following error thrown: > *Windows*: > {noformat} > Requirements check results for browser: > (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection > (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined > (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. > In the future, promise rejections that are not handled will terminate the > Node.js process with a non-zero exit code. > {noformat} > *macOS*: > {noformat} > Requirements check results for browser: > (node:72094) UnhandledPromiseRejectionWarning: TypeError: Cannot read > property 'forEach' of undefined > at /usr/local/lib/node_modules/cordova/src/cli.js:397:35 > at Array.map () > at /usr/local/lib/node_modules/cordova/src/cli.js:388:68 > at _fulfilled > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54) > at self.promiseDispatch.done > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30) > at Promise.promise.promiseDispatch > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13) > at > /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44 > at flush > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17) > at process._tickCallback (internal/process/next_tick.js:150:11) > at Function.Module.runMain (module.js:703:11) > (node:72094) UnhandledPromiseRejectionWarning: Unhandled promise rejection. > This error originated either by throwing inside of an async function without > a catch block, or by rejecting a promise which was not handled with .catch(). > (rejection id: 1) > (node:72094) [DEP0018] DeprecationWarning: Unhandled promise rejections are > deprecated. In the future, promise rejections that are not handled will > terminate the Node.js process with a non-zero exit code. > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317077#comment-16317077 ] ASF subversion and git services commented on CB-7684: - Commit a7e376adb78dad85b6c5d15058c5317ad7d2bf72 in cordova-plugin-media's branch refs/heads/master from [~adriano.digiovanni] [ https://gitbox.apache.org/repos/asf?p=cordova-plugin-media.git;h=a7e376a ] CB-7684 (#143) * do not deactivate avsession when items finish playing * CB76-84: check if any audio file is playing or recording before deactivating the avsession * CB-7684: add ios preference to keep avsession always active * CB-7684: change variable name to uppercase * CB-7684: change variable name to uppercase in CDVSound.m, too * CB-7684: fix plugin definition * CB-7684: activate avsession during plugin initialization * update plugin definition to solve merge conflict * update plugin definition to fix merge conflict * update plugin definition to fix merge conflict > [Media] CDVSound Kills any and all playing sound files when a single file > finishes > -- > > Key: CB-7684 > URL: https://issues.apache.org/jira/browse/CB-7684 > Project: Apache Cordova > Issue Type: Sub-task > Components: cordova-plugin-media >Affects Versions: 3.5.0 > Environment: iOS >Reporter: Nathan Stryker > > The CDVSound file will kill all playing media files when ever a single file > completes playing. The issue is around like 691 in the method > "AudioDidFinishPlaying", with the code: > if (self.avSession) { > [self.avSession setActive:NO error:nil]; > } > The reason I think this is a bug is that if a user as Music file A playing in > a loop and Music file B plays, when B completes the "setActive:NO" will kill > the avSession of both A and B. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13740) CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning)
[ https://issues.apache.org/jira/browse/CB-13740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sasha Kalmikov updated CB-13740: Description: When running "cordova requirements" following error thrown: *Windows*: {noformat} Requirements check results for browser: (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. {noformat} *macOS*: {noformat} Requirements check results for browser: (node:72094) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'forEach' of undefined at /usr/local/lib/node_modules/cordova/src/cli.js:397:35 at Array.map () at /usr/local/lib/node_modules/cordova/src/cli.js:388:68 at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13) at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44 at flush (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17) at process._tickCallback (internal/process/next_tick.js:150:11) at Function.Module.runMain (module.js:703:11) (node:72094) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:72094) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. {noformat} was: When running "cordova requirements" following error thrown: {noformat} Requirements check results for browser: (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. {noformat} > CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning) > > > Key: CB-13740 > URL: https://issues.apache.org/jira/browse/CB-13740 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-browser, cordova-cli > Environment: Windows 10 > Node: v7.5.0 > NPM: 4.1.2 > Cordova CLI: 8.0.0 > --- > macOS High Sierra 10.13.1 > node - v9.3.0 > npm - 5.6.0 > cordova - 8.0.0 >Reporter: Sasha Kalmikov > > When running "cordova requirements" following error thrown: > *Windows*: > {noformat} > Requirements check results for browser: > (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection > (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined > (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. > In the future, promise rejections that are not handled will terminate the > Node.js process with a non-zero exit code. > {noformat} > *macOS*: > {noformat} > Requirements check results for browser: > (node:72094) UnhandledPromiseRejectionWarning: TypeError: Cannot read > property 'forEach' of undefined > at /usr/local/lib/node_modules/cordova/src/cli.js:397:35 > at Array.map () > at /usr/local/lib/node_modules/cordova/src/cli.js:388:68 > at _fulfilled > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54) > at self.promiseDispatch.done > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30) > at Promise.promise.promiseDispatch > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13) > at > /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44 > at flush > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17) > at process._tickCallback (internal/process/next_tick.js:150:11) > at Function.Module.runMain (module.js:703:11) > (node:72094) UnhandledPromiseRejectionWarning: Unhandled promise rejection. > This error originated either by throwing inside of an async function without > a catch block, or by rejecting a promise which was not handled with .catch(). > (rejection id: 1) >
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317075#comment-16317075 ] ASF GitHub Bot commented on CB-7684: macdonst commented on issue #143: CB-7684 URL: https://github.com/apache/cordova-plugin-media/pull/143#issuecomment-356098480 @adriano-di-giovanni thanks for the PR, sorry it took so long to merge. 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 > [Media] CDVSound Kills any and all playing sound files when a single file > finishes > -- > > Key: CB-7684 > URL: https://issues.apache.org/jira/browse/CB-7684 > Project: Apache Cordova > Issue Type: Sub-task > Components: cordova-plugin-media >Affects Versions: 3.5.0 > Environment: iOS >Reporter: Nathan Stryker > > The CDVSound file will kill all playing media files when ever a single file > completes playing. The issue is around like 691 in the method > "AudioDidFinishPlaying", with the code: > if (self.avSession) { > [self.avSession setActive:NO error:nil]; > } > The reason I think this is a bug is that if a user as Music file A playing in > a loop and Music file B plays, when B completes the "setActive:NO" will kill > the avSession of both A and B. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317076#comment-16317076 ] ASF subversion and git services commented on CB-7684: - Commit a7e376adb78dad85b6c5d15058c5317ad7d2bf72 in cordova-plugin-media's branch refs/heads/master from [~adriano.digiovanni] [ https://gitbox.apache.org/repos/asf?p=cordova-plugin-media.git;h=a7e376a ] CB-7684 (#143) * do not deactivate avsession when items finish playing * CB76-84: check if any audio file is playing or recording before deactivating the avsession * CB-7684: add ios preference to keep avsession always active * CB-7684: change variable name to uppercase * CB-7684: change variable name to uppercase in CDVSound.m, too * CB-7684: fix plugin definition * CB-7684: activate avsession during plugin initialization * update plugin definition to solve merge conflict * update plugin definition to fix merge conflict * update plugin definition to fix merge conflict > [Media] CDVSound Kills any and all playing sound files when a single file > finishes > -- > > Key: CB-7684 > URL: https://issues.apache.org/jira/browse/CB-7684 > Project: Apache Cordova > Issue Type: Sub-task > Components: cordova-plugin-media >Affects Versions: 3.5.0 > Environment: iOS >Reporter: Nathan Stryker > > The CDVSound file will kill all playing media files when ever a single file > completes playing. The issue is around like 691 in the method > "AudioDidFinishPlaying", with the code: > if (self.avSession) { > [self.avSession setActive:NO error:nil]; > } > The reason I think this is a bug is that if a user as Music file A playing in > a loop and Music file B plays, when B completes the "setActive:NO" will kill > the avSession of both A and B. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317073#comment-16317073 ] ASF GitHub Bot commented on CB-7684: macdonst closed pull request #143: CB-7684 URL: https://github.com/apache/cordova-plugin-media/pull/143 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/plugin.xml b/plugin.xml index dabafac7..564f6da3 100644 --- a/plugin.xml +++ b/plugin.xml @@ -21,7 +21,7 @@ http://apache.org/cordova/ns/plugins/1.0"; xmlns:android="http://schemas.android.com/apk/res/android"; id="cordova-plugin-media" -version="3.0.1"> +version="5.0.2-dev"> Media Cordova Media Plugin @@ -31,11 +31,10 @@ id="cordova-plugin-media" https://issues.apache.org/jira/browse/CB/component/12320647 - + - - + @@ -65,106 +64,19 @@ id="cordova-plugin-media" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - -$MICROPHONE_USAGE_DESCRIPTION - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -178,13 +90,6 @@ id="cordova-plugin-media" - - - - - - - diff --git a/src/ios/CDVSound.m b/src/ios/CDVSound.m index e1542871..e8947d0f 100644 --- a/src/ios/CDVSound.m +++ b/src/ios/CDVSound.m @@ -27,8 +27,24 @@ Licensed to the Apache Software Foundation (ASF) under one @implementation CDVSound +BOOL keepAvAudioSessionAlwaysActive = NO; + @synthesize soundCache, avSession, currMediaId, statusCallbackId; +-(void) pluginInitialize +{ +NSDictionary* settings = self.commandDelegate.settings; +keepAvAudioSessionAlwaysActive = [[settings objectForKey:[@"KeepAVAudioSessionAlwaysActive" lowercaseString]] boolValue]; +if (keepAvAudioSessionAlwaysActive) { +if ([self hasAudioSession]) { +NSError* error = nil; +if(![self.avSession setActive:YES error:&error]) { +NSLog(@"Unable to activate session: %@", [error localizedFailureReason]); +} +} +} +} + // Maps a url for a resource path for recording - (NSURL*)urlForRecording:(NSString*)resourcePath { @@ -421,7 +437,7 @@ - (void)startPlayingAudio:(CDVInvokedUrlCommand*)command [audioFile.player play]; } */ // error creating the session or player -[self onStatus:MEDIA_ERROR mediaId:mediaId +[self onStatus:MEDIA_ERROR mediaId:mediaId param:[self createMediaErrorWithCode:MEDIA_ERR_NONE_SUPPORTED message:nil]]; } } @@ -469,7 +485,7 @@ - (BOOL)prepareToPlay:(CDVAudioFile*)audioFile withId:(NSString*)mediaId if (playerError != nil) { NSLog(@"Failed to initialize AVAudioPlayer: %@\n", [playerError localizedDescription]); audioFile.player = nil; -if (self.avSession) { +if (! keepAvAudioSessionAlwaysActive && self.avSession && ! [self isPlayingOrRecording]) { [self.avSession setActive:NO error:nil]; } bError = YES; @@ -600,7 +616,7 @@ - (void)release:(CDVInvokedUrlCommand*)command [avPlayer pause]; avPlayer = nil; } -if (self.avSession) { +if (! keepAvAudioSessionAlwaysActive && self.avSession && ! [self isPlayingOrRecording]) { [self.avSession setActive:NO error:nil]; self.avSession = nil; } @@ -705,7 +721,7 @@ - (void)startRecordingAudio:(CDVInvokedUrlCommand*)command errorMsg = @"Failed to start recording using AVAudioRecorder"; } audioFile.recorder = nil; -if (weakSelf.avSession) { +if (! keepAvAudioSessionAlwaysActive && weakSelf.avSession &&
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317079#comment-16317079 ] ASF subversion and git services commented on CB-7684: - Commit a7e376adb78dad85b6c5d15058c5317ad7d2bf72 in cordova-plugin-media's branch refs/heads/master from [~adriano.digiovanni] [ https://gitbox.apache.org/repos/asf?p=cordova-plugin-media.git;h=a7e376a ] CB-7684 (#143) * do not deactivate avsession when items finish playing * CB76-84: check if any audio file is playing or recording before deactivating the avsession * CB-7684: add ios preference to keep avsession always active * CB-7684: change variable name to uppercase * CB-7684: change variable name to uppercase in CDVSound.m, too * CB-7684: fix plugin definition * CB-7684: activate avsession during plugin initialization * update plugin definition to solve merge conflict * update plugin definition to fix merge conflict * update plugin definition to fix merge conflict > [Media] CDVSound Kills any and all playing sound files when a single file > finishes > -- > > Key: CB-7684 > URL: https://issues.apache.org/jira/browse/CB-7684 > Project: Apache Cordova > Issue Type: Sub-task > Components: cordova-plugin-media >Affects Versions: 3.5.0 > Environment: iOS >Reporter: Nathan Stryker > > The CDVSound file will kill all playing media files when ever a single file > completes playing. The issue is around like 691 in the method > "AudioDidFinishPlaying", with the code: > if (self.avSession) { > [self.avSession setActive:NO error:nil]; > } > The reason I think this is a bug is that if a user as Music file A playing in > a loop and Music file B plays, when B completes the "setActive:NO" will kill > the avSession of both A and B. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317072#comment-16317072 ] Dave Alden commented on CB-13643: - [~Sujan12], [~jcesarmobile] just so I've got this straight: does this mean every plugin needs to update its block that defines the for Android? i.e. should this: {code:xml} {code} become this: {code:xml} {code} ??? > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z
[jira] [Updated] (CB-13740) CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning)
[ https://issues.apache.org/jira/browse/CB-13740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sasha Kalmikov updated CB-13740: Environment: Windows 10 Node: v7.5.0 NPM: 4.1.2 Cordova CLI: 8.0.0 --- macOS High Sierra 10.13.1 Node: v9.3.0 NPM: 5.6.0 Cordova CLI: 8.0.0 was: Windows 10 Node: v7.5.0 NPM: 4.1.2 Cordova CLI: 8.0.0 --- macOS High Sierra 10.13.1 Node - v9.3.0 NPM - 5.6.0 Cordova CLI- 8.0.0 > CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning) > > > Key: CB-13740 > URL: https://issues.apache.org/jira/browse/CB-13740 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-browser, cordova-cli > Environment: Windows 10 > Node: v7.5.0 > NPM: 4.1.2 > Cordova CLI: 8.0.0 > --- > macOS High Sierra 10.13.1 > Node: v9.3.0 > NPM: 5.6.0 > Cordova CLI: 8.0.0 >Reporter: Sasha Kalmikov > > When running "cordova requirements" following error thrown: > *Windows*: > {noformat} > Requirements check results for browser: > (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection > (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined > (node:5776) DeprecationWarning: Unhandled promise rejections are deprecated. > In the future, promise rejections that are not handled will terminate the > Node.js process with a non-zero exit code. > {noformat} > *macOS*: > {noformat} > Requirements check results for browser: > (node:72094) UnhandledPromiseRejectionWarning: TypeError: Cannot read > property 'forEach' of undefined > at /usr/local/lib/node_modules/cordova/src/cli.js:397:35 > at Array.map () > at /usr/local/lib/node_modules/cordova/src/cli.js:388:68 > at _fulfilled > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54) > at self.promiseDispatch.done > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30) > at Promise.promise.promiseDispatch > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13) > at > /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44 > at flush > (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17) > at process._tickCallback (internal/process/next_tick.js:150:11) > at Function.Module.runMain (module.js:703:11) > (node:72094) UnhandledPromiseRejectionWarning: Unhandled promise rejection. > This error originated either by throwing inside of an async function without > a catch block, or by rejecting a promise which was not handled with .catch(). > (rejection id: 1) > (node:72094) [DEP0018] DeprecationWarning: Unhandled promise rejections are > deprecated. In the future, promise rejections that are not handled will > terminate the Node.js process with a non-zero exit code. > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317082#comment-16317082 ] ASF GitHub Bot commented on CB-7684: macdonst commented on issue #162: Fix CDVSound killing all audio when a single file finishes (retry on CB-7684) URL: https://github.com/apache/cordova-plugin-media/pull/162#issuecomment-356098741 @damienleroux thanks for sending this PR but I've merged #143 which fixes the issue. It checks to see if there are any other media files playing, if there are it does not kill the session, if not it does free up the session. 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 > [Media] CDVSound Kills any and all playing sound files when a single file > finishes > -- > > Key: CB-7684 > URL: https://issues.apache.org/jira/browse/CB-7684 > Project: Apache Cordova > Issue Type: Sub-task > Components: cordova-plugin-media >Affects Versions: 3.5.0 > Environment: iOS >Reporter: Nathan Stryker > > The CDVSound file will kill all playing media files when ever a single file > completes playing. The issue is around like 691 in the method > "AudioDidFinishPlaying", with the code: > if (self.avSession) { > [self.avSession setActive:NO error:nil]; > } > The reason I think this is a bug is that if a user as Music file A playing in > a loop and Music file B plays, when B completes the "setActive:NO" will kill > the avSession of both A and B. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7684) [Media] CDVSound Kills any and all playing sound files when a single file finishes
[ https://issues.apache.org/jira/browse/CB-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317083#comment-16317083 ] ASF GitHub Bot commented on CB-7684: macdonst closed pull request #162: Fix CDVSound killing all audio when a single file finishes (retry on CB-7684) URL: https://github.com/apache/cordova-plugin-media/pull/162 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/src/ios/CDVSound.m b/src/ios/CDVSound.m index e1542871..ba4babab 100644 --- a/src/ios/CDVSound.m +++ b/src/ios/CDVSound.m @@ -187,7 +187,7 @@ - (CDVAudioFile*)audioFileForResource:(NSString*)resourcePath withId:(NSString*) return [self audioFileForResource:resourcePath withId:mediaId doValidation:bValidate forRecording:bRecord suppressValidationErrors:NO]; } -// returns whether or not audioSession is available - creates it if necessary +// returns whether or not audioSession is available - retrieve the instance (app singleton) if necessary - (BOOL)hasAudioSession { BOOL bSession = YES; @@ -198,7 +198,7 @@ - (BOOL)hasAudioSession self.avSession = [AVAudioSession sharedInstance]; if (error) { // is not fatal if can't get AVAudioSession , just log the error -NSLog(@"error creating audio session: %@", [[error userInfo] description]); +NSLog(@"error retrieving audio session: %@", [[error userInfo] description]); self.avSession = nil; bSession = NO; } @@ -469,9 +469,7 @@ - (BOOL)prepareToPlay:(CDVAudioFile*)audioFile withId:(NSString*)mediaId if (playerError != nil) { NSLog(@"Failed to initialize AVAudioPlayer: %@\n", [playerError localizedDescription]); audioFile.player = nil; -if (self.avSession) { -[self.avSession setActive:NO error:nil]; -} + bError = YES; } else { audioFile.player.mediaId = mediaId; @@ -601,7 +599,6 @@ - (void)release:(CDVInvokedUrlCommand*)command avPlayer = nil; } if (self.avSession) { -[self.avSession setActive:NO error:nil]; self.avSession = nil; } [[self soundCache] removeObjectForKey:mediaId]; @@ -705,9 +702,6 @@ - (void)startRecordingAudio:(CDVInvokedUrlCommand*)command errorMsg = @"Failed to start recording using AVAudioRecorder"; } audioFile.recorder = nil; -if (weakSelf.avSession) { -[weakSelf.avSession setActive:NO error:nil]; -} [weakSelf onStatus:MEDIA_ERROR mediaId:mediaId param: [self createAbortError:errorMsg]]; } @@ -725,9 +719,6 @@ - (void)startRecordingAudio:(CDVInvokedUrlCommand*)command NSString* msg = @"Error creating audio session, microphone permission denied."; NSLog(@"%@", msg); audioFile.recorder = nil; -if (weakSelf.avSession) { -[weakSelf.avSession setActive:NO error:nil]; -} [weakSelf onStatus:MEDIA_ERROR mediaId:mediaId param: [self createAbortError:msg]]; } @@ -773,9 +764,6 @@ - (void)audioRecorderDidFinishRecording:(AVAudioRecorder*)recorder successfully: [self onStatus:MEDIA_ERROR mediaId:mediaId param: [self createMediaErrorWithCode:MEDIA_ERR_DECODE message:nil]]; } -if (self.avSession) { -[self.avSession setActive:NO error:nil]; -} } - (void)audioPlayerDidFinishPlaying:(AVAudioPlayer*)player successfully:(BOOL)flag @@ -795,18 +783,12 @@ - (void)audioPlayerDidFinishPlaying:(AVAudioPlayer*)player successfully:(BOOL)fl [self onStatus:MEDIA_ERROR mediaId:mediaId param: [self createMediaErrorWithCode:MEDIA_ERR_DECODE message:nil]]; } -if (self.avSession) { -[self.avSession setActive:NO error:nil]; -} } -(void)itemDidFinishPlaying:(NSNotification *) notification { // Will be called when AVPlayer finishes playing playerItem NSString* mediaId = self.currMediaId; -if (self.avSession) { -[self.avSession setActive:NO error:nil]; -} [self onStatus:MEDIA_STATE mediaId:mediaId param:@(MEDIA_STOPPED)]; } 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.
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317205#comment-16317205 ] Joe Bowser commented on CB-13643: - [~dpa99c] Eventually yes. I don't believe the problem is with the cordova plugins, but instead with something in Taco or Ionic that's expecting config.xml to be at the old location. We've tested cordova-plugin-device with the old locations against the new code, and there's code in cordova-android 7.0 that edits config.xml. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files
[jira] [Commented] (CB-13739) Android build is broken due to libraries with text relocations
[ https://issues.apache.org/jira/browse/CB-13739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317207#comment-16317207 ] Joe Bowser commented on CB-13739: - Is this using Crosswalk? Cordova does not use any of these libraries directly and only through the Android SDK and third-party plugins like Crosswalk. > Android build is broken due to libraries with text relocations > -- > > Key: CB-13739 > URL: https://issues.apache.org/jira/browse/CB-13739 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: Build systems: Ubuntu Linux and PhoneGap Build > Android versions: 5.0.2 and 7.1.2 >Reporter: Alexander Tchitchigin >Assignee: Joe Bowser > Attachments: photo_2018-01-08_12-25-17.jpg > > > When I build an Android app and run it on a device I get the result in the > screenshot: there are a number of libraries with text relocations that > Android refuses to load hence the application is broken and doesn't work. > Release build refuses to start at all. > Before updating Cordova and Android SDK everything worked OK, I was able to > build and run the app and previous version is published to Google Play. But I > didn't memorize the version number when it all worked, unfortunately. App > code was updated either but I don't see how updated JS, CSS and images could > make Cordova link with new libraries with relocations. > Cordova behaves the same to me both locally with the latest version (cordova > 8.0.0, android 7.0.0) and in PhoneGap Build. > I'd like to know the right build settings to produce working build or at > least some workaround. I tried to play with cdvBuildToolsVersion and > cdvCompileSdkVersion but had no success. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13646) Unable to compile native code (android.useDeprecated.Ndk not supported anymore)
[ https://issues.apache.org/jira/browse/CB-13646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317281#comment-16317281 ] Joe Bowser commented on CB-13646: - Crosswalk users expecting the library that's no longer supported to compile should be doing the work-around, not people who are able to keep their projects up to date. I'm changing this flag, since Google dropping this flag breaks builds. > Unable to compile native code (android.useDeprecated.Ndk not supported > anymore) > --- > > Key: CB-13646 > URL: https://issues.apache.org/jira/browse/CB-13646 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser >Priority: Critical > Labels: cordova-next > > A cordova project that contains native/jni code fails to compile, because > android.useDeprecatedNdk is not supported anymore. > Steps to reproduce: > 1) create a new cordova project > 2) add android platform > 3) mkdir platforms/android/app/src/main/jni > 4) touch platforms/android/app/src/main/jni/Android.mk > 5) cordova build android > It fails with the following error: > {code} > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':app:compileDebugNdk'. > > Error: Flag android.useDeprecatedNdk is no longer supported and will be > > removed in the next version of Android Studio. Please switch to a > > supported build system. > Consider using CMake or ndk-build integration. For more information, go to: >https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile >To get started, you can use the sample ndk-build script the Android >plugin generated for you at: > .../testnative/platforms/android/app/build/intermediates/ndk/debug/Android.mk > Alternatively, you can use the experimental plugin: >https://developer.android.com/r/tools/experimental-plugin.html > To continue using the deprecated NDK compile for another 60 days, set > android.deprecatedNdkCompileLease=1512654767567 in gradle.properties > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13646) Unable to compile native code (android.useDeprecated.Ndk not supported anymore)
[ https://issues.apache.org/jira/browse/CB-13646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317300#comment-16317300 ] ASF GitHub Bot commented on CB-13646: - infil00p opened a new pull request #427: CB-13646: End of an era. Using the deprecated NDK by default breaks … URL: https://github.com/apache/cordova-android/pull/427 …the build. Crosswalk users need to specify the Gradle parameters to keep it working. ### Platforms affected Android ### What does this PR do? Removes the deprecated NDK argument, which isn't supported anymore. ### What testing has been done on this change? ### Checklist - [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB- is the JIRA ID & "android" is the platform affected. - [ ] Added automated test coverage as appropriate for this change. 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 > Unable to compile native code (android.useDeprecated.Ndk not supported > anymore) > --- > > Key: CB-13646 > URL: https://issues.apache.org/jira/browse/CB-13646 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser >Priority: Critical > Labels: cordova-next > > A cordova project that contains native/jni code fails to compile, because > android.useDeprecatedNdk is not supported anymore. > Steps to reproduce: > 1) create a new cordova project > 2) add android platform > 3) mkdir platforms/android/app/src/main/jni > 4) touch platforms/android/app/src/main/jni/Android.mk > 5) cordova build android > It fails with the following error: > {code} > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':app:compileDebugNdk'. > > Error: Flag android.useDeprecatedNdk is no longer supported and will be > > removed in the next version of Android Studio. Please switch to a > > supported build system. > Consider using CMake or ndk-build integration. For more information, go to: >https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile >To get started, you can use the sample ndk-build script the Android >plugin generated for you at: > .../testnative/platforms/android/app/build/intermediates/ndk/debug/Android.mk > Alternatively, you can use the experimental plugin: >https://developer.android.com/r/tools/experimental-plugin.html > To continue using the deprecated NDK compile for another 60 days, set > android.deprecatedNdkCompileLease=1512654767567 in gradle.properties > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13646) Unable to compile native code (android.useDeprecated.Ndk not supported anymore)
[ https://issues.apache.org/jira/browse/CB-13646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317319#comment-16317319 ] ASF GitHub Bot commented on CB-13646: - codecov-io commented on issue #427: CB-13646: End of an era. Using the deprecated NDK by default breaks … URL: https://github.com/apache/cordova-android/pull/427#issuecomment-356127991 # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/427?src=pr&el=h1) Report > Merging [#427](https://codecov.io/gh/apache/cordova-android/pull/427?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/fcf705e00749f39b93223eacb31b2c2a2e120d1a?src=pr&el=desc) will **not change** coverage. > The diff coverage is `n/a`. [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/427/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/427?src=pr&el=tree) ```diff @@ Coverage Diff @@ ## master #427 +/- ## === Coverage 43.95% 43.95% === Files 17 17 Lines1711 1711 Branches 318 318 === Hits 752 752 Misses959 959 ``` -- [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/427?src=pr&el=continue). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/427?src=pr&el=footer). Last update [fcf705e...3a69239](https://codecov.io/gh/apache/cordova-android/pull/427?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments). 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 > Unable to compile native code (android.useDeprecated.Ndk not supported > anymore) > --- > > Key: CB-13646 > URL: https://issues.apache.org/jira/browse/CB-13646 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser >Priority: Critical > Labels: cordova-next > > A cordova project that contains native/jni code fails to compile, because > android.useDeprecatedNdk is not supported anymore. > Steps to reproduce: > 1) create a new cordova project > 2) add android platform > 3) mkdir platforms/android/app/src/main/jni > 4) touch platforms/android/app/src/main/jni/Android.mk > 5) cordova build android > It fails with the following error: > {code} > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':app:compileDebugNdk'. > > Error: Flag android.useDeprecatedNdk is no longer supported and will be > > removed in the next version of Android Studio. Please switch to a > > supported build system. > Consider using CMake or ndk-build integration. For more information, go to: >https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile >To get started, you can use the sample ndk-build script the Android >plugin generated for you at: > .../testnative/platforms/android/app/build/intermediates/ndk/debug/Android.mk > Alternatively, you can use the experimental plugin: >https://developer.android.com/r/tools/experimental-plugin.html > To continue using the deprecated NDK compile for another 60 days, set > android.deprecatedNdkCompileLease=1512654767567 in gradle.properties > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317378#comment-16317378 ] jcesarmobile commented on CB-13643: --- [~dpa99c] config-file tag is working fine in plugin.xml, at least when using Cordova 8 and cordova-android 7, so plugins shouldn't need an update. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could
[jira] [Commented] (CB-11513) iOS memory warning stops sound, but does not send status to JS-client
[ https://issues.apache.org/jira/browse/CB-11513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317915#comment-16317915 ] ASF GitHub Bot commented on CB-11513: - damienleroux commented on issue #120: CB-11513: (ios) Fixed: iOS memory warning stops sound, but does not send status to JS-client URL: https://github.com/apache/cordova-plugin-media/pull/120#issuecomment-356202039 +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 > iOS memory warning stops sound, but does not send status to JS-client > - > > Key: CB-11513 > URL: https://issues.apache.org/jira/browse/CB-11513 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-media >Affects Versions: 3.6.3, 4.1.3, 6.4.0 > Environment: iOS 9 and iOS 10 >Reporter: Thomas K. > Labels: easyfix > > If iOS issues a memory warning while playing a sound, all sounds are > terminated. However the ios/CDVSound.m plugin does not update the state of > its JS-clients, so the last state the Client knows is Media.MEDIA_RUNNING, > which is untrue after a memory warning. This results in incorrect clientside > status. > Problem: A user's software component may send pause() instead of play() > (toggle button) effectively rendering the sound unplayable without recovery. > This happened in our case. > Fix: Do not discard currently playing sounds. The first memory warning > arrives exactly when the App enters the yellow area and consumes 500MB > however it may consume 750MB and more according to Xcode so terminating > sounds on "memory warning" is incorrect behavior. > https://github.com/apache/cordova-plugin-media/blob/master/src/ios/CDVSound.m#L814 > How to reproduce: Add 1 or 2 large animated GIFs with 200+ frames to the > UIWebView, this will consume 500MB quickly while playing the GIFs, or > simulate the memory warning using the iOS Simulator while playing a sound. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org