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-10 15:08:27 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
21d0308f4e436c0cfd2595664e9a0c2bfca9cb34
21d0308f
1 parent
b7cf7997
new keys
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
12 deletions
app/src/main/assets/warply.properties
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
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/GiftsForYouActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/MoreForYouActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/services/WarplyHealthService.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
app/src/main/assets/warply.properties
View file @
21d0308
# {@link ly.warp.sdk.utils.WarplyProperty}
# The app uuid the warply sdk need to connect to the engage server
# cosmote demo app f83dfde1145e4c2da69793abb2f579af
# dev f83dfde1145e4c2da69793abb2f579af
# prod 0086a2088301440792091b9f814c2267
Uuid
=
f83dfde1145e4c2da69793abb2f579af
# If we need to see logs in Logcat
...
...
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
View file @
21d0308
...
...
@@ -36,7 +36,7 @@ public class SplashActivity extends BaseActivity {
public
void
onWarplyReady
()
{
if
(!
WarplyDBHelper
.
getInstance
(
SplashActivity
.
this
).
isTableNotEmpty
(
"auth"
))
{
WarplyManager
.
getCosmoteUser
(
new
WarplyCosmoteUserRequest
()
.
setGuid
(
"
6010962478
"
),
//6012049321, 6012049322, 6012049323, 7000000831 history, 7000000826, 7000000831 shared coupons, prod 6006552990
.
setGuid
(
"
7000000826
"
),
//6012049321, 6012049322, 6012049323, 7000000831 history, 7000000826, 7000000831 shared coupons, prod 6006552990
mLoginReceiver
);
}
else
{
startNextActivity
();
...
...
warply_android_sdk/build.gradle
View file @
21d0308
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta8
6
'
PUBLISH_VERSION
=
'4.5.4-cosbeta8
7
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
View file @
21d0308
...
...
@@ -154,15 +154,23 @@ public enum Warply {
* not, it throws a runtime exception with a message describing the reason
*/
private
void
isInitializedOrThrow
()
{
if
(
mContext
==
null
)
if
(
mContext
==
null
)
{
WarpUtils
.
log
(
"Warply has not been initialized, call init(Context) first"
);
if
(
mContext
.
get
()
==
null
)
return
;
}
if
(
mContext
.
get
()
==
null
)
{
WarpUtils
.
log
(
"Warply has not been initialized, call init(Context) first"
);
return
;
}
String
apiKey
=
WarplyProperty
.
getAppUuid
(
mContext
.
get
());
if
(
apiKey
==
null
)
if
(
apiKey
==
null
)
{
WarpUtils
.
log
(
"Warply application UUID has not been set in the Manifest"
);
if
((
apiKey
.
length
()
!=
32
)
&&
(
apiKey
.
length
()
!=
36
))
return
;
}
if
((
apiKey
.
length
()
!=
32
)
&&
(
apiKey
.
length
()
!=
36
))
{
WarpUtils
.
log
(
"Warply application UUID has not been set correclty in the Manifest, key got: "
+
apiKey
);
return
;
}
}
/**
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/GiftsForYouActivity.java
View file @
21d0308
...
...
@@ -366,7 +366,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
seasonalCLick
.
setTitle
(
dataItem
.
getSeasonalList
().
getTitle
());
seasonalCLick
.
setLoyaltyPackageId
(
dataItem
.
getSeasonalList
().
getLoyaltyPackageId
());
seasonalCLick
.
setImageUrl
(
dataItem
.
getSeasonalList
().
getImageUrl
());
seasonalCLick
.
setContext
(
GiftsForYouActivity
.
this
);
seasonalCLick
.
setContext
(
this
);
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
seasonalCLick
));
LoyaltySDKFirebaseEventModel
analyticsEvent
=
new
LoyaltySDKFirebaseEventModel
();
...
...
@@ -588,7 +588,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
try
{
JSONObject
extraFields
=
WarpJSONParser
.
getJSONFromString
(
camp
.
getExtraFields
());
if
(
extraFields
!=
null
)
{
if
(
extraFields
.
length
()
==
0
||
!(
/*extraFields.has("ccms_offer") || */
extraFields
.
has
(
"type"
)))
{
if
(
extraFields
.
length
()
==
0
||
!(
extraFields
.
has
(
"ccms_offer"
)
||
extraFields
.
has
(
"type"
)))
{
gfyList
.
add
(
camp
);
}
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/MoreForYouActivity.java
View file @
21d0308
...
...
@@ -528,7 +528,7 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener
try
{
JSONObject
extraFields
=
WarpJSONParser
.
getJSONFromString
(
camp
.
getExtraFields
());
if
(
extraFields
!=
null
)
{
if
(
extraFields
.
length
()
==
0
||
!(
/*extraFields.has("ccms_offer") || */
extraFields
.
has
(
"type"
)))
{
if
(
extraFields
.
length
()
==
0
||
!(
extraFields
.
has
(
"ccms_offer"
)
||
extraFields
.
has
(
"type"
)))
{
mfyList
.
add
(
camp
);
}
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/services/WarplyHealthService.java
View file @
21d0308
...
...
@@ -89,7 +89,7 @@ public class WarplyHealthService extends Service implements SensorEventListener
mSensorManager
=
(
SensorManager
)
getSystemService
(
Context
.
SENSOR_SERVICE
);
mSensor
=
mSensorManager
.
getDefaultSensor
(
Sensor
.
TYPE_ACCELEROMETER
);
// registerStepSensor();
Warply
.
getInitializer
(
this
).
init
();
//
Warply.getInitializer(this).init();
WarplyManager
.
getPacingDetails
(
new
PacingDetailsRequest
(),
mPacingCallback
);
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
View file @
21d0308
...
...
@@ -1146,7 +1146,7 @@ public class WarplyManagerHelper {
try
{
JSONObject
extraFields
=
WarpJSONParser
.
getJSONFromString
(
camp
.
getExtraFields
());
if
(
extraFields
!=
null
)
{
if
(
extraFields
.
length
()
==
0
||
!(
/*extraFields.has("ccms_offer") || */
extraFields
.
has
(
"type"
)))
{
if
(
extraFields
.
length
()
==
0
||
!(
extraFields
.
has
(
"ccms_offer"
)
||
extraFields
.
has
(
"type"
)))
{
mCampaignList
.
add
(
camp
);
}
}
...
...
Please
register
or
login
to post a comment