-
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.9.0 of the Google Mobile Ads Unity plugin
- Loading branch information
Showing
40 changed files
with
475 additions
and
65 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* Gradle file to build a Unity package to add AdColony mediation support to the Google Mobile Ads Unity plugin. | ||
* Usage: ./gradlew exportPackage | ||
*/ | ||
|
||
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.') | ||
} | ||
|
||
pluginSource = file('source/plugin').absolutePath | ||
pluginBuildDir = file('temp/plugin-build-dir').absolutePath | ||
buildPath = file('temp').absolutePath | ||
exportPath = file('GoogleMobileAdsAdColonyMediation.unitypackage').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) |
23 changes: 23 additions & 0 deletions
23
...on/AdColony/source/plugin/Assets/GoogleMobileAds/Editor/AdColonyMediationDependencies.xml
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,23 @@ | ||
<dependencies> | ||
<androidPackages> | ||
<androidPackage spec="com.google.ads.mediation:adcolony:3.2.1.1"> | ||
<repositories> | ||
<repository>https://adcolony.bintray.com/AdColony</repository> | ||
</repositories> | ||
</androidPackage> | ||
<androidPackage spec="com.adcolony:sdk:3.2.1"> | ||
<repositories> | ||
<repository>https://adcolony.bintray.com/AdColony</repository> | ||
</repositories> | ||
</androidPackage> | ||
</androidPackages> | ||
|
||
<iosPods> | ||
<iosPod name="GoogleMobileAdsMediationAdColony" version="3.1.2.0"> | ||
<sources> | ||
<source>https://github.com/CocoaPods/Specs</source> | ||
</sources> | ||
</iosPod> | ||
</iosPods> | ||
</dependencies> | ||
|
22 changes: 22 additions & 0 deletions
22
...source/plugin/Assets/Plugins/Android/GoogleMobileAdsAdColonyMediation/AndroidManifest.xml
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,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.google.unity.mediation.vungle"> | ||
|
||
<!-- For optimal performance, AdColony recommends adding the following OPTIONAL permission --> | ||
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> --> | ||
<!-- For optimal performance, AdColony recommends adding the following OPTIONAL permission --> | ||
<!-- <uses-permission android:name="android.permission.VIBRATE" /> --> | ||
|
||
<application> | ||
<activity | ||
android:name="com.adcolony.sdk.AdColonyInterstitialActivity" | ||
android:configChanges="keyboardHidden|orientation|screenSize" | ||
android:hardwareAccelerated="true" /> | ||
|
||
<activity | ||
android:name="com.adcolony.sdk.AdColonyAdViewActivity" | ||
android:configChanges="keyboardHidden|orientation|screenSize" | ||
android:hardwareAccelerated="true" /> | ||
</application> | ||
|
||
</manifest> |
2 changes: 2 additions & 0 deletions
2
.../source/plugin/Assets/Plugins/Android/GoogleMobileAdsAdColonyMediation/project.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
target=android-19 | ||
android.library=true |
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,68 @@ | ||
/* | ||
* Gradle file to build a Unity package to add AppLovin mediation support to the Google Mobile Ads Unity plugin. | ||
* Usage: ./gradlew exportPackage | ||
*/ | ||
|
||
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.') | ||
} | ||
|
||
pluginSource = file('source/plugin').absolutePath | ||
pluginBuildDir = file('temp/plugin-build-dir').absolutePath | ||
buildPath = file('temp').absolutePath | ||
exportPath = file('GoogleMobileAdsAppLovinMediation.unitypackage').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) |
17 changes: 17 additions & 0 deletions
17
...on/AppLovin/source/plugin/Assets/GoogleMobileAds/Editor/AppLovinMediationDependencies.xml
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,17 @@ | ||
<dependencies> | ||
<androidPackages> | ||
<androidPackage spec="com.google.ads.mediation:applovin:7.4.1.1"> | ||
</androidPackage> | ||
<androidPackage spec="com.applovin:applovin-sdk:7.4.1"> | ||
</androidPackage> | ||
</androidPackages> | ||
|
||
<iosPods> | ||
<iosPod name="GoogleMobileAdsMediationAppLovin" version="4.4.1.1"> | ||
<sources> | ||
<source>https://github.com/CocoaPods/Specs</source> | ||
</sources> | ||
</iosPod> | ||
</iosPods> | ||
</dependencies> | ||
|
21 changes: 21 additions & 0 deletions
21
...source/plugin/Assets/Plugins/Android/GoogleMobileAdsAppLovinMediation/AndroidManifest.xml
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,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.google.unity.mediation.AppLovin"> | ||
|
||
<application> | ||
|
||
<!--<meta-data--> | ||
<!--android:name="applovin.sdk.key"--> | ||
<!--android:value="INSERT_APP_LOVIN_SDK_KEY_HERE" />--> | ||
|
||
<activity | ||
android:name="com.applovin.adview.AppLovinInterstitialActivity" | ||
android:configChanges="orientation|screenSize" /> | ||
|
||
<activity | ||
android:name="com.applovin.adview.AppLovinConfirmationActivity" | ||
android:configChanges="orientation|screenSize" /> | ||
</application> | ||
|
||
</manifest> | ||
|
2 changes: 2 additions & 0 deletions
2
.../source/plugin/Assets/Plugins/Android/GoogleMobileAdsAppLovinMediation/project.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
target=android-19 | ||
android.library=true |
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
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 +1,4 @@ | ||
include ':app' | ||
include 'vungle' | ||
include 'app' | ||
project(':app').projectDir = new File('${projectDir}/../../../../../source/android-library/app') | ||
|
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.