Skip to content

Conversation

nkashyap
Copy link

@nkashyap nkashyap commented Jan 31, 2017

RemoteConfig

This PR implements FIrebase remote-config api for both Android & IOS

TODO checklist

  • Implementation - JS
  • Implementation - Android
  • Implementation - IOS
  • Documentation
  • Unit tests - JS
  • Unit tests - Android
  • Unit tests - IOS
  • Cross Platform check
  • Update - FirestackApp

Task fetchTask = mFirebaseRemoteConfig.fetch(cacheExpirationSeconds.longValue());
fetchTask.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {

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

Copy link
Author

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();

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()) {

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
Copy link
Author

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.

Copy link
Author

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.

PRODUCT_NAME = Firestack;
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Firestack-Bridging-Header.h";
SWIFT_VERSION = 3.0;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove swift reference

SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Firestack-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove swift references

@nkashyap nkashyap changed the title [WIP]: Features/RemoteConfig - DO NOT MERGE Features/RemoteConfig Feb 16, 2017
@nkashyap nkashyap closed this Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants