Skip to content

Commit

Permalink
Version 3.11.0 of the Google Mobile Ads Unity plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rampara committed Feb 3, 2018
1 parent e393e68 commit f2caa5a
Show file tree
Hide file tree
Showing 47 changed files with 810 additions and 104 deletions.
20 changes: 20 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
Google Mobile Ads Unity Plugin Change Log

**************
Version 3.11.0
**************

Plugin:
- Updated Android ad events to be invoked on the main thread.
- Added `MobileAds.SetiOSAppPauseOnBackground()` method to pause iOS apps when
displaying full screen ads.
- Fixed issue were banners repositioned incorrectly following an orienation
change.

Mediation packages:
- Added maio mediation support package.
- Added nend mediation support package.

Built and tested with:
- Google Play services 11.8.0
- Google Mobile Ads iOS SDK 7.27.0
- Unity Jar Resolver 1.2.61.0

**************
Version 3.10.0
**************
Expand Down
8 changes: 6 additions & 2 deletions mediation/AppLovin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# AppLovin Adapter plugin for Google Mobile Ads SDK for Unity 3D Changelog

## 1.1.0
- Supports AppLovin Android SDK version 7.7.0.
- Supports AppLovin iOS SDK version 4.7.0.

## 1.0.0

- First release!
- Supports Android adapter version 7.4.1.1.
- Supports iOS adapter version 4.4.1.1.
- Supports AppLovin Android SDK version 7.4.1.
- Supports AppLovin iOS SDK version 4.4.1.
2 changes: 1 addition & 1 deletion mediation/AppLovin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ project.ext {
'UNITY_EXE environment variable and point it to your Unity installation.')
}

versionString = '1.0.0'
versionString = '1.1.0'
pluginName = 'GoogleMobileAdsAppLovinMediation'
pluginFileName = "${pluginName}.unitypackage"
zipName = "${pluginName}-${versionString}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.google.ads.mediation:applovin:7.4.1.1">
<androidPackage spec="com.google.ads.mediation:applovin:7.7.0.0">
</androidPackage>
<androidPackage spec="com.applovin:applovin-sdk:7.4.1">
<androidPackage spec="com.applovin:applovin-sdk:7.7.0">
</androidPackage>
</androidPackages>

<iosPods>
<iosPod name="GoogleMobileAdsMediationAppLovin" version="4.4.1.1">
<iosPod name="GoogleMobileAdsMediationAppLovin" version="4.7.0.0">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
</iosPod>
</iosPods>
</dependencies>

