Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonathan Hummel
committed
Mar 18, 2015
1 parent
a28bfc3
commit 536c819
Showing
242 changed files
with
1,310 additions
and
913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "vendor/xctool"] | ||
path = vendor/xctool | ||
url = git@github.com:facebook/xctool.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,70 @@ | ||
Change Log | ||
========== | ||
Adobe AIR Change Log | ||
==================== | ||
|
||
Version 5.1.3 | ||
Version 5.1.2 *(2015-03-13)* | ||
---------------------------- | ||
* Updated to Android version 5.1.0 and iOS SDK versions 5.1.3 | ||
* Updated API completely, see the readme | ||
>- *Android: Version 5.1.3* | ||
>- *iOS: Version 5.1.5* | ||
Version 1.1 | ||
Features: | ||
|
||
Fixes: | ||
|
||
- Fix Seeing duplicate calls for showInterstitial on Unity Android. | ||
- Fix Seeing duplicate calls for showRewardedVideo on Unity Android. | ||
- Fix issue where close buttons for video were not working on startup. | ||
|
||
Improvements: | ||
|
||
Version 5.1.1 *(2015-03-04)* | ||
---------------------------- | ||
* Fixed MoreApps delegate methods on iOS | ||
* Updated build script to automatically download the correct version of the Adobe AIR SDK Compiler | ||
* Included extension.xml and platform_ios.xml files in build folder for building the ANE | ||
>- *Android: Version 5.1.2* | ||
>- *iOS: Version 5.1.4* | ||
Features: | ||
|
||
- Added InPlay support. | ||
- Added a new method 'setStatusBarBehavior' to control how fullscreen video ads interact with the status bar. | ||
|
||
Fixes: | ||
|
||
- Fix application force quiting on back pressed when no ads shown. | ||
- Fix didDismissInterstitial and didDismissRewardedVideo not executing on Android. | ||
- Fix incorrect debug message in CBManifestEditor.cs. | ||
- Fix for duplicate calls to the creative url from the SDK. This should fix issues with third party click tracking reporting click numbers twice what we report. | ||
- Fix for max ads not being respected when campaign is set to show once per hour and autocache is set to YES. There is now a small delay after successful show call. | ||
- Fix issue for interstitial video and rewarded video calling didDismissInterstitial or didDismissRewardedVideo during a click event. | ||
- Fix didCacheInterstitial not being called if an ad was already cached at the location. | ||
- Fix issue where close buttons for fullscreen video were appearing behing the status bar. | ||
|
||
Improvements: | ||
|
||
- Added the location parameter, when available, to more relevant network requests. This should provide more information to analytics. | ||
|
||
Version 5.1.0 *(2015-01-16)* | ||
---------------------------- | ||
>- *Android: Version 5.1.0* | ||
>- *iOS: Version 5.1.3* | ||
Features: | ||
|
||
Fixes: | ||
|
||
Improvements: | ||
|
||
- Updated to Android version 5.1.0 and iOS SDK versions 5.1.3. | ||
- Updated API completely, see the README.md. | ||
|
||
Version 1.1.0 | ||
---------------------------- | ||
|
||
- Fixed MoreApps delegate methods on iOS. | ||
- Updated build script to automatically download the correct version of the Adobe AIR SDK Compiler. | ||
- Included extension.xml and platform_ios.xml files in build folder for building the ANE. | ||
|
||
Version 1.0 *(in progress)* | ||
Version 1.0.0 | ||
---------------------------- | ||
|
||
* Initial release | ||
- Initial release. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Empty file.
Empty file.
Empty file modified
0
actionscript/src/com/adobe/serialization/json/JSONParseError.as
100755 → 100644
Empty file.
Empty file.
Empty file modified
0
actionscript/src/com/adobe/serialization/json/JSONTokenType.as
100755 → 100644
Empty file.
Empty file modified
0
actionscript/src/com/adobe/serialization/json/JSONTokenizer.as
100755 → 100644
Empty file.
Empty file.
73 changes: 42 additions & 31 deletions
73
actionscript/src/com/chartboost/plugin/air/CBInPlay.as
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,68 @@ | ||
package com.chartboost.plugin.air { | ||
|
||
import com.adobe.serialization.json.Json; | ||
import flash.utils.ByteArray; | ||
import flash.display.BitmapData; | ||
import flash.display.Loader; | ||
import flash.events.Event; | ||
import flash.display.*; | ||
import flash.utils.ByteArray; | ||
|
||
public class CBInPlay { | ||
|
||
// NOTE: this class is not fully functional yet and is not included in release | ||
|
||
// vars | ||
public var appName:String; | ||
public var appIcon:String; | ||
public var appIcon:BitmapData; | ||
public var location:String; | ||
|
||
private var inPlayUniqueId:String; | ||
private var _loader:Loader; | ||
private var _callback:Function; | ||
private var appIconData:String; | ||
private var loader:Loader; | ||
private var extContext:Object; | ||
private var iconLoadedCallback:Function; | ||
|
||
public function CBInPlay(extContext:Object, inPlay:Object) { | ||
public function CBInPlay(extContext:Object, inPlay:Object, fn:Function = null) { | ||
this.inPlayUniqueId = inPlay.ID; | ||
this.appName = inPlay.name; | ||
this.appIcon = inPlay.icon; | ||
this.appIconData = inPlay.icon; | ||
this.location = inPlay.location; | ||
this.extContext = extContext; | ||
} | ||
|
||
private function loadComplete(e:Event):void { | ||
var bmp:BitmapData = new BitmapData(this._loader.width, this._loader.height, true, 0x0); | ||
bmp.draw(this._loader); | ||
this._loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loadComplete); | ||
if (this._callback != null) { | ||
this._callback.call(bmp); | ||
this._callback = null; | ||
} | ||
this._loader = null; | ||
} | ||
|
||
public function loadIcon(loadComplete:Function):void { | ||
var newByteArr:ByteArray = Base64.decodeToByteArray(this.appIcon); | ||
this.iconLoadedCallback = fn; | ||
|
||
this._callback = loadComplete; | ||
this._loader = new Loader(); | ||
this._loader.loadBytes(newByteArr); | ||
this._loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); | ||
loadIcon(); | ||
} | ||
|
||
public function show():void { | ||
if (Chartboost.isPluginSupported()) | ||
if (Chartboost.isPluginSupported()) { | ||
this.extContext.call("inPlayShow", this.inPlayUniqueId); | ||
} | ||
} | ||
|
||
public function click():void { | ||
if (Chartboost.isPluginSupported()) | ||
if (Chartboost.isPluginSupported()) { | ||
this.extContext.call("inPlayClick", this.inPlayUniqueId); | ||
} | ||
} | ||
|
||
private function loadComplete(e:Event):void { | ||
// Draw image | ||
this.appIcon = new BitmapData(this.loader.width, this.loader.height, true, 0x0); | ||
this.appIcon.draw(this.loader); | ||
|
||
// Cleanup | ||
this.loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loadComplete); | ||
this.loader = null; | ||
|
||
if (this.iconLoadedCallback != null) { | ||
this.iconLoadedCallback(this); | ||
} | ||
} | ||
|
||
private function loadIcon():void { | ||
if (this.appIconData != null) { | ||
var newByteArr:ByteArray = Base64.decodeToByteArray(this.appIconData); | ||
|
||
this.loader = new Loader(); | ||
this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); | ||
this.loader.loadBytes(newByteArr); | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
actionscript/src/com/chartboost/plugin/air/CBStatusBarBehavior.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.chartboost.plugin.air | ||
{ | ||
public final class CBStatusBarBehavior | ||
{ | ||
public static const Ignore:int = 0; | ||
public static const RespectButtons:int = 1; | ||
public static const Respect:int = 2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.