Skip to content

Commit

Permalink
Version 5.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Hummel committed Mar 18, 2015
1 parent a28bfc3 commit 536c819
Show file tree
Hide file tree
Showing 242 changed files with 1,310 additions and 913 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "vendor/xctool"]
path = vendor/xctool
url = git@github.com:facebook/xctool.git
74 changes: 62 additions & 12 deletions CHANGELOG.md
@@ -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.



5 changes: 3 additions & 2 deletions actionscript/.actionScriptProperties
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="ChartboostAIR.as" projectUUID="00e32a35-f87b-4e0c-9bec-cb63c670c356" version="10">
<compiler additionalCompilerArguments="-locale en_US -swf-version 27" autoRSLOrdering="true" copyDependentFiles="false" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin" removeUnusedRSL="true" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="true" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
<actionScriptProperties analytics="false" mainApplicationPath="ChartboostAIR.as" projectUUID="00e32a35-f87b-4e0c-9bec-cb63c670c356" version="11">
<compiler additionalCompilerArguments="-locale en_US -swf-version 27" autoRSLOrdering="true" copyDependentFiles="false" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin" removeUnusedRSL="true" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="true" useDebugRSLSwfs="true" useFlashSDK="false" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="4" path="">
Expand All @@ -15,6 +15,7 @@
<application path="ChartboostAIR.as"/>
</applications>
<modules/>
<workers/>
<buildCSSFiles/>
<flashCatalyst validateFlashCatalystCompatibility="false"/>
</actionScriptProperties>
2 changes: 1 addition & 1 deletion actionscript/.flexLibProperties
Expand Up @@ -15,8 +15,8 @@
<classEntry path="com.chartboost.plugin.air.CBLocation"/>
<classEntry path="com.chartboost.plugin.air.CBUtils"/>
<classEntry path="com.chartboost.plugin.air.Chartboost"/>
<classEntry path="com.chartboost.plugin.air.ChartboostDelegate"/>
<classEntry path="com.chartboost.plugin.air.ChartboostEvent"/>
<classEntry path="com.chartboost.plugin.air.CBStatusBarBehavior"/>
</includeClasses>
<includeResources/>
<namespaceManifests/>
Expand Down
Binary file modified actionscript/bin/ChartboostAIR.swc
Binary file not shown.
Empty file modified actionscript/src/com/adobe/serialization/json/JSONDecoder.as 100755 → 100644
Empty file.
Empty file modified actionscript/src/com/adobe/serialization/json/JSONEncoder.as 100755 → 100644
Empty file.
Empty file modified actionscript/src/com/adobe/serialization/json/JSONParseError.as 100755 → 100644
Empty file.
Empty file modified actionscript/src/com/adobe/serialization/json/JSONToken.as 100755 → 100644
Empty file.
Empty file modified actionscript/src/com/adobe/serialization/json/JSONTokenType.as 100755 → 100644
Empty file.
Empty file modified actionscript/src/com/adobe/serialization/json/JSONTokenizer.as 100755 → 100644
Empty file.
Empty file modified actionscript/src/com/adobe/serialization/json/Json.as 100755 → 100644
Empty file.
73 changes: 42 additions & 31 deletions actionscript/src/com/chartboost/plugin/air/CBInPlay.as 100755 → 100644
@@ -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);
}
}
}
}
@@ -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;
}
}
2 changes: 1 addition & 1 deletion actionscript/src/com/chartboost/plugin/air/CBUtils.as
@@ -1,6 +1,6 @@
package com.chartboost.plugin.air {

import flash.utils.*;
import flash.utils.describeType;

public class CBUtils {
public static function InitEnumConstants(inType :*):void {
Expand Down

0 comments on commit 536c819

Please sign in to comment.