mirror of
https://github.com/devxoul/Toaster.git
synced 2026-01-18 21:21:19 +01:00
Adding Objective-C compatibility
This commit is contained in:
16
DemoObjC/AppDelegate.h
Normal file
16
DemoObjC/AppDelegate.h
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// AppDelegate.h
|
||||
// ToasterDemoObjC
|
||||
//
|
||||
// Created by Antoine Cœur on 2019/4/4.
|
||||
// Copyright © 2019 Suyeol Jeon. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
||||
|
||||
@property (strong, nonatomic) UIWindow *window;
|
||||
|
||||
@end
|
||||
|
||||
28
DemoObjC/AppDelegate.m
Normal file
28
DemoObjC/AppDelegate.m
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// AppDelegate.m
|
||||
// ToasterDemoObjC
|
||||
//
|
||||
// Created by Antoine Cœur on 2019/4/4.
|
||||
// Copyright © 2019 Suyeol Jeon. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AppDelegate.h"
|
||||
#import "RootViewController.h"
|
||||
|
||||
@interface AppDelegate ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
// Override point for customization after application launch.
|
||||
self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
|
||||
self.window.backgroundColor = UIColor.whiteColor;
|
||||
self.window.rootViewController = [RootViewController new];
|
||||
[self.window makeKeyAndVisible];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
98
DemoObjC/Assets.xcassets/AppIcon.appiconset/Contents.json
Normal file
98
DemoObjC/Assets.xcassets/AppIcon.appiconset/Contents.json
Normal file
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "20x20",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "20x20",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "60x60",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "60x60",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "20x20",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "20x20",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "29x29",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "29x29",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "40x40",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "40x40",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "76x76",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "76x76",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "83.5x83.5",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ios-marketing",
|
||||
"size" : "1024x1024",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
6
DemoObjC/Assets.xcassets/Contents.json
Normal file
6
DemoObjC/Assets.xcassets/Contents.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
27
DemoObjC/Base.lproj/LaunchScreen.storyboard
Normal file
27
DemoObjC/Base.lproj/LaunchScreen.storyboard
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="EHf-IW-A2E">
|
||||
<objects>
|
||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<animations/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="53" y="375"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
||||
43
DemoObjC/Info.plist
Normal file
43
DemoObjC/Info.plist
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
14
DemoObjC/RootViewController.h
Normal file
14
DemoObjC/RootViewController.h
Normal file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// RootViewController.h
|
||||
// ToasterDemoObjC
|
||||
//
|
||||
// Created by Antoine Cœur on 2019/4/4.
|
||||
// Copyright © 2019 Suyeol Jeon. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface RootViewController : UIViewController
|
||||
|
||||
@end
|
||||
|
||||
89
DemoObjC/RootViewController.m
Normal file
89
DemoObjC/RootViewController.m
Normal file
@@ -0,0 +1,89 @@
|
||||
//
|
||||
// RootViewController.m
|
||||
// ToasterDemoObjC
|
||||
//
|
||||
// Created by Antoine Cœur on 2019/4/4.
|
||||
// Copyright © 2019 Suyeol Jeon. All rights reserved.
|
||||
//
|
||||
|
||||
#import "RootViewController.h"
|
||||
@import Toaster;
|
||||
|
||||
@interface RootViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@interface RespondingButton : UIButton<UIKeyInput>
|
||||
|
||||
@property(assign, nonatomic) BOOL hasText;
|
||||
@property(assign, nonatomic) UITextAutocorrectionType autocorrectionType;
|
||||
|
||||
@end
|
||||
|
||||
@implementation RootViewController
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
|
||||
[button setTitle:@"Show" forState:UIControlStateNormal];
|
||||
[button sizeToFit];
|
||||
[button addTarget:self action:@selector(showButtonTouchUpInside) forControlEvents:UIControlEventTouchUpInside];
|
||||
button.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
|
||||
button.center = CGPointMake(self.view.center.x, 75);
|
||||
[self.view addSubview:button];
|
||||
|
||||
RespondingButton *keyboardButton = [RespondingButton buttonWithType:UIButtonTypeSystem];
|
||||
[keyboardButton setTitle:@"Toggle keyboard" forState:UIControlStateNormal];
|
||||
[keyboardButton sizeToFit];
|
||||
[keyboardButton addTarget:self action:@selector(keyboardButtonTouchUpInside:) forControlEvents:UIControlEventTouchUpInside];
|
||||
keyboardButton.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
|
||||
keyboardButton.center = CGPointMake(self.view.center.x, 125);
|
||||
[self.view addSubview:keyboardButton];
|
||||
|
||||
[self configureAppearance];
|
||||
}
|
||||
|
||||
- (void)configureAppearance {
|
||||
ToastView *appearance = [ToastView appearance];
|
||||
appearance.backgroundColor = UIColor.lightGrayColor;
|
||||
appearance.textColor = UIColor.blackColor;
|
||||
appearance.font = [UIFont boldSystemFontOfSize: 16];
|
||||
appearance.textInsets = UIEdgeInsetsMake(15, 20, 15, 20);
|
||||
appearance.bottomOffsetPortrait = 100;
|
||||
appearance.cornerRadius = 20;
|
||||
}
|
||||
|
||||
- (void)showButtonTouchUpInside {
|
||||
[[[Toast alloc] initWithText:@"Basic Toast" delay:0 duration:Delay.Short] show];
|
||||
[[[Toast alloc] initWithText:@"You can set duration. `Delay.Short` means 2 seconds.\n`Delay.Long` means 3.5 seconds." delay:0 duration:Delay.Long] show];
|
||||
[[[Toast alloc] initWithText:@"With delay, Toaster will be shown after delay." delay:1 duration:5] show];
|
||||
}
|
||||
|
||||
- (void)keyboardButtonTouchUpInside:(RespondingButton *)sender {
|
||||
if (sender.isFirstResponder) {
|
||||
[sender resignFirstResponder];
|
||||
} else {
|
||||
[sender becomeFirstResponder];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation RespondingButton
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame
|
||||
{
|
||||
self = [super initWithFrame:frame];
|
||||
self.hasText = YES;
|
||||
self.autocorrectionType = UITextAutocorrectionTypeNo;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (BOOL)canBecomeFirstResponder {
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)insertText:(nonnull NSString *)text {}
|
||||
- (void)deleteBackward {}
|
||||
|
||||
@end
|
||||
16
DemoObjC/main.m
Normal file
16
DemoObjC/main.m
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// main.m
|
||||
// ToasterDemoObjC
|
||||
//
|
||||
// Created by Antoine Cœur on 2019/4/4.
|
||||
// Copyright © 2019 Suyeol Jeon. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "AppDelegate.h"
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
@autoreleasepool {
|
||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
||||
}
|
||||
}
|
||||
@@ -1,21 +1,24 @@
|
||||
import UIKit
|
||||
|
||||
public struct Delay {
|
||||
public static let short: TimeInterval = 2.0
|
||||
public static let long: TimeInterval = 3.5
|
||||
public class Delay: NSObject {
|
||||
@available(*, unavailable) private override init() {}
|
||||
// `short` and `long` (lowercase) are reserved words in Objective-C
|
||||
// so we capitalize them instead of the default `short_` and `long_`
|
||||
@objc(Short) public static let short: TimeInterval = 2.0
|
||||
@objc(Long) public static let long: TimeInterval = 3.5
|
||||
}
|
||||
|
||||
open class Toast: Operation {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
public var text: String? {
|
||||
@objc public var text: String? {
|
||||
get { return self.view.text }
|
||||
set { self.view.text = newValue }
|
||||
}
|
||||
|
||||
public var delay: TimeInterval
|
||||
public var duration: TimeInterval
|
||||
@objc public var delay: TimeInterval
|
||||
@objc public var duration: TimeInterval
|
||||
|
||||
private var _executing = false
|
||||
override open var isExecuting: Bool {
|
||||
@@ -44,12 +47,12 @@ open class Toast: Operation {
|
||||
|
||||
// MARK: UI
|
||||
|
||||
public var view: ToastView = ToastView()
|
||||
@objc public var view: ToastView = ToastView()
|
||||
|
||||
|
||||
// MARK: Initializing
|
||||
|
||||
public init(text: String?, delay: TimeInterval = 0, duration: TimeInterval = Delay.short) {
|
||||
@objc public init(text: String?, delay: TimeInterval = 0, duration: TimeInterval = Delay.short) {
|
||||
self.delay = delay
|
||||
self.duration = duration
|
||||
super.init()
|
||||
@@ -77,7 +80,7 @@ open class Toast: Operation {
|
||||
|
||||
// MARK: Showing
|
||||
|
||||
public func show() {
|
||||
@objc public func show() {
|
||||
ToastCenter.default.add(self)
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,13 @@
|
||||
0397CD2E1D85D6930077D82F /* RootViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0306DB9E1D85D626007AE314 /* RootViewController.swift */; };
|
||||
03C23F3C1D8823AA00EE8424 /* Toaster.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03A75E2B1BCF2066002E46C4 /* Toaster.framework */; };
|
||||
3706852A20D6A68800F09B36 /* Toaster.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 03A75E2B1BCF2066002E46C4 /* Toaster.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
3719A72C225598E4009EAFCD /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3719A72B225598E4009EAFCD /* AppDelegate.m */; };
|
||||
3719A72F225598E4009EAFCD /* RootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3719A72E225598E4009EAFCD /* RootViewController.m */; };
|
||||
3719A734225598E4009EAFCD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3719A733225598E4009EAFCD /* Assets.xcassets */; };
|
||||
3719A737225598E4009EAFCD /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3719A735225598E4009EAFCD /* LaunchScreen.storyboard */; };
|
||||
3719A73A225598E4009EAFCD /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3719A739225598E4009EAFCD /* main.m */; };
|
||||
3719A73E2255991B009EAFCD /* Toaster.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03A75E2B1BCF2066002E46C4 /* Toaster.framework */; };
|
||||
3719A73F2255991B009EAFCD /* Toaster.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 03A75E2B1BCF2066002E46C4 /* Toaster.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
C06FC9D41F95A8CC00782082 /* ToasterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C06FC9D31F95A8CC00782082 /* ToasterTests.swift */; };
|
||||
C06FC9D61F95A8CC00782082 /* Toaster.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03A75E2B1BCF2066002E46C4 /* Toaster.framework */; };
|
||||
/* End PBXBuildFile section */
|
||||
@@ -30,6 +37,13 @@
|
||||
remoteGlobalIDString = 03A75E2A1BCF2066002E46C4;
|
||||
remoteInfo = Toaster;
|
||||
};
|
||||
3719A7402255991B009EAFCD /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 03A75E221BCF2066002E46C4 /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 03A75E2A1BCF2066002E46C4;
|
||||
remoteInfo = Toaster;
|
||||
};
|
||||
C06FC9D71F95A8CC00782082 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 03A75E221BCF2066002E46C4 /* Project object */;
|
||||
@@ -51,6 +65,17 @@
|
||||
name = "Embed Frameworks";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
3719A7422255991B009EAFCD /* Embed Frameworks */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
3719A73F2255991B009EAFCD /* Toaster.framework in Embed Frameworks */,
|
||||
);
|
||||
name = "Embed Frameworks";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
@@ -67,6 +92,15 @@
|
||||
0306DBB01D85D62E007AE314 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
03A75E2B1BCF2066002E46C4 /* Toaster.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Toaster.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
03A75E4F1BCF20D4002E46C4 /* ToasterDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ToasterDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
3719A728225598E4009EAFCD /* ToasterDemoObjC.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ToasterDemoObjC.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
3719A72A225598E4009EAFCD /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
||||
3719A72B225598E4009EAFCD /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
|
||||
3719A72D225598E4009EAFCD /* RootViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = "<group>"; };
|
||||
3719A72E225598E4009EAFCD /* RootViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RootViewController.m; sourceTree = "<group>"; };
|
||||
3719A733225598E4009EAFCD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
3719A736225598E4009EAFCD /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
3719A738225598E4009EAFCD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
3719A739225598E4009EAFCD /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||
C06FC9D11F95A8CC00782082 /* ToasterTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ToasterTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
C06FC9D31F95A8CC00782082 /* ToasterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ToasterTests.swift; sourceTree = "<group>"; };
|
||||
C06FC9D51F95A8CC00782082 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
@@ -88,6 +122,14 @@
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
3719A725225598E4009EAFCD /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
3719A73E2255991B009EAFCD /* Toaster.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
C06FC9CE1F95A8CC00782082 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
@@ -137,6 +179,7 @@
|
||||
0306DBA41D85D62A007AE314 /* Sources */,
|
||||
0306DBAF1D85D62E007AE314 /* Supporting Files */,
|
||||
0306DB981D85D626007AE314 /* Demo */,
|
||||
3719A729225598E4009EAFCD /* DemoObjC */,
|
||||
C06FC9D21F95A8CC00782082 /* ToasterTests */,
|
||||
03A75E2C1BCF2066002E46C4 /* Products */,
|
||||
);
|
||||
@@ -148,10 +191,26 @@
|
||||
03A75E2B1BCF2066002E46C4 /* Toaster.framework */,
|
||||
03A75E4F1BCF20D4002E46C4 /* ToasterDemo.app */,
|
||||
C06FC9D11F95A8CC00782082 /* ToasterTests.xctest */,
|
||||
3719A728225598E4009EAFCD /* ToasterDemoObjC.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
3719A729225598E4009EAFCD /* DemoObjC */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3719A72A225598E4009EAFCD /* AppDelegate.h */,
|
||||
3719A72B225598E4009EAFCD /* AppDelegate.m */,
|
||||
3719A72D225598E4009EAFCD /* RootViewController.h */,
|
||||
3719A72E225598E4009EAFCD /* RootViewController.m */,
|
||||
3719A733225598E4009EAFCD /* Assets.xcassets */,
|
||||
3719A735225598E4009EAFCD /* LaunchScreen.storyboard */,
|
||||
3719A738225598E4009EAFCD /* Info.plist */,
|
||||
3719A739225598E4009EAFCD /* main.m */,
|
||||
);
|
||||
path = DemoObjC;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
C06FC9D21F95A8CC00782082 /* ToasterTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -212,6 +271,25 @@
|
||||
productReference = 03A75E4F1BCF20D4002E46C4 /* ToasterDemo.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
3719A727225598E4009EAFCD /* ToasterDemoObjC */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 3719A73D225598E4009EAFCD /* Build configuration list for PBXNativeTarget "ToasterDemoObjC" */;
|
||||
buildPhases = (
|
||||
3719A724225598E4009EAFCD /* Sources */,
|
||||
3719A725225598E4009EAFCD /* Frameworks */,
|
||||
3719A726225598E4009EAFCD /* Resources */,
|
||||
3719A7422255991B009EAFCD /* Embed Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
3719A7412255991B009EAFCD /* PBXTargetDependency */,
|
||||
);
|
||||
name = ToasterDemoObjC;
|
||||
productName = ToasterDemoObjC;
|
||||
productReference = 3719A728225598E4009EAFCD /* ToasterDemoObjC.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
C06FC9D01F95A8CC00782082 /* ToasterTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = C06FC9DB1F95A8CC00782082 /* Build configuration list for PBXNativeTarget "ToasterTests" */;
|
||||
@@ -248,6 +326,10 @@
|
||||
CreatedOnToolsVersion = 7.0.1;
|
||||
LastSwiftMigration = 0900;
|
||||
};
|
||||
3719A727225598E4009EAFCD = {
|
||||
CreatedOnToolsVersion = 10.2;
|
||||
ProvisioningStyle = Automatic;
|
||||
};
|
||||
C06FC9D01F95A8CC00782082 = {
|
||||
CreatedOnToolsVersion = 9.0;
|
||||
ProvisioningStyle = Automatic;
|
||||
@@ -270,6 +352,7 @@
|
||||
targets = (
|
||||
03A75E2A1BCF2066002E46C4 /* Toaster */,
|
||||
03A75E4E1BCF20D4002E46C4 /* ToasterDemo */,
|
||||
3719A727225598E4009EAFCD /* ToasterDemoObjC */,
|
||||
C06FC9D01F95A8CC00782082 /* ToasterTests */,
|
||||
);
|
||||
};
|
||||
@@ -292,6 +375,15 @@
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
3719A726225598E4009EAFCD /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
3719A737225598E4009EAFCD /* LaunchScreen.storyboard in Resources */,
|
||||
3719A734225598E4009EAFCD /* Assets.xcassets in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
C06FC9CF1F95A8CC00782082 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
@@ -322,6 +414,16 @@
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
3719A724225598E4009EAFCD /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
3719A72F225598E4009EAFCD /* RootViewController.m in Sources */,
|
||||
3719A73A225598E4009EAFCD /* main.m in Sources */,
|
||||
3719A72C225598E4009EAFCD /* AppDelegate.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
C06FC9CD1F95A8CC00782082 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
@@ -338,6 +440,11 @@
|
||||
target = 03A75E2A1BCF2066002E46C4 /* Toaster */;
|
||||
targetProxy = 03A75E631BCF216A002E46C4 /* PBXContainerItemProxy */;
|
||||
};
|
||||
3719A7412255991B009EAFCD /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 03A75E2A1BCF2066002E46C4 /* Toaster */;
|
||||
targetProxy = 3719A7402255991B009EAFCD /* PBXContainerItemProxy */;
|
||||
};
|
||||
C06FC9D81F95A8CC00782082 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 03A75E2A1BCF2066002E46C4 /* Toaster */;
|
||||
@@ -354,6 +461,14 @@
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
3719A735225598E4009EAFCD /* LaunchScreen.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
3719A736225598E4009EAFCD /* Base */,
|
||||
);
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
@@ -472,6 +587,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
|
||||
DEFINES_MODULE = YES;
|
||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||
@@ -492,6 +608,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
|
||||
DEFINES_MODULE = YES;
|
||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||
@@ -535,6 +652,55 @@
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
3719A73B225598E4009EAFCD /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
INFOPLIST_FILE = DemoObjC/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||
MTL_FAST_MATH = YES;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = kr.xoul.ToasterDemoObjC;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
3719A73C225598E4009EAFCD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
INFOPLIST_FILE = DemoObjC/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
MTL_FAST_MATH = YES;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = kr.xoul.ToasterDemoObjC;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
C06FC9D91F95A8CC00782082 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
@@ -607,6 +773,15 @@
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
3719A73D225598E4009EAFCD /* Build configuration list for PBXNativeTarget "ToasterDemoObjC" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3719A73B225598E4009EAFCD /* Debug */,
|
||||
3719A73C225598E4009EAFCD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
C06FC9DB1F95A8CC00782082 /* Build configuration list for PBXNativeTarget "ToasterTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
|
||||
Reference in New Issue
Block a user