|
@@ -20,20 +20,17 @@ import kr.co.zumo.app.lifeplus.util.StringUtil;
|
|
|
public class LifeplusPreferences {
|
|
public class LifeplusPreferences {
|
|
|
private BaseSharedPreferences preferences;
|
|
private BaseSharedPreferences preferences;
|
|
|
|
|
|
|
|
-// final static String ENCRYPTION_USER_NO = "encryption_user_no"; // 앱 업데이트/신규 체크에 사용.
|
|
|
|
|
- final static String ZUMO_USER_NO = "user_number"; // 앱 업데이트/신규 체크에 사용.
|
|
|
|
|
- private final static String ZUMO_USER_UPDATE_COMPLETED = "zumo_user_update_completed";
|
|
|
|
|
|
|
+ // final static String ENCRYPTION_USER_NO = "encryption_user_no"; // 앱 업데이트/신규 체크에 사용.
|
|
|
|
|
+ private final static String ZUMO_USER_NO = "user_number"; // 앱 업데이트/신규 체크에 사용.
|
|
|
private final static String ZUMO_USER_NO_UPDATE = "zumo_user_no_update";
|
|
private final static String ZUMO_USER_NO_UPDATE = "zumo_user_no_update";
|
|
|
private final static String USER_NO = "user_no"; //"user_id"; // zumo 1.0 에서 사용하는 키를 그대로 이용한다.
|
|
private final static String USER_NO = "user_no"; //"user_id"; // zumo 1.0 에서 사용하는 키를 그대로 이용한다.
|
|
|
private final static String ON_BOARDING_DONE = "on_boarding_done";
|
|
private final static String ON_BOARDING_DONE = "on_boarding_done";
|
|
|
private final static String PERMISSION_INFO_DONE = "permission_info_done";
|
|
private final static String PERMISSION_INFO_DONE = "permission_info_done";
|
|
|
private final static String DEVICE_UUID = "device_uuid";
|
|
private final static String DEVICE_UUID = "device_uuid";
|
|
|
private final static String ENCRYPTED_PIN = "encrypted_pin";
|
|
private final static String ENCRYPTED_PIN = "encrypted_pin";
|
|
|
- // private final static String PUSH_EVENT_ENABLED = "push_marketing_enabled";
|
|
|
|
|
private final static String PUSH_EVENT_SERVICE_ENABLED = "push_enabled";
|
|
private final static String PUSH_EVENT_SERVICE_ENABLED = "push_enabled";
|
|
|
private final static String POLICY_EVENT_ENABLED = "push_marketing_enabled";
|
|
private final static String POLICY_EVENT_ENABLED = "push_marketing_enabled";
|
|
|
private final static String LOCATION_SERVICE_ENABLED = "location_service_enabled";
|
|
private final static String LOCATION_SERVICE_ENABLED = "location_service_enabled";
|
|
|
- // private final static String COUNT_FOR_REVIEW_STRING = "count_for_review_string";
|
|
|
|
|
private final static String DEBUG_TARGET = "debug_target";
|
|
private final static String DEBUG_TARGET = "debug_target";
|
|
|
private final static String TUTORIAL_LISTICLE_DONE = "tutorial_listicle_done";
|
|
private final static String TUTORIAL_LISTICLE_DONE = "tutorial_listicle_done";
|
|
|
private final static String TUTORIAL_BUCKET_LIST_DETAIL_DONE = "tutorial_bucket_list_detail_done";
|
|
private final static String TUTORIAL_BUCKET_LIST_DETAIL_DONE = "tutorial_bucket_list_detail_done";
|
|
@@ -78,18 +75,10 @@ public class LifeplusPreferences {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 이전 앱 (Zumo) 에서 업데이트(전환 가입) 완료 했음
|
|
|
|
|
|
|
+ * 가능하다면 주모의 userNo 를 가져온다.
|
|
|
*/
|
|
*/
|
|
|
- public void setZumoUserUpdateCompleted(boolean isCompleted) {
|
|
|
|
|
- preferences.put(ZUMO_USER_UPDATE_COMPLETED, isCompleted);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public boolean isZumoUserUpdateCompleted() {
|
|
|
|
|
- return preferences.get(ZUMO_USER_UPDATE_COMPLETED, false);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void getZumoUserNoOnce() {
|
|
|
|
|
- if(StringUtil.isFull(getZumoUserNo()) && preferences.get(ZUMO_USER_NO_UPDATE, false) == false) {
|
|
|
|
|
|
|
+ public void fetchUserNoOfZumo() {
|
|
|
|
|
+ if (StringUtil.isFull(getZumoUserNo()) && preferences.get(ZUMO_USER_NO_UPDATE, false) == false) {
|
|
|
setUserNo(getZumoUserNo());
|
|
setUserNo(getZumoUserNo());
|
|
|
}
|
|
}
|
|
|
preferences.put(ZUMO_USER_NO_UPDATE, true);
|
|
preferences.put(ZUMO_USER_NO_UPDATE, true);
|
|
@@ -201,29 +190,18 @@ public class LifeplusPreferences {
|
|
|
return preferences.get(LOCATION_SERVICE_ENABLED, false);
|
|
return preferences.get(LOCATION_SERVICE_ENABLED, false);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 리뷰 다이얼로그 표시용 카운트
|
|
|
|
|
- *
|
|
|
|
|
- * @param dates 180929|180930|181001
|
|
|
|
|
- */
|
|
|
|
|
-// public void setCountForReview(String dates) {
|
|
|
|
|
-// preferences.put(COUNT_FOR_REVIEW_STRING, dates);
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
-// public String getCountForReview() {
|
|
|
|
|
-// return preferences.get(COUNT_FOR_REVIEW_STRING, "");
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 디버그 서버 타겟 지정
|
|
* 디버그 서버 타겟 지정
|
|
|
* - 개발 서버/ 운영 서버를 선택
|
|
* - 개발 서버/ 운영 서버를 선택
|
|
|
*
|
|
*
|
|
|
* @param target
|
|
* @param target
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @Deprecated
|
|
|
public void setDebugTarget(String target) {
|
|
public void setDebugTarget(String target) {
|
|
|
preferences.put(DEBUG_TARGET, target);
|
|
preferences.put(DEBUG_TARGET, target);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Deprecated
|
|
|
public String getDebugTarget(String defaultString) {
|
|
public String getDebugTarget(String defaultString) {
|
|
|
if (null == defaultString) {
|
|
if (null == defaultString) {
|
|
|
defaultString = "";
|
|
defaultString = "";
|
|
@@ -350,7 +328,6 @@ public class LifeplusPreferences {
|
|
|
* - 일부 설정은 리셋되지 않는다.
|
|
* - 일부 설정은 리셋되지 않는다.
|
|
|
*/
|
|
*/
|
|
|
public void reset() {
|
|
public void reset() {
|
|
|
-// setCountForReview("");
|
|
|
|
|
setPushEventAndServiceEnabled(false);
|
|
setPushEventAndServiceEnabled(false);
|
|
|
setPolicyMarketingEnabled(false);
|
|
setPolicyMarketingEnabled(false);
|
|
|
setLocationServiceEnabled(false);
|
|
setLocationServiceEnabled(false);
|