Skip to content

Commit 5462d4d

Browse files
committed
Fixing manifest merge issues and update to v2.2.1
1 parent cba89cd commit 5462d4d

File tree

4 files changed

+27
-48
lines changed

4 files changed

+27
-48
lines changed

unity/ChangeLog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Google Mobile Ads Unity Plugin Change Log
22

3+
*************
4+
Version 2.2.1
5+
*************
6+
- Fix for Android manifest merge issues on Unity 4.x
7+
- Fix for TouchCount issue on Unity 5.0
8+
39
***********
410
Version 2.2
511
***********

unity/README.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,14 @@ Android Setup
4747
1. Add the google-play-services_lib folder,
4848
located at ANDROID_SDK_LOCATION/extras/google/google_play_services/libproject,
4949
into the Plugins/Android folder of your project.
50-
2. If you already had an AndroidManifest.xml in Plugins/Android/, keep your current
51-
version and [add the necessary activities and permissions](https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start#androidmanifestxml)
52-
required by the Google Mobile Ads SDK.
50+
2. [For users running a version of Unity earlier than 5.0] Navigate to Temp/StagingArea
51+
of your project directory and copy AndroidManifest.xml to Assets/Plugins/Android.
52+
Add the following <meta-data> tag to the AndroidManifest.xml file:
53+
54+
<activity android:name="com.unity3d.player.UnityPlayerActivity" ...>
55+
...
56+
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
57+
</activity>
5358

5459
iOS Setup
5560
---------
@@ -72,18 +77,7 @@ XCode project. You'll need to do the following before you can run it:
7277
1. From the Xcode project navigator, right-click on the project, and choose
7378
Add Files To "<Project Name>".
7479
2. Navigate to and select **GoogleMobileAds.framework**.
75-
3. Add the following frameworks if they aren't already part of the project:
76-
* AdSupport
77-
* AudioToolbox
78-
* AVFoundation
79-
* CoreGraphics
80-
* CoreTelephony
81-
* EventKit
82-
* EventKitUI
83-
* MessageUI
84-
* StoreKit
85-
* SystemConfiguration
86-
4. Set **Enable Modules (C and Objective-C)** to **Yes** in
80+
3. Set **Enable Modules (C and Objective-C)** to **Yes** in
8781
**Build Settings**.
8882

8983
If these steps didn't work, the [developer docs](https://developers.google.com/mobile-ads-sdk/docs/admob/ios/quick-start#manually_using_the_sdk_download)
@@ -144,6 +138,17 @@ In addition to constants on _AdSize_, you can also create a custom size:
144138
BannerView bannerView = new BannerView(
145139
"YOUR_AD_UNIT_ID", adSize, AdPosition.Bottom);
146140

141+
Banner Placement Locations
142+
--------------------------
143+
The following constants list the available ad positions:
144+
145+
AdPosition.Top
146+
AdPosition.Bottom
147+
AdPosition.TopLeft
148+
AdPosition.TopRight
149+
AdPosition.BottomLeft
150+
AdPosition.BottomRight
151+
147152
Ad Request Targeting
148153
--------------------
149154
If you want to provide custom targeting to ad requests, add the targeting

unity/source/Assets/GoogleMobileAds/Api/AdRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace GoogleMobileAds.Api
66
{
77
public class AdRequest
88
{
9-
public const string Version = "2.2";
9+
public const string Version = "2.2.1";
1010
public const string TestDeviceSimulator = "SIMULATOR";
1111

1212
public class Builder

unity/source/Assets/Plugins/Android/AndroidManifest.xml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)