Skip to content

Commit

Permalink
MLIBZ-551 fixing url formatting for delete, and not adding a payload …
Browse files Browse the repository at this point in the history
…on delete instead of setting it as null explicitly
  • Loading branch information
edatkinvey committed Sep 3, 2015
1 parent 2161d81 commit c22c8b6
Show file tree
Hide file tree
Showing 16 changed files with 331 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Android-Libtester/Android-Libtester.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<AndroidApplication>True</AndroidApplication>
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
<AssemblyName>Android-Libtester</AssemblyName>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v5.1</TargetFrameworkVersion>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down
Binary file added Kinvey-Android.1.5.3.nupkg
Binary file not shown.
2 changes: 1 addition & 1 deletion Kinvey-Xamarin/AppData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public SaveRequest (T entity, string entityId, Type myClass, SaveMode update, Ab
public class DeleteRequest : AbstractKinveyOfflineClientRequest<KinveyDeleteResponse>
{

private const string REST_PATH = "appdata/{appkey}/{collectionName}/{entityID}";
private const string REST_PATH = "appdata/{appKey}/{collectionName}/{entityID}";

[JsonProperty]
public string CollectionName { get; set; }
Expand Down
15 changes: 9 additions & 6 deletions Kinvey-Xamarin/Core/AbstractKinveyClientRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,16 +260,19 @@ public RestRequest BuildRestRequest()
restRequest.Method = Method.DELETE;
break;
}
if (this.HttpContent == null && requestMethod.Equals(HttpMethod.Post) )
{
restRequest.AddBody(new object());
}


if (this.HttpContent == null && requestMethod.Equals (HttpMethod.Post)) {
restRequest.AddBody (new object ());
} else if (this.HttpContent == null ) {
//don't add a request body
}
else
{
restRequest.AddParameter(PayloadType.getContentType(), PayloadType.getHttpContent(HttpContent), ParameterType.RequestBody);
}
foreach (var header in requestHeaders)
{

foreach (var header in requestHeaders){
restRequest.AddHeader(header.Name, header.Value.FirstOrDefault());
}

Expand Down
Binary file added Kinvey-ios.1.5.3.nupkg
Binary file not shown.
Binary file not shown.
Binary file removed packages/Kinvey-ios.1.5.1/Kinvey-ios.1.5.1.nupkg
Binary file not shown.
Binary file not shown.
Binary file removed packages/Kinvey.1.5.1/lib/Kinvey-Xamarin.dll
Binary file not shown.
Binary file added release/kinvey-xamarin-1.5.3.zip
Binary file not shown.
Binary file not shown.
Binary file added release/kinvey-xamarin-1.5.3/Kinvey-Xamarin.dll
Binary file not shown.
307 changes: 307 additions & 0 deletions release/kinvey-xamarin-1.5.3/LICENSE.txt

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions release/kinvey-xamarin-1.5.3/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
1. Right click the *References* folder within your project -> **Edit References** -> **.Net Assembly** -> Navigate to download location of kinvey library, and add all the dll files.
2. Right click your project -> **Add** -> **Add Packages**


Microsoft.Bcl version="1.1.0"
Microsoft.Bcl.Async version="1.0.168"
Microsoft.Bcl.Build version="1.0.21"
Microsoft.Net.Http version="2.2.29"
modernhttpclient version="2.4.2"
Newtonsoft.Json version="6.0.8"
SQLite.Net.Async-PCL version="3.0.5"
SQLite.Net-PCL version="3.0.5"
Kinvey version="1.5.0"
File renamed without changes.
File renamed without changes.

0 comments on commit c22c8b6

Please sign in to comment.