Skip to content

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

Closed
wants to merge 11 commits into from
Closed

Features/RemoteConfig #12

wants to merge 11 commits into from

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.

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

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