├── .gitignore
├── 1.PNG
├── AppCenter
├── Info.plist
├── MainInterface.storyboard
├── TodayCell.swift
├── TodayViewController.swift
├── WidgetData.plist
└── img.xcassets
│ ├── LaunchImage.launchimage
│ └── Contents.json
│ ├── alipay.imageset
│ ├── 1.png
│ └── Contents.json
│ ├── baidu.imageset
│ ├── Contents.json
│ └── baidu.png
│ ├── beiwang.imageset
│ ├── Contents.json
│ └── 信息图像(161054266).png
│ ├── boombeach.imageset
│ ├── Contents.json
│ └── Icon-152.png
│ ├── cmb.imageset
│ ├── Contents.json
│ └── Icon120@3x.png
│ ├── config.imageset
│ ├── Contents.json
│ └── 信息图像(1782846305).png
│ ├── home.imageset
│ ├── Contents.json
│ └── a-3.png
│ ├── ibook.imageset
│ ├── 80.png
│ └── Contents.json
│ ├── mail.imageset
│ ├── Contents.json
│ └── 信息图像(1452144975).png
│ ├── meituan.imageset
│ ├── AppIcon60x60@3x 2.png
│ └── Contents.json
│ ├── qian8.imageset
│ ├── 333.png
│ └── Contents.json
│ ├── qq.imageset
│ ├── Contents.json
│ └── Icon@3x.png
│ ├── sms.imageset
│ ├── Contents.json
│ └── 信息图像(1878200149).png
│ ├── store.imageset
│ ├── 3e5e5c5ba14c1e38bc10b46ef8376f48.png
│ └── Contents.json
│ ├── taobao.imageset
│ ├── Contents.json
│ └── sdd.png
│ ├── tianqitong.imageset
│ ├── Contents.json
│ └── icon-7.png
│ ├── weibo.imageset
│ ├── Contents.json
│ └── icon_base@3x.png
│ ├── weixin.imageset
│ ├── AppIcon60x60@3x.png
│ └── Contents.json
│ ├── xiami.imageset
│ ├── Contents.json
│ └── Icon-144@2x.png
│ ├── xiangce.imageset
│ ├── 7d12bbe4c774c5f4f8a4093401a365a2.png
│ └── Contents.json
│ └── youhuiquan.imageset
│ ├── AppIcon60x60@2x.png
│ └── Contents.json
├── HomeOff.xcodeproj
├── project.pbxproj
└── project.xcworkspace
│ └── contents.xcworkspacedata
├── HomeOff
├── AppDelegate.swift
├── Base.lproj
│ ├── LaunchScreen.xib
│ └── Main.storyboard
├── Images.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── a-2.png
│ │ └── a-3.png
├── Info.plist
└── ViewController.swift
├── HomeOffTests
├── HomeOffTests.swift
└── Info.plist
├── LICENSE
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | build/
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | xcuserdata
13 | *.xccheckout
14 | *.moved-aside
15 | DerivedData
16 | *.hmap
17 | *.ipa
18 | *.xcuserstate
19 |
20 | # CocoaPods
21 | #
22 | # We recommend against adding the Pods directory to your .gitignore. However
23 | # you should judge for yourself, the pros and cons are mentioned at:
24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
25 | #
26 | # Pods/
27 |
--------------------------------------------------------------------------------
/1.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/1.PNG
--------------------------------------------------------------------------------
/AppCenter/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | AppCenter
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIcons
12 |
13 | CFBundleIcons~ipad
14 |
15 | CFBundleIdentifier
16 | leeey.HomeOff.$(PRODUCT_NAME:rfc1034identifier)
17 | CFBundleInfoDictionaryVersion
18 | 6.0
19 | CFBundleName
20 | $(PRODUCT_NAME)
21 | CFBundlePackageType
22 | XPC!
23 | CFBundleShortVersionString
24 | 1.0
25 | CFBundleSignature
26 | ????
27 | CFBundleVersion
28 | 1
29 | NSExtension
30 |
31 | NSExtensionMainStoryboard
32 | MainInterface
33 | NSExtensionPointIdentifier
34 | com.apple.widget-extension
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/AppCenter/MainInterface.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/AppCenter/TodayCell.swift:
--------------------------------------------------------------------------------
1 | //
2 | // RSSItemTableViewCell.swift
3 | // XebiaBlog
4 | //
5 | // Created by Lammert Westerhoff on 09/09/14.
6 | // Copyright (c) 2014 Lammert Westerhoff. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class TodayCell: UITableViewCell {
12 |
13 |
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/AppCenter/TodayViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // TodayViewController.swift
3 | // XebiaBlogRSSWidget
4 | //
5 | // Created by Lammert Westerhoff on 09/09/14.
6 | // Copyright (c) 2014 Lammert Westerhoff. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import NotificationCenter
11 | class TodayViewController: UITableViewController, NCWidgetProviding {
12 | var plistArray:NSArray?
13 | var wLine :Float = 0
14 | var wRow = 4// 一行5条
15 | var ct:Int?
16 | var btnWidth:CGFloat = 46
17 | var btnHeight:CGFloat = 46
18 | override func viewDidLoad() {
19 | super.viewDidLoad()
20 | //data
21 | let path = NSBundle.mainBundle().pathForResource("WidgetData", ofType: "plist")
22 | plistArray = NSArray(contentsOfFile: path!)
23 | //
24 | ct = plistArray?.count
25 | wLine = ceil( Float(ct!)/Float(wRow) )
26 | preferredContentSize = CGSizeMake(CGFloat(0), CGFloat(wLine) * 68)
27 | }
28 |
29 | override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
30 | coordinator.animateAlongsideTransition({ context in
31 | }, completion: nil)
32 | }
33 |
34 | // MARK: Table view data source
35 | override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
36 | return Int(wLine)
37 | }
38 |
39 | override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
40 | return 68
41 | }
42 |
43 | override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
44 | let cell = tableView.dequeueReusableCellWithIdentifier("CellItem", forIndexPath: indexPath) as TodayCell
45 | var row = indexPath.row
46 | for i in 0 ..< Int(wRow) {
47 | var ii = row * wRow + i
48 | if ( ii < ct) {
49 | var selBtn = UIButton(frame: CGRectMake(CGFloat(i)*btnWidth+CGFloat(i*20), 10, btnWidth, btnHeight))
50 | selBtn.tag = ii
51 | if plistArray![ii]["type"] as String == "text" {
52 | selBtn.setTitle( (plistArray![ii]["name"] as String), forState: UIControlState.Normal)
53 | }else{
54 | //圆角
55 | var l = selBtn.layer
56 | l.masksToBounds = true
57 | l.cornerRadius = 12
58 | var image = UIImage(named:(plistArray![ii]["image"] as String))
59 | selBtn.setBackgroundImage( image, forState: UIControlState.Normal)
60 | }
61 | selBtn.addTarget(self, action: "sel:", forControlEvents: UIControlEvents.TouchUpInside)
62 | cell.addSubview(selBtn)
63 | }
64 | }
65 | return cell
66 | }
67 |
68 | func sel(sender: UIButton){
69 | var url = plistArray![sender.tag]["url"] as String
70 | self.extensionContext?.openURL(NSURL(string: url)!, completionHandler: nil)
71 | }
72 |
73 | override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
74 | }
75 |
76 |
77 | override func didReceiveMemoryWarning() {
78 | super.didReceiveMemoryWarning()
79 | // Dispose of any resources that can be recreated.
80 | }
81 |
82 | func widgetPerformUpdateWithCompletionHandler(completionHandler: ((NCUpdateResult) -> Void)!) {
83 | completionHandler(NCUpdateResult.NoData)
84 | }
85 |
86 | }
87 |
88 | extension UIButton {
89 | func createShadow(color:UIColor, radius: CGFloat){
90 | let backGroundColor = CALayer()
91 | backGroundColor.backgroundColor = layer.backgroundColor
92 | backGroundColor.cornerRadius = radius
93 | backGroundColor.frame = CGRectMake(0, 0, CGRectGetWidth(layer.frame), CGRectGetHeight(layer.frame));
94 | layer.insertSublayer(backGroundColor, atIndex:0)
95 |
96 | let bottomShadow = CALayer()
97 | bottomShadow.backgroundColor = color.CGColor
98 | bottomShadow.cornerRadius = radius
99 | bottomShadow.frame = CGRectMake(0, 4, CGRectGetWidth(layer.frame), CGRectGetHeight(layer.frame));
100 | layer.insertSublayer(bottomShadow, atIndex:0)
101 | }
102 | }
103 |
104 |
--------------------------------------------------------------------------------
/AppCenter/WidgetData.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | name
7 | 记账
8 | type
9 | image
10 | url
11 | qian8://
12 | image
13 | qian8
14 |
15 |
16 | name
17 | 设置
18 | type
19 | image
20 | url
21 | prefs:
22 | image
23 | config
24 |
25 |
26 | name
27 | 提醒事项
28 | type
29 | image
30 | url
31 | x-apple-reminder://
32 | image
33 | beiwang
34 |
35 |
36 | name
37 | 邮件
38 | type
39 | image
40 | url
41 | mailto://
42 | image
43 | mail
44 |
45 |
46 | name
47 | 微博
48 | type
49 | image
50 | url
51 | sinaweibo://
52 | image
53 | weibo
54 |
55 |
56 | name
57 | 微信
58 | type
59 | image
60 | url
61 | weixin://
62 | image
63 | weixin
64 |
65 |
66 | name
67 | QQ
68 | type
69 | image
70 | url
71 | mqq://
72 | image
73 | qq
74 |
75 |
76 | name
77 | 短信
78 | type
79 | image
80 | url
81 | sms://
82 | image
83 | sms
84 |
85 |
86 | name
87 | 支付宝
88 | type
89 | image
90 | url
91 | alipay://
92 | image
93 | alipay
94 |
95 |
96 | name
97 | 招行
98 | type
99 | image
100 | url
101 | cmbnetpay://
102 | image
103 | cmb
104 |
105 |
106 | name
107 | 淘宝
108 | type
109 | image
110 | url
111 | taobao://
112 | image
113 | taobao
114 |
115 |
116 | name
117 | 百度
118 | type
119 | image
120 | url
121 | http://baidu.com
122 | image
123 | baidu
124 |
125 |
126 | name
127 | 相册
128 | type
129 | image
130 | url
131 | Photos://
132 | image
133 | xiangce
134 |
135 |
136 | name
137 | ibook
138 | type
139 | image
140 | url
141 | ibooks://
142 | image
143 | ibook
144 |
145 |
146 | name
147 | APPStore
148 | type
149 | image
150 | url
151 | itms-apps://
152 | image
153 | store
154 |
155 |
156 | name
157 | 夺岛奇兵
158 | type
159 | image
160 | url
161 | fb480068372075366://
162 | image
163 | boombeach
164 |
165 |
166 | name
167 | 天气通
168 | type
169 | image
170 | url
171 | sinaweather://
172 | image
173 | tianqitong
174 |
175 |
176 | name
177 | 美团
178 | type
179 | image
180 | url
181 | imeituan://
182 | image
183 | meituan
184 |
185 |
186 | name
187 | Home
188 | type
189 | image
190 | url
191 | homeoff://
192 | image
193 | home
194 |
195 |
196 | name
197 | 优惠券
198 | type
199 | image
200 | url
201 | BDcoupon://
202 | image
203 | youhuiquan
204 |
205 |
206 |
207 |
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "minimum-system-version" : "7.0",
7 | "scale" : "2x"
8 | },
9 | {
10 | "orientation" : "portrait",
11 | "idiom" : "iphone",
12 | "minimum-system-version" : "7.0",
13 | "subtype" : "retina4",
14 | "scale" : "2x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/alipay.imageset/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/alipay.imageset/1.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/alipay.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "1.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/baidu.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "baidu.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/baidu.imageset/baidu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/baidu.imageset/baidu.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/beiwang.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "信息图像(161054266).png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/beiwang.imageset/信息图像(161054266).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/beiwang.imageset/信息图像(161054266).png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/boombeach.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "Icon-152.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/boombeach.imageset/Icon-152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/boombeach.imageset/Icon-152.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/cmb.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "Icon120@3x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/cmb.imageset/Icon120@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/cmb.imageset/Icon120@3x.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/config.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "信息图像(1782846305).png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/config.imageset/信息图像(1782846305).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/config.imageset/信息图像(1782846305).png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/home.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "scale" : "3x",
14 | "filename" : "a-3.png"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/home.imageset/a-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/home.imageset/a-3.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/ibook.imageset/80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/ibook.imageset/80.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/ibook.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "80.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/mail.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "信息图像(1452144975).png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/mail.imageset/信息图像(1452144975).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/mail.imageset/信息图像(1452144975).png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/meituan.imageset/AppIcon60x60@3x 2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/meituan.imageset/AppIcon60x60@3x 2.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/meituan.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "AppIcon60x60@3x 2.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/qian8.imageset/333.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/qian8.imageset/333.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/qian8.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "333.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/qq.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "Icon@3x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/qq.imageset/Icon@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/qq.imageset/Icon@3x.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/sms.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "信息图像(1878200149).png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/sms.imageset/信息图像(1878200149).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/sms.imageset/信息图像(1878200149).png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/store.imageset/3e5e5c5ba14c1e38bc10b46ef8376f48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/store.imageset/3e5e5c5ba14c1e38bc10b46ef8376f48.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/store.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "3e5e5c5ba14c1e38bc10b46ef8376f48.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x",
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/taobao.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "sdd.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/taobao.imageset/sdd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/taobao.imageset/sdd.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/tianqitong.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "icon-7.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/tianqitong.imageset/icon-7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/tianqitong.imageset/icon-7.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/weibo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "icon_base@3x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/weibo.imageset/icon_base@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/weibo.imageset/icon_base@3x.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/weixin.imageset/AppIcon60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/weixin.imageset/AppIcon60x60@3x.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/weixin.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "AppIcon60x60@3x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/xiami.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "Icon-144@2x.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/xiami.imageset/Icon-144@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/xiami.imageset/Icon-144@2x.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/xiangce.imageset/7d12bbe4c774c5f4f8a4093401a365a2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/xiangce.imageset/7d12bbe4c774c5f4f8a4093401a365a2.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/xiangce.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x",
10 | "filename" : "7d12bbe4c774c5f4f8a4093401a365a2.png"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x",
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/youhuiquan.imageset/AppIcon60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/AppCenter/img.xcassets/youhuiquan.imageset/AppIcon60x60@2x.png
--------------------------------------------------------------------------------
/AppCenter/img.xcassets/youhuiquan.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "scale" : "3x",
14 | "filename" : "AppIcon60x60@2x.png"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/HomeOff.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 18083A291A31B082004A13AD /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18083A281A31B082004A13AD /* AppDelegate.swift */; };
11 | 18083A2B1A31B082004A13AD /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18083A2A1A31B082004A13AD /* ViewController.swift */; };
12 | 18083A2E1A31B082004A13AD /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 18083A2C1A31B082004A13AD /* Main.storyboard */; };
13 | 18083A301A31B082004A13AD /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 18083A2F1A31B082004A13AD /* Images.xcassets */; };
14 | 18083A331A31B082004A13AD /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 18083A311A31B082004A13AD /* LaunchScreen.xib */; };
15 | 18083A3F1A31B082004A13AD /* HomeOffTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18083A3E1A31B082004A13AD /* HomeOffTests.swift */; };
16 | 18083A4F1A31B0CD004A13AD /* NotificationCenter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18083A4E1A31B0CD004A13AD /* NotificationCenter.framework */; };
17 | 18083A541A31B0CD004A13AD /* TodayViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18083A531A31B0CD004A13AD /* TodayViewController.swift */; };
18 | 18083A561A31B0CD004A13AD /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 18083A551A31B0CD004A13AD /* MainInterface.storyboard */; };
19 | 18083A591A31B0CD004A13AD /* AppCenter.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 18083A4C1A31B0CD004A13AD /* AppCenter.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
20 | 18083A611A31B170004A13AD /* img.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 18083A601A31B170004A13AD /* img.xcassets */; };
21 | 18083A631A31B17B004A13AD /* WidgetData.plist in Resources */ = {isa = PBXBuildFile; fileRef = 18083A621A31B17B004A13AD /* WidgetData.plist */; };
22 | 18083A651A31B1D5004A13AD /* TodayCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18083A641A31B1D5004A13AD /* TodayCell.swift */; };
23 | 18083A661A31B228004A13AD /* WidgetData.plist in Sources */ = {isa = PBXBuildFile; fileRef = 18083A621A31B17B004A13AD /* WidgetData.plist */; };
24 | 18248A171A43C856009E99B1 /* WidgetData.plist in Sources */ = {isa = PBXBuildFile; fileRef = 18083A621A31B17B004A13AD /* WidgetData.plist */; };
25 | /* End PBXBuildFile section */
26 |
27 | /* Begin PBXContainerItemProxy section */
28 | 18083A391A31B082004A13AD /* PBXContainerItemProxy */ = {
29 | isa = PBXContainerItemProxy;
30 | containerPortal = 18083A1B1A31B082004A13AD /* Project object */;
31 | proxyType = 1;
32 | remoteGlobalIDString = 18083A221A31B082004A13AD;
33 | remoteInfo = HomeOff;
34 | };
35 | 18083A571A31B0CD004A13AD /* PBXContainerItemProxy */ = {
36 | isa = PBXContainerItemProxy;
37 | containerPortal = 18083A1B1A31B082004A13AD /* Project object */;
38 | proxyType = 1;
39 | remoteGlobalIDString = 18083A4B1A31B0CD004A13AD;
40 | remoteInfo = AppCenter;
41 | };
42 | /* End PBXContainerItemProxy section */
43 |
44 | /* Begin PBXCopyFilesBuildPhase section */
45 | 18083A5D1A31B0CD004A13AD /* Embed App Extensions */ = {
46 | isa = PBXCopyFilesBuildPhase;
47 | buildActionMask = 2147483647;
48 | dstPath = "";
49 | dstSubfolderSpec = 13;
50 | files = (
51 | 18083A591A31B0CD004A13AD /* AppCenter.appex in Embed App Extensions */,
52 | );
53 | name = "Embed App Extensions";
54 | runOnlyForDeploymentPostprocessing = 0;
55 | };
56 | /* End PBXCopyFilesBuildPhase section */
57 |
58 | /* Begin PBXFileReference section */
59 | 18083A231A31B082004A13AD /* HomeOff.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HomeOff.app; sourceTree = BUILT_PRODUCTS_DIR; };
60 | 18083A271A31B082004A13AD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
61 | 18083A281A31B082004A13AD /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
62 | 18083A2A1A31B082004A13AD /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
63 | 18083A2D1A31B082004A13AD /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
64 | 18083A2F1A31B082004A13AD /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
65 | 18083A321A31B082004A13AD /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
66 | 18083A381A31B082004A13AD /* HomeOffTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HomeOffTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
67 | 18083A3D1A31B082004A13AD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
68 | 18083A3E1A31B082004A13AD /* HomeOffTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeOffTests.swift; sourceTree = ""; };
69 | 18083A4C1A31B0CD004A13AD /* AppCenter.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = AppCenter.appex; sourceTree = BUILT_PRODUCTS_DIR; };
70 | 18083A4E1A31B0CD004A13AD /* NotificationCenter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NotificationCenter.framework; path = System/Library/Frameworks/NotificationCenter.framework; sourceTree = SDKROOT; };
71 | 18083A521A31B0CD004A13AD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
72 | 18083A531A31B0CD004A13AD /* TodayViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodayViewController.swift; sourceTree = ""; };
73 | 18083A551A31B0CD004A13AD /* MainInterface.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = MainInterface.storyboard; sourceTree = ""; };
74 | 18083A601A31B170004A13AD /* img.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = img.xcassets; sourceTree = ""; };
75 | 18083A621A31B17B004A13AD /* WidgetData.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = WidgetData.plist; sourceTree = ""; };
76 | 18083A641A31B1D5004A13AD /* TodayCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TodayCell.swift; sourceTree = ""; };
77 | /* End PBXFileReference section */
78 |
79 | /* Begin PBXFrameworksBuildPhase section */
80 | 18083A201A31B082004A13AD /* Frameworks */ = {
81 | isa = PBXFrameworksBuildPhase;
82 | buildActionMask = 2147483647;
83 | files = (
84 | );
85 | runOnlyForDeploymentPostprocessing = 0;
86 | };
87 | 18083A351A31B082004A13AD /* Frameworks */ = {
88 | isa = PBXFrameworksBuildPhase;
89 | buildActionMask = 2147483647;
90 | files = (
91 | );
92 | runOnlyForDeploymentPostprocessing = 0;
93 | };
94 | 18083A491A31B0CD004A13AD /* Frameworks */ = {
95 | isa = PBXFrameworksBuildPhase;
96 | buildActionMask = 2147483647;
97 | files = (
98 | 18083A4F1A31B0CD004A13AD /* NotificationCenter.framework in Frameworks */,
99 | );
100 | runOnlyForDeploymentPostprocessing = 0;
101 | };
102 | /* End PBXFrameworksBuildPhase section */
103 |
104 | /* Begin PBXGroup section */
105 | 18083A1A1A31B082004A13AD = {
106 | isa = PBXGroup;
107 | children = (
108 | 18083A251A31B082004A13AD /* HomeOff */,
109 | 18083A3B1A31B082004A13AD /* HomeOffTests */,
110 | 18083A501A31B0CD004A13AD /* AppCenter */,
111 | 18083A4D1A31B0CD004A13AD /* Frameworks */,
112 | 18083A241A31B082004A13AD /* Products */,
113 | );
114 | sourceTree = "";
115 | };
116 | 18083A241A31B082004A13AD /* Products */ = {
117 | isa = PBXGroup;
118 | children = (
119 | 18083A231A31B082004A13AD /* HomeOff.app */,
120 | 18083A381A31B082004A13AD /* HomeOffTests.xctest */,
121 | 18083A4C1A31B0CD004A13AD /* AppCenter.appex */,
122 | );
123 | name = Products;
124 | sourceTree = "";
125 | };
126 | 18083A251A31B082004A13AD /* HomeOff */ = {
127 | isa = PBXGroup;
128 | children = (
129 | 18083A281A31B082004A13AD /* AppDelegate.swift */,
130 | 18083A2A1A31B082004A13AD /* ViewController.swift */,
131 | 18083A2C1A31B082004A13AD /* Main.storyboard */,
132 | 18083A2F1A31B082004A13AD /* Images.xcassets */,
133 | 18083A311A31B082004A13AD /* LaunchScreen.xib */,
134 | 18083A261A31B082004A13AD /* Supporting Files */,
135 | );
136 | path = HomeOff;
137 | sourceTree = "";
138 | };
139 | 18083A261A31B082004A13AD /* Supporting Files */ = {
140 | isa = PBXGroup;
141 | children = (
142 | 18083A271A31B082004A13AD /* Info.plist */,
143 | );
144 | name = "Supporting Files";
145 | sourceTree = "";
146 | };
147 | 18083A3B1A31B082004A13AD /* HomeOffTests */ = {
148 | isa = PBXGroup;
149 | children = (
150 | 18083A3E1A31B082004A13AD /* HomeOffTests.swift */,
151 | 18083A3C1A31B082004A13AD /* Supporting Files */,
152 | );
153 | path = HomeOffTests;
154 | sourceTree = "";
155 | };
156 | 18083A3C1A31B082004A13AD /* Supporting Files */ = {
157 | isa = PBXGroup;
158 | children = (
159 | 18083A3D1A31B082004A13AD /* Info.plist */,
160 | );
161 | name = "Supporting Files";
162 | sourceTree = "";
163 | };
164 | 18083A4D1A31B0CD004A13AD /* Frameworks */ = {
165 | isa = PBXGroup;
166 | children = (
167 | 18083A4E1A31B0CD004A13AD /* NotificationCenter.framework */,
168 | );
169 | name = Frameworks;
170 | sourceTree = "";
171 | };
172 | 18083A501A31B0CD004A13AD /* AppCenter */ = {
173 | isa = PBXGroup;
174 | children = (
175 | 18083A531A31B0CD004A13AD /* TodayViewController.swift */,
176 | 18083A551A31B0CD004A13AD /* MainInterface.storyboard */,
177 | 18083A641A31B1D5004A13AD /* TodayCell.swift */,
178 | 18083A621A31B17B004A13AD /* WidgetData.plist */,
179 | 18083A601A31B170004A13AD /* img.xcassets */,
180 | 18083A511A31B0CD004A13AD /* Supporting Files */,
181 | );
182 | path = AppCenter;
183 | sourceTree = "";
184 | };
185 | 18083A511A31B0CD004A13AD /* Supporting Files */ = {
186 | isa = PBXGroup;
187 | children = (
188 | 18083A521A31B0CD004A13AD /* Info.plist */,
189 | );
190 | name = "Supporting Files";
191 | sourceTree = "";
192 | };
193 | /* End PBXGroup section */
194 |
195 | /* Begin PBXNativeTarget section */
196 | 18083A221A31B082004A13AD /* HomeOff */ = {
197 | isa = PBXNativeTarget;
198 | buildConfigurationList = 18083A421A31B082004A13AD /* Build configuration list for PBXNativeTarget "HomeOff" */;
199 | buildPhases = (
200 | 18083A1F1A31B082004A13AD /* Sources */,
201 | 18083A201A31B082004A13AD /* Frameworks */,
202 | 18083A211A31B082004A13AD /* Resources */,
203 | 18083A5D1A31B0CD004A13AD /* Embed App Extensions */,
204 | );
205 | buildRules = (
206 | );
207 | dependencies = (
208 | 18083A581A31B0CD004A13AD /* PBXTargetDependency */,
209 | );
210 | name = HomeOff;
211 | productName = HomeOff;
212 | productReference = 18083A231A31B082004A13AD /* HomeOff.app */;
213 | productType = "com.apple.product-type.application";
214 | };
215 | 18083A371A31B082004A13AD /* HomeOffTests */ = {
216 | isa = PBXNativeTarget;
217 | buildConfigurationList = 18083A451A31B082004A13AD /* Build configuration list for PBXNativeTarget "HomeOffTests" */;
218 | buildPhases = (
219 | 18083A341A31B082004A13AD /* Sources */,
220 | 18083A351A31B082004A13AD /* Frameworks */,
221 | 18083A361A31B082004A13AD /* Resources */,
222 | );
223 | buildRules = (
224 | );
225 | dependencies = (
226 | 18083A3A1A31B082004A13AD /* PBXTargetDependency */,
227 | );
228 | name = HomeOffTests;
229 | productName = HomeOffTests;
230 | productReference = 18083A381A31B082004A13AD /* HomeOffTests.xctest */;
231 | productType = "com.apple.product-type.bundle.unit-test";
232 | };
233 | 18083A4B1A31B0CD004A13AD /* AppCenter */ = {
234 | isa = PBXNativeTarget;
235 | buildConfigurationList = 18083A5A1A31B0CD004A13AD /* Build configuration list for PBXNativeTarget "AppCenter" */;
236 | buildPhases = (
237 | 18083A481A31B0CD004A13AD /* Sources */,
238 | 18083A491A31B0CD004A13AD /* Frameworks */,
239 | 18083A4A1A31B0CD004A13AD /* Resources */,
240 | );
241 | buildRules = (
242 | );
243 | dependencies = (
244 | );
245 | name = AppCenter;
246 | productName = AppCenter;
247 | productReference = 18083A4C1A31B0CD004A13AD /* AppCenter.appex */;
248 | productType = "com.apple.product-type.app-extension";
249 | };
250 | /* End PBXNativeTarget section */
251 |
252 | /* Begin PBXProject section */
253 | 18083A1B1A31B082004A13AD /* Project object */ = {
254 | isa = PBXProject;
255 | attributes = {
256 | LastUpgradeCheck = 0620;
257 | ORGANIZATIONNAME = leeey;
258 | TargetAttributes = {
259 | 18083A221A31B082004A13AD = {
260 | CreatedOnToolsVersion = 6.2;
261 | };
262 | 18083A371A31B082004A13AD = {
263 | CreatedOnToolsVersion = 6.2;
264 | TestTargetID = 18083A221A31B082004A13AD;
265 | };
266 | 18083A4B1A31B0CD004A13AD = {
267 | CreatedOnToolsVersion = 6.2;
268 | };
269 | };
270 | };
271 | buildConfigurationList = 18083A1E1A31B082004A13AD /* Build configuration list for PBXProject "HomeOff" */;
272 | compatibilityVersion = "Xcode 3.2";
273 | developmentRegion = English;
274 | hasScannedForEncodings = 0;
275 | knownRegions = (
276 | en,
277 | Base,
278 | );
279 | mainGroup = 18083A1A1A31B082004A13AD;
280 | productRefGroup = 18083A241A31B082004A13AD /* Products */;
281 | projectDirPath = "";
282 | projectRoot = "";
283 | targets = (
284 | 18083A221A31B082004A13AD /* HomeOff */,
285 | 18083A371A31B082004A13AD /* HomeOffTests */,
286 | 18083A4B1A31B0CD004A13AD /* AppCenter */,
287 | );
288 | };
289 | /* End PBXProject section */
290 |
291 | /* Begin PBXResourcesBuildPhase section */
292 | 18083A211A31B082004A13AD /* Resources */ = {
293 | isa = PBXResourcesBuildPhase;
294 | buildActionMask = 2147483647;
295 | files = (
296 | 18083A2E1A31B082004A13AD /* Main.storyboard in Resources */,
297 | 18083A331A31B082004A13AD /* LaunchScreen.xib in Resources */,
298 | 18083A301A31B082004A13AD /* Images.xcassets in Resources */,
299 | );
300 | runOnlyForDeploymentPostprocessing = 0;
301 | };
302 | 18083A361A31B082004A13AD /* Resources */ = {
303 | isa = PBXResourcesBuildPhase;
304 | buildActionMask = 2147483647;
305 | files = (
306 | );
307 | runOnlyForDeploymentPostprocessing = 0;
308 | };
309 | 18083A4A1A31B0CD004A13AD /* Resources */ = {
310 | isa = PBXResourcesBuildPhase;
311 | buildActionMask = 2147483647;
312 | files = (
313 | 18083A631A31B17B004A13AD /* WidgetData.plist in Resources */,
314 | 18083A561A31B0CD004A13AD /* MainInterface.storyboard in Resources */,
315 | 18083A611A31B170004A13AD /* img.xcassets in Resources */,
316 | );
317 | runOnlyForDeploymentPostprocessing = 0;
318 | };
319 | /* End PBXResourcesBuildPhase section */
320 |
321 | /* Begin PBXSourcesBuildPhase section */
322 | 18083A1F1A31B082004A13AD /* Sources */ = {
323 | isa = PBXSourcesBuildPhase;
324 | buildActionMask = 2147483647;
325 | files = (
326 | 18083A2B1A31B082004A13AD /* ViewController.swift in Sources */,
327 | 18083A291A31B082004A13AD /* AppDelegate.swift in Sources */,
328 | 18248A171A43C856009E99B1 /* WidgetData.plist in Sources */,
329 | );
330 | runOnlyForDeploymentPostprocessing = 0;
331 | };
332 | 18083A341A31B082004A13AD /* Sources */ = {
333 | isa = PBXSourcesBuildPhase;
334 | buildActionMask = 2147483647;
335 | files = (
336 | 18083A3F1A31B082004A13AD /* HomeOffTests.swift in Sources */,
337 | );
338 | runOnlyForDeploymentPostprocessing = 0;
339 | };
340 | 18083A481A31B0CD004A13AD /* Sources */ = {
341 | isa = PBXSourcesBuildPhase;
342 | buildActionMask = 2147483647;
343 | files = (
344 | 18083A661A31B228004A13AD /* WidgetData.plist in Sources */,
345 | 18083A541A31B0CD004A13AD /* TodayViewController.swift in Sources */,
346 | 18083A651A31B1D5004A13AD /* TodayCell.swift in Sources */,
347 | );
348 | runOnlyForDeploymentPostprocessing = 0;
349 | };
350 | /* End PBXSourcesBuildPhase section */
351 |
352 | /* Begin PBXTargetDependency section */
353 | 18083A3A1A31B082004A13AD /* PBXTargetDependency */ = {
354 | isa = PBXTargetDependency;
355 | target = 18083A221A31B082004A13AD /* HomeOff */;
356 | targetProxy = 18083A391A31B082004A13AD /* PBXContainerItemProxy */;
357 | };
358 | 18083A581A31B0CD004A13AD /* PBXTargetDependency */ = {
359 | isa = PBXTargetDependency;
360 | target = 18083A4B1A31B0CD004A13AD /* AppCenter */;
361 | targetProxy = 18083A571A31B0CD004A13AD /* PBXContainerItemProxy */;
362 | };
363 | /* End PBXTargetDependency section */
364 |
365 | /* Begin PBXVariantGroup section */
366 | 18083A2C1A31B082004A13AD /* Main.storyboard */ = {
367 | isa = PBXVariantGroup;
368 | children = (
369 | 18083A2D1A31B082004A13AD /* Base */,
370 | );
371 | name = Main.storyboard;
372 | sourceTree = "";
373 | };
374 | 18083A311A31B082004A13AD /* LaunchScreen.xib */ = {
375 | isa = PBXVariantGroup;
376 | children = (
377 | 18083A321A31B082004A13AD /* Base */,
378 | );
379 | name = LaunchScreen.xib;
380 | sourceTree = "";
381 | };
382 | /* End PBXVariantGroup section */
383 |
384 | /* Begin XCBuildConfiguration section */
385 | 18083A401A31B082004A13AD /* Debug */ = {
386 | isa = XCBuildConfiguration;
387 | buildSettings = {
388 | ALWAYS_SEARCH_USER_PATHS = NO;
389 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
390 | CLANG_CXX_LIBRARY = "libc++";
391 | CLANG_ENABLE_MODULES = YES;
392 | CLANG_ENABLE_OBJC_ARC = YES;
393 | CLANG_WARN_BOOL_CONVERSION = YES;
394 | CLANG_WARN_CONSTANT_CONVERSION = YES;
395 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
396 | CLANG_WARN_EMPTY_BODY = YES;
397 | CLANG_WARN_ENUM_CONVERSION = YES;
398 | CLANG_WARN_INT_CONVERSION = YES;
399 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
400 | CLANG_WARN_UNREACHABLE_CODE = YES;
401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
403 | COPY_PHASE_STRIP = NO;
404 | ENABLE_STRICT_OBJC_MSGSEND = YES;
405 | GCC_C_LANGUAGE_STANDARD = gnu99;
406 | GCC_DYNAMIC_NO_PIC = NO;
407 | GCC_OPTIMIZATION_LEVEL = 0;
408 | GCC_PREPROCESSOR_DEFINITIONS = (
409 | "DEBUG=1",
410 | "$(inherited)",
411 | );
412 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
413 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
414 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
415 | GCC_WARN_UNDECLARED_SELECTOR = YES;
416 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
417 | GCC_WARN_UNUSED_FUNCTION = YES;
418 | GCC_WARN_UNUSED_VARIABLE = YES;
419 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
420 | MTL_ENABLE_DEBUG_INFO = YES;
421 | ONLY_ACTIVE_ARCH = YES;
422 | SDKROOT = iphoneos;
423 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
424 | };
425 | name = Debug;
426 | };
427 | 18083A411A31B082004A13AD /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | buildSettings = {
430 | ALWAYS_SEARCH_USER_PATHS = NO;
431 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
432 | CLANG_CXX_LIBRARY = "libc++";
433 | CLANG_ENABLE_MODULES = YES;
434 | CLANG_ENABLE_OBJC_ARC = YES;
435 | CLANG_WARN_BOOL_CONVERSION = YES;
436 | CLANG_WARN_CONSTANT_CONVERSION = YES;
437 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
438 | CLANG_WARN_EMPTY_BODY = YES;
439 | CLANG_WARN_ENUM_CONVERSION = YES;
440 | CLANG_WARN_INT_CONVERSION = YES;
441 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
442 | CLANG_WARN_UNREACHABLE_CODE = YES;
443 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
444 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
445 | COPY_PHASE_STRIP = YES;
446 | ENABLE_NS_ASSERTIONS = NO;
447 | ENABLE_STRICT_OBJC_MSGSEND = YES;
448 | GCC_C_LANGUAGE_STANDARD = gnu99;
449 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
450 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
451 | GCC_WARN_UNDECLARED_SELECTOR = YES;
452 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
453 | GCC_WARN_UNUSED_FUNCTION = YES;
454 | GCC_WARN_UNUSED_VARIABLE = YES;
455 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
456 | MTL_ENABLE_DEBUG_INFO = NO;
457 | SDKROOT = iphoneos;
458 | VALIDATE_PRODUCT = YES;
459 | };
460 | name = Release;
461 | };
462 | 18083A431A31B082004A13AD /* Debug */ = {
463 | isa = XCBuildConfiguration;
464 | buildSettings = {
465 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
466 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
467 | FRAMEWORK_SEARCH_PATHS = (
468 | "$(inherited)",
469 | "$(PROJECT_DIR)",
470 | );
471 | INFOPLIST_FILE = HomeOff/Info.plist;
472 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
473 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
474 | PRODUCT_NAME = "$(TARGET_NAME)";
475 | };
476 | name = Debug;
477 | };
478 | 18083A441A31B082004A13AD /* Release */ = {
479 | isa = XCBuildConfiguration;
480 | buildSettings = {
481 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
482 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
483 | FRAMEWORK_SEARCH_PATHS = (
484 | "$(inherited)",
485 | "$(PROJECT_DIR)",
486 | );
487 | INFOPLIST_FILE = HomeOff/Info.plist;
488 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
489 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
490 | PRODUCT_NAME = "$(TARGET_NAME)";
491 | };
492 | name = Release;
493 | };
494 | 18083A461A31B082004A13AD /* Debug */ = {
495 | isa = XCBuildConfiguration;
496 | buildSettings = {
497 | BUNDLE_LOADER = "$(TEST_HOST)";
498 | FRAMEWORK_SEARCH_PATHS = (
499 | "$(SDKROOT)/Developer/Library/Frameworks",
500 | "$(inherited)",
501 | "$(PROJECT_DIR)",
502 | );
503 | GCC_PREPROCESSOR_DEFINITIONS = (
504 | "DEBUG=1",
505 | "$(inherited)",
506 | );
507 | INFOPLIST_FILE = HomeOffTests/Info.plist;
508 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
509 | PRODUCT_NAME = "$(TARGET_NAME)";
510 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HomeOff.app/HomeOff";
511 | };
512 | name = Debug;
513 | };
514 | 18083A471A31B082004A13AD /* Release */ = {
515 | isa = XCBuildConfiguration;
516 | buildSettings = {
517 | BUNDLE_LOADER = "$(TEST_HOST)";
518 | FRAMEWORK_SEARCH_PATHS = (
519 | "$(SDKROOT)/Developer/Library/Frameworks",
520 | "$(inherited)",
521 | "$(PROJECT_DIR)",
522 | );
523 | INFOPLIST_FILE = HomeOffTests/Info.plist;
524 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
525 | PRODUCT_NAME = "$(TARGET_NAME)";
526 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HomeOff.app/HomeOff";
527 | };
528 | name = Release;
529 | };
530 | 18083A5B1A31B0CD004A13AD /* Debug */ = {
531 | isa = XCBuildConfiguration;
532 | buildSettings = {
533 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
534 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
535 | FRAMEWORK_SEARCH_PATHS = (
536 | "$(inherited)",
537 | /Users/leeey/Desktop,
538 | "$(PROJECT_DIR)",
539 | );
540 | GCC_PREPROCESSOR_DEFINITIONS = (
541 | "DEBUG=1",
542 | "$(inherited)",
543 | );
544 | INFOPLIST_FILE = AppCenter/Info.plist;
545 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
546 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
547 | PRODUCT_NAME = "$(TARGET_NAME)";
548 | SDKROOT = iphoneos;
549 | SKIP_INSTALL = YES;
550 | };
551 | name = Debug;
552 | };
553 | 18083A5C1A31B0CD004A13AD /* Release */ = {
554 | isa = XCBuildConfiguration;
555 | buildSettings = {
556 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
557 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
558 | FRAMEWORK_SEARCH_PATHS = (
559 | "$(inherited)",
560 | /Users/leeey/Desktop,
561 | "$(PROJECT_DIR)",
562 | );
563 | INFOPLIST_FILE = AppCenter/Info.plist;
564 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
565 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
566 | PRODUCT_NAME = "$(TARGET_NAME)";
567 | SDKROOT = iphoneos;
568 | SKIP_INSTALL = YES;
569 | };
570 | name = Release;
571 | };
572 | /* End XCBuildConfiguration section */
573 |
574 | /* Begin XCConfigurationList section */
575 | 18083A1E1A31B082004A13AD /* Build configuration list for PBXProject "HomeOff" */ = {
576 | isa = XCConfigurationList;
577 | buildConfigurations = (
578 | 18083A401A31B082004A13AD /* Debug */,
579 | 18083A411A31B082004A13AD /* Release */,
580 | );
581 | defaultConfigurationIsVisible = 0;
582 | defaultConfigurationName = Release;
583 | };
584 | 18083A421A31B082004A13AD /* Build configuration list for PBXNativeTarget "HomeOff" */ = {
585 | isa = XCConfigurationList;
586 | buildConfigurations = (
587 | 18083A431A31B082004A13AD /* Debug */,
588 | 18083A441A31B082004A13AD /* Release */,
589 | );
590 | defaultConfigurationIsVisible = 0;
591 | defaultConfigurationName = Release;
592 | };
593 | 18083A451A31B082004A13AD /* Build configuration list for PBXNativeTarget "HomeOffTests" */ = {
594 | isa = XCConfigurationList;
595 | buildConfigurations = (
596 | 18083A461A31B082004A13AD /* Debug */,
597 | 18083A471A31B082004A13AD /* Release */,
598 | );
599 | defaultConfigurationIsVisible = 0;
600 | defaultConfigurationName = Release;
601 | };
602 | 18083A5A1A31B0CD004A13AD /* Build configuration list for PBXNativeTarget "AppCenter" */ = {
603 | isa = XCConfigurationList;
604 | buildConfigurations = (
605 | 18083A5B1A31B0CD004A13AD /* Debug */,
606 | 18083A5C1A31B0CD004A13AD /* Release */,
607 | );
608 | defaultConfigurationIsVisible = 0;
609 | defaultConfigurationName = Release;
610 | };
611 | /* End XCConfigurationList section */
612 | };
613 | rootObject = 18083A1B1A31B082004A13AD /* Project object */;
614 | }
615 |
--------------------------------------------------------------------------------
/HomeOff.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/HomeOff/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // HomeOff
4 | //
5 | // Created by leeey on 14/12/5.
6 | // Copyright (c) 2014年 leeey. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(application: UIApplication) {
33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/HomeOff/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/HomeOff/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/HomeOff/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "40x40",
11 | "scale" : "2x"
12 | },
13 | {
14 | "size" : "60x60",
15 | "idiom" : "iphone",
16 | "filename" : "a-2.png",
17 | "scale" : "2x"
18 | },
19 | {
20 | "size" : "60x60",
21 | "idiom" : "iphone",
22 | "filename" : "a-3.png",
23 | "scale" : "3x"
24 | }
25 | ],
26 | "info" : {
27 | "version" : 1,
28 | "author" : "xcode"
29 | }
30 | }
--------------------------------------------------------------------------------
/HomeOff/Images.xcassets/AppIcon.appiconset/a-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/HomeOff/Images.xcassets/AppIcon.appiconset/a-2.png
--------------------------------------------------------------------------------
/HomeOff/Images.xcassets/AppIcon.appiconset/a-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lizyyy/Homeoff/f47c81d79eb3f23b59b595afa3c9a66e18612891/HomeOff/Images.xcassets/AppIcon.appiconset/a-3.png
--------------------------------------------------------------------------------
/HomeOff/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | leeey.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleURLTypes
22 |
23 |
24 | CFBundleTypeRole
25 | Editor
26 | CFBundleURLSchemes
27 |
28 | homeoff
29 |
30 |
31 |
32 | CFBundleVersion
33 | 1
34 | LSRequiresIPhoneOS
35 |
36 | UILaunchStoryboardName
37 |
38 | UIMainStoryboardFile
39 | Main
40 | UIRequiredDeviceCapabilities
41 |
42 | armv7
43 |
44 | UISupportedInterfaceOrientations
45 |
46 | UIInterfaceOrientationPortrait
47 | UIInterfaceOrientationLandscapeLeft
48 | UIInterfaceOrientationLandscapeRight
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/HomeOff/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // HomeOff
4 | //
5 | // Created by leeey on 14/12/5.
6 | // Copyright (c) 2014年 leeey. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | override func viewDidLoad() {
14 | super.viewDidLoad()
15 |
16 | //data
17 | let path = NSBundle.mainBundle().pathForResource("WidgetData", ofType: "plist")
18 | var plistArray = NSArray(contentsOfFile: path!)
19 | println(plistArray)
20 | abort()
21 | // Do any additional setup after loading the view, typically from a nib.
22 | }
23 |
24 | override func didReceiveMemoryWarning() {
25 | super.didReceiveMemoryWarning()
26 | // Dispose of any resources that can be recreated.
27 | }
28 |
29 |
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/HomeOffTests/HomeOffTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomeOffTests.swift
3 | // HomeOffTests
4 | //
5 | // Created by leeey on 14/12/5.
6 | // Copyright (c) 2014年 leeey. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import XCTest
11 |
12 | class HomeOffTests: XCTestCase {
13 |
14 | override func setUp() {
15 | super.setUp()
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 | }
18 |
19 | override func tearDown() {
20 | // Put teardown code here. This method is called after the invocation of each test method in the class.
21 | super.tearDown()
22 | }
23 |
24 | func testExample() {
25 | // This is an example of a functional test case.
26 | XCTAssert(true, "Pass")
27 | }
28 |
29 | func testPerformanceExample() {
30 | // This is an example of a performance test case.
31 | self.measureBlock() {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/HomeOffTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | leeey.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Homeoff
2 | Homeoff(launcher)
3 |
4 |
5 | 
6 |
--------------------------------------------------------------------------------