noah canton <[email protected]> writes:

> Hello,
>
> I'm attempting to migrate my Android Cordova project to incorporate
> Crosswalk but having an issue with the standard splash screen plugin -
> https://github.com/apache/cordova-plugin-splashscreen  Here's the error I'm
> seeing when building:
>
>     [javac]
> /Library/WebServer/Documents/cordova/platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java:232:
> error: cannot find symbol
>     [javac]         if (webView.canGoBack()) {
>     [javac]                    ^
>     [javac]   symbol:   method canGoBack()
>     [javac]   location: variable webView of type CordovaWebView
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 1 error
>     [javac] 3 warnings
>
> I believe the intended approach here is to do a run time check for which
> webView version is available but the Crosswalk build is not happy that a
> deprecated API is included.
>
> Anything I can do here w/out modifying the plugin?

It's not that the API is deprecated, but rather that this version of the
splash screen plugin uses a method that is not implemented in
Crosswalk's version of CordovaWebView.

https://crosswalk-project.org/documentation/cordova/migrate_an_application.html
does mention version 0.3.0 of the plugin, and indeed its 0.3.x series
does not invoke that method, so the quickest solution for now would be
to use an older version of the splash screen plugin

With that said, I'm not sure if Crosswalk's CordovaWebView was made
API-incompatible with the upstream one on purpose. I've filed
https://crosswalk-project.org/jira/browse/XWALK-3612 about it; you can
watch the issue and add your comments to it.
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to