-
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.10.0 of the Google Mobile Ads Unity plugin
- Loading branch information
Showing
71 changed files
with
1,727 additions
and
67 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Wed Jul 12 16:58:21 PDT 2017 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME |
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,8 @@ | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.idea | ||
.DS_Store | ||
/build | ||
*.iml |
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 @@ | ||
# AppLovin Adapter plugin for Google Mobile Ads SDK for Unity 3D Changelog | ||
|
||
## 1.0.0 | ||
|
||
- First release! | ||
- Supports Android adapter version 7.4.1.1. | ||
- Supports iOS adapter version 4.4.1.1. |
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,5 @@ | ||
# AppLovin 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 | ||
[AppLovin Adapter Integration Guide](https://developers.google.com/admob/unity/mediation/applovin). |
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
36 changes: 36 additions & 0 deletions
36
mediation/AppLovin/source/plugin/Assets/GoogleMobileAds/Api/Mediation/AppLovin/AppLovin.cs
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,36 @@ | ||
// Copyright (C) 2017 Google, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
using System; | ||
|
||
using GoogleMobileAds.Common.Mediation.AppLovin; | ||
using GoogleMobileAds.Mediation; | ||
|
||
namespace GoogleMobileAds.Api.Mediation.AppLovin | ||
{ | ||
public class AppLovin | ||
{ | ||
private static readonly IAppLovinClient client = GetAppLovinClient(); | ||
|
||
public static void Initialize() | ||
{ | ||
client.Initialize(); | ||
} | ||
|
||
private static IAppLovinClient GetAppLovinClient() | ||
{ | ||
return AppLovinClientFactory.AppLovinInstance(); | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ion/AppLovin/source/plugin/Assets/GoogleMobileAds/Api/Mediation/AppLovin/AppLovin.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...on/AppLovin/source/plugin/Assets/GoogleMobileAds/Common/Mediation/AppLovin/DummyClient.cs
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,35 @@ | ||
// Copyright (C) 2017 Google, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
using System; | ||
using System.Reflection; | ||
|
||
using UnityEngine; | ||
|
||
namespace GoogleMobileAds.Common.Mediation.AppLovin | ||
{ | ||
public class DummyClient : IAppLovinClient | ||
{ | ||
public DummyClient() | ||
{ | ||
Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); | ||
} | ||
|
||
public void Initialize() | ||
{ | ||
Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); | ||
} | ||
} | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
...pLovin/source/plugin/Assets/GoogleMobileAds/Common/Mediation/AppLovin/DummyClient.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...ppLovin/source/plugin/Assets/GoogleMobileAds/Common/Mediation/AppLovin/IAppLovinClient.cs
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,25 @@ | ||
// Copyright (C) 2017 Google, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
using UnityEngine; | ||
using System.Collections; | ||
|
||
namespace GoogleMobileAds.Common.Mediation.AppLovin | ||
{ | ||
public interface IAppLovinClient | ||
{ | ||
// Initialize the AppLovin SDK. | ||
void Initialize(); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...in/source/plugin/Assets/GoogleMobileAds/Common/Mediation/AppLovin/IAppLovinClient.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
mediation/AppLovin/source/plugin/Assets/GoogleMobileAds/Editor/AppLovinPostProcessBuild.cs
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,42 @@ | ||
// Copyright (C) 2017 Google, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
using UnityEditor; | ||
using UnityEditor.Callbacks; | ||
using UnityEditor.iOS.Xcode; | ||
using System.IO; | ||
|
||
namespace GoogleMobileAds.Common.Mediation.AppLovin | ||
{ | ||
public class AppLovinPostProcessBuild | ||
{ | ||
[PostProcessBuild] | ||
public static void ChangeXcodePlist(BuildTarget buildTarget, | ||
string pathToBuiltProject) | ||
{ | ||
if (buildTarget == BuildTarget.iOS) | ||
{ | ||
string plistPath = pathToBuiltProject + "/Info.plist"; | ||
PlistDocument plist = new PlistDocument(); | ||
plist.ReadFromString(File.ReadAllText(plistPath)); | ||
|
||
PlistElementDict rootDict = plist.root; | ||
|
||
rootDict.SetString("AppLovinSdkKey", | ||
"INSERT_APP_LOVIN_SDK_KEY_HERE"); | ||
File.WriteAllText(plistPath, plist.WriteToString()); | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ion/AppLovin/source/plugin/Assets/GoogleMobileAds/Editor/AppLovinPostProcessBuild.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...n/AppLovin/source/plugin/Assets/GoogleMobileAds/Platforms/Android/Mediation/AppLovin.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.