Skip to content

Commit

Permalink
Version 3.0.0 of the Google Mobile Ads Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rampara committed Feb 2, 2016
1 parent 8721179 commit e55634b
Show file tree
Hide file tree
Showing 185 changed files with 4,802 additions and 1,539 deletions.
12 changes: 12 additions & 0 deletions unity/ChangeLog.txt → ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
Google Mobile Ads Unity Plugin Change Log

*************
Version 3.0.0
*************
- Add support for Custom In-App purchase flow on Android
- Add CocoaPods integration and automated build settings for iOS projects
- Use JarResolver plugin to resolve Google Play services client dependencies
- Ad events for banners and interstitials refactored with new names

Built and tested with:
- Google Play Services 8.4.0
- Google Mobile Ads iOS SDK 7.6.0

*************
Version 2.3.1
*************
Expand Down
36 changes: 21 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
Google Mobile Ads SDK Plugins
=================================
The Google Mobile Ads SDK is the latest generation in Google mobile advertising featuring refined ad formats and streamlined APIs for access to mobile ad networks and advertising solutions. The SDK enables mobile app developers to maximize their monetization in native mobile apps.
Google Mobile Ads Unity Plugin
==============================
The Google Mobile Ads SDK is the latest generation in Google mobile advertising
featuring refined ad formats and streamlined APIs for access to mobile ad
networks and advertising solutions. The SDK enables mobile app developers to
maximize their monetization in native mobile apps.

This repository contains plugins for AdMob projects on multiple platforms.

Plugins
-------
* [Unity for iOS and Google Play services](https://github.com/googleads/googleads-mobile-plugins/tree/master/unity)
This repository contains the source code for the Google Mobile Ads Unity
plugin. This plugin enables Unity developers to easily serve Google Mobile Ads
on Android and iOS apps without having to write Java or Objective-C code.
The plugin provides a C# interface for requesting ads that is used by C#
scripts in your Unity project.

Downloads
----------
Please check out our [releases](https://github.com/googleads/googleads-mobile-plugins/releases) for the latest downloads for the different sample apps.
Please check out our
[releases](//github.com/googleads/googleads-mobile-unity/releases)
for the latest official version of the plugin.

Documentation
--------------
Check out our [developers site](https://developers.google.com/mobile-ads-sdk/) for documentation on using the SDK, and join the developer community on [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
For instructions on using the plugin, please refer to
[this developer guide](//developers.google.com/admob/games#unity).

Be sure to also join the developer community on
[our forum](//groups.google.com/forum/#!categories/google-admob-ads-sdk/game-engines).

Suggesting improvements
------------------------
To file bugs, make feature requests, or to suggest other improvements, please use [github's issue tracker](https://github.com/googleads/googleads-mobile-plugins/issues).
To file bugs, make feature requests, or to suggest other improvements,
please use [github's issue tracker](//github.com/googleads/googleads-mobile-unity/issues).

License
-------
[Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html)

Contributing
-------------
Pull requests are welcome! Please sign [this Google Code contributor agreement](https://developers.google.com/open-source/cla/individual?csw=1) before submitting.
70 changes: 70 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* Gradle file to build the Unity plugin for the Google Mobile Ads SDK.
* Useage: ./gradlew exportPackage
*/

// Project level variables.
project.ext {
sdk_root = System.getProperty("ANDROID_HOME")
if (sdk_root == null || sdk_root.isEmpty()) {
sdk_root = System.getenv("ANDROID_HOME")
}
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'
}
pluginSource = file('source/plugin').absolutePath
pluginBuildDir = file('temp/plugin-build-dir').absolutePath
buildPath = file('temp').absolutePath
exportPath = file('GoogleMobileAds.unitypackage').absolutePath
}

// Delete existing android plugin jar file.
task clearJar(type: Delete) {
delete 'source/android-library/app/build/intermediates/bundles/release/unity-plugin-library.jar'
}

// Build jar from android plugin source files using existing Gradle build file.
task buildAndroidPluginJar(type: GradleBuild) {
buildFile = 'source/android-library/app/build.gradle'
tasks = ['build']
}

// Move android plugin jar to temporary build directory.
task copyAndroidLibraryJar(type: Copy) {
from("source/android-library/app/build/intermediates/bundles/release/")
into("${pluginBuildDir}/Assets/Plugins/Android/GoogleMobileAdsPlugin/libs")
include('classes.jar')
rename('classes.jar', 'unity-plugin-library.jar')
}

copyAndroidLibraryJar.dependsOn(clearJar, buildAndroidPluginJar)

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

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

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

exportPackage.dependsOn(createTempBuildFolder, copyAndroidLibraryJar)
exportPackage.finalizedBy(clearTempBuildFolder)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Apr 10 15:27:10 PDT 2013
#Fri Dec 18 19:33:24 EST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e55634b

Please sign in to comment.