Skip to content

Commit

Permalink
Prepare for release of version 4.0
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 271665130
  • Loading branch information
Samuel Stow authored and maddevrelgithubbot committed Sep 27, 2019
1 parent 5746250 commit b4a59a0
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 16 deletions.
19 changes: 19 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
Google Mobile Ads Unity Plugin Change Log

**************
Version 4.0.0
**************

Plugin:
- Breaking change: The Android library included in this plugin is now distributed as an aar, and
lives at `Assets/Plugins/Android/googlemobileads-unity.aar'. If you are upgrading from a previous
version, remove the `Assets/Plugins/Android/GoogleMobileAdsPlugin' folder prior to importing this
latest version of the plugin.
- Added proguard support on Android.
- Update Android Google Mobile Ads SDK version to 18.2.0.
- Fixed a bug where the AdSize.SMART_BANNER banner size did not work on Unity 2019.2+.
- Added assertion to stop Android builds when Google Mobile Ads settings are invalid.

Built and tested with:
- Google Play services 18.2.0
- Google Mobile Ads iOS SDK 7.50.0
- Unity Jar Resolver 1.2.125

**************
Version 3.18.3
**************
Expand Down
3 changes: 1 addition & 2 deletions source/android-library/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This Google Mobile Ads plugin library manifest will get merged with your
application's manifest, adding the necessary activity and permissions
application's manifest, adding the necessary metadata
required for displaying ads.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.unity">

<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

2 changes: 1 addition & 1 deletion source/plugin/Assets/GoogleMobileAds/Api/AdRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace GoogleMobileAds.Api
{
public class AdRequest
{
public const string Version = "3.18.3";
public const string Version = "4.0.0";
public const string TestDeviceSimulator = "SIMULATOR";

private AdRequest(Builder builder)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.google.android.gms:play-services-ads:18.1.1">
<androidPackage spec="com.google.android.gms:play-services-ads:18.2.0">
<repositories>
<repository>https://maven.google.com/</repository>
</repositories>
</androidPackage>
</androidPackages>

<iosPods>
<iosPod name="Google-Mobile-Ads-SDK" version="~> 7.48">
<iosPod name="Google-Mobile-Ads-SDK" version="~> 7.50">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
using System.Linq;
using System.Xml.Linq;

#if UNITY_2018_1_OR_NEWER
using UnityEditor;
using UnityEditor.Build;
#if UNITY_2018_1_OR_NEWER
using UnityEditor.Build.Reporting;
#else
using UnityEditor;
#endif
using UnityEditor.Build;
using UnityEngine;

using GoogleMobileAds.Editor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This Google Mobile Ads plugin library manifest will get merged with your
application's manifest, adding the necessary activity and permissions
application's manifest, adding the necessary metadata
required for displaying ads.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.unity.ads"
android:versionName="1.0"
android:versionCode="1">
<uses-sdk android:minSdkVersion="14"
android:targetSdkVersion="19" />
<application>
<uses-library android:required="false" android:name="org.apache.http.legacy"/>
<!-- Your AdMob App ID will look similar to this sample ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="[ADMOB APPLICATION ID]"/>
</application>
</manifest>

0 comments on commit b4a59a0

Please sign in to comment.