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-11-08 18:04:00 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b225714f509496c7a9f7c9f3150cd18168a9a4f3
b225714f
1 parent
acbb7acd
bug fix inside Warply
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
7 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/PermissionsUtil.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
warply_android_sdk/build.gradle
View file @
b225714
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4.6rc
7
'
PUBLISH_VERSION
=
'4.5.4.6rc
8
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
View file @
b225714
...
...
@@ -129,13 +129,14 @@ public enum Warply {
@Override
public
void
onInit
(
Context
context
)
{
INSTANCE
.
mContext
=
new
WeakReference
<>(
context
.
getApplicationContext
());
initInternal
(
context
);
}
});
}
private
static
void
initInternal
(
Context
context
)
{
if
(
isInitialized
()
)
{
if
(
/*isInitialized()*/
context
==
null
)
{
INSTANCE
.
check
();
return
;
}
...
...
@@ -992,9 +993,9 @@ public enum Warply {
}
private
void
check
()
{
//
if (mContext == null) {
//
return;
//
}
if
(
mContext
==
null
)
{
return
;
}
if
(!
WarpUtils
.
isRegisteredWarply
(
mContext
.
get
()))
{
registerWarply
();
return
;
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/PermissionsUtil.java
View file @
b225714
...
...
@@ -51,7 +51,7 @@ public class PermissionsUtil{
private
String
[]
requestedPerms
;
private
PermissionCallback
callback
;
private
WarplyPreferences
prefs
=
new
WarplyPreferences
(
Warply
.
getWarplyContext
())
;
private
WarplyPreferences
prefs
;
private
Handler
handler
;
// ===========================================================
...
...
@@ -60,7 +60,7 @@ public class PermissionsUtil{
public
PermissionsUtil
(
@NonNull
Context
context
,
@Nullable
PermissionCallback
callback
,
@Nullable
String
...
requestedPerms
)
{
this
.
prefs
=
new
WarplyPreferences
(
context
);
this
.
context
=
new
WeakReference
<>(
context
);
this
.
callback
=
callback
;
this
.
requestedPerms
=
requestedPerms
;
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
View file @
b225714
...
...
@@ -877,6 +877,13 @@ public class WarplyManagerHelper {
WorkManager
.
getInstance
(
Warply
.
getWarplyContext
()).
enqueue
(
mywork
);
}
public
static
void
clearCCMSLoyaltyCampaigns
()
{
mCCMSList
.
clear
();
OneTimeWorkRequest
mywork
=
new
OneTimeWorkRequest
.
Builder
(
EventService
.
class
).
build
();
WorkManager
.
getInstance
(
Warply
.
getWarplyContext
()).
enqueue
(
mywork
);
}
/**
* Get the List with CCMS Campaigns
*/
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
View file @
b225714
...
...
@@ -562,6 +562,7 @@ public class WarplyManager {
WarpUtils
.
setUserNonTelco
(
Warply
.
getWarplyContext
(),
false
);
WarpUtils
.
setUserTag
(
Warply
.
getWarplyContext
(),
""
);
WarplyManagerHelper
.
clearCCMSLoyaltyCampaigns
();
WarplyDBHelper
.
getInstance
(
Warply
.
getWarplyContext
()).
deleteAuth
();
WarplyDBHelper
.
getInstance
(
Warply
.
getWarplyContext
()).
deleteClient
();
...
...
Please
register
or
login
to post a comment