Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Editor/BaseAdObjectInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public override void OnInspectorGUI()
EditorGUILayout.PropertyField(initializeOnAwakeProp);
EditorGUI.indentLevel++;
if (initializeOnAwakeProp.boolValue)
EditorGUILayout.HelpBox("The CAS begin initialization automatically when the component is awake", MessageType.None);
EditorGUILayout.HelpBox("CAS begins initialization automatically when the component is awake", MessageType.None);
else
EditorGUILayout.HelpBox("Call `Initialize()` method to begin CAS initialization", MessageType.None);
EditorGUI.indentLevel--;
Expand All @@ -110,7 +110,7 @@ public override void OnInspectorGUI()
if (consentFlowEnabledProp.boolValue)
{
EditorGUI.indentLevel++;
EditorGUILayout.HelpBox("If desired, select an ConsentFlow Ad Object for additional options or leave it blank", MessageType.None);
EditorGUILayout.HelpBox("If desired, select a ConsentFlow Ad Object for additional options or leave it blank", MessageType.None);
EditorGUILayout.PropertyField(consentFlowProp);
if (consentFlowProp.objectReferenceValue)
EditorGUILayout.HelpBox("The selected component should not be used to manually show the consent flow.", MessageType.None);
Expand Down
2 changes: 1 addition & 1 deletion Editor/CASEditorSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class CASEditorSettings : ScriptableObject
public string attributionReportEndpoint = null;

/// <summary>
/// Override Gradle Wrapper propery.
/// Override Gradle Wrapper property.
/// <para>distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip</para>
/// Supported strings with full https url or just version number, for example "7.2".
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ private void OnOtherSettingsGUI()
{
EditorGUI.indentLevel++;
EditorGUILayout.HelpBox(
"The enabled Verbose Debug Mode will display a lot of useful information for debugging about the states of the sdk with tag 'CAS.AI'. " +
"Enabled debug mode affects application performanc and should be disabled after debugging.",
"The enabled Verbose Debug Mode will display a lot of useful information for debugging about the states of the SDK with tag 'CAS.AI'. " +
"Enabled debug mode affects application performance and should be disabled after debugging.",
MessageType.Warning);
EditorGUI.indentLevel--;
}
Expand Down Expand Up @@ -358,12 +358,12 @@ private void OnOtherSettingsGUI()
{
EditorGUI.indentLevel++;
EditorGUILayout.BeginHorizontal();
EditorGUILayout.HelpBox("If you are override the Android Gradle Plugin version, make sure it is compatible with the Gradle Wrapper version. See official Gradle and Android Gradle Plugin compatibility table.", MessageType.None);
EditorGUILayout.HelpBox("If you override the Android Gradle Plugin version, make sure it is compatible with the Gradle Wrapper version. See official Gradle and Android Gradle Plugin compatibility table.", MessageType.None);
HelpStyles.HelpButton("https://developer.android.com/build/releases/gradle-plugin#updating-gradle");
EditorGUILayout.EndHorizontal();

if (!Version.TryParse(gradlePluginVersion, out gradleVer))
EditorGUILayout.HelpBox("Supported version string only, for example 4.2.2", MessageType.Error);
EditorGUILayout.HelpBox("Supported version strings only, for example 4.2.2", MessageType.Error);
EditorGUI.indentLevel--;
}
#endif
Expand Down Expand Up @@ -498,8 +498,8 @@ private void DrawRewardedScope(bool allowInter)
EditorGUI.BeginDisabledGroup(!allowInter);
interWhenNoRewardedAdProp.boolValue = EditorGUILayout.ToggleLeft(
HelpStyles.GetContent("Increase filling by Interstitial ads", null,
"Sometimes a situation occurs when filling Rewarded ads is not enough, " +
"in this case, you can allow the display of Interstitial ads to receiving a reward in any case."),
"Sometimes a situation occurs when filling Rewarded ads is not enough; " +
"in this case, you can allow the display of Interstitial ads to receive a reward in any case."),
allowInter && interWhenNoRewardedAdProp.boolValue);
EditorGUI.EndDisabledGroup();
EditorGUI.indentLevel -= 2;
Expand Down Expand Up @@ -661,7 +661,7 @@ private void OnGradleTemplateDisabledGUI(string prefix, string path)
return;

