-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 3.0.0 of the Google Mobile Ads Plugin
- Loading branch information
Showing
185 changed files
with
4,802 additions
and
1,539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
4 changes: 2 additions & 2 deletions
4
.../gradle/wrapper/gradle-wrapper.properties → gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Oops, something went wrong.