Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit c22c8b6

Browse files
committed
MLIBZ-551 fixing url formatting for delete, and not adding a payload on delete instead of setting it as null explicitly
1 parent 2161d81 commit c22c8b6

16 files changed

+331
-8
lines changed

Android-Libtester/Android-Libtester.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<AndroidApplication>True</AndroidApplication>
1515
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
1616
<AssemblyName>Android-Libtester</AssemblyName>
17-
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
17+
<TargetFrameworkVersion>v5.1</TargetFrameworkVersion>
1818
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
1919
</PropertyGroup>
2020
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

Kinvey-Android.1.5.3.nupkg

27.4 KB
Binary file not shown.

Kinvey-Xamarin/AppData.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public SaveRequest (T entity, string entityId, Type myClass, SaveMode update, Ab
451451
public class DeleteRequest : AbstractKinveyOfflineClientRequest<KinveyDeleteResponse>
452452
{
453453

454-
private const string REST_PATH = "appdata/{appkey}/{collectionName}/{entityID}";
454+
private const string REST_PATH = "appdata/{appKey}/{collectionName}/{entityID}";
455455

456456
[JsonProperty]
457457
public string CollectionName { get; set; }

Kinvey-Xamarin/Core/AbstractKinveyClientRequest.cs

+9-6
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,19 @@ public RestRequest BuildRestRequest()
260260
restRequest.Method = Method.DELETE;
261261
break;
262262
}
263-
if (this.HttpContent == null && requestMethod.Equals(HttpMethod.Post) )
264-
{
265-
restRequest.AddBody(new object());
266-
}
263+
264+
265+
if (this.HttpContent == null && requestMethod.Equals (HttpMethod.Post)) {
266+
restRequest.AddBody (new object ());
267+
} else if (this.HttpContent == null ) {
268+
//don't add a request body
269+
}
267270
else
268271
{
269272
restRequest.AddParameter(PayloadType.getContentType(), PayloadType.getHttpContent(HttpContent), ParameterType.RequestBody);
270273
}
271-
foreach (var header in requestHeaders)
272-
{
274+
275+
foreach (var header in requestHeaders){
273276
restRequest.AddHeader(header.Name, header.Value.FirstOrDefault());
274277
}
275278

Kinvey-ios.1.5.3.nupkg

5.38 KB
Binary file not shown.
Binary file not shown.
-5.45 KB
Binary file not shown.
Binary file not shown.
-146 KB
Binary file not shown.

release/kinvey-xamarin-1.5.3.zip

183 KB
Binary file not shown.
Binary file not shown.

release/kinvey-xamarin-1.5.3/LICENSE.txt

+307
Large diffs are not rendered by default.
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
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+
2. Right click your project -> **Add** -> **Add Packages**
3+
4+
5+
Microsoft.Bcl version="1.1.0"
6+
Microsoft.Bcl.Async version="1.0.168"
7+
Microsoft.Bcl.Build version="1.0.21"
8+
Microsoft.Net.Http version="2.2.29"
9+
modernhttpclient version="2.4.2"
10+
Newtonsoft.Json version="6.0.8"
11+
SQLite.Net.Async-PCL version="3.0.5"
12+
SQLite.Net-PCL version="3.0.5"
13+
Kinvey version="1.5.0"

0 commit comments

Comments
 (0)