Skip to content

WebView Adobe Air Native Extension for OSX 10.10+, Windows Desktop, iOS 9.0+ and Android 19+. This ANE provides access to a more modern webview from AIR.

License

Notifications You must be signed in to change notification settings

1395881288/WebViewANE

 
 

Repository files navigation

WebViewANE

WebView Adobe Air Native Extension for OSX 10.10+, Windows Desktop, iOS 9.0+ and Android19+. This ANE provides access to a more modern webview from AIR.

ASDocs Documentation


Much time, skill and effort has gone into this. Help support the project

paypal


!! Version 0.0.26+

There is now a new dependency ANE for OSX (required Swift libraries). This can be included on Windows without effect. This is included in \native_extension\ane\CommonDependencies.ane.
It must be included along with the WebView ANE in your projects.
It also must be created before the webView.

<extensions>
    <extensionID>com.tuarua.WebViewANE</extensionID>
    <extensionID>com.tuarua.CommonDependencies</extensionID>
</extensions>
private var commonDependenciesANE:CommonDependencies = new CommonDependencies();
private var webView:WebViewANE = new WebViewANE();

Windows

The Windows version utilises the CefSharp WinForms version of Chromium Embedded Framework.

Windows Installation - Important!
  • Download cef_binaries_x86.zip from the latest release tag
  • Unzip the contents of cef_binaries_x86.zip into the bin folder of your AIRSDK.
  • Copy the contents of the "cef_sharp_libs_x86" folder into the bin folder of your AIRSDK.

The location of this will vary depending on your IDE. These dlls and other cef files need to reside in the folder where adl.exe is run from.

  • CEF was built with MS Visual Studio 2013. As such your machine (and user's machines) will need to have Microsoft Visual C++ 2013 Redistributable (x86) runtime installed. http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe

  • This ANE was built with MS Visual Studio 2015. As such your machine (and user's machines) will need to have Microsoft Visual C++ 2015 Redistributable (x86) runtime installed. https://www.microsoft.com/en-us/download/details.aspx?id=48145

  • This ANE also uses .NET 4.6 Framework. As such your machine (and user's machines) will need to have to have this installed. https://www.microsoft.com/en-us/download/details.aspx?id=48130

  • For release builds, the cef_binaries_x86 and cef_sharp_libs_x86 files need to be packaged in the same folder as your exe.
    It is highly recommended you package your app for release using an installer.
    Please see the win_installer folder for an example Inno Setup project which handles .NET 4.6 and MSVC2013 and MSV2015 dependencies.

  • The Cef view and processes can only be attached once to your app. Therefore only one instance can be created and used.

Windows 64bit

The Adobe AIRSDK 64bit BETA is available here: https://fpdownload.macromedia.com/pub/labs/flashruntimes/air/win64SDK/AIRSDK_Compiler.zip

If you are using the 64bit version follow the above instructions replacing x86 with x64 where applicable

OSX

The OSX version utilises the native WKWebView.

iOS

Dependencies
From the command line cd into /example-mobile and run:

bash get_ios_dependencies.sh

Running on Simulator

The example project can be run on the Simulator from IntelliJ using AIR 26. AIR 27 contains a bug when packaging.

Running on Device

The example project can be run on the device from IntelliJ using AIR 27. AIR 27 now correctly signs the included Swift frameworks and therefore no resigning tool is needed.

Submitting to App Store

ADT is not currently producing a valid ipa for the App Store.
Please see the README here for package script
This is a minor inconvenience and only needs to be done when your app is ready to go to the App Store.

Prerequisites

You will need

  • Xcode 8.3 / AppCode
  • IntelliJ IDEA
  • AIR 26 and AIR 27

Android

The Android version utilises the native WebView.

alt tag

References

About

WebView Adobe Air Native Extension for OSX 10.10+, Windows Desktop, iOS 9.0+ and Android 19+. This ANE provides access to a more modern webview from AIR.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • ActionScript 29.4%
  • Swift 22.4%
  • C# 15.5%
  • Objective-C 8.1%
  • Kotlin 7.2%
  • Shell 5.2%
  • Other 12.2%