Skip to content

Commit

Permalink
Release: version 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Blubaugh committed Apr 6, 2015
1 parent ec95adb commit c61fdc5
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version 3.6.1 (April 6, 2015)

- **Bug Fix** Fixed a compile error in FacebookBanner.java

## Version 3.6.0 (April 3, 2015)

- **Facebook Update** Updated supported Facebook Audience Network version to 3.23.1
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ Integration instructions are available on the [wiki](https://github.com/mopub/mo
## New in this Version

Please view the [changelog](https://github.com/mopub/mopub-android-sdk/blob/master/CHANGELOG.md) for details.
### 3.6.1
- **Bug Fix** Fixed a compile error in FacebookBanner.java

### 3.6.0
- **Facebook Update** Updated supported Facebook Audience Network version to 3.23.1
- **Bug fix** Fixed a bug where interstitials could leak memory; Fixes [issue #153](https://github.com/mopub/mopub-android-sdk/issues/153)
- **VAST Video** Updated the VAST video player to support Progress events.
Expand Down
4 changes: 2 additions & 2 deletions mopub-sample/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mopub.simpleadsdemo"
android:versionCode="22"
android:versionName="3.6.0">
android:versionCode="23"
android:versionName="3.6.1">
<uses-sdk android:minSdkVersion="9"
android:targetSdkVersion="19"/>

Expand Down
4 changes: 2 additions & 2 deletions mopub-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
buildToolsVersion '21.1.1'

defaultConfig {
versionCode 22
versionName "3.6.0"
versionCode 1
versionName "3.6.1"
minSdkVersion 9
targetSdkVersion 19
}
Expand Down
4 changes: 2 additions & 2 deletions mopub-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ android {
buildToolsVersion '21.1.1'

defaultConfig {
versionCode 22
versionName "3.6.0"
versionCode 1
versionName "3.6.1"
minSdkVersion 9
targetSdkVersion 19
consumerProguardFiles 'proguard.txt'
Expand Down
2 changes: 2 additions & 0 deletions mopub-sdk/src/main/java/com/mopub/common/DataKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ public class DataKeys {
public static final String JSON_BODY_KEY = "com_mopub_native_json";
public static final String BROADCAST_IDENTIFIER_KEY = "broadcastIdentifier";
public static final String AD_UNIT_ID_KEY = "com_mopub_ad_unit_id";
public static final String AD_WIDTH = "com_mopub_ad_width";
public static final String AD_HEIGHT = "com_mopub_ad_height";
}
2 changes: 1 addition & 1 deletion mopub-sdk/src/main/java/com/mopub/common/MoPub.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.mopub.mobileads.MoPubRewardedVideoManager;

public class MoPub {
public static final String SDK_VERSION = "3.6.0";
public static final String SDK_VERSION = "3.6.1";

public static enum LocationAwareness { NORMAL, TRUNCATED, DISABLED }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
import java.util.Map;
import java.util.TreeMap;

import static com.mopub.common.DataKeys.AD_HEIGHT;
import static com.mopub.common.DataKeys.AD_REPORT_KEY;
import static com.mopub.common.DataKeys.AD_WIDTH;
import static com.mopub.common.DataKeys.BROADCAST_IDENTIFIER_KEY;
import static com.mopub.mobileads.MoPubErrorCode.ADAPTER_NOT_FOUND;
import static com.mopub.mobileads.MoPubErrorCode.NETWORK_TIMEOUT;
Expand Down Expand Up @@ -71,6 +73,8 @@ public void run() {
}
mLocalExtras.put(BROADCAST_IDENTIFIER_KEY, broadcastIdentifier);
mLocalExtras.put(AD_REPORT_KEY, adReport);
mLocalExtras.put(AD_WIDTH, mMoPubView.getAdWidth());
mLocalExtras.put(AD_HEIGHT, mMoPubView.getAdHeight());
}

void loadAd() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
import java.util.Set;
import java.util.TreeMap;

/**
*/
public class MoPubRewardedVideoManager {
private static MoPubRewardedVideoManager sInstance;
private static final int DEFAULT_LOAD_TIMEOUT = Constants.THIRTY_SECONDS_MILLIS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,20 @@ public class CustomEventBannerAdapterTest {
private static final long BROADCAST_IDENTIFIER = 123;
private Map<String, String> serverExtras;
private CustomEventBanner banner;
private Map<String,Object> localExtras;
private Map<String,Object> expectedLocalExtras;
private HashMap<String,String> expectedServerExtras;

@Before
public void setUp() throws Exception {

when(moPubView.getAdTimeoutDelay()).thenReturn(null);
when(moPubView.getAdWidth()).thenReturn(320);
when(moPubView.getAdHeight()).thenReturn(50);

localExtras = new HashMap<String, Object>();
when(moPubView.getLocalExtras()).thenReturn(localExtras);

serverExtras = new HashMap<String, String>();
serverExtras.put("key", "value");
serverExtras.put("another_key", "another_value");
Expand All @@ -61,11 +68,20 @@ public void setUp() throws Exception {
expectedLocalExtras = new HashMap<String, Object>();
expectedLocalExtras.put(DataKeys.AD_REPORT_KEY, mockAdReport);
expectedLocalExtras.put("broadcastIdentifier", BROADCAST_IDENTIFIER);
expectedLocalExtras.put(DataKeys.AD_WIDTH, 320);
expectedLocalExtras.put(DataKeys.AD_HEIGHT, 50);

expectedServerExtras = new HashMap<String, String>();

banner = CustomEventBannerFactory.create(CLASS_NAME);
}

@Test
public void constructor_shouldPopulateLocalExtrasWithAdWidthAndHeight() throws Exception {
assertThat(localExtras.get("com_mopub_ad_width")).isEqualTo(320);
assertThat(localExtras.get("com_mopub_ad_height")).isEqualTo(50);
}

@Test
public void timeout_shouldSignalFailureAndInvalidateWithDefaultDelay() throws Exception {
subject.loadAd();
Expand Down

0 comments on commit c61fdc5

Please sign in to comment.