Commit Graph

93 Commits

Author SHA1 Message Date
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
c646d1beb2 Merge pull request #12 from quamotion/fixes/dtd-processing
Ignore DTD when reading XML PList documents
2016-07-09 14:25:56 +01:00
Frederik Carlier
fb7e431ac8 Ignore DTD when reading XML PList documents 2016-06-28 20:42:59 +02:00
64dc55d047 Merge pull request #8 from quamotion/fixes/xml-formatting
XML format compatibility with Apple
2016-06-24 22:04:12 +01:00
036227e346 Merge pull request #9 from quamotion/fixes/date-handling
Fix date handling
2016-06-24 22:03:49 +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
2148034a71 Merge pull request #11 from quamotion/fixes/create-new-file
Always create a new file when writing to disk.
2016-06-22 05:10:45 +01: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
b9aa325825 Merge pull request #6 from quamotion/fixes/nsnumber-from-xml
NSNumber: Keep track of the original number type when parsing from XML
2016-06-22 05:10:22 +01:00
Frederik Carlier
bf031fadab Always create a new file when writing to disk. 2016-06-03 16:04:22 +02: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
6571783fab Merge pull request #4 from quamotion/fixes/dotnetcore
.NET Core Compatibility
2016-05-23 00:35:49 +01:00
Frederik Carlier
a58ff42cef Add .NET Core compatibility to the README file 2016-05-23 00:19:07 +02:00
Frederik Carlier
5d16fb0275 Don't use the $ syntax 2016-05-22 19:35:17 +02:00
Frederik Carlier
55c515bd39 Add more recent Mono releases (from the 3.x and 4.x branch) 2016-05-22 19:35:10 +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
22737bb9d2 Convert.ToBase64String: Formatting parameters are no longer supported 2016-05-22 19:12:43 +02:00
Frederik Carlier
8f04882f98 Work around DocumentType which is no longer available on .NET Core 2016-05-22 19:12:43 +02:00
Frederik Carlier
bdf4351d1d Remove Synchronized attribute - method uses no global resources 2016-05-22 19:12:42 +02:00
Frederik Carlier
844d9f3b12 Remove the BinarySerialization. It's not available anymore on .NET Core, and if you want to serialize a .NET object to byte[] - let the caller specify how it should be done (and pass the byte[] array itself) 2016-05-22 19:12:41 +02:00
Frederik Carlier
cbfb5c8290 .NET Core Compatibility: string.CharEnumeator -> string.ToCharArray().GetEnumerator 2016-05-22 19:12:40 +02:00
Frederik Carlier
f284d2abd0 Don't use SystemException but a PropertyListException to indicate something went wrong. 2016-05-22 19:12:34 +02:00
Frederik Carlier
0a7483ff75 Use using statements around Streams and Readers/Writers instead of manually calling .Close, which is no longer supported on .NET Core 2016-05-22 19:12:26 +02:00
accdc880ae Merge pull request #5 from quamotion/fixes/dotnetinterfaces
NSArray: Implement IList<NSObject>
2016-05-22 15:51:54 +01: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
ccfba8ebc1 Merge pull request #2 from quamotion/fixes/binary-plist
Minor enhancements to plist-cil
2016-02-16 14:44:21 +00:00
Frederik Carlier
5a1a9d18d7 Binary format: Even if equivalent arrays (like empty ones) are saved, save them multiple times and use their respective indices 2016-02-10 13:41:54 +01:00
Frederik Carlier
156a55c84a BinaryPropertyListWriter: Allow for multiple occurences of the same UID, to maintain compatibility with the Apple binary format 2016-02-10 01:58:29 +01:00
Frederik Carlier
6f03f99db4 Support serializing empty (0-length) arrays 2016-02-05 19:48:54 +01:00
Frederik Carlier
1d3f49824c Fix order in which object IDs are generated to match the behavior of Apple's PLIST implementation 2016-02-05 19:48:33 +01:00
Frederik Carlier
438c75173b Enable strong name signing of the project 2016-02-05 17:02:36 +01:00
7ceae0ddc3 Corrected copy&paste :p 2015-10-24 01:19:42 +01:00
cf2b51e41d Added Travis job 2015-10-24 01:16:13 +01:00
a469709814 Added gnustep tag to NuSpec 2015-02-25 18:29:34 +00:00
d17e1f56a0 Added summary and better description. 2015-02-25 18:22:29 +00:00
fbd57a18be Update README.md to reflect current NuGet status. 2015-02-25 18:17:30 +00:00
df673df0a9 * plist-cil/plist-cil.nuspec:
* plist-cil/plist-cil.csproj:
	  Added NuGet package.

	* SvnInfo.txt:
	  Sync'ed with svn r114
2015-02-25 18:06:20 +00: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.
v1.14
2015-02-24 22:53:31 +00:00
7b550748d1 Prettify documentation. v1.13 2015-02-20 03:45:45 +00:00
2a1608a299 Modify some JavaDoc to Xml. 2015-02-20 03:04:40 +00:00
eb05b5032d Implement NSDictionary.CopyTo() 2015-02-20 02:28:27 +00:00
d4b593dab0 Added all missing documentation for public methods. 2015-02-20 02:23:39 +00:00