Skip to content

Commit

Permalink
Release 1.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Str4tos committed Jan 21, 2021
1 parent 7991bb9 commit c1e0238
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 11 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Clever Ads Solutions Unity Plugin Change Log

## [1.9.4] - 2021-01-20
### Dependencies
- [Android] Wraps [1.9.4 SDK](https://github.com/cleveradssolutions/CAS-Android/releases)
- [iOS] Wraps [1.9.4 SDK](https://github.com/cleveradssolutions/CAS-iOS/releases)
### Changes
- Chartboost has been removed from all solutions, however you can still integrate it at will with advanced integration.
- [Android] Added `com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT` to delay app measurement until Google Ads initialize.

## [1.9.3] - 2021-01-19
### Dependencies
- [Android] Wraps [1.9.3 SDK](https://github.com/cleveradssolutions/CAS-Android/releases)
Expand Down
12 changes: 9 additions & 3 deletions Editor/CASInternal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,16 @@ internal void OnGUI( BuildTarget platform )
"Please use Android Resolver after the change complete.", MessageType.Info );
if (GUILayout.Button( "Resolve", GUILayout.ExpandWidth( false ), GUILayout.Height( 40 ) ))
{
#if UNITY_ANDROID
var succses = Utils.TryResolveAndroidDependencies();
EditorUtility.DisplayDialog( "Android Dependencies",
succses ? "Resolution Succeeded" : "Resolution Failed. See the log for details.",
"OK" );
#else
EditorUtility.DisplayDialog( "Android Dependencies",
"Android resolver not enabled. Unity Android platform target must be selected.",
"OK" );
#endif
}
EditorGUILayout.EndHorizontal();
}
Expand Down Expand Up @@ -286,12 +292,12 @@ public void OnGUI( DependencyManager mediation )
EditorGUI.indentLevel--;
}
}
#endregion
#endregion
}

public partial class Dependency
{
#region Internal implementation
#region Internal implementation
internal void Reset()
{
isNewer = false;
Expand Down Expand Up @@ -511,6 +517,6 @@ private void ActivateDependencies( BuildTarget platform, DependencyManager media
}
}
}
#endregion
#endregion
}
}
20 changes: 19 additions & 1 deletion Editor/CASPostprocessBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void OnPostProcessBuild( BuildTarget buildTarget, string path )
}

