Panagiotis Triantafyllou

new keys

...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
2 2
3 ext { 3 ext {
4 PUBLISH_GROUP_ID = 'ly.warp' 4 PUBLISH_GROUP_ID = 'ly.warp'
5 - PUBLISH_VERSION = '4.5.4-cosbeta93' 5 + PUBLISH_VERSION = '4.5.4-cosbeta94'
6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk' 6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
7 } 7 }
8 8
......
...@@ -839,7 +839,7 @@ public class WarplyManager { ...@@ -839,7 +839,7 @@ public class WarplyManager {
839 Intent stepsServiceIntent = new Intent(Warply.getWarplyContext(), WarplyHealthService.class); 839 Intent stepsServiceIntent = new Intent(Warply.getWarplyContext(), WarplyHealthService.class);
840 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { 840 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
841 AlarmManager mgr = (AlarmManager) Warply.getWarplyContext().getSystemService(Context.ALARM_SERVICE); 841 AlarmManager mgr = (AlarmManager) Warply.getWarplyContext().getSystemService(Context.ALARM_SERVICE);
842 - PendingIntent pi = PendingIntent.getService(Warply.getWarplyContext(), 2002, stepsServiceIntent, PendingIntent.FLAG_ONE_SHOT); 842 + PendingIntent pi = PendingIntent.getService(Warply.getWarplyContext(), 2002, stepsServiceIntent, PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE);
843 mgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime() + 1000, pi); 843 mgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime() + 1000, pi);
844 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { 844 } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
845 Warply.getWarplyContext().startForegroundService(stepsServiceIntent); 845 Warply.getWarplyContext().startForegroundService(stepsServiceIntent);
......