-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add packages for SQLite3 Multiple Ciphers #563
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
src/SQLitePCLRaw.bundle_e_sqlite3mc/SQLitePCLRaw.bundle_e_sqlite3mc.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project Sdk="Xamarin.Legacy.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;$(tfm_net6_ios);$(tfm_net6_maccatalyst);$(tfm_net6_android);$(tfm_classic_ios);$(tfm_classic_android);net461</TargetFrameworks> | ||
<SignAssembly>true</SignAssembly> | ||
<PackageId>SQLitePCLRaw.bundle_e_sqlite3mc</PackageId> | ||
<AssemblyName>SQLitePCLRaw.batteries_v2</AssemblyName> | ||
<AssemblyOriginatorKeyFile>..\..\sn\SQLitePCLRaw.batteries_v2.snk</AssemblyOriginatorKeyFile> | ||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> | ||
<PackageDescription>This 'batteries-included' bundle brings in SQLitePCLRaw.core and the necessary stuff for certain common use cases. Call SQLitePCL.Batteries.Init(). Policy of this bundle: e_sqlite3mc included</PackageDescription> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\src\common\batteries_v2.cs" /> | ||
</ItemGroup> | ||
|
||
<Import Condition=" '$(TargetFramework)' == 'netstandard2.0' " Project="..\msbuild_bundle_fragments\e_sqlite3mc_dllimport.xml" /> | ||
<Import Condition=" '$(TargetFramework)' == '$(tfm_net6_ios)' " Project="..\msbuild_bundle_fragments\e_sqlite3mc_ios.xml" /> | ||
<Import Condition=" '$(TargetFramework)' == '$(tfm_net6_maccatalyst)' " Project="..\msbuild_bundle_fragments\e_sqlite3mc_dllimport.xml" /> | ||
<Import Condition=" '$(TargetFramework)' == '$(tfm_net6_android)' " Project="..\msbuild_bundle_fragments\e_sqlite3mc_android.xml" /> | ||
<Import Condition=" '$(TargetFramework)' == '$(tfm_classic_ios)' " Project="..\msbuild_bundle_fragments\e_sqlite3mc_ios.xml" /> | ||
<Import Condition=" '$(TargetFramework)' == '$(tfm_classic_android)' " Project="..\msbuild_bundle_fragments\e_sqlite3mc_android.xml" /> | ||
<Import Condition=" '$(TargetFramework)' == 'net461' " Project="..\msbuild_bundle_fragments\e_sqlite3mc_dynamic.xml" /> | ||
|
||
</Project> | ||
|
38 changes: 38 additions & 0 deletions
38
src/SQLitePCLRaw.lib.e_sqlite3mc.android/SQLitePCLRaw.lib.e_sqlite3mc.android.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<Project Sdk="Xamarin.Legacy.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>$(tfm_net6_android);$(tfm_classic_android)</TargetFrameworks> | ||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\sn\SQLitePCLRaw.lib.e_sqlite3mc.snk</AssemblyOriginatorKeyFile> | ||
<PackageDescription>This package contains platform-specific native code builds of SQLite3 Multiple Ciphers (see utelle/SQLite3MultipleCiphers on GitHub) for use with SQLitePCLRaw. To use this package, you need SQLitePCLRaw.core as well as one of the SQLitePCLRaw.provider.* packages. Convenience packages are named SQLitePCLRaw.bundle_*.</PackageDescription> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\src\common\embedded_init.cs" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Label="Android DesignTimeBuild error workaround"> | ||
<DesignTimeBuild>false</DesignTimeBuild> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedNativeLibrary Include="$([System.IO.Path]::Combine($(cb_bin_path), 'e_sqlite3mc', 'android', 'x86', 'libe_sqlite3mc.so'))"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
<Link>x86\libe_sqlite3mc.so</Link> | ||
</EmbeddedNativeLibrary> | ||
<EmbeddedNativeLibrary Include="$([System.IO.Path]::Combine($(cb_bin_path), 'e_sqlite3mc', 'android', 'x86_64', 'libe_sqlite3mc.so'))"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
<Link>x86_64\libe_sqlite3mc.so</Link> | ||
</EmbeddedNativeLibrary> | ||
<EmbeddedNativeLibrary Include="$([System.IO.Path]::Combine($(cb_bin_path), 'e_sqlite3mc', 'android', 'arm64-v8a', 'libe_sqlite3mc.so'))"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
<Link>arm64-v8a\libe_sqlite3mc.so</Link> | ||
</EmbeddedNativeLibrary> | ||
<EmbeddedNativeLibrary Include="$([System.IO.Path]::Combine($(cb_bin_path), 'e_sqlite3mc', 'android', 'armeabi-v7a', 'libe_sqlite3mc.so'))"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
<Link>armeabi-v7a\libe_sqlite3mc.so</Link> | ||
</EmbeddedNativeLibrary> | ||
</ItemGroup> | ||
|
||
</Project> | ||
|
17 changes: 17 additions & 0 deletions
17
src/SQLitePCLRaw.lib.e_sqlite3mc.ios/SQLitePCLRaw.lib.e_sqlite3mc.ios.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project Sdk="Xamarin.Legacy.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>$(tfm_net6_ios);$(tfm_classic_ios)</TargetFrameworks> | ||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\sn\SQLitePCLRaw.lib.e_sqlite3mc.snk</AssemblyOriginatorKeyFile> | ||
<PackageDescription>This package contains platform-specific native code builds of SQLite3 Multiple Ciphers (see utelle/SQLite3MultipleCiphers on GitHub) for use with SQLitePCLRaw. To use this package, you need SQLitePCLRaw.core as well as one of the SQLitePCLRaw.provider.* packages. Convenience packages are named SQLitePCLRaw.bundle_*.</PackageDescription> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="$(cb_bin_path)\e_sqlite3mc\ios\device\e_sqlite3mc.a" Pack="true" PackagePath="static\device" /> | ||
<None Include="$(cb_bin_path)\e_sqlite3mc\ios\simulator\e_sqlite3mc.a" Pack="true" PackagePath="static\simulator" /> | ||
<None Include="SQLitePCLRaw.lib.e_sqlite3mc.ios.targets" Pack="true" PackagePath="build" /> | ||
<None Include="SQLitePCLRaw.lib.e_sqlite3mc.ios.targets" Pack="true" PackagePath="buildTransitive" /> | ||
</ItemGroup> | ||
</Project> | ||
|
16 changes: 16 additions & 0 deletions
16
src/SQLitePCLRaw.lib.e_sqlite3mc.ios/SQLitePCLRaw.lib.e_sqlite3mc.ios.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Condition="'$(RuntimeIdentifier)'=='ios-arm64' or '$(ComputedPlatform)'=='iPhone'"> | ||
<NativeReference Include="$(MSBuildThisFileDirectory)..\static\device\e_sqlite3mc.a"> | ||
<Kind>Static</Kind> | ||
<SmartLink>False</SmartLink> | ||
<ForceLoad>true</ForceLoad> | ||
</NativeReference> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(RuntimeIdentifier)'=='iossimulator-arm64' or '$(RuntimeIdentifier)'=='iossimulator-x64' or '$(ComputedPlatform)'=='iPhoneSimulator'"> | ||
<NativeReference Include="$(MSBuildThisFileDirectory)..\static\simulator\e_sqlite3mc.a"> | ||
<Kind>Static</Kind> | ||
<SmartLink>False</SmartLink> | ||
<ForceLoad>true</ForceLoad> | ||
</NativeReference> | ||
</ItemGroup> | ||
</Project> |
29 changes: 29 additions & 0 deletions
29
src/SQLitePCLRaw.provider.e_sqlite3mc/SQLitePCLRaw.provider.e_sqlite3mc.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;net6.0;net6.0-windows</TargetFrameworks> | ||
<LangVersion>$(ProviderLangVersion)</LangVersion> | ||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> | ||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\sn\SQLitePCLRaw.provider.e_sqlite3mc.snk</AssemblyOriginatorKeyFile> | ||
<PackageDescription>SQLitePCLRaw is a Portable Class Library (PCL) for low-level (raw) access to SQLite. Packages named 'SQLitePCLRaw.provider.*' (like this one) are 'plugins' that allow SQLitePCLRaw.core to access the native SQLite library. This provider does DllImport of 'e_sqlite3mc', the SQLite3 Multiple Ciphers builds provided with SQLitePCLRaw.</PackageDescription> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\SQLitePCLRaw.core\SQLitePCLRaw.core.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' "> | ||
<Compile Include="Generated\provider_e_sqlite3mc_prenet5_win.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' "> | ||
<Compile Include="Generated\provider_e_sqlite3mc_funcptrs_notwin.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0-windows' "> | ||
<Compile Include="Generated\provider_e_sqlite3mc_funcptrs_win.cs" /> | ||
</ItemGroup> | ||
|
||
</Project> |
29 changes: 29 additions & 0 deletions
29
src/SQLitePCLRaw.provider.sqlite3mc/SQLitePCLRaw.provider.sqlite3mc.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;net6.0;net6.0-windows</TargetFrameworks> | ||
<LangVersion>$(ProviderLangVersion)</LangVersion> | ||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> | ||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\sn\SQLitePCLRaw.provider.sqlite3mc.snk</AssemblyOriginatorKeyFile> | ||
<PackageDescription>SQLitePCLRaw is a Portable Class Library (PCL) for low-level (raw) access to SQLite. Packages named 'SQLitePCLRaw.provider.*' (like this one) are 'plugins' that allow SQLitePCLRaw.core to access the native SQLite library. This provider does DllImport of 'sqlite3mc', to reference the 'system' SQLite3 Multiple Ciphers. One common use for this provider is to access the SQLite3 Multiple Ciphers library installed from source.</PackageDescription> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\SQLitePCLRaw.core\SQLitePCLRaw.core.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' "> | ||
<Compile Include="Generated\provider_sqlite3mc_prenet5_win.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' "> | ||
<Compile Include="Generated\provider_sqlite3mc_funcptrs_notwin.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0-windows' "> | ||
<Compile Include="Generated\provider_sqlite3mc_funcptrs_win.cs" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
<Project> | ||
|
||
<PropertyGroup> | ||
<DefineConstants>$(DefineConstants);PROVIDER_e_sqlite3mc</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\SQLitePCLRaw.lib.e_sqlite3mc.android\SQLitePCLRaw.lib.e_sqlite3mc.android.csproj" /> | ||
<ProjectReference Include="..\SQLitePCLRaw.provider.e_sqlite3mc\SQLitePCLRaw.provider.e_sqlite3mc.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<DefineConstants>$(DefineConstants);PROVIDER_e_sqlite3mc</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3mc" Version="$(version)" /> | ||
<ProjectReference Include="..\SQLitePCLRaw.provider.e_sqlite3mc\SQLitePCLRaw.provider.e_sqlite3mc.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to make the repo easier to work with locally. It won't use the .NET 8 SDK which errors for net6.0-ios and android targets. It reflects the 6.0.x semantics in the GitHub action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been adding something similar to my local work directory.
I'm a little bit tempted to deprecate net6.0 next week.
But net6.0 is still in support for another year.
But the net6.0 mobile targets are a special case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I'm confessing my temptations, I'd love to deprecate support for .NET Framework too, but that's a whole different can of worms. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our fork, I compromised by supporting the base net6.0 TFM, but requiring net7.0-android and -ios.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still want .NET Framework support, but only for VS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Speaking broadly, not just about SQLite...
I always wonder how the support story for .NET Framework would be different without VS in the picture. I assume it'll probably never move to [.NET Core and its descendants]. Lots of enterprise apps are in the same boat, but VS is a special case.
No comments expected -- I'm just musing a bit.