[iOS] Use modules
This commit is contained in:
parent
3221b97143
commit
6f94644e00
14 changed files with 21 additions and 19 deletions
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
@import UIKit;
|
||||
|
||||
@interface AboutController: UIViewController <UIWebViewDelegate>
|
||||
@property (nonatomic, retain) IBOutlet UIWebView *webView;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
@import UIKit;
|
||||
|
||||
#import "MainViewController.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <ObjFW_Bridge/ObjFW_Bridge.h>
|
||||
@import ObjFW_Bridge;
|
||||
|
||||
#import "AddSiteController.h"
|
||||
#import "SelectKeyFileController.h"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
@import UIKit;
|
||||
|
||||
@interface AppDelegate: UIResponder <UIApplicationDelegate>
|
||||
@property (nonatomic, strong) UIWindow *window;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <ObjFW/ObjFW.h>
|
||||
@import ObjFW;
|
||||
|
||||
@interface HTTPServerDelegate: OFObject <OFHTTPServerDelegate>
|
||||
@end
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
@import UIKit;
|
||||
|
||||
#import "SiteStorage.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <ObjFW_Bridge/ObjFW_Bridge.h>
|
||||
@import ObjFW_Bridge;
|
||||
|
||||
#import "MainViewController.h"
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <ObjFW/ObjFW.h>
|
||||
@import ObjFW;
|
||||
@import UIKit;
|
||||
|
||||
#import "AddSiteController.h"
|
||||
#import "HTTPServerDelegate.h"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <ObjFW_Bridge/ObjFW_Bridge.h>
|
||||
@import ObjFW_Bridge;
|
||||
|
||||
#import "HTTPServerDelegate.h"
|
||||
#import "SelectKeyFileController.h"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
@import UIKit;
|
||||
|
||||
#import "MainViewController.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <ObjFW_Bridge/ObjFW_Bridge.h>
|
||||
@import ObjFW_Bridge;
|
||||
|
||||
#import "ShowDetailsController.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <ObjFW/ObjFW.h>
|
||||
@import ObjFW;
|
||||
|
||||
@interface SiteStorage: OFObject
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <ObjFW/ObjFW.h>
|
||||
@import ObjFW;
|
||||
|
||||
#import "SiteStorage.h"
|
||||
|
||||
|
@ -33,9 +33,9 @@ static OFNumber *lengthField, *legacyField, *keyFileField;
|
|||
@implementation SiteStorage
|
||||
+ (void)initialize
|
||||
{
|
||||
lengthField = [@(UINT8_C(0)) retain];
|
||||
legacyField = [@(UINT8_C(1)) retain];
|
||||
keyFileField = [@(UINT8_C(2)) retain];
|
||||
lengthField = [[OFNumber alloc] initWithUInt8: 0];
|
||||
legacyField = [[OFNumber alloc] initWithUInt8: 1];
|
||||
keyFileField = [[OFNumber alloc] initWithUInt8: 2];
|
||||
}
|
||||
|
||||
- (instancetype)init
|
||||
|
@ -155,8 +155,8 @@ static OFNumber *lengthField, *legacyField, *keyFileField;
|
|||
OFMutableDictionary *siteDictionary =
|
||||
[OFMutableDictionary dictionary];
|
||||
|
||||
siteDictionary[lengthField] = @(length);
|
||||
siteDictionary[legacyField] = @(legacy);
|
||||
siteDictionary[lengthField] = [OFNumber numberWithSize: length];
|
||||
siteDictionary[legacyField] = [OFNumber numberWithBool: legacy];
|
||||
siteDictionary[keyFileField] = keyFile;
|
||||
|
||||
[siteDictionary makeImmutable];
|
||||
|
|
|
@ -379,6 +379,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = NO;
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
DEVELOPMENT_TEAM = MXKNFCKFL6;
|
||||
|
@ -399,6 +400,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = NO;
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
DEVELOPMENT_TEAM = MXKNFCKFL6;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue