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-12-08 14:26:54 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7c06b94b2d9f38194152a717ebddf87cc7be80e1
7c06b94b
1 parent
6c31e734
crash fixes
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
19 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/activities/LoyaltyWallet.java
warply_android_sdk/src/main/java/ly/warp/sdk/io/callbacks/VolleyTransformer.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/PrefsUtils.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarpUtils.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyPreferences.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyProvider.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyAnalyticsManager.java
warply_android_sdk/build.gradle
View file @
7c06b94
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4.6rc3
3
'
PUBLISH_VERSION
=
'4.5.4.6rc3
4
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
View file @
7c06b94
This diff is collapsed. Click to expand it.
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
View file @
7c06b94
...
...
@@ -254,8 +254,8 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
if
(
requestCode
==
1000
)
{
if
(
resultCode
==
RESULT_OK
)
{
if
(!
TextUtils
.
isEmpty
(
WarplyManagerHelper
.
getUserTag
()))
{
mTvUserBadge
.
setText
(
WarplyManagerHelper
.
getUserTag
());
if
(!
TextUtils
.
isEmpty
(
WarplyManagerHelper
.
getUserTag
(
LoyaltyWallet
.
this
)))
{
mTvUserBadge
.
setText
(
WarplyManagerHelper
.
getUserTag
(
LoyaltyWallet
.
this
));
mLlQuestionnaire
.
setVisibility
(
View
.
GONE
);
mLlUserBadge
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
...
...
@@ -489,8 +489,8 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
.
into
(
mIvProfilePhoto
);
}
if
(!
TextUtils
.
isEmpty
(
WarplyManagerHelper
.
getUserTag
()))
{
mTvUserBadge
.
setText
(
WarplyManagerHelper
.
getUserTag
());
if
(!
TextUtils
.
isEmpty
(
WarplyManagerHelper
.
getUserTag
(
this
)))
{
mTvUserBadge
.
setText
(
WarplyManagerHelper
.
getUserTag
(
this
));
mLlQuestionnaire
.
setVisibility
(
View
.
GONE
);
mLlUserBadge
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/io/callbacks/VolleyTransformer.java
View file @
7c06b94
...
...
@@ -113,9 +113,9 @@ public class VolleyTransformer implements Listener<JSONObject>, ErrorListener {
return
;
WarpUtils
.
log
(
"**************** WARPLY Response *****************"
);
WarpUtils
.
verbose
(
"[WARP Trace] HTTP Web Id: "
+
WarpUtils
.
getWebId
(
Warply
.
INSTANCE
.
mContext
.
get
()
));
+
WarpUtils
.
getWebId
(
Warply
.
INSTANCE
.
mContext
));
WarpUtils
.
verbose
(
"[WARP Trace] HTTP API Key: "
+
WarplyProperty
.
getAppUuid
(
Warply
.
INSTANCE
.
mContext
.
get
()
));
+
WarplyProperty
.
getAppUuid
(
Warply
.
INSTANCE
.
mContext
));
if
(
response
!=
null
)
{
try
{
// WarpUtils.log("[WARP Trace] Request: " + response.toString(2));
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/PrefsUtils.java
View file @
7c06b94
...
...
@@ -61,7 +61,7 @@ public class PrefsUtils {
);
return
encryptedSharedPreferences
;
}
catch
(
GeneralSecurityException
|
IO
Exception
e
)
{
}
catch
(
Exception
e
)
{
WarpUtils
.
log
(
"PrefUtils Get Encrypted Shared Preferences Error"
,
e
);
return
PreferenceManager
.
getDefaultSharedPreferences
(
context
);
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarpUtils.java
View file @
7c06b94
...
...
@@ -256,7 +256,7 @@ public class WarpUtils {
);
_prefs
=
encryptedSharedPreferences
;
}
catch
(
GeneralSecurityException
|
IO
Exception
e
)
{
}
catch
(
Exception
e
)
{
WarpUtils
.
log
(
"WarpUtils Get Encrypted Shared Preferences Error"
,
e
);
_prefs
=
context
.
getSharedPreferences
(
PREFERENCES_NAME
,
Context
.
MODE_PRIVATE
);
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
View file @
7c06b94
...
...
@@ -1065,8 +1065,8 @@ public class WarplyManagerHelper {
/**
* Get user badge tag
*/
public
static
String
getUserTag
()
{
return
WarpUtils
.
getUserTag
(
Warply
.
getWarplyContext
()
);
public
static
String
getUserTag
(
Context
context
)
{
return
WarpUtils
.
getUserTag
(
context
);
}
/**
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyPreferences.java
View file @
7c06b94
...
...
@@ -39,7 +39,7 @@ public class WarplyPreferences {
);
this
.
warplySharedPrefs
=
encryptedSharedPreferences
;
}
catch
(
GeneralSecurityException
|
IO
Exception
e
)
{
}
catch
(
Exception
e
)
{
WarpUtils
.
log
(
"WarplyPreferences Encrypted Shared Preferences Error"
,
e
);
this
.
warplySharedPrefs
=
context
.
getSharedPreferences
(
WARPLY_SHARED_PREFS
,
Activity
.
MODE_PRIVATE
);
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyProvider.java
View file @
7c06b94
...
...
@@ -27,12 +27,12 @@ public class WarplyProvider extends ContentProvider {
new
CalligraphyConfig
.
Builder
()
.
setDefaultFontPath
(
"fonts/pf_square_sans_pro_regular.ttf"
)
.
setFontAttrId
(
R
.
attr
.
fontPath
)
.
setFontMapper
(
new
FontMapper
()
{
@Override
public
String
map
(
String
font
)
{
return
font
;
}
})
//
.setFontMapper(new FontMapper() {
//
@Override
//
public String map(String font) {
//
return font;
//
}
//
})
.
build
()))
.
build
());
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyAnalyticsManager.java
View file @
7c06b94
...
...
@@ -187,7 +187,7 @@ public class WarplyAnalyticsManager {
if
(
metadata
!=
null
)
{
jObj
.
putOpt
(
"action_metadata"
,
metadata
);
}
Warply
.
postMicroappData
(
WarpConstants
.
MICROAPP_INAPP_ANALYTICS
,
jObj
,
force
);
Warply
.
postMicroappData
(
context
,
WarpConstants
.
MICROAPP_INAPP_ANALYTICS
,
jObj
,
force
);
}
catch
(
JSONException
e
)
{
if
(
WarpConstants
.
DEBUG
)
{
e
.
printStackTrace
();
...
...
Please
register
or
login
to post a comment