From ca72856220b7b385497316b99ac02670cc5686d2 Mon Sep 17 00:00:00 2001 From: / Davilkus Date: Mon, 4 May 2026 04:58:02 +0300 Subject: [PATCH] Fixed English typos --- Editor/BaseAdObjectInspector.cs | 4 ++-- Editor/CASEditorSettings.cs | 2 +- ...nspector.cs => CASInitSettingsInspector.cs} | 18 +++++++++--------- ...s.meta => CASInitSettingsInspector.cs.meta} | 0 Editor/CASPreprocessBuild.cs | 14 +++++++------- Editor/ManagerIndexDrawer.cs | 2 +- Runtime/AdObject/BannerAdObject.cs | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) rename Editor/{CASInitSettignsInspector.cs => CASInitSettingsInspector.cs} (97%) rename Editor/{CASInitSettignsInspector.cs.meta => CASInitSettingsInspector.cs.meta} (100%) diff --git a/Editor/BaseAdObjectInspector.cs b/Editor/BaseAdObjectInspector.cs index 1950ef1..480fd63 100644 --- a/Editor/BaseAdObjectInspector.cs +++ b/Editor/BaseAdObjectInspector.cs @@ -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--; @@ -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); diff --git a/Editor/CASEditorSettings.cs b/Editor/CASEditorSettings.cs index 13b1cdd..6dbf924 100644 --- a/Editor/CASEditorSettings.cs +++ b/Editor/CASEditorSettings.cs @@ -18,7 +18,7 @@ public class CASEditorSettings : ScriptableObject public string attributionReportEndpoint = null; /// - /// Override Gradle Wrapper propery. + /// Override Gradle Wrapper property. /// distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip /// Supported strings with full https url or just version number, for example "7.2". /// diff --git a/Editor/CASInitSettignsInspector.cs b/Editor/CASInitSettingsInspector.cs similarity index 97% rename from Editor/CASInitSettignsInspector.cs rename to Editor/CASInitSettingsInspector.cs index 9a65784..bb3d6f5 100644 --- a/Editor/CASInitSettignsInspector.cs +++ b/Editor/CASInitSettingsInspector.cs @@ -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--; } @@ -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 @@ -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; @@ -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); } @@ -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.", @@ -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); } diff --git a/Editor/CASInitSettignsInspector.cs.meta b/Editor/CASInitSettingsInspector.cs.meta similarity index 100% rename from Editor/CASInitSettignsInspector.cs.meta rename to Editor/CASInitSettingsInspector.cs.meta diff --git a/Editor/CASPreprocessBuild.cs b/Editor/CASPreprocessBuild.cs index 52eedc8..08042c1 100644 --- a/Editor/CASPreprocessBuild.cs +++ b/Editor/CASPreprocessBuild.cs @@ -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); } @@ -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"; } @@ -161,7 +161,7 @@ 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; } @@ -169,7 +169,7 @@ private static void ConfigureAndroid(CASInitSettings settings, CASEditorSettings 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; } @@ -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); } @@ -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()) diff --git a/Editor/ManagerIndexDrawer.cs b/Editor/ManagerIndexDrawer.cs index d0f44dd..8fa70d1 100644 --- a/Editor/ManagerIndexDrawer.cs +++ b/Editor/ManagerIndexDrawer.cs @@ -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 ); diff --git a/Runtime/AdObject/BannerAdObject.cs b/Runtime/AdObject/BannerAdObject.cs index a102532..8ab43be 100644 --- a/Runtime/AdObject/BannerAdObject.cs +++ b/Runtime/AdObject/BannerAdObject.cs @@ -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]