-
Notifications
You must be signed in to change notification settings - Fork 4
Features/RemoteConfig #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Task fetchTask = mFirebaseRemoteConfig.fetch(cacheExpirationSeconds.longValue()); | ||
fetchTask.addOnCompleteListener(new OnCompleteListener<Void>() { | ||
@Override | ||
public void onComplete(@NonNull Task<Void> task) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If using Java 8, consider using lambda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@achintkalra thanks Achint, This code will run in Android, will that make any difference?
try { | ||
promise.resolve(mFirebaseRemoteConfig.getInfo().getConfigSettings().isDeveloperModeEnabled()); | ||
} catch (Exception e) { | ||
e.printStackTrace(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is printStackTrace required?
try { | ||
Set<String> value; | ||
|
||
if (namespace != null && !namespace.isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using Apache's StringUtils.isBlank
@@ -0,0 +1,232 @@ | |||
// | |||
// FirestackRemoteConfig.m | |||
// Firestack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Salakar @Ehesp @chrisbianca Hello guys, please can you help me with objective-c code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I managed to put some objective-c code together using example, but it is throwing exceptions.
LIBRARY_SEARCH_PATHS = "$(inherited)"; | ||
MACH_O_TYPE = staticlib; | ||
OTHER_LDFLAGS = "$(inherited)"; | ||
PRODUCT_NAME = Firestack; | ||
SKIP_INSTALL = YES; | ||
SWIFT_OBJC_BRIDGING_HEADER = "Firestack-Bridging-Header.h"; | ||
SWIFT_VERSION = 3.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove swift reference
LIBRARY_SEARCH_PATHS = "$(inherited)"; | ||
MACH_O_TYPE = staticlib; | ||
ONLY_ACTIVE_ARCH = YES; | ||
OTHER_LDFLAGS = "$(inherited)"; | ||
PRODUCT_NAME = Firestack; | ||
SKIP_INSTALL = YES; | ||
SWIFT_OBJC_BRIDGING_HEADER = "Firestack-Bridging-Header.h"; | ||
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||
SWIFT_VERSION = 3.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove swift references
RemoteConfig
This PR implements FIrebase remote-config api for both Android & IOS
TODO checklist