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
2024-04-04 16:36:35 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c9269dd0f2056e4dad2c12f951b285771de63de3
c9269dd0
1 parent
6686970a
minor future addition
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarpUtils.java
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
View file @
c9269dd
...
...
@@ -37,9 +37,9 @@ public class SplashActivity extends BaseActivity {
public
void
onWarplyReady
()
{
if
(!
WarplyDBHelper
.
getInstance
(
SplashActivity
.
this
).
isTableNotEmpty
(
"auth"
))
{
//6012049321, 6012049322, 6012049323, 7000000831 history, 7000000826, 7000000831 shared coupons
//prod 6006552990, prod 6005892749, live 3000184910,prod 7000070282
//prod 6006552990, prod 6005892749, live 3000184910,prod 7000070282
, live 3000136179
WarplyManager
.
getCosmoteUser
(
"7000000833"
,
mLoginReceiver
);
// WarplyManager.verifyTicket("", "70000
00833
", mLoginReceiver);
// WarplyManager.verifyTicket("", "70000
23699
", mLoginReceiver);
}
else
{
startNextActivity
();
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarpUtils.java
View file @
c9269dd
...
...
@@ -149,11 +149,23 @@ public class WarpUtils {
+
"trackers_enabled"
;
private
static
final
String
PREFERENCES_KEY_LANGUAGE
=
PREFERENCES_PREFIX
+
"language"
;
private
static
final
String
PREFERENCES_KEY_STEPS
=
PREFERENCES_PREFIX
+
"steps"
;
private
static
SharedPreferences
_prefs
;
/* Public methods */
public
static
boolean
getIsSteps
(
Context
context
)
{
return
getPreferences
(
context
).
getBoolean
(
PREFERENCES_KEY_STEPS
,
false
);
}
public
static
void
setIsSteps
(
Context
context
,
boolean
isSupermarket
)
{
SharedPreferences
.
Editor
editor
=
getPreferences
(
context
).
edit
();
editor
.
putBoolean
(
PREFERENCES_KEY_STEPS
,
isSupermarket
);
editor
.
apply
();
}
public
static
String
getUserTag
(
Context
context
)
{
return
getPreferences
(
context
).
getString
(
PREFERENCES_KEY_USER_TAG
,
""
);
}
...
...
Please
register
or
login
to post a comment