Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bing6 committed May 15, 2017
1 parent d90c333 commit 29b8b0d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
9 changes: 9 additions & 0 deletions Classes/FMDTKeyValueStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@

#define STORE [FMDTKeyValueStorage shared]

@interface FMDTKeyValueObject : FMDTObject

@property (nonatomic, strong) NSString *m_key;
@property (nonatomic, strong) NSDictionary *m_value;

@end

@interface FMDTKeyValueStorage : FMDTManager


@property (nonatomic, strong, readonly) FMDTContext *kv;
/**
添加键值存储
Expand Down
9 changes: 1 addition & 8 deletions Classes/FMDTKeyValueStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
#import "FMDTKeyValueStorage.h"
#import "FMDTObject.h"

@interface FMDTKeyValueObject : FMDTObject

@property (nonatomic, strong) NSString *m_key;
@property (nonatomic, strong) NSDictionary *m_value;

@end

@implementation FMDTKeyValueObject

+ (NSString *)primaryKeyFieldName {
Expand All @@ -36,7 +29,7 @@ + (instancetype)shared {
static id _staticObject = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_staticObject = [FMDTKeyValueStorage new];
_staticObject = [self new];
});
return _staticObject;
}
Expand Down
4 changes: 2 additions & 2 deletions FMDBDataTable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "FMDBDataTable"
s.version = "2.2"
s.version = "2.2.1"
s.summary = "基于FMDB的一个ORM解决方案"

s.description = <<-DESC
Expand Down Expand Up @@ -78,7 +78,7 @@ Pod::Spec.new do |s|
# Supports git, hg, bzr, svn and HTTP.
#

s.source = { :git => "https://github.com/bing6/FMDBDataTable.git", :tag => "2.2" }
s.source = { :git => "https://github.com/bing6/FMDBDataTable.git", :tag => "2.2.1" }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down
4 changes: 2 additions & 2 deletions FMDataTable/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.2</string>
<string>2.2.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.2</string>
<string>2.2.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down

0 comments on commit 29b8b0d

Please # to comment.