Skip to content

Commit a0f73b4

Browse files
committed
Release 3.6.0
1 parent c882f22 commit a0f73b4

15 files changed

+55
-28
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# CAS.AI Unity Plugin Change Log
22

3+
# [3.6.0] - 2024-04-29
4+
- Discover the latest features in native 3.6.0 SDKs for [Android](https://github.com/cleveradssolutions/CAS-Android/releases) and [iOS](https://github.com/cleveradssolutions/CAS-iOS/releases).
5+
- [iOS] The minimum supported Xcode version has been increased to 15.1.
6+
- [iOS] Added support for the Apple Privacy Manifest update to ensure publisher compliance with new App Store submission requirements.
7+
- [iOS] Added required `AdSupport` and `AppTrackingTransparency` frameworks if `UserTrackingUsageDescription` defined in settings window.
8+
- Added `CAS.MobileAds.targetingOptions.locationCollectionEnabled` property to collect from the device the latitude and longitude coordinated truncated to the hundredths decimal place. And `Location targeting if allowed` default value for both platforms to settings window. Collect occurs only if your application already has the relevant end-user permissions and if the target audience is not children.
9+
- Make `CAS.MobileAds.settings.trackLocationEnabled` obsolete in favor of locationCollectionEnabled in targetingOptions for both platforms.
10+
### Bug Fixes
11+
- Fixed the mapping of `AdNetwork.DTExchange` to the native CAS for the `AdMetaData` structure.
12+
313
# [3.5.6] - 2024-02-28
414
- Discover the latest features in native 3.5.6 SDKs for [Android](https://github.com/cleveradssolutions/CAS-Android/releases) and [iOS](https://github.com/cleveradssolutions/CAS-iOS/releases).
515

Editor/CASBaseDependencies.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<dependencies>
33
<androidPackages>
4-
<androidPackage spec="com.cleveradssolutions:cas-sdk:3.5.6" version="3.5.6" />
4+
<androidPackage spec="com.cleveradssolutions:cas-sdk:3.6.0" version="3.6.0" />
55
</androidPackages>
66
<iosPods>
77
<sources>
88
<source>https://github.com/cleveradssolutions/CAS-Specs.git</source>
99
</sources>
10-
<iosPod name="CleverAdsSolutions-Base" version="3.5.6" minTargetSdk="13.0" />
10+
<iosPod name="CleverAdsSolutions-Base" version="3.6.0" minTargetSdk="13.0" />
1111
</iosPods>
1212
</dependencies>

Editor/CASInitSettignsInspector.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,8 @@ private void OnOtherSettingsGUI()
326326
EditorGUILayout.PropertyField(permissionAdIdProp,
327327
HelpStyles.GetContent("Advertiser ID permission"));
328328
}
329-
else
330-
{
331-
trackLocationEnabledProp.boolValue = EditorGUILayout.ToggleLeft(
332-
"Location collection when user allowed", trackLocationEnabledProp.boolValue);
333-
}
329+
trackLocationEnabledProp.boolValue = EditorGUILayout.ToggleLeft(
330+
"Location targeting if allowed", trackLocationEnabledProp.boolValue);
334331

335332
OnLoadingModeGUI();
336333

Editor/CASPostprocessBuild.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ public static void MainPostprocess(BuildTarget target, string buildPath)
7070
project.FixGenerationInfoPlist(frameworkTargetGuid);
7171
project.FixGenerationInfoPlist(appTargetGuid);
7272
project.AddCASConfigResources(buildPath, appTargetGuid, initSettings);
73+
if (editorSettings.userTrackingUsageDescription.Length > 0)
74+
{
75+
project.AddFrameworkToProject(frameworkTargetGuid, "AdSupport.framework", false);
76+
project.AddFrameworkToProject(frameworkTargetGuid, "AppTrackingTransparency.framework", false);
77+
}
7378
});
7479

7580
if (editorSettings.generateIOSDeepLinksForPromo && initSettings)
Binary file not shown.

Plugins/iOS/CASUInterface.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ BOOL CASUGetiOSAppPauseOnBackground(void) {
139139
}
140140

141141
void CASUSetTrackLocationEnabled(BOOL enabled) {
142-
[CAS.settings setTrackLocationWithEnabled:enabled];
142+
[CAS.targetingOptions setLocationCollectionEnabled:enabled];
143143
}
144144

145145
BOOL CASUGetTrackLocationEnabled(void) {
146-
return [CAS.settings isTrackLocationEnabled];
146+
return [CAS.targetingOptions getLocationCollectionEnabled];
147147
}
148148

149149
#pragma mark - User targeting options

Runtime/CleverAdsSolutions.Common.dll

0 Bytes
Binary file not shown.

Runtime/CleverAdsSolutions.Common.xml

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/Common/MobileAds.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static class MobileAds
1010
/// <summary>
1111
/// CAS Unity wrapper version
1212
/// </summary>
13-
public const string wrapperVersion = "3.5.6";
13+
public const string wrapperVersion = "3.6.0";
1414

1515
/// <summary>
1616
/// Get singleton instance for configure all mediation managers.
@@ -23,7 +23,7 @@ public static IAdsSettings settings
2323
/// <summary>
2424
/// Get first initialized <see cref="IMediationManager"/>
2525
/// <para>May be NULL before the first initialization in the session.</para>
26-
/// <para>We recommend using the <see cref="BuildManager()"/>.WithManagerIdAtIndex().Initialize() method to get a specific manager.</para>
26+
/// <para>We recommend using the <see cref="BuildManager()"/>.WithManagerIdAtIndex().Build() method to get a specific manager.</para>
2727
/// </summary>
2828
public static IMediationManager manager
2929
{
@@ -51,7 +51,7 @@ public static string GetSDKVersion()
5151

5252
/// <summary>
5353
/// Create <see cref="IMediationManager"/> builder.
54-
/// <para>Don't forget to call the <see cref="IManagerBuilder.Initialize"/> method to create manager instance.</para>
54+
/// <para>Don't forget to call the <see cref="IManagerBuilder.Build"/> method to create manager instance.</para>
5555
/// </summary>
5656
public static IManagerBuilder BuildManager()
5757
{

Runtime/Internal/Android/CASSettingsClient.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public bool iOSAppPauseOnBackground
119119

120120
public bool trackLocationEnabled
121121
{
122-
get { return false; }
123-
set { /*Only for iOS*/ }
122+
get { return locationCollectionEnabled; }
123+
set { locationCollectionEnabled = value; }
124124
}
125125

126126
public bool allowInterstitialAdsWhenVideoCostAreLower
@@ -147,6 +147,11 @@ public string contentURL
147147
set { settingsBridge.CallStatic("setContentURL", value); }
148148
}
149149

150+
public bool locationCollectionEnabled
151+
{
152+
get { return settingsBridge.CallStatic<bool>("getLocationCollectionEnabled"); }
153+
set { settingsBridge.CallStatic("setLocationCollectionEnabled", value); }
154+
}
150155
public void SetKeywords(IList<string> keywords)
151156
{
152157
settingsBridge.CallStatic("clearKeywords");

0 commit comments

Comments
 (0)