-
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.11.1 of the Google Mobile Ads Unity plugin
- Loading branch information
Showing
34 changed files
with
977 additions
and
11 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
Binary file not shown.
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,7 @@ | ||
# AdColony Adapter plugin for Google Mobile Ads SDK for Unity 3D Changelog | ||
|
||
## 1.0.0 | ||
|
||
- First release! | ||
- Supports Android adapter version 3.3.0.0. | ||
- Supports iOS adapter version 3.3.0.0. |
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,6 @@ | ||
# AdColony 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 | ||
[AdColony Adapter Integration Guide](https://developers.google.com/admob/unity/mediation/adcolony). | ||
|
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,6 @@ | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build |
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 @@ | ||
/build |
40 changes: 40 additions & 0 deletions
40
mediation/AdColony/source/android-library/adcolony/build.gradle
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,40 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion 26 | ||
|
||
defaultConfig { | ||
minSdkVersion 14 | ||
targetSdkVersion 26 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
} | ||
|
||
dependencies { | ||
api project(':app') | ||
api 'com.google.ads.mediation:adcolony:3.3.0.0' | ||
} | ||
|
||
task clearJar(type: Delete) { | ||
delete 'build/libs/adcolony-extras-library.jar' | ||
} | ||
|
||
task makeJar(type: Copy) { | ||
from('build/intermediates/bundles/release/') | ||
into('build/libs/') | ||
include('classes.jar') | ||
rename('classes.jar', 'adcolony-extras-library.jar') | ||
} | ||
|
||
makeJar.dependsOn(clearJar, build) |
17 changes: 17 additions & 0 deletions
17
mediation/AdColony/source/android-library/adcolony/proguard-rules.pro
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 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/rampara/Library/Android/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
9 changes: 9 additions & 0 deletions
9
mediation/AdColony/source/android-library/adcolony/src/main/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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
This Google Mobile Ads plugin library manifest will get merged with your | ||
application's manifest, adding the necessary activity and permissions | ||
required for displaying ads. | ||
--> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.google.unity.mediation.adcolony"> | ||
</manifest> |
76 changes: 76 additions & 0 deletions
76
...dcolony/src/main/java/com/google/unity/mediation/adcolony/AdColonyUnityExtrasBuilder.java
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,76 @@ | ||
package com.google.unity.mediation.adcolony; | ||
|
||
import android.os.Bundle; | ||
|
||
import com.google.unity.ads.AdNetworkExtras; | ||
import com.jirbo.adcolony.AdColonyAdapter; | ||
import com.jirbo.adcolony.AdColonyBundleBuilder; | ||
|
||
import java.util.HashMap; | ||
|
||
/** | ||
* Mediation extras bundle class for the AdColony adapter. | ||
*/ | ||
public abstract class AdColonyUnityExtrasBuilder implements AdNetworkExtras { | ||
|
||
/** | ||
* Key to obtain Zone ID. | ||
*/ | ||
private static final String KEY_ZONE_ID = "zone_id"; | ||
|
||
/** | ||
* Key to obtain User ID. | ||
*/ | ||
private static final String KEY_USER_ID = "user_id"; | ||
|
||
/** | ||
* Key to obtain the "show pre popup" option. | ||
*/ | ||
private static final String KEY_SHOW_PRE_POPUP = "show_pre_popup"; | ||
|
||
/** | ||
* Key to obtain the "show post popup" option. | ||
*/ | ||
private static final String KEY_SHOW_POST_POPUP = "show_post_popup"; | ||
|
||
/** | ||
* Key to obtain test mode option. | ||
*/ | ||
private static final String KEY_TEST_MODE = "test_mode"; | ||
|
||
@Override | ||
public Bundle buildExtras(HashMap<String, String> extras) { | ||
String zoneId = extras.get(KEY_ZONE_ID); | ||
if (zoneId != null) { | ||
AdColonyBundleBuilder.setZoneId(zoneId); | ||
} | ||
|
||
String userId = extras.get(KEY_USER_ID); | ||
if (userId != null) { | ||
AdColonyBundleBuilder.setUserId(userId); | ||
} | ||
|
||
String showPrePopup = extras.get(KEY_SHOW_PRE_POPUP); | ||
if (showPrePopup != null) { | ||
AdColonyBundleBuilder.setShowPostPopup(Boolean.valueOf(showPrePopup)); | ||
} | ||
|
||
String showPostPopup = extras.get(KEY_SHOW_POST_POPUP); | ||
if (showPostPopup != null) { | ||
AdColonyBundleBuilder.setShowPostPopup(Boolean.valueOf(showPostPopup)); | ||
} | ||
|
||
String testMode = extras.get(KEY_TEST_MODE); | ||
if (testMode != null) { | ||
AdColonyBundleBuilder.setTestModeEnabled(Boolean.valueOf(testMode)); | ||
} | ||
|
||
return AdColonyBundleBuilder.build(); | ||
} | ||
|
||
@Override | ||
public Class getAdapterClass() { | ||
return AdColonyAdapter.class; | ||
} | ||
} | ||
|
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 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
|
||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.0.1' | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
mediation/AdColony/source/android-library/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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Thu Nov 02 14:27:25 PDT 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip |
Oops, something went wrong.