From fa9c85b04a5ce003de6a7c2df4a30b40800f7be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Thor=C3=A9n?= Date: Fri, 13 Oct 2017 15:38:39 +0200 Subject: [PATCH] Update feature flags & enable push notifications in production build - Comment on flag lifecycle - Explicitly declare all flags --- .env.prod | 6 ++++-- src/status_im/utils/config.cljs | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.env.prod b/.env.prod index e00e9b9156..183ae7d263 100644 --- a/.env.prod +++ b/.env.prod @@ -1,3 +1,5 @@ TESTFAIRY_ENABLED=0 -NOTIFICATIONS_WIP_ENABLED=0 -DEBUG_LOGS_ENABLED=0 \ No newline at end of file +NOTIFICATIONS_WIP_ENABLED=1 +DEBUG_LOGS_ENABLED=0 +STUB_STATUS_GO=0 +NETWORK_SWITCHING=0 \ No newline at end of file diff --git a/src/status_im/utils/config.cljs b/src/status_im/utils/config.cljs index 95e490c5a5..668d7c5ffb 100644 --- a/src/status_im/utils/config.cljs +++ b/src/status_im/utils/config.cljs @@ -9,6 +9,14 @@ (defn enabled? [v] (= "1" v)) +;; NOTE(oskarth): Feature flag deprecation lifecycles. We want to make sure +;; flags stay up to date and are removed once behavior introduced is stable. +;; +;; TESTFAIRY_ENABLED - indefinite +;; NOTIFICATIONS_WIP_ENABLED - in 0.9.12 release, remove in develop if all goes well +;; STUB_STATUS_GO - TBD - roman knows +;; NETWORK_SWITCHING - TBD - roman knows + (def testfairy-enabled? (enabled? (get-config :TESTFAIRY_ENABLED))) (def notifications-wip-enabled? (enabled? (get-config :NOTIFICATIONS_WIP_ENABLED 0))) (def stub-status-go? (enabled? (get-config :STUB_STATUS_GO 0)))