From 29b8b0de391ceb04f8030b97ef137ff7856a3979 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=9D=E5=86=B0?= <6043625@qq.com>
Date: Mon, 15 May 2017 16:31:33 +0800
Subject: [PATCH] update
---
Classes/FMDTKeyValueStorage.h | 9 +++++++++
Classes/FMDTKeyValueStorage.m | 9 +--------
FMDBDataTable.podspec | 4 ++--
FMDataTable/Info.plist | 4 ++--
4 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/Classes/FMDTKeyValueStorage.h b/Classes/FMDTKeyValueStorage.h
index 067933b..1a35f4d 100644
--- a/Classes/FMDTKeyValueStorage.h
+++ b/Classes/FMDTKeyValueStorage.h
@@ -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;
/**
添加键值存储
diff --git a/Classes/FMDTKeyValueStorage.m b/Classes/FMDTKeyValueStorage.m
index 19761c2..6d1c616 100644
--- a/Classes/FMDTKeyValueStorage.m
+++ b/Classes/FMDTKeyValueStorage.m
@@ -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 {
@@ -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;
}
diff --git a/FMDBDataTable.podspec b/FMDBDataTable.podspec
index 73cae3a..bc481dc 100644
--- a/FMDBDataTable.podspec
+++ b/FMDBDataTable.podspec
@@ -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
@@ -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 ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
diff --git a/FMDataTable/Info.plist b/FMDataTable/Info.plist
index 3e5b98a..af766f4 100644
--- a/FMDataTable/Info.plist
+++ b/FMDataTable/Info.plist
@@ -15,11 +15,11 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 2.2
+ 2.2.1
CFBundleSignature
????
CFBundleVersion
- 2.2
+ 2.2.1
LSRequiresIPhoneOS
UILaunchStoryboardName