Commit Graph

57 Commits

Author SHA1 Message Date
Frederik Carlier
18dbcc3148 Update XML representation of UIDs 2020-04-23 00:01:27 +02:00
a039fc690c Merge pull request #58 from quamotion/fixes/uid-touint64
Add UID.ToUInt64() method
2019-06-12 18:37:08 +01:00
8694497045 Merge pull request #57 from quamotion/fixes/uid-remove-deprecated
UID: Remove deprecated members
2019-06-12 18:36:48 +01:00
Frederik Carlier
4ae00a54cb Add UID.ToUInt64() 2019-06-12 15:15:10 +02:00
Frederik Carlier
ee4f4728be UID: Remove deprecated members 2019-06-12 15:13:27 +02:00
Frederik Carlier
e5fa322513 Add unit tests for the various constructors 2019-06-02 00:35:19 +02:00
Frederik Carlier
b9c41214c4 Support reading 16-byte (128-bit) NSNumber values, as well as non-power-of-2 sized values 2019-06-02 00:05:18 +02:00
c109d2c76b Code cleanup and refactor. 2018-07-09 19:57:08 +01:00
Frederik Carlier
6a96ff142c Add NS.string as primitive 2018-06-26 17:10:44 +02:00
Frederik Carlier
a035dd5056 Update list of serialization primitives 2018-06-26 15:56:42 +02:00
Frederik Carlier
a89a7ad5e8 Consider booleans to be serialization 'primitives' as well 2018-06-26 13:59:12 +02:00
e1b3f8f73f Merge pull request #43 from quamotion/fixes/uid
Refactor the UID class
2018-06-22 20:16:52 +01:00
Frederik Carlier
8fdd1388fe Fix roundtripping of binary data, add unit test 2018-06-20 12:59:57 +02:00
Frederik Carlier
2b4fe6595e Refactur UIDs 2018-06-19 22:54:05 +02:00
Frederik Carlier
e4eebf93f4 Fix unit tests 2018-06-19 17:23:57 +02:00
Frederik Carlier
46d56b5cc2 Add unit tests 2018-06-19 17:16:08 +02:00
Frederik Carlier
5cc5100df9 Fix indentation, add unit test 2018-05-23 08:03:18 +02:00
Frederik Carlier
835656b733 Fix path 2018-05-23 08:03:18 +02:00
Frederik Carlier
5bb8322610 Update csproj file 2018-05-23 08:03:18 +02:00
Frederik Carlier
274ab519e7 Correctly roundtrip long binary values 2018-05-23 08:02:28 +02:00
c8a33496cf Merge pull request #35 from quamotion/fixes/xunit-warnings
Fix build warnings
2018-05-22 21:13:50 +01:00
Frederik Carlier
a5828d3d20 Fix build warnings 2018-05-22 22:02:06 +02:00
Frederik Carlier
4cfa99edb8 Fix paths 2018-05-22 21:07:31 +02:00
Frederik Carlier
15d53adf8e Test parsing and serialization of real numbers with > 5 decimals 2018-05-22 21:07:30 +02:00
Frederik Carlier
22b977bb20 Fix paths 2018-05-22 16:31:06 +02:00
Frederik Carlier
7241b5d202 Don't build net45, net40 on Linux 2018-05-22 16:28:12 +02:00
Frederik Carlier
674d57ea07 Skip test for scenario which is not implemented 2018-05-22 14:58:17 +02:00
Frederik Carlier
c6a5be0f62 Support netcoreapp2.0 and netstandard2.0 2018-05-22 14:45:32 +02:00
67b73b4319 Ignore line endings on test. 2017-05-20 02:53:39 +01:00
114fd9b2fc .NET has some kind of bug with DST. On winter time, TestXml() works. On summer time, TestXml() fails by the amount modified by time savings. Workaround it. 2017-05-20 02:34:00 +01:00
673825548f Consider all ASCIIPropertyLists as UTF8 on opening, instead of considering them ASCII. Fixes #15. 2017-05-20 02:27:53 +01:00
Frederik Carlier
d9670db803 Migrate to xUnit 2017-03-16 23:37:42 +01:00
e071148e2b Updated code to correclty support and compile using .NET Core RC4 (and Visual Studio 2017). May break compatibility with VS2015. Older .NET Core will not be supported. Fixes #13
Signed-off-by: Natalia Portillo <claunia@claunia.com>
2017-02-22 21:25:31 +00:00
64dc55d047 Merge pull request #8 from quamotion/fixes/xml-formatting
XML format compatibility with Apple
2016-06-24 22:04:12 +01:00
Frederik Carlier
03c95ce192 Minor fixes in how property lists are serialized to XML, to maintain compatibility with the Apple format:
- NSNumber of "0/real" is serialized as "0.0"
- Data values are not indented
- Newline at the end of the file
- Always use \r as newline
2016-06-22 13:13:55 +02:00
Frederik Carlier
c2f15567c7 Fix the datetime test (use the correct UTC value) 2016-06-22 13:11:52 +02:00
Frederik Carlier
dfee77b724 When converting dates to strings, always convert them to UTC first. 2016-06-22 13:11:52 +02:00
Frederik Carlier
1ff1bcde3b Parse dates as UTC dates. 2016-06-22 13:11:52 +02:00
10e92e31db Merge pull request #10 from quamotion/fixes/0-length-stream
Fix issues with 0-length streams
2016-06-22 05:10:40 +01:00
18e9e294e2 Merge pull request #7 from quamotion/fixes/nsarray-recursion
Fix recursive call in NSArray.GetEnumerator
2016-06-22 05:10:27 +01:00
Frederik Carlier
66ac10e4be Make sure to always specify CultureInfo when parsing numbers. 2016-06-03 15:39:54 +02:00
Frederik Carlier
12418b7284 Fix issue when handling 0-length streams. 2016-05-25 00:37:44 +02:00
Frederik Carlier
3c4e3257f2 NSNumber: Keep track of the original number type when parsing from XML 2016-05-24 23:43:00 +02:00
Frederik Carlier
e432c71e26 Fix recursive call in NSArray.GetEnumerator 2016-05-24 22:55:24 +02:00
Frederik Carlier
ec6d00342f Update unit tests after updates to work on .NET Core 2016-05-22 19:12:44 +02:00
Frederik Carlier
2bacfb7037 Update the parsing code to match to work with the new NSArray class 2016-05-22 16:37:44 +02:00
Frederik Carlier
df27f9d5ac NSArray: Implement IList<NSObject> 2016-05-22 16:05:33 +02:00
399a043c62 * plist-cil.sln:
* plist-cil/plist-cil.csproj:
	* plist-cil.test/plist-cil.test.csproj:
	* plist-cil/Properties/AssemblyInfo.cs:
	  Bump to 1.14 (upstream r114).

	* plist-cil/PropertyListParser.cs:
	* plist-cil/ASCIIPropertyListParser.cs:
	  Sync BOM skipping code with upstream.

	* plist-cil/BinaryPropertyListParser.cs:
	  Sync code with upstream.
	Added UTF-8 string decoding on binary property lists.
2015-02-24 22:53:31 +00:00
b03717e877 Remove unused variables and disable warnings that we know are
innocuous.
2015-02-20 01:34:22 +00:00
79ed8b39b0 * LICENSE:
* plist-cil/plist-cil.csproj:
	  Added MIT License file.

	* SvnInfo.txt:
	* plist-cil.sln:
	  Added file to keep track of mainstream Subversion
	  repository.

	* plist-cil.test/plist-cil.test.csproj:
2015-02-20 00:56:21 +00:00