Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Commit

Permalink
More decoupling of Firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Ugarte committed Oct 26, 2016
1 parent 1a2bb0c commit 33b9cbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/core/RMXRemixer.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ + (void)start {
} else {
#ifdef REMIXER_CLOUD_FIREBASE
instance.storage = [[RMXFirebaseStorageController alloc] init];
#else
instance.storage = [[RMXLocalStorageController alloc] init];
// TODO(chuga): Print out a warning.
#endif
}
[instance.storage setup];
Expand Down
6 changes: 5 additions & 1 deletion src/core/storage/RMXFirebaseStorageController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#import "RMXFirebaseStorageController.h"

#ifdef REMIXER_CLOUD_FIREBASE

@import Firebase;

#import "RMXBooleanVariable.h"
Expand All @@ -24,7 +26,7 @@
#import "RMXVariableFactory.h"

// TODO(chuga): Figure out where to set this path.
static NSString *const kFirebasePath = @"iOSDemoApp";
static NSString *const kFirebasePath = @"Remixer";
static NSString *const kFirebaseKeyVariables = @"variables";

@implementation RMXFirebaseStorageController {
Expand Down Expand Up @@ -104,3 +106,5 @@ - (void)saveVariable:(RMXVariable *)variable {
}

@end

#endif

0 comments on commit 33b9cbc

Please sign in to comment.