Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2022-10-14 10:46:57 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
54aa2348768498a452ab79b21c8a4c3d2cad1e9e
54aa2348
1 parent
4e6ee8f7
new keys
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
warply_android_sdk/build.gradle
View file @
54aa234
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta9
3
'
PUBLISH_VERSION
=
'4.5.4-cosbeta9
4
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
View file @
54aa234
...
...
@@ -839,7 +839,7 @@ public class WarplyManager {
Intent
stepsServiceIntent
=
new
Intent
(
Warply
.
getWarplyContext
(),
WarplyHealthService
.
class
);
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
S
)
{
AlarmManager
mgr
=
(
AlarmManager
)
Warply
.
getWarplyContext
().
getSystemService
(
Context
.
ALARM_SERVICE
);
PendingIntent
pi
=
PendingIntent
.
getService
(
Warply
.
getWarplyContext
(),
2002
,
stepsServiceIntent
,
PendingIntent
.
FLAG_ONE_SHOT
);
PendingIntent
pi
=
PendingIntent
.
getService
(
Warply
.
getWarplyContext
(),
2002
,
stepsServiceIntent
,
PendingIntent
.
FLAG_ONE_SHOT
|
PendingIntent
.
FLAG_IMMUTABLE
);
mgr
.
set
(
AlarmManager
.
ELAPSED_REALTIME_WAKEUP
,
SystemClock
.
elapsedRealtime
()
+
1000
,
pi
);
}
else
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
O
)
{
Warply
.
getWarplyContext
().
startForegroundService
(
stepsServiceIntent
);
...
...
Please
register
or
login
to post a comment