Skip to content

Commit a60aac1

Browse files
committed
Set up subspecs
1 parent 3800bab commit a60aac1

3 files changed

Lines changed: 23 additions & 11 deletions

File tree

ICInputAccessory.podspec

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
Pod::Spec.new do |s|
22
s.name = "ICInputAccessory"
33
s.version = "1.0.0"
4-
s.summary = "Customized text fields used in the iCook app."
4+
s.summary = "A customized token text field used in the iCook app."
55
s.description = <<-DESC
66
ICKeyboardDismissTextField:
77
* An input accessory view with a button to dismiss keyboard.
88
99
ICTokenField:
1010
* A horizontal scrolling UI that groups input texts.
11-
* Easy to add and delete tokens.
11+
* Easy to add, select and delete tokens.
1212
* Customizable icon and colors.
13+
* Supports storyboard.
1314
DESC
1415

15-
s.screenshots = "https://raw.githubusercontent.com/polydice/ICInputAccessory/gh-pages/screenshots/ICKeyboardDismissTextField.png",
16-
"https://raw.githubusercontent.com/polydice/ICInputAccessory/gh-pages/screenshots/ICTokenField.png"
16+
s.screenshots = "https://polydice.github.io/ICInputAccessory/screenshots/ICTokenField.png",
17+
"https://polydice.github.io/ICInputAccessory/screenshots/ICKeyboardDismissTextField.png"
1718
s.homepage = "https://github.com/polydice/ICInputAccessory"
1819
s.license = { type: "MIT", file: "LICENSE" }
1920
s.authors = "bcylin", "trisix"
20-
2121
s.platform = :ios, "8.0"
2222
s.source = { git: "https://github.com/polydice/ICInputAccessory.git", tag: "v#{s.version}" }
23-
s.source_files = "Source/*.swift"
24-
s.resources = "Source/*.xcassets"
2523
s.requires_arc = true
24+
25+
s.default_subspecs = "KeyboardDismissTextField", "TokenField"
26+
27+
s.subspec :KeyboardDismissTextField do |sp|
28+
sp.source_files = "Source/KeyboardDismissTextField/*.swift"
29+
sp.resources = "Source/KeyboardDismissTextField/*.xcassets"
30+
end
31+
32+
s.subspec :TokenField do |sp|
33+
sp.source_files = "Source/TokenField/*.swift"
34+
end
2635
end

Podfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ xcodeproj "ICInputAccessory"
66
xcodeproj "Example/Example"
77

88
target :Example do
9-
pod "ICInputAccessory", path: "./"
9+
pod "ICInputAccessory/KeyboardDismissTextField", path: "./"
10+
pod "ICInputAccessory/TokenField", path: "./"
1011
end

Podfile.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
PODS:
2-
- ICInputAccessory (1.0.0)
2+
- ICInputAccessory/KeyboardDismissTextField (1.0.0)
3+
- ICInputAccessory/TokenField (1.0.0)
34

45
DEPENDENCIES:
5-
- ICInputAccessory (from `./`)
6+
- ICInputAccessory/KeyboardDismissTextField (from `./`)
7+
- ICInputAccessory/TokenField (from `./`)
68

79
EXTERNAL SOURCES:
810
ICInputAccessory:
911
:path: "./"
1012

1113
SPEC CHECKSUMS:
12-
ICInputAccessory: 341225aaa67a035b266880a5795001b363d1b1da
14+
ICInputAccessory: e3c0705263aa7c86cebf96425c95aa716ec83f25
1315

1416
COCOAPODS: 0.39.0

0 commit comments

Comments
 (0)