var msg = prefix + " template feature is disabled!\n" +
"A successful build requires do modifications to " + prefix + " template.";
"A successful build requires modifications to " + prefix + " template.";
if (HelpStyles.WarningWithButton(msg, "Enable", MessageType.Error))
CASPreprocessGradle.TryEnableGradleTemplate(path);
}
Expand All @@ -674,7 +674,7 @@ private void OnManagerIDVerificationGUI()
EditorGUILayout.HelpBox("The ID of the first manager cannot be empty!", MessageType.Error);
else
return;
EditorGUILayout.HelpBox("If you haven't created an CAS account and registered an manager yet, " +
EditorGUILayout.HelpBox("If you haven't created a CAS account and registered a manager yet, " +
"now's a great time to do so at cleveradssolutions.com. " +
"If you're just looking to experiment with the SDK, though, " +
"you can use the Test Ad Mode below with any manager ID.",
Expand Down Expand Up @@ -730,7 +730,7 @@ private void OnEditroRuntimeActiveAdGUI()
DrawSeparator();
EditorGUI.BeginChangeCheck();
editorRuntimeActiveAdFlags = Convert.ToInt32(
EditorGUILayout.EnumFlagsField("Editor runtime Active ad", (AdFlags)editorRuntimeActiveAdFlags));
EditorGUILayout.EnumFlagsField("Editor runtime active ad", (AdFlags)editorRuntimeActiveAdFlags));
if (EditorGUI.EndChangeCheck())
PlayerPrefs.SetInt(Utils.editorRuntimeActiveAdPrefs, editorRuntimeActiveAdFlags);
}
Expand Down
14 changes: 7 additions & 7 deletions Editor/CASPreprocessBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ internal static void ConfigureProject(BuildTarget target, CASEditorSettings edit
Debug.LogWarning(Utils.logTag + "There is a new version " + newCASVersion + " of the CAS Unity plugin available for update.");

if (deps.IsNewerVersionFound())
Utils.DialogOrCancelBuild("There is a new versions of the native dependencies available for update." +
Utils.DialogOrCancelBuild("There is a new version of the native dependencies available for update. " +
"Please use 'Assets > CleverAdsSolutions > Settings' menu to update.", target);
}

Expand Down Expand Up @@ -143,7 +143,7 @@ private static void ConfigureIOS()
var iosVersion = int.Parse(PlayerSettings.iOS.targetOSVersionString.Split('.')[0]);
if (iosVersion < Utils.targetIOSVersion)
{
Utils.DialogOrCancelBuild("CAS required a higher minimum deployment target. Set iOS " +
Utils.DialogOrCancelBuild("CAS requires a higher minimum deployment target. Set iOS " +
Utils.targetIOSVersion + " and continue?", BuildTarget.NoTarget);
PlayerSettings.iOS.targetOSVersionString = Utils.targetIOSVersion + ".0";
}
Expand All @@ -161,15 +161,15 @@ private static void ConfigureAndroid(CASInitSettings settings, CASEditorSettings
var minSDK = (int)PlayerSettings.Android.minSdkVersion;
if (minSDK > 0 && minSDK < Utils.minAndroidVersion)
{
Utils.DialogOrCancelBuild("CAS required a higher minimum SDK API level. Set Mininum SDK level " +
Utils.DialogOrCancelBuild("CAS requires a higher minimum SDK API level. Set Minimum SDK level " +
Utils.minAndroidVersion + " and continue?", BuildTarget.NoTarget);
PlayerSettings.Android.minSdkVersion = (AndroidSdkVersions)Utils.minAndroidVersion;
}

var targetSDK = (int)PlayerSettings.Android.targetSdkVersion;
if (targetSDK > 0 && targetSDK < Utils.targetAndroidVersion)
{
Utils.DialogOrCancelBuild("CAS required a higher target SDK API level. Set Target SDK level " +
Utils.DialogOrCancelBuild("CAS requires a higher target SDK API level. Set Target SDK level " +
Utils.targetAndroidVersion + " and continue?", BuildTarget.NoTarget);
PlayerSettings.Android.targetSdkVersion = (AndroidSdkVersions)Utils.targetAndroidVersion;
}
Expand All @@ -190,7 +190,7 @@ private static void UpdateRemoteConfig(CASInitSettings settings, BuildTarget pla
{
if (settings.managersCount == 0 || string.IsNullOrEmpty(settings.GetManagerId(0)))
{
Utils.StopBuildWithMessage("Settings not found manager ids for " + platform.ToString() +
Utils.StopBuildWithMessage("Settings did not find manager IDs for " + platform.ToString() +
" platform. For a successful build, you need to specify at least one ID" +
" that you use in the project. To test integration, you can use test mode with 'demo' manager id.", platform);
}
Expand Down Expand Up @@ -222,8 +222,8 @@ private static void UpdateRemoteConfig(CASInitSettings settings, BuildTarget pla
var targetId = settings.GetManagerId(0);

var message = updateSettingsError +
"\nPlease try using a real CAS identifier in the first place CAS Settings Window else contact support." +
"\nIf you haven't created an CAS account and registered an app yet, use Test Ads mode to continue build.";
"\nPlease try using a real CAS identifier in the CAS Settings Window first, otherwise contact support." +
"\nIf you haven't created a CAS account and registered an app yet, use Test Ads mode to continue build.";

Debug.LogError(Utils.logTag + message);
if (!Utils.IsBatchMode())
Expand Down
2 changes: 1 addition & 1 deletion Editor/ManagerIndexDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public override void OnGUI( Rect position, SerializedProperty property, GUIConte
var android = property.FindPropertyRelative( "android" );
var ios = property.FindPropertyRelative( "ios" );
position.yMax -= position.height * 0.66f;
EditorGUI.LabelField( position, "Mediaiton manager" );
EditorGUI.LabelField( position, "Mediation manager" );
position.y += position.height;
EditorGUI.indentLevel++;
android.intValue = EditorGUI.Popup( position, "Android", android.intValue, androidIDs );
Expand Down
2 changes: 1 addition & 1 deletion Runtime/AdObject/BannerAdObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class BannerAdObject : MonoBehaviour

[SerializeField]
private AdPosition adPosition = AdPosition.BottomCenter;
[Tooltip("For greater control over where a AdView is placed on screen. Use Density-independent Pixels (DP).")]
[Tooltip("For greater control over where an AdView is placed on screen. Use Density-independent Pixels (DP).")]
[SerializeField]
private Vector2Int adOffset = Vector2Int.zero;
[SerializeField]
Expand Down