-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
44 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
class PauloniaRemoteConfConstants{ | ||
|
||
class PauloniaRemoteConfConstants { | ||
static const int REMOTE_CONF_DEFAULT_EXPIRATION_TIME_IN_HOURS = 10; | ||
|
||
} | ||
|
||
enum PRCType{ | ||
STRING, | ||
INT, | ||
DOUBLE, | ||
BOOL | ||
} | ||
enum PRCType { STRING, INT, DOUBLE, BOOL } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import 'package:firebase_remote_config/firebase_remote_config.dart'; | ||
|
||
class PRemoteConfigValueService{ | ||
|
||
class PRemoteConfigValueService { | ||
static bool asBool(RemoteConfigValue value) => value.asBool(); | ||
|
||
static double asDouble(RemoteConfigValue value) => value.asDouble(); | ||
|
||
static int asInt(RemoteConfigValue value) => value.asInt(); | ||
|
||
static String asString(RemoteConfigValue value) => value.asString(); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import 'package:firebase/firebase.dart' as fb; | ||
|
||
class PRemoteConfigValueService{ | ||
|
||
class PRemoteConfigValueService { | ||
static bool asBool(fb.RemoteConfigValue value) => value.asBoolean(); | ||
|
||
static double asDouble(fb.RemoteConfigValue value) => value.asNumber()?.toDouble(); | ||
static double asDouble(fb.RemoteConfigValue value) => | ||
value.asNumber()?.toDouble(); | ||
|
||
static int asInt(fb.RemoteConfigValue value) => value.asNumber()?.toInt(); | ||
|
||
static String asString(fb.RemoteConfigValue value) => value.asString(); | ||
|
||
} | ||
} |