@@ -934,7 +934,9 @@ public async Task InstallCommitAsync(DeviceData device, string session, Cancella
934934
935935#if HAS_WINRT
936936 /// <inheritdoc/>
937- [ ContractVersion ( typeof ( UniversalApiContract ) , 65536u ) ]
937+ #if NET
938+ [ SupportedOSPlatform ( "Windows10.0.10240.0" ) ]
939+ #endif
938940 public virtual async Task InstallAsync ( DeviceData device , IRandomAccessStream apk , Action < InstallProgressEventArgs > ? callback = null , CancellationToken cancellationToken = default , params string [ ] arguments )
939941 {
940942 callback ? . Invoke ( new InstallProgressEventArgs ( PackageInstallProgressState . Preparing ) ) ;
@@ -1003,6 +1005,9 @@ public virtual async Task InstallAsync(DeviceData device, IRandomAccessStream ap
10031005 }
10041006
10051007 /// <inheritdoc/>
1008+ #if HAS_WINRT && NET
1009+ [ SupportedOSPlatform ( "Windows10.0.10240.0" ) ]
1010+ #endif
10061011 public async Task InstallMultipleAsync ( DeviceData device , IRandomAccessStream baseAPK , IEnumerable < IRandomAccessStream > splitAPKs , Action < InstallProgressEventArgs > ? callback = null , CancellationToken cancellationToken = default , params string [ ] arguments )
10071012 {
10081013 callback ? . Invoke ( new InstallProgressEventArgs ( PackageInstallProgressState . Preparing ) ) ;
@@ -1057,6 +1062,9 @@ void OnSplitSyncProgressChanged(string? sender, double args)
10571062 }
10581063
10591064 /// <inheritdoc/>
1065+ #if HAS_WINRT && NET
1066+ [ SupportedOSPlatform ( "Windows10.0.10240.0" ) ]
1067+ #endif
10601068 public async Task InstallMultipleAsync ( DeviceData device , IEnumerable < IRandomAccessStream > splitAPKs , string packageName , Action < InstallProgressEventArgs > ? callback = null , CancellationToken cancellationToken = default , params string [ ] arguments )
10611069 {
10621070 callback ? . Invoke ( new InstallProgressEventArgs ( PackageInstallProgressState . Preparing ) ) ;
@@ -1101,6 +1109,9 @@ void OnSyncProgressChanged(string? sender, double args)
11011109 }
11021110
11031111 /// <inheritdoc/>
1112+ #if NET
1113+ [ SupportedOSPlatform ( "Windows10.0.10240.0" ) ]
1114+ #endif
11041115 public virtual async Task InstallWriteAsync ( DeviceData device , IRandomAccessStream apk , string apkName , string session , Action < double > ? callback = null , CancellationToken cancellationToken = default )
11051116 {
11061117 callback ? . Invoke ( 0 ) ;
@@ -1173,6 +1184,9 @@ public virtual async Task InstallWriteAsync(DeviceData device, IRandomAccessStre
11731184 /// The progress is reported as a value between 0 and 100, representing the percentage of the apk which has been transferred.</param>
11741185 /// <param name="cancellationToken">A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.</param>
11751186 /// <returns>A <see cref="Task"/> which represents the asynchronous operation.</returns>
1187+ #if NET
1188+ [ SupportedOSPlatform ( "Windows10.0.10240.0" ) ]
1189+ #endif
11761190 protected virtual async Task InstallWriteAsync ( DeviceData device , IRandomAccessStream apk , string apkName , string session , Action < string ? , double > ? callback , CancellationToken cancellationToken = default )
11771191 {
11781192 callback ? . Invoke ( apkName , 0 ) ;
0 commit comments