jcesarmobile opened a new issue, #1576:
URL: https://github.com/apache/cordova-ios/issues/1576

   At the moment, `CDVPluginResult` is optional, so for cordova-ios 7 and 
earlier you need to force unwrap it like this:
   
   ```
   let result = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: message 
as [AnyHashable: Any])!
   result.setKeepCallbackAs(true)
   return result
   ```
   See actual plugin doing this
   
https://github.com/Scandit/scandit-cordova-datacapture-core/blob/master/src/ios/Extensions/CDVPluginResult%2BExtensions.swift#L259-L263
   
   But in cordova-ios 8 it won't compile because it's not optional anymore
   
   Changing it to this works on both versions
   ```
   let result: CDVPluginResult? = CDVPluginResult(status: CDVCommandStatus_OK)
   result?.setKeepCallbackAs(true)
   return result!
   ```
   
   The breaking change should be documented


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to