@@ -58,7 +58,7 @@ static void AutorunPostBuildTasks()
58
58
}
59
59
else
60
60
{
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 WON’ T be performed each time you build your app."
62
62
+ "\n \n Please, 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" ) ;
63
63
}
64
64
}
@@ -122,16 +122,16 @@ private static void RunPostProcessTasksAndroid()
122
122
UnityEngine . Debug . Log ( "[AdjustImei]: User defined AndroidManifest.xml file located in Plugins/Android folder." ) ;
123
123
}
124
124
125
- // Seems like you already have your own AndroidManifest.xml, we' ll now run
125
+ // Seems like you already have your own AndroidManifest.xml, we’ ll now run
126
126
// some checks on it and tweak it a bit if needed to add some stuff which
127
127
// our native Android IMEI plugin needs so that it can run properly.
128
128
129
- // Let' s open the app' s AndroidManifest.xml file.
129
+ // Let’ s open the app’ s AndroidManifest.xml file.
130
130
XmlDocument manifestFile = new XmlDocument ( ) ;
131
131
manifestFile . Load ( appManifestPath ) ;
132
132
133
133
bool manifestHasChanged = false ;
134
-
134
+
135
135
// Add needed permissions if they are missing.
136
136
manifestHasChanged |= AddPermissions ( manifestFile ) ;
137
137
@@ -143,23 +143,23 @@ private static void RunPostProcessTasksAndroid()
143
143
// Clean the manifest file.
144
144
CleanManifestFile ( appManifestPath ) ;
145
145
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]: 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 "
148
148
+ "and make sure to fix all issues in order to properly use the Adjust IMEI plugin in your app." ) ;
149
149
}
150
150
else
151
151
{
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]: App’ s AndroidManifest.xml file check completed." ) ;
153
+ UnityEngine . Debug . Log ( "[AdjustImei]: No modifications performed due to app’ s AndroidManifest.xml file compatibility." ) ;
154
154
}
155
155
}
156
156
157
157
private static bool AddPermissions ( XmlDocument manifest )
158
158
{
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 app’ s manifest file:
160
160
// <uses-permission android:name="android.permission.READ_PHONE_STATE" />
161
161
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 app’ s AndroidManifest.xml file." ) ;
163
163
164
164
bool hasReadPhoneStatePermission = false ;
165
165
XmlElement manifestRoot = manifest . DocumentElement ;
@@ -187,12 +187,12 @@ private static bool AddPermissions(XmlDocument manifest)
187
187
XmlElement element = manifest . CreateElement ( "uses-permission" ) ;
188
188
element . SetAttribute ( "android__name" , "android.permission.READ_PHONE_STATE" ) ;
189
189
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 app’ s AndroidManifest.xml file." ) ;
191
191
manifestHasChanged = true ;
192
192
}
193
193
else
194
194
{
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 app’ s AndroidManifest.xml file already contains android.permission.READ_PHONE_STATE permission." ) ;
196
196
UnityEngine . Debug . Log ( "[AdjustImei]: All good." ) ;
197
197
}
198
198
@@ -229,9 +229,9 @@ private static bool DoesAppHaveAllThePermissions()
229
229
}
230
230
231
231
// 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
+ // We’ ll now check if all the permissions needed by the plugin are added.
233
233
234
- // Let' s open the app' s AndroidManifest.xml file.
234
+ // Let’ s open the app’ s AndroidManifest.xml file.
235
235
XmlDocument manifestFile = new XmlDocument ( ) ;
236
236
manifestFile . Load ( appManifestPath ) ;
237
237
@@ -253,4 +253,4 @@ private static bool DoesAppHaveAllThePermissions()
253
253
254
254
return false ;
255
255
}
256
- }
256
+ }
0 commit comments