Skip to content

Commit

Permalink
fix: Fixed iOS OpenApplicationInStoreAsync issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Mar 28, 2024
1 parent 503103b commit e66bb8d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ItemGroup>

<PropertyGroup Label="Nuget">
<Version>1.0.6</Version>
<Version>1.0.7</Version>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Authors>Oscore</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,12 @@ public async Task<AppStoreInformation> GetInformationAsync(
ExternalStoreUri = new Uri(result.TrackViewUrl),
};
}

/// <inheritdoc />
async Task<bool> IAppStoreInfo.OpenApplicationInStoreAsync(CancellationToken cancellationToken)
{
CachedInformation ??= await GetInformationAsync(cancellationToken).ConfigureAwait(false);

return await Launcher.Default.OpenAsync(CachedInformation.ExternalStoreUri).ConfigureAwait(false);
}
}

0 comments on commit e66bb8d

Please sign in to comment.