Skip to content

Commit

Permalink
v1.5.5版本
Browse files Browse the repository at this point in the history
  • Loading branch information
limao123 committed Apr 27, 2015
1 parent fa6efaf commit 36b4e47
Show file tree
Hide file tree
Showing 10 changed files with 115 additions and 12 deletions.
Binary file modified BmobSDK.framework/BmobSDK
Binary file not shown.
2 changes: 1 addition & 1 deletion BmobSDK.framework/Headers/BmobConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ typedef void (^BmobFileBatchResultBlock)(NSArray *array,BOOL isSuccessful ,NSErr

UIKIT_STATIC_INLINE NSString* Version()
{
return @"1.5.4";
return @"1.5.5";
}


Expand Down
41 changes: 41 additions & 0 deletions BmobSDK.framework/Headers/BmobErrorList.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// BmobErrorList.h
// BmobSDK
//
// Created by Bmob on 15/4/13.
// Copyright (c) 2015年 Bmob. All rights reserved.
//

#ifndef BmobSDK_BmobErrorList_h
#define BmobSDK_BmobErrorList_h


typedef enum {
BmobErrorTypeNullPassword = 20000, //登录或者注册时输入的密码为空。
BmobErrorTypeNullUsername = 20001, //登录或者注册时输入的用户名为空。
BmobErrorTypeConnectFailed = 20002, //connect failed!
BmobErrorTypeNullObjectId = 20003, //更新对象、删除对象、查询单个对象时没有objectid
BmobErrorTypeNullObject = 20004, //查询时,查询结果为空
BmobErrorTypeQueryCachedExpired = 20005, //缓存查询时,查询时间已过期
BmobErrorTypeCloudFunctionFailed = 20006, //云端代码调用失败
BmobErrorTypeNullFilename = 20008, //上传文件时,文件名为空
BmobErrorTypeNullFileUrl = 20009, //删除文件时,文件的url为空
BmobErrorTypeUnknownError = 20010, //未知错误
BmobErrorTypeNullFileData = 20011, //上传文件时,文件内容为空
BmobErrorTypeNullUpdateContent = 20012, //更新时,更新内容为空
BmobErrorTypeNullFunctionName = 20013, //调用云端代码时,函数名为空
BmobErrorTypeArraySizeLarge = 20014, //批量操作时,传入的数组超过界限
BmobErrorTypeNullArray = 20015, //批量操作时,传入的数组为空
BmobErrorTypeNullPushContent = 20016, //推送时,推送内容为空
BmobErrorTypeFileSizeLimited = 20017, //上传文件时,文件大小超出限制
BmobErrorTypeLackOfInfomation = 20020, //第三方登录、关联时缺乏必要的信息
BmobErrorTypeErrorType = 20021, //类型错误
BmobErrorTypeInitNotFinish = 20022, //初始化未完成
BmobErrorTypeInitFailed = 20023, //初始化失败
BmobErrorTypeErrorFormat = 20024, //批量文件上传时格式错误
BmobErrorTypeNullClassName = 20025 //表名为空
}BmobErrorType;



#endif
2 changes: 1 addition & 1 deletion BmobSDK.framework/Headers/BmobEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BmobSDK
//
// Created by Bmob on 14-7-4.
// Copyright (c) 2014年 donson. All rights reserved.
// Copyright (c) 2014年 Bmob. All rights reserved.
//

#import <Foundation/Foundation.h>
Expand Down
2 changes: 1 addition & 1 deletion BmobSDK.framework/Headers/BmobImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BmobSDK
//
// Created by Bmob on 14-5-23.
// Copyright (c) 2014年 donson. All rights reserved.
// Copyright (c) 2014年 Bmob. All rights reserved.
//

#import <Foundation/Foundation.h>
Expand Down
65 changes: 60 additions & 5 deletions BmobSDK.framework/Headers/BmobQuery.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
#import "BmobObject.h"
#import "BmobConfig.h"
#import "BmobGeoPoint.h"

/**
* Bmob后台查询类
*/
@interface BmobQuery : NSObject





//放在这里可以允许用户直接设置
/**
* 限制得到多少个结果
*/
Expand All @@ -38,6 +40,10 @@
@property (readwrite, assign) NSTimeInterval maxCacheAge;


/**
* 统计时是否返回记录数
*/
@property BOOL isGroupcount;


/**
Expand Down Expand Up @@ -225,6 +231,49 @@

-(void)whereKey:(NSString *)key endWithString:(NSString*)end;

#pragma mark 统计查询
/**
* 设置需要计算总和的列名数组
*
* @param keys 需要计算总和的列名称数组
*/
-(void)sumKeys:(NSArray*)keys;

/**
* 设置需要计算平均值的列名数组
*
* @param keys 需要计算平均值的列名称数组
*/
-(void)averageKeys:(NSArray*)keys;

/**
* 设置需要计算最大值的列名数组
*
* @param keys 需要计算最大值的列名称数组
*/
-(void)maxKeys:(NSArray*)keys;

/**
* 设置需要计算最小值的列名数组
*
* @param keys 需要计算最小值的列名称数组
*/
-(void)minKeys:(NSArray*)keys;

/**
* 设置需要分组的列名数组
*
* @param key 需要计算进行分组的列名称数组
*/
-(void)groupbyKeys:(NSArray*)keys;

/**
* 设置having条件字典
*
* @param havingDic having条件字典
*/
-(void)constructHavingDic:(NSDictionary*)havingDic;

#pragma mark 地理位置查询
/**
*
Expand Down Expand Up @@ -254,7 +303,7 @@

/**
*
*
*
* @param key 键
* @param geopoint 位置信息
* @param maxDistance 最大半径
Expand Down Expand Up @@ -324,15 +373,21 @@
* @param block 得到的BmobObject对象
*/
-(void)getObjectInBackgroundWithId:(NSString *)objectId
block:(BmobObjectResultBlock)block;
block:(BmobObjectResultBlock)block;

/**
* 查找BmobObject对象数组
* 查找BmobObject对象数组,该方法可查询多条数据
*
* @param block 得到BmobObject对象数组
*/
-(void)findObjectsInBackgroundWithBlock:(BmobObjectArrayResultBlock)block;

/**
* 统计表数据
*
* @param block 得到字典数组
*/
-(void)calcInBackgroundWithBlock:(BmobObjectArrayResultBlock)block;

/**
* 查找表中符合条件的个数
Expand Down
2 changes: 2 additions & 0 deletions BmobSDK.framework/Headers/BmobUser.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,6 @@
*/
+(BmobUser*)getCurrentUser;



@end
Binary file modified BmobSDK.framework/Info.plist
Binary file not shown.
9 changes: 7 additions & 2 deletions Bmob_iOS_SDK更新历史.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
v1.5.4 (2015-04-07)
v1.5.5(2015-04-24)
1.增加统计查询方法
2.修复部分bug

v1.5.4 (2015-04-07)
1.增加批量上传方法
BmobFile
+(void)filesUploadBatchWithDataArray:(NSArray *)dataArray
Expand All @@ -9,7 +13,8 @@ BmobFilePro
+(void)uploadFilesWithDatas:(NSArray *)dataArray
resultBlock:(BmobBatchFileUploadResultBlock)block
progress:(BmobIndexAndProgressBlock)progress;
2.修复其他问题
2.修复其他问题

v1.5.3 (2015-03-05)
1.修复蜂窝网络下可能会出现的使用新版文件上传文件,上传不了的问题
2.修复在某些情况下用户可能无法更新表内容的问题
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Bmob iOS SDK

# 快速入门

不知道如何使用Bmob Android SDK的朋友可以移步查看我们为大家准备的快速入门文档:http://docs.bmob.cn/ios/faststart/index.html?menukey=fast_start&key=start_ios
不知道如何使用Bmob iOS SDK的朋友可以移步查看我们为大家准备的快速入门文档:http://docs.bmob.cn/ios/faststart/index.html?menukey=fast_start&key=start_ios


# 在CocoaPod中安装BmobSDK
Expand All @@ -12,7 +12,7 @@ Bmob iOS SDK

# 源码说明

`BmobSDK.framework`为Bmob提供的SDK包,当前为1.5.2版本
`BmobSDK.framework`为Bmob提供的SDK包,当前为1.5.5版本

# Bmob官方信息

Expand Down

0 comments on commit 36b4e47

Please sign in to comment.