Skip to content

Commit f5bf19e

Browse files
committed
Ensuring runtimes/platforms are applied to their specific builds. Setup script ensures we get runtimes and platforms from correct sources.
1 parent a0750d4 commit f5bf19e

File tree

7 files changed

+220
-194
lines changed

7 files changed

+220
-194
lines changed

PowerSync/PowerSync.Common/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# PowerSync.Common Changelog
2+
13
## 0.0.2-alpha.2
24

35
- Updated core extension to v0.3.14

PowerSync/PowerSync.Common/PowerSync.Common.csproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<PackageIcon>icon.png</PackageIcon>
2020
<NoWarn>NU5100</NoWarn>
2121
<PackageReadmeFile>README.md</PackageReadmeFile>
22+
<DefaultItemExcludes>$(DefaultItemExcludes);runtimes/**/*.*;</DefaultItemExcludes>
2223
</PropertyGroup>
2324

2425
<ItemGroup>
@@ -28,23 +29,21 @@
2829
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2930
<PackageReference Include="Nito.AsyncEx" Version="5.1.2" />
3031
<PackageReference Include="System.Threading.Channels" Version="8.0.0" />
31-
<!-- <PackageReference Include="Microsoft.Maui.Essentials" Version="8.0.0" />-->
32-
3332
</ItemGroup>
34-
33+
34+
<!-- Check allows us to skip for all MAUI targets-->
3535
<!-- For monorepo-->
36-
<ItemGroup>
36+
<ItemGroup Condition="!$(TargetFramework.Contains('-'))">
3737
<Content Include="runtimes\**\*.*">
3838
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3939
</Content>
4040
</ItemGroup>
4141

4242
<!-- For releasing runtimes -->
43-
<ItemGroup>
43+
<ItemGroup Condition="!$(TargetFramework.Contains('-'))">
4444
<None Include="runtimes\**\*.*" Pack="true" PackagePath="runtimes\" />
4545
</ItemGroup>
4646

47-
4847
<ItemGroup>
4948
<None Include="..\..\icon.png" Pack="true" PackagePath=""/>
5049
<None Include="README.md" Pack="true" PackagePath=""/>

PowerSync/PowerSync.Maui/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# PowerSync.Maui Changelog
2+
3+
## 0.0.2-alpha.2
4+
5+
- Updated core extension to v0.3.14
6+
- Loading last synced time from core extension
7+
- Expose upload and download errors on SyncStatus
8+
- Improved credentials management and error handling. Credentials are invalidated when they expire or become invalid based on responses from the PowerSync service. The frequency of credential fetching has been reduced as a result of this work.
9+
10+
## 0.0.2-alpha.1
11+
12+
- Introduce package. Support for Desktop .NET use cases.
13+
14+
### Platform Runtime Support Added
15+
* MAUI iOS
16+
* MAUI Android

PowerSync/PowerSync.Maui/PowerSync.Maui.csproj

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,26 @@
3232
<SubType>Designer</SubType>
3333
</None>
3434
</ItemGroup>
35-
35+
3636
<!-- For monorepo-->
37-
<ItemGroup>
38-
<Content Include="Platforms\**\*.*">
37+
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
38+
<Content Include="Platforms\Android\**\*.*">
3939
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4040
</Content>
4141
</ItemGroup>
4242

43-
<!-- For releasing runtimes -->
44-
<ItemGroup>
45-
<None Include="Platforms\**\*.*" Pack="true" PackagePath="Platforms\" />
43+
<ItemGroup Condition="$(TargetFramework.Contains('-ios'))">
44+
<Content Include="Platforms\iOS\**\*.*">
45+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
46+
</Content>
4647
</ItemGroup>
4748

49+
<!-- For releasing runtimes -->
50+
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
51+
<None Include="Platforms\Android\**\*.*" Pack="true" PackagePath="Platforms\Android" />
52+
</ItemGroup>
4853

49-
<!-- <ItemGroup Condition="'$(TargetFramework)' == 'net8.0-ios'">-->
50-
<!-- <NativeReference Include="Platforms/iOS/NativeLibs/powersync-sqlite-core.xcframework">-->
51-
<!-- <Kind>Framework</Kind>-->
52-
<!-- <ForceLoad>true</ForceLoad> &lt;!&ndash; Required if static &ndash;&gt;-->
53-
<!-- <Frameworks>Foundation</Frameworks>-->
54-
<!-- </NativeReference>-->
55-
<!-- </ItemGroup>-->
56-
57-
<!-- <ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">-->
58-
<!-- <AndroidNativeLibrary Include="Platforms/Android/jniLibs/**/*.so" />-->
59-
<!-- </ItemGroup>-->
60-
<!-- -->
54+
<ItemGroup Condition="$(TargetFramework.Contains('-ios'))">
55+
<None Include="Platforms\iOS\**\*.*" Pack="true" PackagePath="Platforms\iOS" />
56+
</ItemGroup>
6157
</Project>

0 commit comments

Comments
 (0)