Hi tuarua,
Sorry for the Github misunderstanding. I'm using IntelliJ Premium but I found that the issue was because I forgot the following on the app xml (I'm not using new ANE's for years ๐)
<extensionID>com.tuarua.FreSharp</extensionID>
<extensionID>com.tuarua.FreSwift</extensionID>
<extensionID>com.tuarua.WebViewANE</extensionID>
Now, the app can open again, compiled with your ANE.
Testing the ANE, I get the following error:
ArgumentError: Error #3500: The extension context does not have a method with the name init.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.tuarua::WebView/init()[/Users/eoinlandy/flash/WebViewANE/native_extension/src/com/tuarua/WebView.as:98]
I also saw this on my IDE console:
[FreSwift] Initalizing ANE...
Error #3500: The extension context does not have a method with the name initFreSwift.
ArgumentError: Error #3500: The extension context does not have a method with the name initFreSwift.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.tuarua::FreSwift()
This was tested with debug mode on IntelliJ Premium with AIR 30 (Flex) on macOS.
This was tested using parts of your Flex code sample:
<?xml version="1.0" encoding="utf-8"?>
<framework:BaseView xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:framework="pt.solidsoft.gc.framework.*"
creationComplete="onWindowComplete()"
width="1024" height="768"
backgroundColor="#F1F1F1">
<fx:Script>
<![CDATA[
import com.tuarua.FreSharp;
import com.tuarua.FreSwift;
import com.tuarua.WebView;
import com.tuarua.webview.Settings;
private var freSharpANE:FreSharp = new FreSharp(); // must create before all others
private var freSwiftANE:FreSwift = new FreSwift(); // must create before all others
private var webView:WebView = new WebView();
protected function onWindowComplete():void {
this.stage.nativeWindow.addEventListener(NativeWindowBoundsEvent.RESIZE, onResize);
NativeApplication.nativeApplication.addEventListener(Event.EXITING, onExiting);
var viewport:Rectangle = getBounds(this);
var settings:Settings = new Settings();
webView = WebView.shared();
webView.init(stage, viewport, new URLRequest("https://html5test.com"), settings, 1.0, 0xFFF1F1F1);
webView.visible = true;
}
private function onResize(event:NativeWindowBoundsEvent):void {
webView.viewPort = new Rectangle(0, 0, event.afterBounds.width, event.afterBounds.height);
}
private function onExiting(event:Event):void {
WebView.dispose();
FreSwift.dispose();
FreSharp.dispose();
}
]]>
</fx:Script>
</framework:BaseView>