@@ -353,7 +353,7 @@ await splitRemoteFilePaths.Select(async splitRemoteFilePath =>
353353 /// <param name="arguments">The arguments to pass to <c>adb install</c>.</param>
354354 /// <returns>A <see cref="Task"/> which represents the asynchronous operation.</returns>
355355 public virtual async Task InstallPackageAsync ( string packageFilePath , IProgress < InstallProgressEventArgs > ? progress = null , CancellationToken cancellationToken = default , params string [ ] arguments ) =>
356- await InstallPackageAsync ( packageFilePath , progress == null ? null : progress . Report , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
356+ await InstallPackageAsync ( packageFilePath , progress . AsAction ( ) , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
357357
358358 /// <summary>
359359 /// Asynchronously installs the application package that was pushed to a temporary location on the device.
@@ -365,7 +365,7 @@ public virtual async Task InstallPackageAsync(string packageFilePath, IProgress<
365365 /// <param name="arguments">The arguments to pass to <c>pm install</c>.</param>
366366 /// <returns>A <see cref="Task"/> which represents the asynchronous operation.</returns>
367367 public virtual async Task InstallRemotePackageAsync ( string remoteFilePath , IProgress < InstallProgressEventArgs > ? progress = null , CancellationToken cancellationToken = default , params string [ ] arguments ) =>
368- await InstallRemotePackageAsync ( remoteFilePath , progress == null ? null : progress . Report , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
368+ await InstallRemotePackageAsync ( remoteFilePath , progress . AsAction ( ) , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
369369
370370 /// <summary>
371371 /// Asynchronously installs Android multiple application on device.
@@ -378,7 +378,7 @@ public virtual async Task InstallRemotePackageAsync(string remoteFilePath, IProg
378378 /// <param name="arguments">The arguments to pass to <c>pm install-create</c>.</param>
379379 /// <returns>A <see cref="Task"/> which represents the asynchronous operation.</returns>
380380 public virtual async Task InstallMultiplePackageAsync ( string basePackageFilePath , IEnumerable < string > splitPackageFilePaths , IProgress < InstallProgressEventArgs > ? progress = null , CancellationToken cancellationToken = default , params string [ ] arguments ) =>
381- await InstallMultiplePackageAsync ( basePackageFilePath , splitPackageFilePaths , progress == null ? null : progress . Report , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
381+ await InstallMultiplePackageAsync ( basePackageFilePath , splitPackageFilePaths , progress . AsAction ( ) , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
382382
383383 /// <summary>
384384 /// Asynchronously installs Android multiple application on device.
@@ -391,7 +391,7 @@ public virtual async Task InstallMultiplePackageAsync(string basePackageFilePath
391391 /// <param name="arguments">The arguments to pass to <c>pm install-create</c>.</param>
392392 /// <returns>A <see cref="Task"/> which represents the asynchronous operation.</returns>
393393 public virtual async Task InstallMultiplePackageAsync ( IEnumerable < string > splitPackageFilePaths , string packageName , IProgress < InstallProgressEventArgs > ? progress = null , CancellationToken cancellationToken = default , params string [ ] arguments ) =>
394- await InstallMultiplePackageAsync ( splitPackageFilePaths , packageName , progress == null ? null : progress . Report , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
394+ await InstallMultiplePackageAsync ( splitPackageFilePaths , packageName , progress . AsAction ( ) , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
395395
396396 /// <summary>
397397 /// Asynchronously installs the multiple application package that was pushed to a temporary location on the device.
@@ -404,7 +404,7 @@ public virtual async Task InstallMultiplePackageAsync(IEnumerable<string> splitP
404404 /// <param name="arguments">The arguments to pass to <c>pm install-create</c>.</param>
405405 /// <returns>A <see cref="Task"/> which represents the asynchronous operation.</returns>
406406 public virtual async Task InstallMultipleRemotePackageAsync ( string baseRemoteFilePath , IEnumerable < string > splitRemoteFilePaths , IProgress < InstallProgressEventArgs > ? progress = null , CancellationToken cancellationToken = default , params string [ ] arguments ) =>
407- await InstallMultipleRemotePackageAsync ( baseRemoteFilePath , splitRemoteFilePaths , progress == null ? null : progress . Report , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
407+ await InstallMultipleRemotePackageAsync ( baseRemoteFilePath , splitRemoteFilePaths , progress . AsAction ( ) , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
408408
409409 /// <summary>
410410 /// Asynchronously installs the multiple application package that was pushed to a temporary location on the device.
@@ -417,7 +417,7 @@ public virtual async Task InstallMultipleRemotePackageAsync(string baseRemoteFil
417417 /// <param name="arguments">The arguments to pass to <c>pm install-create</c>.</param>
418418 /// <returns>A <see cref="Task"/> which represents the asynchronous operation.</returns>
419419 public virtual async Task InstallMultipleRemotePackageAsync ( IEnumerable < string > splitRemoteFilePaths , string packageName , IProgress < InstallProgressEventArgs > ? progress = null , CancellationToken cancellationToken = default , params string [ ] arguments ) =>
420- await InstallMultipleRemotePackageAsync ( splitRemoteFilePaths , packageName , progress == null ? null : progress . Report , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
420+ await InstallMultipleRemotePackageAsync ( splitRemoteFilePaths , packageName , progress . AsAction ( ) , cancellationToken , arguments ) . ConfigureAwait ( false ) ;
421421#endif
422422
423423 /// <summary>
0 commit comments