diff --git a/CHANGELOG.md b/CHANGELOG.md index 12ae81c..603c5ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ +###### 2020.04.20 [v3.0.0] + +``` +Added okhttp3 library +``` + + ###### 2020.04.02 [v2.0.0] ``` diff --git a/example/okhttp3/.gitignore b/example/okhttp3/.gitignore new file mode 100644 index 0000000..0b4044f --- /dev/null +++ b/example/okhttp3/.gitignore @@ -0,0 +1,4 @@ +bin-debug +bin +out +*Distriqt* diff --git a/example/okhttp3/simple/src/Assets.car b/example/okhttp3/simple/src/Assets.car new file mode 100644 index 0000000..1bb466c Binary files /dev/null and b/example/okhttp3/simple/src/Assets.car differ diff --git a/example/okhttp3/simple/src/Default-375w-667h@2x~iphone.png b/example/okhttp3/simple/src/Default-375w-667h@2x~iphone.png new file mode 100644 index 0000000..0302cf6 Binary files /dev/null and b/example/okhttp3/simple/src/Default-375w-667h@2x~iphone.png differ diff --git a/example/okhttp3/simple/src/Default-414w-736h@3x~iphone.png b/example/okhttp3/simple/src/Default-414w-736h@3x~iphone.png new file mode 100644 index 0000000..491873e Binary files /dev/null and b/example/okhttp3/simple/src/Default-414w-736h@3x~iphone.png differ diff --git a/example/okhttp3/simple/src/Default-568h@2x~iphone.png b/example/okhttp3/simple/src/Default-568h@2x~iphone.png new file mode 100644 index 0000000..a4023ca Binary files /dev/null and b/example/okhttp3/simple/src/Default-568h@2x~iphone.png differ diff --git a/example/okhttp3/simple/src/Default-812h@3x~iphone.png b/example/okhttp3/simple/src/Default-812h@3x~iphone.png new file mode 100644 index 0000000..15e30e7 Binary files /dev/null and b/example/okhttp3/simple/src/Default-812h@3x~iphone.png differ diff --git a/example/okhttp3/simple/src/Default-Landscape-414w-736h@3x~iphone.png b/example/okhttp3/simple/src/Default-Landscape-414w-736h@3x~iphone.png new file mode 100644 index 0000000..7517d7f Binary files /dev/null and b/example/okhttp3/simple/src/Default-Landscape-414w-736h@3x~iphone.png differ diff --git a/example/okhttp3/simple/src/Default-Landscape-812h@3x~iphone.png b/example/okhttp3/simple/src/Default-Landscape-812h@3x~iphone.png new file mode 100644 index 0000000..275f2d8 Binary files /dev/null and b/example/okhttp3/simple/src/Default-Landscape-812h@3x~iphone.png differ diff --git a/example/okhttp3/simple/src/Default@2x~iphone.png b/example/okhttp3/simple/src/Default@2x~iphone.png new file mode 100644 index 0000000..2d8139b Binary files /dev/null and b/example/okhttp3/simple/src/Default@2x~iphone.png differ diff --git a/example/okhttp3/simple/src/Default~iphone.png b/example/okhttp3/simple/src/Default~iphone.png new file mode 100644 index 0000000..2d8139b Binary files /dev/null and b/example/okhttp3/simple/src/Default~iphone.png differ diff --git a/example/okhttp3/simple/src/Testokhttp3-app.xml b/example/okhttp3/simple/src/Testokhttp3-app.xml new file mode 100644 index 0000000..3467e51 --- /dev/null +++ b/example/okhttp3/simple/src/Testokhttp3-app.xml @@ -0,0 +1,59 @@ + + + com.distriqt.test + Testokhttp3 + Testokhttp3 + 0.0.1 + + + [This value will be overwritten by Flash Builder in the output app.xml] + false + false + true + + + + icons/icon16x16.png + icons/icon29x29.png + icons/icon32x32.png + icons/icon36x36.png + icons/icon48x48.png + icons/icon57x57.png + icons/icon72x72.png + icons/icon76x76.png + icons/icon114x114.png + icons/icon120x120.png + icons/icon128x128.png + icons/icon152x152.png + icons/icon512x512.png + + + + UIDeviceFamily + + 1 + 2 + + ]]> + high + + + + + + + + + + ]]> + + + + com.distriqt.Core + com.distriqt.okhttp3 + + + diff --git a/example/okhttp3/simple/src/Testokhttp3.as b/example/okhttp3/simple/src/Testokhttp3.as new file mode 100644 index 0000000..56b42d7 --- /dev/null +++ b/example/okhttp3/simple/src/Testokhttp3.as @@ -0,0 +1,141 @@ +/** + * __ __ __ + * ____/ /_ ____/ /______ _ ___ / /_ + * / __ / / ___/ __/ ___/ / __ `/ __/ + * / /_/ / (__ ) / / / / / /_/ / / + * \__,_/_/____/_/ /_/ /_/\__, /_/ + * / / + * \/ + * http://distriqt.com + * + * This is a test application for the distriqt extension + * + * @author Michael Archbold & Shane Korin + * + */ +package +{ + import com.distriqt.extension.okhttp3.okhttp3; + + import flash.display.Sprite; + import flash.display.StageAlign; + import flash.display.StageScaleMode; + import flash.events.Event; + import flash.events.MouseEvent; + import flash.text.TextField; + import flash.text.TextFormat; + + + /** + * Sample application for using the okhttp3 Native Extension + */ + public class Testokhttp3 extends Sprite + { + + // + // VARIABLES + // + + + private var _text : TextField; + + + /** + * Class constructor + */ + public function Testokhttp3() + { + super(); + create(); + init(); + } + + + + // + // INITIALISATION + // + + private function create( ):void + { + stage.align = StageAlign.TOP_LEFT; + stage.scaleMode = StageScaleMode.NO_SCALE; + + _text = new TextField(); + _text.defaultTextFormat = new TextFormat( "_typewriter", 18 ); + addChild( _text ); + + stage.addEventListener( Event.RESIZE, stage_resizeHandler, false, 0, true ); + stage.addEventListener( MouseEvent.CLICK, mouseClickHandler, false, 0, true ); + + addEventListener( Event.ACTIVATE, activateHandler, false, 0, true ); + addEventListener( Event.DEACTIVATE, deactivateHandler, false, 0, true ); + } + + + private function init( ):void + { + try + { + message( "okhttp3 Supported: " + okhttp3.isSupported ); + message( "okhttp3 Version: " + okhttp3.service.version ); + + // + // Add test inits here + // + } + catch (e:Error) + { + message( "ERROR::"+e.message ); + } + } + + + // + // FUNCTIONALITY + // + + private function message( str:String ):void + { + trace( str ); + _text.appendText(str+"\n"); + } + + + // + // EVENT HANDLERS + // + + private function stage_resizeHandler( event:Event ):void + { + _text.width = stage.stageWidth; + _text.height = stage.stageHeight - 100; + } + + + private function mouseClickHandler( event:MouseEvent ):void + { + // + // Do something when user clicks screen? + // + } + + + private function activateHandler( event:Event ):void + { + } + + private function deactivateHandler( event:Event ):void + { + } + + + // + // EXTENSION HANDLERS + // + + + + } +} + diff --git a/example/okhttp3/simple/src/icons/icon114x114.png b/example/okhttp3/simple/src/icons/icon114x114.png new file mode 100644 index 0000000..663aecb Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon114x114.png differ diff --git a/example/okhttp3/simple/src/icons/icon120x120.png b/example/okhttp3/simple/src/icons/icon120x120.png new file mode 100644 index 0000000..5a202c0 Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon120x120.png differ diff --git a/example/okhttp3/simple/src/icons/icon128x128.png b/example/okhttp3/simple/src/icons/icon128x128.png new file mode 100644 index 0000000..560deef Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon128x128.png differ diff --git a/example/okhttp3/simple/src/icons/icon152x152.png b/example/okhttp3/simple/src/icons/icon152x152.png new file mode 100644 index 0000000..370a26e Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon152x152.png differ diff --git a/example/okhttp3/simple/src/icons/icon16x16.png b/example/okhttp3/simple/src/icons/icon16x16.png new file mode 100644 index 0000000..2c12887 Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon16x16.png differ diff --git a/example/okhttp3/simple/src/icons/icon29x29.png b/example/okhttp3/simple/src/icons/icon29x29.png new file mode 100644 index 0000000..7f71a80 Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon29x29.png differ diff --git a/example/okhttp3/simple/src/icons/icon32x32.png b/example/okhttp3/simple/src/icons/icon32x32.png new file mode 100644 index 0000000..b0908fb Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon32x32.png differ diff --git a/example/okhttp3/simple/src/icons/icon36x36.png b/example/okhttp3/simple/src/icons/icon36x36.png new file mode 100644 index 0000000..713943a Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon36x36.png differ diff --git a/example/okhttp3/simple/src/icons/icon48x48.png b/example/okhttp3/simple/src/icons/icon48x48.png new file mode 100644 index 0000000..216c67a Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon48x48.png differ diff --git a/example/okhttp3/simple/src/icons/icon512x512.png b/example/okhttp3/simple/src/icons/icon512x512.png new file mode 100644 index 0000000..8f68727 Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon512x512.png differ diff --git a/example/okhttp3/simple/src/icons/icon57x57.png b/example/okhttp3/simple/src/icons/icon57x57.png new file mode 100644 index 0000000..c2a1c36 Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon57x57.png differ diff --git a/example/okhttp3/simple/src/icons/icon72x72.png b/example/okhttp3/simple/src/icons/icon72x72.png new file mode 100644 index 0000000..b4687a7 Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon72x72.png differ diff --git a/example/okhttp3/simple/src/icons/icon76x76.png b/example/okhttp3/simple/src/icons/icon76x76.png new file mode 100644 index 0000000..5dbed75 Binary files /dev/null and b/example/okhttp3/simple/src/icons/icon76x76.png differ diff --git a/example/okhttp3/starling/libs/MetalWorksMobileTheme.swc b/example/okhttp3/starling/libs/MetalWorksMobileTheme.swc new file mode 100644 index 0000000..77748a7 Binary files /dev/null and b/example/okhttp3/starling/libs/MetalWorksMobileTheme.swc differ diff --git a/example/okhttp3/starling/libs/feathers.swc b/example/okhttp3/starling/libs/feathers.swc new file mode 100644 index 0000000..981d691 Binary files /dev/null and b/example/okhttp3/starling/libs/feathers.swc differ diff --git a/example/okhttp3/starling/libs/starling.swc b/example/okhttp3/starling/libs/starling.swc new file mode 100644 index 0000000..42a7597 Binary files /dev/null and b/example/okhttp3/starling/libs/starling.swc differ diff --git a/example/okhttp3/starling/src/Assets.car b/example/okhttp3/starling/src/Assets.car new file mode 100644 index 0000000..1bb466c Binary files /dev/null and b/example/okhttp3/starling/src/Assets.car differ diff --git a/example/okhttp3/starling/src/Config.as b/example/okhttp3/starling/src/Config.as new file mode 100644 index 0000000..7a73f49 --- /dev/null +++ b/example/okhttp3/starling/src/Config.as @@ -0,0 +1,34 @@ +/** + * __ __ __ + * ____/ /_ ____/ /______ _ ___ / /_ + * / __ / / ___/ __/ ___/ / __ `/ __/ + * / /_/ / (__ ) / / / / / /_/ / / + * \__,_/_/____/_/ /_/ /_/\__, /_/ + * / / + * \/ + * http://distriqt.com + * + * @file Config.as + * @brief + * @author "Michael Archbold (ma@distriqt.com)" + * @created 07/10/2014 + * @copyright http://distriqt.com/copyright/license.txt + */ +package +{ + + /** + * + */ + public class Config + { + + //////////////////////////////////////////////////////// + // VARIABLES + // + + public static var scale : Number = 1; + + + } +} diff --git a/example/okhttp3/starling/src/Default-375w-667h@2x~iphone.png b/example/okhttp3/starling/src/Default-375w-667h@2x~iphone.png new file mode 100644 index 0000000..0302cf6 Binary files /dev/null and b/example/okhttp3/starling/src/Default-375w-667h@2x~iphone.png differ diff --git a/example/okhttp3/starling/src/Default-414w-736h@3x~iphone.png b/example/okhttp3/starling/src/Default-414w-736h@3x~iphone.png new file mode 100644 index 0000000..491873e Binary files /dev/null and b/example/okhttp3/starling/src/Default-414w-736h@3x~iphone.png differ diff --git a/example/okhttp3/starling/src/Default-568h@2x~iphone.png b/example/okhttp3/starling/src/Default-568h@2x~iphone.png new file mode 100644 index 0000000..a4023ca Binary files /dev/null and b/example/okhttp3/starling/src/Default-568h@2x~iphone.png differ diff --git a/example/okhttp3/starling/src/Default-812h@3x~iphone.png b/example/okhttp3/starling/src/Default-812h@3x~iphone.png new file mode 100644 index 0000000..15e30e7 Binary files /dev/null and b/example/okhttp3/starling/src/Default-812h@3x~iphone.png differ diff --git a/example/okhttp3/starling/src/Default-Landscape-414w-736h@3x~iphone.png b/example/okhttp3/starling/src/Default-Landscape-414w-736h@3x~iphone.png new file mode 100644 index 0000000..7517d7f Binary files /dev/null and b/example/okhttp3/starling/src/Default-Landscape-414w-736h@3x~iphone.png differ diff --git a/example/okhttp3/starling/src/Default-Landscape-812h@3x~iphone.png b/example/okhttp3/starling/src/Default-Landscape-812h@3x~iphone.png new file mode 100644 index 0000000..275f2d8 Binary files /dev/null and b/example/okhttp3/starling/src/Default-Landscape-812h@3x~iphone.png differ diff --git a/example/okhttp3/starling/src/Default@2x~iphone.png b/example/okhttp3/starling/src/Default@2x~iphone.png new file mode 100644 index 0000000..2d8139b Binary files /dev/null and b/example/okhttp3/starling/src/Default@2x~iphone.png differ diff --git a/example/okhttp3/starling/src/Default~iphone.png b/example/okhttp3/starling/src/Default~iphone.png new file mode 100644 index 0000000..2d8139b Binary files /dev/null and b/example/okhttp3/starling/src/Default~iphone.png differ diff --git a/example/okhttp3/starling/src/Testokhttp3-app.xml b/example/okhttp3/starling/src/Testokhttp3-app.xml new file mode 100644 index 0000000..3d1805b --- /dev/null +++ b/example/okhttp3/starling/src/Testokhttp3-app.xml @@ -0,0 +1,72 @@ + + + com.distriqt.test + Testokhttp3 + Testokhttp3 + 0.0.1 + + + [This value will be overwritten by Flash Builder in the output app.xml] + true + false + true + direct + + + + icons/icon16x16.png + icons/icon29x29.png + icons/icon32x32.png + icons/icon36x36.png + icons/icon48x48.png + icons/icon57x57.png + icons/icon72x72.png + icons/icon76x76.png + icons/icon114x114.png + icons/icon120x120.png + icons/icon128x128.png + icons/icon152x152.png + icons/icon512x512.png + + + + UIDeviceFamily + + 1 + 2 + + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + + ]]> + high + + + + + + + + + + + + + + + ]]> + + + + com.distriqt.Core + com.distriqt.okhttp3 + + + diff --git a/example/okhttp3/starling/src/Testokhttp3.as b/example/okhttp3/starling/src/Testokhttp3.as new file mode 100644 index 0000000..ae10ef0 --- /dev/null +++ b/example/okhttp3/starling/src/Testokhttp3.as @@ -0,0 +1,116 @@ +/** + * __ __ __ + * ____/ /_ ____/ /______ _ ___ / /_ + * / __ / / ___/ __/ ___/ / __ `/ __/ + * / /_/ / (__ ) / / / / / /_/ / / + * \__,_/_/____/_/ /_/ /_/\__, /_/ + * / / + * \/ + * http://distriqt.com + * + * This is a test application for the distriqt extension + * + * @author Michael Archbold & Shane Korin + * + */ +package +{ + import com.distriqt.test.okhttp3.Main; + + import feathers.utils.ScreenDensityScaleFactorManager; + + import flash.display.Sprite; + import flash.display.StageAlign; + import flash.display.StageScaleMode; + import flash.display3D.Context3DProfile; + import flash.display3D.Context3DRenderMode; + import flash.events.Event; + import flash.geom.Rectangle; + + import starling.core.Starling; + + + /** + * Sample application for using the okhttp3 Native Extension + */ + public class Testokhttp3 extends Sprite + { + //////////////////////////////////////////////////////// + // CONSTANTS + // + + + //////////////////////////////////////////////////////// + // VARIABLES + // + + private var _starling:Starling; + private var _scaler:ScreenDensityScaleFactorManager; + + + //////////////////////////////////////////////////////// + // FUNCTIONALITY + // + + + /** + * Constructor + */ + public function Testokhttp3() + { + super(); + if(this.stage) + { + this.stage.align = StageAlign.TOP_LEFT; + this.stage.scaleMode = StageScaleMode.NO_SCALE; + } + this.mouseEnabled = this.mouseChildren = false; + this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfo_completeHandler); + } + + + + //////////////////////////////////////////////////////// + // INTERNALS + // + + + + + //////////////////////////////////////////////////////// + // EVENT HANDLERS + // + + private function loaderInfo_completeHandler(event:Event):void + { + Starling.multitouchEnabled = true; + this._starling = new Starling( Main, this.stage, null, null, Context3DRenderMode.AUTO, Context3DProfile.BASELINE ); + this._starling.enableErrorChecking = false; + this._starling.skipUnchangedFrames = false; + this._starling.supportHighResolutions = true; + this._starling.start(); + + this._scaler = new ScreenDensityScaleFactorManager(this._starling); + + this.stage.addEventListener(Event.DEACTIVATE, stage_deactivateHandler, false, 0, true); + } + + + private function stage_deactivateHandler(event:Event):void + { + this._starling.stop(true); + this.stage.addEventListener(Event.ACTIVATE, stage_activateHandler, false, 0, true); + } + + private function stage_activateHandler(event:Event):void + { + this.stage.removeEventListener(Event.ACTIVATE, stage_activateHandler); + this._starling.start(); + } + + + + + } +} + diff --git a/example/okhttp3/starling/src/com/distriqt/test/okhttp3/ILogger.as b/example/okhttp3/starling/src/com/distriqt/test/okhttp3/ILogger.as new file mode 100644 index 0000000..8544217 --- /dev/null +++ b/example/okhttp3/starling/src/com/distriqt/test/okhttp3/ILogger.as @@ -0,0 +1,24 @@ +/** + * __ __ __ + * ____/ /_ ____/ /______ _ ___ / /_ + * / __ / / ___/ __/ ___/ / __ `/ __/ + * / /_/ / (__ ) / / / / / /_/ / / + * \__,_/_/____/_/ /_/ /_/\__, /_/ + * / / + * \/ + * http://distriqt.com + * + * @file ILogger.as + * @brief + * @author "Michael Archbold (ma@distriqt.com)" + * @created 26/03/2015 + * @updated $Date:$ + * @copyright http://distriqt.com/copyright/license.txt + */ +package com.distriqt.test.okhttp3 +{ + public interface ILogger + { + function log( tag:String, message:String ):void; + } +} diff --git a/example/okhttp3/starling/src/com/distriqt/test/okhttp3/Main.as b/example/okhttp3/starling/src/com/distriqt/test/okhttp3/Main.as new file mode 100644 index 0000000..c64ba95 --- /dev/null +++ b/example/okhttp3/starling/src/com/distriqt/test/okhttp3/Main.as @@ -0,0 +1,134 @@ +/** + * __ __ __ + * ____/ /_ ____/ /______ _ ___ / /_ + * / __ / / ___/ __/ ___/ / __ `/ __/ + * / /_/ / (__ ) / / / / / /_/ / / + * \__,_/_/____/_/ /_/ /_/\__, /_/ + * / / + * \/ + * http://distriqt.com + * + * @file Main.as + * @brief + * @author "Michael Archbold (ma@distriqt.com)" + * @created 08/01/2016 + * @copyright http://distriqt.com/copyright/license.txt + */ +package com.distriqt.test.okhttp3 +{ + import feathers.controls.Button; + import feathers.controls.ScrollContainer; + import feathers.layout.HorizontalAlign; + import feathers.layout.VerticalAlign; + import feathers.layout.VerticalLayout; + import feathers.themes.MetalWorksMobileTheme; + + import starling.display.Sprite; + import starling.events.Event; + import starling.text.TextField; + import starling.text.TextFormat; + import starling.utils.Color; + + /** + * + */ + public class Main extends Sprite implements ILogger + { + //////////////////////////////////////////////////////// + // CONSTANTS + // + + + //////////////////////////////////////////////////////// + // VARIABLES + // + + private var _tests : okhttp3Tests; + + private var _text : TextField; + private var _container : ScrollContainer ; + + + //////////////////////////////////////////////////////// + // FUNCTIONALITY + // + + + /** + * Constructor + */ + public function Main() + { + super(); + addEventListener( Event.ADDED_TO_STAGE, addedToStageHandler ); + } + + + public function log( tag:String, message:String ):void + { + trace( tag+"::"+message ); + if (_text) + _text.text = tag+"::"+message + "\n" + _text.text ; + } + + + //////////////////////////////////////////////////////// + // INTERNALS + // + + + private function createUI():void + { + var tf:TextFormat = new TextFormat( "_typewriter", 12, Color.WHITE, HorizontalAlign.LEFT, VerticalAlign.TOP ); + _text = new TextField( stage.stageWidth, stage.stageHeight, "", tf ); + _text.y = 40; + _text.touchable = false; + + var layout:VerticalLayout = new VerticalLayout(); + layout.horizontalAlign = HorizontalAlign.RIGHT; + layout.verticalAlign = VerticalAlign.BOTTOM; + layout.gap = 5; + + _container = new ScrollContainer(); + _container.y = 40; + _container.layout = layout; + _container.width = stage.stageWidth; + _container.height = stage.stageHeight-40; + + + _tests = new okhttp3Tests( this ); + + + addAction( "Test", _tests.test ); + + + addChild( _tests ); + addChild( _text ); + addChild( _container ); + } + + + private function addAction( label:String, listener:Function ):void + { + var b:Button = new Button(); + b.label = label; + b.addEventListener( starling.events.Event.TRIGGERED, listener ); + _container.addChild(b); + } + + + + //////////////////////////////////////////////////////// + // EVENT HANDLERS + // + + protected function addedToStageHandler(event:Event):void + { + removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler ); + new MetalWorksMobileTheme(); + createUI(); + } + + + } +} diff --git a/example/okhttp3/starling/src/com/distriqt/test/okhttp3/okhttp3Tests.as b/example/okhttp3/starling/src/com/distriqt/test/okhttp3/okhttp3Tests.as new file mode 100644 index 0000000..b9749fb --- /dev/null +++ b/example/okhttp3/starling/src/com/distriqt/test/okhttp3/okhttp3Tests.as @@ -0,0 +1,81 @@ +/** + * __ __ __ + * ____/ /_ ____/ /______ _ ___ / /_ + * / __ / / ___/ __/ ___/ / __ `/ __/ + * / /_/ / (__ ) / / / / / /_/ / / + * \__,_/_/____/_/ /_/ /_/\__, /_/ + * / / + * \/ + * http://distriqt.com + * + * @author "Michael Archbold (ma@distriqt.com)" + * @created 08/01/2016 + * @copyright http://distriqt.com/copyright/license.txt + */ +package com.distriqt.test.okhttp3 +{ + import com.distriqt.extension.okhttp3.okhttp3; + + import flash.display.Bitmap; + import flash.filesystem.File; + import flash.geom.Rectangle; + import flash.net.URLRequest; + import flash.net.navigateToURL; + import flash.utils.setTimeout; + + import starling.core.Starling; + + import starling.display.Image; + import starling.display.Sprite; + + /** + */ + public class okhttp3Tests extends Sprite + { + public static const TAG : String = ""; + + private var _l : ILogger; + + private function log( log:String ):void + { + _l.log( TAG, log ); + } + + + + + //////////////////////////////////////////////////////// + // FUNCTIONALITY + // + + public function okhttp3Tests( logger:ILogger ) + { + _l = logger; + try + { + log( "okhttp3 Supported: " + okhttp3.isSupported ); + if (okhttp3.isSupported) + { + log( "okhttp3 Version: " + okhttp3.service.version ); + } + + } + catch (e:Error) + { + trace( e ); + } + } + + + //////////////////////////////////////////////////////// + // + // + + public function test():void + { + + } + + + } +} diff --git a/example/okhttp3/starling/src/icons/icon114x114.png b/example/okhttp3/starling/src/icons/icon114x114.png new file mode 100644 index 0000000..663aecb Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon114x114.png differ diff --git a/example/okhttp3/starling/src/icons/icon120x120.png b/example/okhttp3/starling/src/icons/icon120x120.png new file mode 100644 index 0000000..5a202c0 Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon120x120.png differ diff --git a/example/okhttp3/starling/src/icons/icon128x128.png b/example/okhttp3/starling/src/icons/icon128x128.png new file mode 100644 index 0000000..560deef Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon128x128.png differ diff --git a/example/okhttp3/starling/src/icons/icon152x152.png b/example/okhttp3/starling/src/icons/icon152x152.png new file mode 100644 index 0000000..370a26e Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon152x152.png differ diff --git a/example/okhttp3/starling/src/icons/icon16x16.png b/example/okhttp3/starling/src/icons/icon16x16.png new file mode 100644 index 0000000..2c12887 Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon16x16.png differ diff --git a/example/okhttp3/starling/src/icons/icon29x29.png b/example/okhttp3/starling/src/icons/icon29x29.png new file mode 100644 index 0000000..7f71a80 Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon29x29.png differ diff --git a/example/okhttp3/starling/src/icons/icon32x32.png b/example/okhttp3/starling/src/icons/icon32x32.png new file mode 100644 index 0000000..b0908fb Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon32x32.png differ diff --git a/example/okhttp3/starling/src/icons/icon36x36.png b/example/okhttp3/starling/src/icons/icon36x36.png new file mode 100644 index 0000000..713943a Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon36x36.png differ diff --git a/example/okhttp3/starling/src/icons/icon48x48.png b/example/okhttp3/starling/src/icons/icon48x48.png new file mode 100644 index 0000000..216c67a Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon48x48.png differ diff --git a/example/okhttp3/starling/src/icons/icon512x512.png b/example/okhttp3/starling/src/icons/icon512x512.png new file mode 100644 index 0000000..8f68727 Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon512x512.png differ diff --git a/example/okhttp3/starling/src/icons/icon57x57.png b/example/okhttp3/starling/src/icons/icon57x57.png new file mode 100644 index 0000000..c2a1c36 Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon57x57.png differ diff --git a/example/okhttp3/starling/src/icons/icon72x72.png b/example/okhttp3/starling/src/icons/icon72x72.png new file mode 100644 index 0000000..b4687a7 Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon72x72.png differ diff --git a/example/okhttp3/starling/src/icons/icon76x76.png b/example/okhttp3/starling/src/icons/icon76x76.png new file mode 100644 index 0000000..5dbed75 Binary files /dev/null and b/example/okhttp3/starling/src/icons/icon76x76.png differ diff --git a/lib/VERSION.md b/lib/VERSION.md index edb8859..e6960e9 100644 --- a/lib/VERSION.md +++ b/lib/VERSION.md @@ -2,4 +2,5 @@ | Extension | Version | | --- | --- | | com.distriqt.square.okhttp | 2.7.2 | +| com.distriqt.square.okhttp3 | 3.11.0 | | | | com.distriqt.square.picasso | 2.5.2 | diff --git a/lib/com.distriqt.square.okhttp.ane b/lib/com.distriqt.square.okhttp.ane index ead8fc4..5dbba5b 100644 Binary files a/lib/com.distriqt.square.okhttp.ane and b/lib/com.distriqt.square.okhttp.ane differ diff --git a/lib/com.distriqt.square.okhttp3.ane b/lib/com.distriqt.square.okhttp3.ane new file mode 100644 index 0000000..605ec97 Binary files /dev/null and b/lib/com.distriqt.square.okhttp3.ane differ diff --git a/lib/com.distriqt.square.picasso.ane b/lib/com.distriqt.square.picasso.ane index 0638d02..3368b4b 100644 Binary files a/lib/com.distriqt.square.picasso.ane and b/lib/com.distriqt.square.picasso.ane differ