1 change: 1 addition & 0 deletions mediation/InMobi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ task exportPackage(type: Exec) {
"-logFile", "temp/unity.log",
"-exportPackage",
"Assets/GoogleMobileAds/Editor",
"Assets/Plugins",
"${exportPath}",
"-quit"

Expand Down
7 changes: 7 additions & 0 deletions mediation/Maio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# maio Adapter plugin for Google Mobile Ads SDK for Unity 3D Changelog

## 1.0.0

- First release!
- Supports Android adapter version 1.0.6.0.
- Supports iOS adapter version 1.2.18.0.
5 changes: 5 additions & 0 deletions mediation/Maio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# maio Adapter plugin for Google Mobile Ads SDK for Unity 3D

This is a plugin to be used in conjunction with the Google Mobile Ads SDK in
Google Play services. For requirements, instructions, and other info, see the
[maio Adapter Integration Guide](https://developers.google.com/admob/unity/mediation/maio).
145 changes: 145 additions & 0 deletions mediation/Maio/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
/*
* Gradle file to build a Unity package to add maio mediation support to the Google Mobile Ads Unity plugin.
* Usage: ./gradlew exportPackage
*/
plugins {
id "com.jfrog.bintray" version "1.7.3"
}

defaultTasks 'exportPackage'

// Project level variables.
project.ext {
unity_exe = System.getProperty("UNITY_EXE")
if (unity_exe == null || unity_exe.isEmpty()) {
unity_exe = System.getenv("UNITY_EXE")
}
if (unity_exe == null || unity_exe.isEmpty()) {
unity_exe = '/Applications/Unity/Unity.app/Contents/MacOS/Unity'
}

if (!file(unity_exe).exists()) {
throw new GradleException('Unable to locate installation of Unity. Please create a ' +
'UNITY_EXE environment variable and point it to your Unity installation.')
}

versionString = '1.0.0'
pluginName = 'GoogleMobileAdsMaioMediation'
pluginFileName = "${pluginName}.unitypackage"
zipName = "${pluginName}-${versionString}"
zipFileName = "${zipName}.zip"
pluginSource = file('source/plugin').absolutePath
pluginBuildDir = file('temp/plugin-build-dir').absolutePath
buildPath = file('temp').absolutePath
exportPath = file(pluginFileName).absolutePath
}

// Build unity package using through command line interface.
// Create new unity project with files in temporary build directory and export files to a unity package.
// Command line usage and arguments documented at http://docs.unity3d.com/Manual/CommandLineArguments.html.
task exportPackage(type: Exec) {
description = "Creates and exports the Plugin unity package"
executable "${unity_exe}"
args "-g.building",
"-batchmode",
"-projectPath", "${pluginBuildDir}",
"-logFile", "temp/unity.log",
"-exportPackage",
"Assets/GoogleMobileAds/Editor",
"Assets/Plugins",
"${exportPath}",
"-quit"

ignoreExitValue true

doLast {
if (execResult.getExitValue() != 0) {
copy {
from "temp/"
into "./"
include "unity.log"
}
}
}
}

task createTempBuildFolder(type: Copy) {
from { "${pluginSource}" }
into { "${pluginBuildDir}" }
}

task clearTempBuildFolder(type: Delete) {
delete { "${buildPath}" }
}

exportPackage.dependsOn(createTempBuildFolder)
exportPackage.finalizedBy(clearTempBuildFolder)

/**
* Delete task to delete any previously generated .zip files by makeZip task.
* makeZip depends on this task.
*/
task clearZip(type: Delete) {
// Targets to be deleted.
delete(zipFileName)
}

/**
* Zip task to make a zip archive. This task depends on exportPackage and clearZip tasks.
*/
task makeZip(type: Zip) {
// Targets to be added to the zip archive.
from('./' + pluginFileName, './README.md', './CHANGELOG.md')
// Root directory name for the zip archive.
into(zipName)
// Name of the zip archive.
archiveName zipFileName
// Destination directory in which the archive needs to be saved.
destinationDir file('.')
}

makeZip.dependsOn([clearZip, exportPackage])
makeZip.mustRunAfter([clearZip, exportPackage])

/**
* Bintray closure needed to run the bintrayUpload task.
*
* Usage:
* ./gradlew bintrayUpload -PbintrayUser=YOUR_BINTRAY_USER_ID -PbintrayApiKey=YOUR_BINTRAY_API_KEY
*
* The Bintray User ID and API key can be added to your system environment variables as BINTRAY_USER
* and BINTRAY_API_KEY respectively, and the command can be reduced to:
* ./gradlew bintrayUpload
*/
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser')
: System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey')
: System.getenv('BINTRAY_API_KEY')

filesSpec { // 'filesSpec' is a standard Gradle CopySpec
from zipFileName
into "${pluginName}/${versionString}"
}
dryRun = false // Deploy after running.
publish = false // Don't auto publish after deploying.
override = false // Don't override existing version artifacts that are already published.

pkg {
repo = 'mobile-ads-adapters-unity'
name = pluginName
userOrg = 'google'
desc = 'maio plugin for Google Mobile Ads Mediation.'
websiteUrl = 'https://developers.google.com/admob/unity/mediation/maio'
issueTrackerUrl = 'https://github.com/googleads/googleads-mobile-unity/issues'
vcsUrl = 'https://github.com/googleads/googleads-mobile-unity'
licenses = ['Apache-2.0']

version {
name = versionString
}
}
}

bintrayUpload.dependsOn(makeZip)
bintrayUpload.mustRunAfter(makeZip)
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.google.ads.mediation:maio:1.0.6.0">
<repositories>
<repository>https://jcenter.bintray.com/</repository>
</repositories>
</androidPackage>
<androidPackage spec="com.maio:android-sdk:1.0.6">
<repositories>
<repository>https://imobile-maio.github.io/maven</repository>
</repositories>
</androidPackage>
</androidPackages>

<iosPods>
<iosPod name="GoogleMobileAdsMediationMaio" version="1.2.18.0">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
</iosPod>
</iosPods>
</dependencies>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.unity.mediation.maio">

<application>
<activity
android:name="jp.maio.sdk.android.AdFullscreenActivity"
android:configChanges="orientation|screenLayout|screenSize|smallestScreenSize"
android:hardwareAccelerated="true"
android:label="maiosdk"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<intent-filter>
<data android:scheme="jp.maio.sdk.android"/>
<action android:name="android.intent.action.VIEW"/>

<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target=android-26
android.library=true
7 changes: 7 additions & 0 deletions mediation/Nend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# nend Adapter plugin for Google Mobile Ads SDK for Unity 3D Changelog

## 1.0.0

- First release!
- Supports nend Android SDK version 4.0.2.
- Supports nend iOS SDK version 4.0.2.
6 changes: 6 additions & 0 deletions mediation/Nend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# nend Adapter plugin for Google Mobile Ads SDK for Unity 3D

This is a plugin to be used in conjunction with the Google Mobile Ads SDK in
Google Play services. For requirements, instructions, and other info, see the
[nend Adapter Integration Guide](https://developers.google.com/admob/unity/mediation/nend).

Loading

0 comments on commit f2caa5a

Please sign in to comment.