#if UNITY_2019_3_OR_NEWER
[PostProcessBuild( 45 )]//must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and that it's added before "pod install" (50)
[PostProcessBuild( 47 )]//must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and that it's added before "pod install" (50)
private static void FixPodFileBug( BuildTarget target, string buildPath )
{
if (target != BuildTarget.iOS)
Expand All @@ -51,6 +51,24 @@ private static void FixPodFileBug( BuildTarget target, string buildPath )
var content = File.ReadAllText( podPath );
if (content.Contains( "'Unity-iPhone'" ))
return;
#if false //Develop
var depends = new List<string>();
var isFramework = false;

using (StreamWriter sw = new StreamWriter( podPath, false ))
{
for (int i = 0; i < content.Length; i++)
{
var line = content[i];
if (line.Contains( "'Unity-iPhone'" ))
return;
if (!isFramework && line.Contains( "use_frameworks!" ))
isFramework = true;
if (line.Contains( "CleverAdsSolutions-" ))
depends.Add( line );
}
}
#endif
using (StreamWriter sw = File.AppendText( podPath ))
{
sw.WriteLine();
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ Modify `Packages/manifest.json` to the following form:
}
],
"dependencies": {
"com.cleversolutions.ads.unity"
: "https://github.com/cleveradssolutions/CAS-Unity.git#1.9.3"
"com.cleversolutions.ads.unity": "https://github.com/cleveradssolutions/CAS-Unity.git#1.9.4"
}
}
```
Expand Down
3 changes: 2 additions & 1 deletion Runtime/Common/AdNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public enum AdNetwork
YandexAds,
OwnVAST,
AmazonAds,
Verizon
Verizon,
MoPub
}
}
2 changes: 1 addition & 1 deletion Runtime/Common/MobileAds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class MobileAds
/// <summary>
/// CAS Unity wrapper version
/// </summary>
public const string wrapperVersion = "1.9.3";
public const string wrapperVersion = "1.9.4";

/// <summary>
/// Get singleton instance for configure all mediation managers.
Expand Down
2 changes: 1 addition & 1 deletion Templates/CASAndroidMediation.list
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"simple":[{"name":"MixedAudience","version":"1.9.3","require":"","url":"","filter":-1,"dependencies":["com.cleversolutions.ads:cas-sdk-teen:1.9.3","tv.superawesome.sdk.publisher:superawesome:7.2.18+"],"contains":["Base","Additional","GoogleAds","UnityAds","IronSource","AdColony","Vungle","AppLovin","InMobi","Chartboost","StartApp","Kidoz","FacebookAN","YandexAds","SuperAwesome"],"source":[],"labels":0},{"name":"FamiliesAds","version":"1.9.3","require":"","url":"","filter":2,"dependencies":["com.cleversolutions.ads:cas-sdk-general:1.9.3"],"contains":["Base","GoogleAds","UnityAds","IronSource","AdColony","Vungle","AppLovin","InMobi","Chartboost","StartApp","Kidoz","SuperAwesome"],"source":[],"labels":0},{"name":"NotChildrenAds","version":"1.9.3","require":"","url":"","filter":0,"dependencies":["com.cleversolutions.ads:cas-sdk-teen:1.9.3"],"contains":["Base","Additional","GoogleAds","UnityAds","IronSource","AdColony","Vungle","AppLovin","InMobi","Chartboost","StartApp","Kidoz","FacebookAN","YandexAds"],"source":[],"labels":0},{"name":"CrossPromotion","version":"1.9.3","require":"Base","url":"https://github.com/cleveradssolutions/CAS-Unity#step-1-add-the-cas-package-to-your-project","filter":1,"dependencies":["com.cleversolutions.ads:cas-promo:1.9.3"],"contains":[],"source":[],"labels":0}],"advanced":[{"name":"Base","version":"1.9.3","require":"","url":"https://cleveradssolutions.com/","filter":1,"dependencies":["com.cleversolutions.ads:cas-sdk:1.9.3"],"contains":[],"source":["https://dl.bintray.com/cleveradssolutions/CAS-Android"],"labels":0},{"name":"Additional","version":"1.9.3","require":"Base","url":"https://cleveradssolutions.com/","filter":0,"dependencies":["com.cleversolutions.ads:mediation-teen:1.9.3"],"contains":[],"source":[],"labels":0},{"name":"GoogleAds","version":"19.6.0","require":"Base","url":"https://admob.google.com/home/","filter":1,"dependencies":["com.google.android.gms:play-services-ads:19.6.0"],"contains":[],"source":[],"labels":7},{"name":"UnityAds","version":"3.6.0","require":"Base","url":"https://unity.com/solutions/unity-ads","filter":1,"dependencies":["com.unity3d.ads:unity-ads:3.6.0"],"contains":[],"source":[],"labels":7},{"name":"IronSource","version":"7.0.4.1","require":"Base","url":"https://www.ironsrc.com","filter":1,"dependencies":["com.ironsource.sdk:mediationsdk:7.0.4.1+"],"contains":[],"source":["https://dl.bintray.com/ironsource-mobile/android-sdk"],"labels":6},{"name":"AdColony","version":"4.4.0","require":"Base","url":"https://www.adcolony.com/","filter":1,"dependencies":["com.adcolony:sdk:4.4.0"],"contains":[],"source":["https://adcolony.bintray.com/AdColony"],"labels":7},{"name":"Vungle","version":"6.8.1","require":"Base","url":"https://vungle.com/","filter":1,"dependencies":["com.vungle:publisher-sdk-android:6.8.1+"],"contains":[],"source":[],"labels":7},{"name":"AppLovin","version":"9.14.12","require":"Base","url":"https://www.applovin.com/","filter":1,"dependencies":["com.applovin:applovin-sdk:9.14.12+"],"contains":[],"source":[],"labels":7},{"name":"InMobi","version":"9.1.1","require":"Base","url":"https://www.inmobi.com/","filter":1,"dependencies":["com.inmobi.monetization:inmobi-ads:9.1.1+"],"contains":[],"source":[],"labels":7},{"name":"Chartboost","version":"8.2.0","require":"Base","url":"https://www.chartboost.com/","filter":1,"dependencies":["com.chartboost:chartboost-sdk:8.2.0"],"contains":[],"source":["https://chartboostmobile.bintray.com/Chartboost"],"labels":7},{"name":"StartApp","version":"4.7.5","require":"Base","url":"https://www.startapp.com/","filter":1,"dependencies":["com.startapp:inapp-sdk:4.7.5+"],"contains":[],"source":[],"labels":7},{"name":"Kidoz","version":"8.9.0","require":"Base","url":"https://kidoz.net/","filter":1,"dependencies":["com.kidoz.sdk:KidozSDK:8.9.0+"],"contains":[],"source":[],"labels":7},{"name":"SuperAwesome","version":"7.2.18","require":"Base","url":"https://www.superawesome.com/","filter":2,"dependencies":["tv.superawesome.sdk.publisher:superawesome:7.2.18+"],"contains":[],"source":["http://dl.bintray.com/gabrielcoman/maven","http://dl.bintray.com/superawesome/SuperAwesomeSDK"],"labels":7},{"name":"FacebookAN","version":"6.2.0","require":"Additional","url":"https://www.facebook.com/business/marketing/audience-network","filter":0,"dependencies":["com.facebook.android:audience-network-sdk:6.2.0"],"contains":[],"source":[],"labels":7},{"name":"YandexAds","version":"3.2.0","require":"Additional","url":"https://yandex.ru/dev/mobile-ads","filter":0,"dependencies":["com.yandex.android:mobileads:3.2.0+","com.yandex.android:mobmetricalib:3.14.3"],"contains":[],"source":[],"labels":3},{"name":"MoPub","version":"5.15.0","require":"Additional","url":"https://www.mopub.com/","filter":0,"dependencies":["com.mopub:mopub-sdk-banner:5.15.0+","com.mopub:mopub-sdk-fullscreen:5.15.0+"],"contains":[],"source":[],"labels":23},{"name":"MyTarget","version":"5.11.9","require":"Additional","url":"https://target.my.com/","filter":0,"dependencies":["com.my.target:mytarget-sdk:5.11.9+"],"contains":[],"source":[],"labels":23},{"name":"Verizon","version":"1.8.2","require":"Additional","url":"https://www.verizonmedia.com/advertising/solutions#/mobile","filter":0,"dependencies":["com.verizon.ads:android-vas-standard-edition:1.8.2+"],"contains":[],"source":[],"labels":23},{"name":"MobFox","version":"4.3.2","require":"Additional","url":"https://www.mobfox.com/","filter":0,"dependencies":["com.github.mobfox:mfx-android-sdk:4.3.2+","com.android.volley:volley:1.1.1"],"contains":[],"source":["https://jitpack.io"],"labels":23},{"name":"AmazonAds","version":"6.0.0","require":"Additional","url":"https://advertising.amazon.com/","filter":0,"dependencies":["com.amazon.android:mobile-ads:6.0.0"],"contains":[],"source":[],"labels":17}]}
{"simple":[{"name":"MixedAudience","version":"1.9.4","require":"","url":"","filter":-1,"dependencies":["com.cleversolutions.ads:cas-sdk-teen:1.9.4","tv.superawesome.sdk.publisher:superawesome:7.2.18+"],"contains":["Base","Additional","GoogleAds","UnityAds","IronSource","AdColony","Vungle","AppLovin","InMobi","StartApp","Kidoz","FacebookAN","YandexAds","SuperAwesome"],"source":[],"labels":0},{"name":"FamiliesAds","version":"1.9.4","require":"","url":"","filter":2,"dependencies":["com.cleversolutions.ads:cas-sdk-general:1.9.4"],"contains":["Base","GoogleAds","UnityAds","IronSource","AdColony","Vungle","AppLovin","InMobi","StartApp","Kidoz","SuperAwesome"],"source":[],"labels":0},{"name":"NotChildrenAds","version":"1.9.4","require":"","url":"","filter":0,"dependencies":["com.cleversolutions.ads:cas-sdk-teen:1.9.4"],"contains":["Base","Additional","GoogleAds","UnityAds","IronSource","AdColony","Vungle","AppLovin","InMobi","StartApp","Kidoz","FacebookAN","YandexAds"],"source":[],"labels":0},{"name":"CrossPromotion","version":"1.9.4","require":"Base","url":"https://github.com/cleveradssolutions/CAS-Unity#step-1-add-the-cas-package-to-your-project","filter":1,"dependencies":["com.cleversolutions.ads:cas-promo:1.9.4"],"contains":[],"source":[],"labels":0}],"advanced":[{"name":"Base","version":"1.9.4","require":"","url":"https://cleveradssolutions.com/","filter":1,"dependencies":["com.cleversolutions.ads:cas-sdk:1.9.4"],"contains":[],"source":["https://dl.bintray.com/cleveradssolutions/CAS-Android"],"labels":0},{"name":"Additional","version":"1.9.4","require":"Base","url":"https://cleveradssolutions.com/","filter":0,"dependencies":["com.cleversolutions.ads:mediation-teen:1.9.4"],"contains":[],"source":[],"labels":0},{"name":"GoogleAds","version":"19.6.0","require":"Base","url":"https://admob.google.com/home/","filter":1,"dependencies":["com.google.android.gms:play-services-ads:19.6.0"],"contains":[],"source":[],"labels":7},{"name":"UnityAds","version":"3.6.0","require":"Base","url":"https://unity.com/solutions/unity-ads","filter":1,"dependencies":["com.unity3d.ads:unity-ads:3.6.0"],"contains":[],"source":[],"labels":7},{"name":"IronSource","version":"7.1.0.1","require":"Base","url":"https://www.ironsrc.com","filter":1,"dependencies":["com.ironsource.sdk:mediationsdk:7.1.0.1+"],"contains":[],"source":["https://dl.bintray.com/ironsource-mobile/android-sdk"],"labels":6},{"name":"AdColony","version":"4.4.0","require":"Base","url":"https://www.adcolony.com/","filter":1,"dependencies":["com.adcolony:sdk:4.4.0"],"contains":[],"source":["https://adcolony.bintray.com/AdColony"],"labels":7},{"name":"Vungle","version":"6.8.1","require":"Base","url":"https://vungle.com/","filter":1,"dependencies":["com.vungle:publisher-sdk-android:6.8.1+"],"contains":[],"source":[],"labels":7},{"name":"AppLovin","version":"9.14.12","require":"Base","url":"https://www.applovin.com/","filter":1,"dependencies":["com.applovin:applovin-sdk:9.14.12+"],"contains":[],"source":[],"labels":7},{"name":"InMobi","version":"9.1.1","require":"Base","url":"https://www.inmobi.com/","filter":1,"dependencies":["com.inmobi.monetization:inmobi-ads:9.1.1+"],"contains":[],"source":[],"labels":7},{"name":"Chartboost","version":"8.2.0","require":"Base","url":"https://www.chartboost.com/","filter":1,"dependencies":["com.chartboost:chartboost-sdk:8.2.0"],"contains":[],"source":["https://chartboostmobile.bintray.com/Chartboost"],"labels":7},{"name":"StartApp","version":"4.7.5","require":"Base","url":"https://www.startapp.com/","filter":1,"dependencies":["com.startapp:inapp-sdk:4.7.5+"],"contains":[],"source":[],"labels":7},{"name":"Kidoz","version":"8.9.0","require":"Base","url":"https://kidoz.net/","filter":1,"dependencies":["com.kidoz.sdk:KidozSDK:8.9.0+"],"contains":[],"source":[],"labels":7},{"name":"SuperAwesome","version":"7.2.18","require":"Base","url":"https://www.superawesome.com/","filter":2,"dependencies":["tv.superawesome.sdk.publisher:superawesome:7.2.18+"],"contains":[],"source":["http://dl.bintray.com/gabrielcoman/maven","http://dl.bintray.com/superawesome/SuperAwesomeSDK"],"labels":7},{"name":"FacebookAN","version":"6.2.0","require":"Additional","url":"https://www.facebook.com/business/marketing/audience-network","filter":0,"dependencies":["com.facebook.android:audience-network-sdk:6.2.0"],"contains":[],"source":[],"labels":7},{"name":"YandexAds","version":"3.2.0","require":"Additional","url":"https://yandex.ru/dev/mobile-ads","filter":0,"dependencies":["com.yandex.android:mobileads:3.2.0+","com.yandex.android:mobmetricalib:3.14.3"],"contains":[],"source":[],"labels":3},{"name":"MoPub","version":"5.15.0","require":"Additional","url":"https://www.mopub.com/","filter":0,"dependencies":["com.mopub:mopub-sdk-banner:5.15.0+","com.mopub:mopub-sdk-fullscreen:5.15.0+"],"contains":[],"source":[],"labels":23},{"name":"MyTarget","version":"5.11.9","require":"Additional","url":"https://target.my.com/","filter":0,"dependencies":["com.my.target:mytarget-sdk:5.11.9+"],"contains":[],"source":[],"labels":23},{"name":"Verizon","version":"1.8.2","require":"Additional","url":"https://www.verizonmedia.com/advertising/solutions#/mobile","filter":0,"dependencies":["com.verizon.ads:android-vas-standard-edition:1.8.2+"],"contains":[],"source":[],"labels":23},{"name":"MobFox","version":"4.3.2","require":"Additional","url":"https://www.mobfox.com/","filter":0,"dependencies":["com.github.mobfox:mfx-android-sdk:4.3.2+","com.android.volley:volley:1.1.1"],"contains":[],"source":["https://jitpack.io"],"labels":23},{"name":"AmazonAds","version":"6.0.0","require":"Additional","url":"https://advertising.amazon.com/","filter":0,"dependencies":["com.amazon.android:mobile-ads:6.0.0"],"contains":[],"source":[],"labels":17}]}
1 change: 1 addition & 0 deletions Templates/CASManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
android:versionCode="1">
<application>
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-3940256099942544~3347511713" />
<meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true"/>
<uses-library android:required="false" android:name="org.apache.http.legacy" />
</application>
</manifest>
Loading

0 comments on commit c1e0238

Please sign in to comment.