Skip to content

Commit 8046067

Browse files
committed
Added props file to Common that ensures we exclude native assets for Android.
1 parent 6fb7664 commit 8046067

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

PowerSync/PowerSync.Common/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PowerSync.Common Changelog
22

3-
## 0.0.4-dev.1
3+
## 0.0.4-dev.2
44
- Fixing build issues related to MAUI targets not resolving on install.
55

66
## 0.0.3-alpha.1

PowerSync/PowerSync.Common/PowerSync.Common.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
<PackageReference Include="Nito.AsyncEx" Version="5.1.2" />
3131
<PackageReference Include="System.Threading.Channels" Version="8.0.0" />
3232
</ItemGroup>
33+
34+
<ItemGroup>
35+
<None Include="PowerSync.Common.props" Pack="true" PackagePath="build\" />
36+
<None Include="PowerSync.Common.props" Pack="true" PackagePath="buildTransitive\" />
37+
</ItemGroup>
3338

3439
<!-- Check allows us to skip for all MAUI targets-->
3540
<!-- For monorepo-->
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project>
2+
<ItemGroup>
3+
<!-- Automatically exclude native assets for Android targets -->
4+
<PackageReference Update="PowerSync.Common" Condition="$(TargetFramework.Contains('android'))">
5+
<ExcludeAssets>%(ExcludeAssets);native</ExcludeAssets>
6+
</PackageReference>
7+
</ItemGroup>
8+
</Project>

0 commit comments

Comments
 (0)