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

Commit d0e0477

Browse files
committed
1.5.4 release
1 parent c22c8b6 commit d0e0477

14 files changed

+41
-15
lines changed

Kinvey-Android.1.5.2.nupkg

-27.4 KB
Binary file not shown.

Kinvey-Android.1.5.3.nupkg

-27.4 KB
Binary file not shown.

Kinvey-Android.1.5.4.nupkg

27.4 KB
Binary file not shown.

Kinvey-Xamarin-Android.nuspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<package >
33
<metadata>
44
<id>Kinvey-Android</id>
5-
<version>1.5.3</version>
6-
<releaseNotes> * Improved error messaging when there is no logged in user * Added GPS as a nuget dependency </releaseNotes>
5+
<version>1.5.4</version>
6+
<releaseNotes> * Fixed an issue with AppData delete's URL generation </releaseNotes>
77
<title>Kinvey-Xamarin-Android</title>
88
<authors>Kinvey</authors>
99
<owners>Kinvey</owners>
@@ -22,7 +22,7 @@
2222
<dependency id="SQLite.Net.Async-PCL" version="3.0.5" />
2323
<dependency id="SQLite.Net-PCL" version="3.0.5" />
2424
<dependency id="Xamarin.GooglePlayServices" version="25.0.0.0"/>
25-
<dependency id="Kinvey" version="1.5.3" />
25+
<dependency id="Kinvey" version="1.5.4" />
2626
</dependencies>
2727
</metadata>
2828
<files>

Kinvey-Xamarin-iOS.nuspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<package >
33
<metadata>
44
<id>Kinvey-ios</id>
5-
<version>1.5.3</version>
6-
<releaseNotes> * Improved error messaging when there is no logged in user </releaseNotes>
5+
<version>1.5.4</version>
6+
<releaseNotes> * Fixed an issue with AppData delete's URL generation </releaseNotes>
77
<title>Kinvey-Xamarin-iOS</title>
88
<authors>Kinvey</authors>
99
<owners>Kinvey</owners>
@@ -21,7 +21,7 @@
2121
<dependency id="Newtonsoft.Json" version="7.0.1" />
2222
<dependency id="SQLite.Net.Async-PCL" version="3.0.5" />
2323
<dependency id="SQLite.Net-PCL" version="3.0.5" />
24-
<dependency id="Kinvey" version="1.5.3" />
24+
<dependency id="Kinvey" version="1.5.4" />
2525
</dependencies>
2626
</metadata>
2727
<files>

Kinvey-Xamarin-iOS/Push/Push.cs

+23-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void RegisterForToken(){
3030

3131
}
3232

33-
public void Initialize(string deviceToken){
33+
public async void Initialize(string deviceToken){
3434
if (deviceToken == null) {
3535
Logger.Log ("Cannot Initialize for push, device Token cannot be null!");
3636
return;
@@ -49,11 +49,22 @@ public void Initialize(string deviceToken){
4949

5050
NSUserDefaults.StandardUserDefaults.SetString(deviceToken, APN_Token);
5151
NSUserDefaults.StandardUserDefaults.Synchronize ();
52+
try{
53+
await EnablePushAsync("ios", deviceToken);
54+
}catch(Exception e){
55+
// Console.WriteLine ("wtf");
56+
//throw e;
57+
}
5258

53-
ThreadPool.QueueUserWorkItem (o => {
54-
EnablePushViaRest ("ios", deviceToken).Execute();
55-
56-
});
59+
// ThreadPool.QueueUserWorkItem (o => {
60+
// try{
61+
// EnablePushViaRest ("ios", deviceToken).Execute();
62+
// } catch (Exception e){
63+
// delegates.onError(e);
64+
// throw e;
65+
// }
66+
//
67+
// });
5768
}
5869

5970
public void DisablePush(){
@@ -64,8 +75,14 @@ public void DisablePush(){
6475
return;
6576
}
6677

78+
79+
6780
ThreadPool.QueueUserWorkItem (o => {
68-
DisablePushViaRest("ios", value).Execute();
81+
// try{
82+
DisablePushViaRest("ios", value).Execute();
83+
// } catch (Exception e){
84+
// throw e;
85+
// }
6986
});
7087
}
7188

Kinvey-Xamarin.nuspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<package >
33
<metadata>
44
<id>Kinvey</id>
5-
<version>1.5.3</version>
6-
<releaseNotes> * Improved error messaging when there is no logged in user</releaseNotes>
5+
<version>1.5.4</version>
6+
<releaseNotes> * Fixed an issue with AppData delete's URL generation </releaseNotes>
77
<title>Kinvey-Xamarin</title>
88
<authors>Kinvey</authors>
99
<owners>Kinvey</owners>

Kinvey-Xamarin/AbstractPush.cs

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using Newtonsoft.Json.Linq;
44
using Newtonsoft.Json;
5+
using System.Threading.Tasks;
56

67
namespace KinveyXamarin
78
{
@@ -16,6 +17,14 @@ public AbstractPush (Client client)
1617
this.client = client;
1718
}
1819

20+
public async Task<PushPayload> EnablePushAsync(string platform, string entityId){
21+
return await EnablePushViaRest (platform, entityId).ExecuteAsync ();
22+
}
23+
24+
public async Task<PushPayload> DisablePushAsync(string platform, string entityId){
25+
return await DisablePushViaRest (platform, entityId).ExecuteAsync ();
26+
}
27+
1928
public EnablePush EnablePushViaRest(string platform, string deviceId){
2029
var urlParameters = new Dictionary<string, string>();
2130
urlParameters.Add("appKey", ((KinveyClientRequestInitializer)client.RequestInitializer).AppKey);

Kinvey-Xamarin/Core/KinveyHeaders.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class KinveyHeaders : List<HttpHeader>
2828
/// <summary>
2929
/// The version of the library.
3030
/// </summary>
31-
public static string VERSION = "1.5.3";
31+
public static string VERSION = "1.5.4";
3232

3333
/// <summary>
3434
/// The kinvey API version key.

Kinvey-ios.1.5.2.nupkg

-5.43 KB
Binary file not shown.

Kinvey-ios.1.5.3.nupkg

-5.38 KB
Binary file not shown.

Kinvey-ios.1.5.4.nupkg

5.98 KB
Binary file not shown.

Kinvey.1.5.2.nupkg

-174 KB
Binary file not shown.
174 KB
Binary file not shown.

0 commit comments

Comments
 (0)