Skip to content

Commit 74af4ab

Browse files
committed
Cleanup
1 parent 7e5bb3a commit 74af4ab

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Assets/AdjustImei/Editor/AdjustImeiEditor.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static void AutorunPostBuildTasks()
5858
}
5959
else
6060
{
61-
EditorUtility.DisplayDialog("Adjust IMEI Plugin", "Adjust IMEI plugin post build tasks from now on WON'T be performed each time you build your app."
61+
EditorUtility.DisplayDialog("Adjust IMEI Plugin", "Adjust IMEI plugin post build tasks from now on WONT be performed each time you build your app."
6262
+ "\n\nPlease, make sure that your app is compatible for usage of the Adjust IMEI plugin by selecting \"Is my app properly configured?\" option from menu.", "OK");
6363
}
6464
}
@@ -122,16 +122,16 @@ private static void RunPostProcessTasksAndroid()
122122
UnityEngine.Debug.Log("[AdjustImei]: User defined AndroidManifest.xml file located in Plugins/Android folder.");
123123
}
124124

125-
// Seems like you already have your own AndroidManifest.xml, we'll now run
125+
// Seems like you already have your own AndroidManifest.xml, well now run
126126
// some checks on it and tweak it a bit if needed to add some stuff which
127127
// our native Android IMEI plugin needs so that it can run properly.
128128

129-
// Let's open the app's AndroidManifest.xml file.
129+
// Lets open the apps AndroidManifest.xml file.
130130
XmlDocument manifestFile = new XmlDocument();
131131
manifestFile.Load(appManifestPath);
132132

133133
bool manifestHasChanged = false;
134-
134+
135135
// Add needed permissions if they are missing.
136136
manifestHasChanged |= AddPermissions(manifestFile);
137137

@@ -143,23 +143,23 @@ private static void RunPostProcessTasksAndroid()
143143
// Clean the manifest file.
144144
CleanManifestFile(appManifestPath);
145145

146-
UnityEngine.Debug.Log("[AdjustImei]: App's AndroidManifest.xml file check and potential modification completed.");
147-
UnityEngine.Debug.Log("[AdjustImei]: Please check if any error message was displayed during this process "
146+
UnityEngine.Debug.Log("[AdjustImei]: Apps AndroidManifest.xml file check and potential modification completed.");
147+
UnityEngine.Debug.Log("[AdjustImei]: Please check if any error message was displayed during this process "
148148
+ "and make sure to fix all issues in order to properly use the Adjust IMEI plugin in your app.");
149149
}
150150
else
151151
{
152-
UnityEngine.Debug.Log("[AdjustImei]: App's AndroidManifest.xml file check completed.");
153-
UnityEngine.Debug.Log("[AdjustImei]: No modifications performed due to app's AndroidManifest.xml file compatibility.");
152+
UnityEngine.Debug.Log("[AdjustImei]: Apps AndroidManifest.xml file check completed.");
153+
UnityEngine.Debug.Log("[AdjustImei]: No modifications performed due to apps AndroidManifest.xml file compatibility.");
154154
}
155155
}
156156

157157
private static bool AddPermissions(XmlDocument manifest)
158158
{
159-
// The Adjust IMEI plugin needs following permissions to be added to you app's manifest file:
159+
// The Adjust IMEI plugin needs following permissions to be added to you apps manifest file:
160160
// <uses-permission android:name="android.permission.READ_PHONE_STATE" />
161161

162-
UnityEngine.Debug.Log("[AdjustImei]: Checking if all permissions needed for the Adjust IMEI plugin are present in the app's AndroidManifest.xml file.");
162+
UnityEngine.Debug.Log("[AdjustImei]: Checking if all permissions needed for the Adjust IMEI plugin are present in the apps AndroidManifest.xml file.");
163163

164164
bool hasReadPhoneStatePermission = false;
165165
XmlElement manifestRoot = manifest.DocumentElement;
@@ -187,12 +187,12 @@ private static bool AddPermissions(XmlDocument manifest)
187187
XmlElement element = manifest.CreateElement("uses-permission");
188188
element.SetAttribute("android__name", "android.permission.READ_PHONE_STATE");
189189
manifestRoot.AppendChild(element);
190-
UnityEngine.Debug.Log("[AdjustImei]: android.permission.READ_PHONE_STATE permission successfully added to your app's AndroidManifest.xml file.");
190+
UnityEngine.Debug.Log("[AdjustImei]: android.permission.READ_PHONE_STATE permission successfully added to your apps AndroidManifest.xml file.");
191191
manifestHasChanged = true;
192192
}
193193
else
194194
{
195-
UnityEngine.Debug.Log("[AdjustImei]: Your app's AndroidManifest.xml file already contains android.permission.READ_PHONE_STATE permission.");
195+
UnityEngine.Debug.Log("[AdjustImei]: Your apps AndroidManifest.xml file already contains android.permission.READ_PHONE_STATE permission.");
196196
UnityEngine.Debug.Log("[AdjustImei]: All good.");
197197
}
198198

@@ -229,9 +229,9 @@ private static bool DoesAppHaveAllThePermissions()
229229
}
230230

231231
// Seems like you already have your own AndroidManifest.xml.
232-
// We'll now check if all the permissions needed by the plugin are added.
232+
// Well now check if all the permissions needed by the plugin are added.
233233

234-
// Let's open the app's AndroidManifest.xml file.
234+
// Lets open the apps AndroidManifest.xml file.
235235
XmlDocument manifestFile = new XmlDocument();
236236
manifestFile.Load(appManifestPath);
237237

@@ -253,4 +253,4 @@ private static bool DoesAppHaveAllThePermissions()
253253

254254
return false;
255255
}
256-
}
256+
}

0 commit comments

Comments
 (0)