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 13:41:32 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b7cf799766063476a108b405f6934b9b66ab8f98
b7cf7997
1 parent
3afe0113
new keys
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
9 deletions
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/activities/CouponInfoActivity.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
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
View file @
b7cf799
...
...
@@ -36,7 +36,7 @@ public class SplashActivity extends BaseActivity {
public
void
onWarplyReady
()
{
if
(!
WarplyDBHelper
.
getInstance
(
SplashActivity
.
this
).
isTableNotEmpty
(
"auth"
))
{
WarplyManager
.
getCosmoteUser
(
new
WarplyCosmoteUserRequest
()
.
setGuid
(
"60
06552990
"
),
//6012049321, 6012049322, 6012049323, 7000000831 history, 7000000826, 7000000831 shared coupons, prod 6006552990
.
setGuid
(
"60
10962478
"
),
//6012049321, 6012049322, 6012049323, 7000000831 history, 7000000826, 7000000831 shared coupons, prod 6006552990
mLoginReceiver
);
}
else
{
startNextActivity
();
...
...
warply_android_sdk/build.gradle
View file @
b7cf799
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta8
5
'
PUBLISH_VERSION
=
'4.5.4-cosbeta8
6
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponInfoActivity.java
View file @
b7cf799
...
...
@@ -228,10 +228,15 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener
mLlBarcodeShown
.
setOnClickListener
(
this
);
mLlTerms
.
setOnClickListener
(
this
);
String
tempCoupon
=
mCoupon
.
getCoupon
()
;
String
tempCoupon
=
""
;
int
result
=
0
;
for
(
int
i
=
0
;
i
<
(
12
-
mCoupon
.
getCoupon
().
length
());
i
++)
{
tempCoupon
+=
"0"
;
try
{
tempCoupon
=
mCoupon
.
getCoupon
();
for
(
int
i
=
0
;
i
<
(
12
-
mCoupon
.
getCoupon
().
length
());
i
++)
{
tempCoupon
+=
"0"
;
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
try
{
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/GiftsForYouActivity.java
View file @
b7cf799
...
...
@@ -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 @
b7cf799
...
...
@@ -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 @
b7cf799
...
...
@@ -29,6 +29,7 @@ import java.util.Date;
import
java.util.Locale
;
import
ly.warp.sdk.R
;
import
ly.warp.sdk.Warply
;
import
ly.warp.sdk.io.callbacks.CallbackReceiver
;
import
ly.warp.sdk.io.models.HealthEventModel
;
import
ly.warp.sdk.io.models.PacingDetails
;
...
...
@@ -88,6 +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
();
WarplyManager
.
getPacingDetails
(
new
PacingDetailsRequest
(),
mPacingCallback
);
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
View file @
b7cf799
...
...
@@ -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
);
}
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
View file @
b7cf799
...
...
@@ -1482,7 +1482,7 @@ public class WarplyManager {
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"
)))
{
campaignLoyaltyList
.
add
(
camp
);
}
}
...
...
Please
register
or
login
to post a comment