Skip to content

Commit

Permalink
Release: version 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Uchitel and Bichen Wang committed Aug 15, 2018
1 parent caaa274 commit cd3e84e
Show file tree
Hide file tree
Showing 116 changed files with 4,956 additions and 2,693 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## Version 5.3.0 (August 15, 2018)
- This release includes the foundation work for SDK to receive optimized responses for multiple placements from the waterfall. This effort will reduce the number of server roundtrips and minimize the ad response latency.
- Upgraded ExoPlayer dependency to 2.8.2.
- Upgraded recommended Google Play Services dependency to 15.0.1.
- Upgraded target sdk version to 27 and support libraries to 27.1.1.
- Upgraded Gradle dependency to 4.4.
- Upgraded Android Plugin dependency to 3.1.3.
- Upgraded test dependencies Powermock to 1.6.6 and Robolectric to 3.8.
- Bug Fixes.

## Version 5.2.0 (July 9, 2018)
- SDK initialization is required for ads to load. Ad requests will fail unless MoPub is initialized.
- `MoPub#isSdkInitialized()` now more accurately reflects whether or not MoPub is initialized. This method now returns true after the `SdkInitializationListener#onInitializationFinished()` callback instead of immediately.
Expand Down
33 changes: 19 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The MoPub SDK is available via:
}
dependencies {
implementation('com.mopub:mopub-sdk:5.2.0@aar') {
implementation('com.mopub:mopub-sdk:5.3.0@aar') {
transitive = true
}
}
Expand All @@ -61,27 +61,27 @@ The MoPub SDK is available via:
// ... other project dependencies
// For banners
implementation('com.mopub:mopub-sdk-banner:5.2.0@aar') {
implementation('com.mopub:mopub-sdk-banner:5.3.0@aar') {
transitive = true
}
// For interstitials
implementation('com.mopub:mopub-sdk-interstitial:5.2.0@aar') {
implementation('com.mopub:mopub-sdk-interstitial:5.3.0@aar') {
transitive = true
}
// For rewarded videos. This will automatically also include interstitials
implementation('com.mopub:mopub-sdk-rewardedvideo:5.2.0@aar') {
implementation('com.mopub:mopub-sdk-rewardedvideo:5.3.0@aar') {
transitive = true
}
// For native static (images).
implementation('com.mopub:mopub-sdk-native-static:5.2.0@aar') {
implementation('com.mopub:mopub-sdk-native-static:5.3.0@aar') {
transitive = true
}
// For native video. This will automatically also include native static
implementation('com.mopub:mopub-sdk-native-video:5.2.0@aar') {
implementation('com.mopub:mopub-sdk-native-video:5.3.0@aar') {
transitive = true
}
}
Expand Down Expand Up @@ -109,17 +109,22 @@ The MoPub SDK is available via:
## New in this Version
Please view the [changelog](https://github.com/mopub/mopub-android-sdk/blob/master/CHANGELOG.md) for a complete list of additions, fixes, and enhancements in the latest release.
- SDK initialization is required for ads to load. Ad requests will fail unless MoPub is initialized.
- `MoPub#isSdkInitialized()` now more accurately reflects whether or not MoPub is initialized. This method now returns true after the `SdkInitializationListener#onInitializationFinished()` callback instead of immediately.
- This release includes the foundation work for SDK to receive optimized responses for multiple placements from the waterfall. This effort will reduce the number of server roundtrips and minimize the ad response latency.
- Upgraded ExoPlayer dependency to 2.8.2.
- Upgraded recommended Google Play Services dependency to 15.0.1.
- Upgraded target sdk version to 27 and support libraries to 27.1.1.
- Upgraded Gradle dependency to 4.4.
- Upgraded Android Plugin dependency to 3.1.3.
- Upgraded test dependencies Powermock to 1.6.6 and Robolectric to 3.8.
## Requirements
- Android 4.1 (API Version 16) and up (**Updated in 4.12.0**)
- android-support-v4.jar, r26 (**Updated in 4.18.0**)
- android-support-annotations.jar, r26 (**Updated in 4.18.0**)
- android-support-v7-recyclerview.jar, r26 (**Updated in 4.18.0**)
- android-support-v4.jar, r27 (**Updated in 5.3.0**)
- android-support-annotations.jar, r27 (**Updated in 5.3.0**)
- android-support-v7-recyclerview.jar, r27 (**Updated in 5.3.0**)
- MoPub Volley Library (mopub-volley-2.0.0.jar - available on JCenter) (**Updated in 5.0.0**)
- **Recommended** Google Play Services 11.4.0
- **Recommended** Google Play Services 15.0.1
## Upgrading to SDK 5.0
Expand All @@ -139,7 +144,7 @@ Normally, to add the MoPub SDK to your app via JCenter, your `build.gradle` woul
```
dependencies {
implementation('com.mopub:mopub-sdk:5.2.0@aar') {
implementation('com.mopub:mopub-sdk:5.3.0@aar') {
transitive = true
}
}
Expand All @@ -148,7 +153,7 @@ Update to the following to exclude one or both viewability vendors:
```
dependencies {
implementation('com.mopub:mopub-sdk:5.2.0@aar') {
implementation('com.mopub:mopub-sdk:5.3.0@aar') {
transitive = true
exclude module: 'libAvid-mopub' // To exclude AVID
exclude module: 'moat-mobile-app-kit' // To exclude Moat
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.novoda:bintray-release:0.8.0'
}
}

task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
gradleVersion = '4.4'
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Nov 13 15:46:01 PST 2017
#Thu Jul 12 13:45:05 PDT 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
13 changes: 7 additions & 6 deletions mopub-sample/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +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="62"
android:versionName="5.2.0">
<uses-sdk android:minSdkVersion="16"
android:targetSdkVersion="26"/>
android:versionCode="63"
android:versionName="5.3.0">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Expand All @@ -13,8 +11,11 @@
<!--WRITE_EXTERNAL_STORAGE is optional and only required for MRAID 2.0 storePicture ads.-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<application android:icon="@drawable/icon" android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config">
<application
android:icon="@drawable/icon"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true">
<activity android:name="com.mopub.simpleadsdemo.MoPubSampleActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
Expand Down
18 changes: 9 additions & 9 deletions mopub-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ apply plugin: 'com.android.application'

project.group = 'com.mopub'
project.description = '''MoPub Sample App'''
project.version = '5.2.0'
project.version = '5.3.0'

android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
compileSdkVersion 27
lintOptions { abortOnError false }

defaultConfig {
versionCode 62
versionCode 63
versionName version
minSdkVersion 16
targetSdkVersion 26
targetSdkVersion 27
}

buildTypes {
Expand Down Expand Up @@ -57,9 +56,10 @@ android {
}

dependencies {
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.google.android.gms:play-services-ads:11.4.0'
implementation 'com.google.android.gms:play-services-base:11.4.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.google.android.gms:play-services-base:15.0.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation project(':mopub-sdk')
}
24 changes: 12 additions & 12 deletions mopub-sample/res/layout/ad_config_dialog.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="@dimen/sample_text_size">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="@dimen/sample_text_size"
android:textDirection="locale">

<LinearLayout
android:layout_width="match_parent"
Expand All @@ -17,13 +17,13 @@
android:layout_width="80sp"
android:layout_height="wrap_content"
android:text="@string/ad_type"
android:textSize="@dimen/sample_text_size"/>
android:textSize="@dimen/sample_text_size" />

<Spinner
android:id="@+id/add_ad_unit_type"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"/>
android:layout_weight="1" />
</LinearLayout>

<LinearLayout
Expand All @@ -36,14 +36,14 @@
android:layout_width="80sp"
android:layout_height="wrap_content"
android:text="@string/ad_unit_id"
android:textSize="@dimen/sample_text_size"/>
android:textSize="@dimen/sample_text_size" />

<EditText
android:id="@+id/add_ad_unit_id"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/ad_unit_hint"/>
android:hint="@string/ad_unit_hint" />

</LinearLayout>

Expand All @@ -58,14 +58,14 @@
android:layout_width="80sp"
android:layout_height="wrap_content"
android:text="@string/ad_unit_name"
android:textSize="@dimen/sample_text_size"/>
android:textSize="@dimen/sample_text_size" />

<EditText
android:id="@+id/add_ad_unit_description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/ad_unit_name_hint"/>
android:hint="@string/ad_unit_name_hint" />
</LinearLayout>

</LinearLayout>
</LinearLayout>
15 changes: 10 additions & 5 deletions mopub-sample/res/layout/ad_configuration_list_item.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="8dp" >
android:paddingBottom="8dp"
android:textDirection="locale">

<TextView
android:id="@+id/separator"
Expand All @@ -20,8 +21,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:paddingEnd="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingStart="8dp"
android:paddingTop="8dp"
android:singleLine="true"
android:textColor="?android:attr/textColorPrimary"
Expand All @@ -34,8 +37,10 @@
android:layout_height="wrap_content"
android:layout_below="@id/banner_description"
android:layout_marginTop="8dp"
android:paddingEnd="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingStart="8dp"
android:singleLine="true"
android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp"
Expand All @@ -45,10 +50,10 @@
android:id="@+id/banner_delete"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:scaleType="centerCrop"
android:src="@android:drawable/ic_menu_delete"
/>
android:src="@android:drawable/ic_menu_delete" />

</RelativeLayout>
</LinearLayout>
23 changes: 11 additions & 12 deletions mopub-sample/res/layout/ad_unit_list_fragment.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="15dp">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="15dp"
android:textDirection="locale">

<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginBottom="10dp"/>
android:layout_marginBottom="10dp"
android:layout_weight="1" />

<Button
android:id="@+id/add_ad_unit_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/add_ad_unit_button"
/>
android:text="@string/add_ad_unit_button" />

<TextView
android:id="@+id/version_code"
android:layout_gravity="center_horizontal"
android:textSize="@dimen/detail_text_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textSize="@dimen/detail_text_size" />
</LinearLayout>
Loading

0 comments on commit cd3e84e

Please sign in to comment.