Skip to content

Commit 278b968

Browse files
committed
.
1 parent 8067c81 commit 278b968

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/Sentry.Unity.Editor/Android/AndroidManifestConfiguration.cs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -233,18 +233,11 @@ internal void CopyAndroidSdkToGradleProject(string unityProjectPath, string grad
233233
_logger.LogInfo("Copying the Android SDK to '{0}'.", gradlePath);
234234
foreach (var file in Directory.GetFiles(androidSdkPath))
235235
{
236-
var destinationFile = Path.Combine(targetPath, Path.GetFileName(file));
237-
238-
try
239-
{
240-
File.Copy(file, destinationFile, overwrite: true);
241-
_logger.LogDebug("Copied SDK file: {0}", Path.GetFileName(file));
242-
}
243-
catch (Exception e)
244-
{
245-
_logger.LogError(e, "Failed to copy SDK file: {0}", Path.GetFileName(file));
246-
throw;
247-
}
236+
var fileName = Path.GetFileName(file);
237+
_logger.LogDebug("Copying '{0}'", fileName);
238+
239+
var destinationFile = Path.Combine(targetPath, fileName);
240+
File.Copy(file, destinationFile, overwrite: true);
248241
}
249242
}
250243
else

0 commit comments

Comments
 (0)