defined configuration for build variants

This commit is contained in:
Semyon Babushkin
2017-10-23 20:25:04 +03:00
parent b6b5acd823
commit b6ba66a283
38 changed files with 2563 additions and 1424 deletions

View File

@@ -9,7 +9,6 @@
#import <Foundation/Foundation.h>
#import "FMDatabase.h"
NS_ASSUME_NONNULL_BEGIN
/** Category of additions for `<FMDatabase>` class.
@@ -31,7 +30,7 @@ NS_ASSUME_NONNULL_BEGIN
@return `int` value.
@note This is not available from Swift.
@note To use this method from Swift, you must include `FMDatabaseAdditionsVariadic.swift` in your project.
*/
- (int)intForQuery:(NSString*)query, ...;
@@ -43,7 +42,7 @@ NS_ASSUME_NONNULL_BEGIN
@return `long` value.
@note This is not available from Swift.
@note To use this method from Swift, you must include `FMDatabaseAdditionsVariadic.swift` in your project.
*/
- (long)longForQuery:(NSString*)query, ...;
@@ -55,7 +54,7 @@ NS_ASSUME_NONNULL_BEGIN
@return `BOOL` value.
@note This is not available from Swift.
@note To use this method from Swift, you must include `FMDatabaseAdditionsVariadic.swift` in your project.
*/
- (BOOL)boolForQuery:(NSString*)query, ...;
@@ -67,7 +66,7 @@ NS_ASSUME_NONNULL_BEGIN
@return `double` value.
@note This is not available from Swift.
@note To use this method from Swift, you must include `FMDatabaseAdditionsVariadic.swift` in your project.
*/
- (double)doubleForQuery:(NSString*)query, ...;
@@ -79,10 +78,10 @@ NS_ASSUME_NONNULL_BEGIN
@return `NSString` value.
@note This is not available from Swift.
@note To use this method from Swift, you must include `FMDatabaseAdditionsVariadic.swift` in your project.
*/
- (NSString * _Nullable)stringForQuery:(NSString*)query, ...;
- (NSString*)stringForQuery:(NSString*)query, ...;
/** Return `NSData` value for query
@@ -91,10 +90,10 @@ NS_ASSUME_NONNULL_BEGIN
@return `NSData` value.
@note This is not available from Swift.
@note To use this method from Swift, you must include `FMDatabaseAdditionsVariadic.swift` in your project.
*/
- (NSData * _Nullable)dataForQuery:(NSString*)query, ...;
- (NSData*)dataForQuery:(NSString*)query, ...;
/** Return `NSDate` value for query
@@ -103,10 +102,10 @@ NS_ASSUME_NONNULL_BEGIN
@return `NSDate` value.
@note This is not available from Swift.
@note To use this method from Swift, you must include `FMDatabaseAdditionsVariadic.swift` in your project.
*/
- (NSDate * _Nullable)dateForQuery:(NSString*)query, ...;
- (NSDate*)dateForQuery:(NSString*)query, ...;
// Notice that there's no dataNoCopyForQuery:.
@@ -142,7 +141,7 @@ NS_ASSUME_NONNULL_BEGIN
@see [SQLite File Format](http://www.sqlite.org/fileformat.html)
*/
- (FMResultSet *)getSchema;
- (FMResultSet*)getSchema;
/** The schema of the database.
@@ -192,7 +191,7 @@ NS_ASSUME_NONNULL_BEGIN
@warning Deprecated - use `<columnExists:inTableWithName:>` instead.
*/
- (BOOL)columnExists:(NSString*)tableName columnName:(NSString*)columnName __deprecated_msg("Use columnExists:inTableWithName: instead");
- (BOOL)columnExists:(NSString*)tableName columnName:(NSString*)columnName __attribute__ ((deprecated));
/** Validate SQL statement
@@ -207,7 +206,7 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (BOOL)validateSQL:(NSString*)sql error:(NSError * _Nullable *)error;
- (BOOL)validateSQL:(NSString*)sql error:(NSError**)error;
///-----------------------------------
@@ -221,16 +220,36 @@ NS_ASSUME_NONNULL_BEGIN
@see setApplicationID:
*/
@property (nonatomic) uint32_t applicationID;
- (uint32_t)applicationID;
/** Set the application ID
@param appID The `uint32_t` numeric value of the application ID.
@see applicationID
*/
- (void)setApplicationID:(uint32_t)appID;
#if TARGET_OS_MAC && !TARGET_OS_IPHONE
/** Retrieve application ID string
@return The `NSString` value of the application ID.
@see setApplicationIDString:
*/
@property (nonatomic, retain) NSString *applicationIDString;
- (NSString*)applicationIDString;
/** Set the application ID string
@param string The `NSString` value of the application ID.
@see applicationIDString
*/
- (void)setApplicationIDString:(NSString*)string;
#endif
@@ -240,11 +259,20 @@ NS_ASSUME_NONNULL_BEGIN
/** Retrieve user version
@return The `uint32_t` numeric value of the user version.
@see setUserVersion:
*/
@property (nonatomic) uint32_t userVersion;
- (uint32_t)userVersion;
/** Set the user-version
@param version The `uint32_t` numeric value of the user version.
@see userVersion
*/
- (void)setUserVersion:(uint32_t)version;
@end
NS_ASSUME_NONNULL_END