Skip to content

Commit

Permalink
merge fixes
Browse files Browse the repository at this point in the history
Conflicts:
	Realm/RealmSwift/Realm.swift
  • Loading branch information
alazier committed Jan 30, 2015
1 parent 87c7f39 commit 4f665cd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Realm.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
METAL_ENABLE_DEBUG_INFO = YES;
OTHER_CFLAGS = "-fobjc-arc-exceptions";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_OBJC_BRIDGING_HEADER = "Realm/Tests/Swift/Swift-Tests-Bridging-Header.h";
Expand All @@ -1715,6 +1716,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
METAL_ENABLE_DEBUG_INFO = NO;
OTHER_CFLAGS = "-fobjc-arc-exceptions";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_OBJC_BRIDGING_HEADER = "Realm/Tests/Swift/Swift-Tests-Bridging-Header.h";
Expand Down Expand Up @@ -1769,6 +1771,7 @@
MACOSX_DEPLOYMENT_TARGET = 10.9;
METAL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "";
SDKROOT = iphoneos;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -1815,6 +1818,7 @@
);
MACOSX_DEPLOYMENT_TARGET = 10.9;
METAL_ENABLE_DEBUG_INFO = NO;
OTHER_CFLAGS = "";
SDKROOT = iphoneos;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -1896,6 +1900,7 @@
INFOPLIST_FILE = "Realm/Tests/RealmTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
METAL_ENABLE_DEBUG_INFO = YES;
OTHER_CFLAGS = "-fobjc-arc-exceptions";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_OBJC_BRIDGING_HEADER = "Realm/Tests/Swift/Swift-Tests-Bridging-Header.h";
Expand All @@ -1922,6 +1927,7 @@
INFOPLIST_FILE = "Realm/Tests/RealmTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
METAL_ENABLE_DEBUG_INFO = NO;
OTHER_CFLAGS = "-fobjc-arc-exceptions";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_OBJC_BRIDGING_HEADER = "Realm/Tests/Swift/Swift-Tests-Bridging-Header.h";
Expand Down
3 changes: 2 additions & 1 deletion Realm/RLMRealm_Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@

+ (void)resetRealmState;

- (instancetype)initWithPath:(NSString *)path key:(NSData *)key readOnly:(BOOL)readonly inMemory:(BOOL)inMemory error:(NSError **)error;
- (instancetype)initWithPath:(NSString *)path key:(NSData *)key readOnly:(BOOL)readonly inMemory:(BOOL)inMemory dynamic:(BOOL)dynamic error:(NSError **)error;

@end
4 changes: 3 additions & 1 deletion Realm/Tests/MigrationTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#import "RLMRealm_Dynamic.h"
#import "RLMSchema_Private.h"

#import <tightdb/table.hpp>

@interface MigrationObject : RLMObject
@property int intCol;
@property NSString *stringCol;
Expand Down Expand Up @@ -425,7 +427,7 @@ - (void)testIntPrimaryKeyNoIndexMigration {
RLMObjectSchema *objectSchema = [RLMObjectSchema schemaForObjectClass:MigrationPrimaryKeyObject.class];

// create without search index
objectSchema.primaryKeyProperty.attributes = 0;
objectSchema.primaryKeyProperty.indexed = NO;

// create realm with old schema and populate
@autoreleasepool {
Expand Down

0 comments on commit 4f665cd

Please sign in to comment.