Skip to content

Commit 848aa4c

Browse files
committed
Merge branch release/3.0.4
2 parents 14eb87e + fcbb7f6 commit 848aa4c

File tree

8 files changed

+49
-22
lines changed

8 files changed

+49
-22
lines changed

ColaCup.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ Pod::Spec.new do |s|
55

66
s.name = 'ColaCup'
77

8-
s.version = '3.0.3'
8+
s.version = '3.0.4'
99

1010
s.summary = '🥤 A tool for viewing logs. Use with RaLog.'
1111

1212
s.description = '🥤 A tool for viewing logs. Use with RaLog.'
1313

14-
s.homepage = 'https://github.com/rakuyoMo/ColaCup'
14+
s.homepage = 'https://github.com/RakuyoKit/ColaCup'
1515

1616
s.license = 'MIT'
1717

1818
s.author = { 'Rakuyo' => '[email protected]' }
1919

20-
s.source = { :git => 'https://github.com/rakuyoMo/ColaCup.git', :tag => s.version.to_s }
20+
s.source = { :git => 'https://github.com/RakuyoKit/ColaCup.git', :tag => s.version.to_s }
2121

2222
s.requires_arc = true
2323

ColaCup.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@
729729
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
730730
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = "";
731731
CODE_SIGN_STYLE = Automatic;
732-
CURRENT_PROJECT_VERSION = 14;
732+
CURRENT_PROJECT_VERSION = 15;
733733
DEVELOPMENT_TEAM = 5C9JW4S9DE;
734734
INFOPLIST_FILE = "$(SRCROOT)/ColaCup/Other/Info.plist";
735735
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
@@ -753,7 +753,7 @@
753753
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
754754
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = "";
755755
CODE_SIGN_STYLE = Automatic;
756-
CURRENT_PROJECT_VERSION = 14;
756+
CURRENT_PROJECT_VERSION = 15;
757757
DEVELOPMENT_TEAM = 5C9JW4S9DE;
758758
INFOPLIST_FILE = "$(SRCROOT)/ColaCup/Other/Info.plist";
759759
IPHONEOS_DEPLOYMENT_TARGET = 10.0;

ColaCup/Core/Filter/FilterDateCell.swift

+26-10
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,26 @@ public class FilterDateCell: UICollectionViewCell {
1919
config()
2020
}
2121

22-
@available(iOS 13.4, *)
23-
public lazy var datePicker: UIDatePicker = {
22+
private lazy var _datePicker: UIDatePicker = {
2423
let datePicker = UIDatePicker()
2524
datePicker.translatesAutoresizingMaskIntoConstraints = false
26-
datePicker.tintColor = .label
27-
2825
datePicker.datePickerMode = .date
2926
datePicker.maximumDate = Date()
30-
datePicker.preferredDatePickerStyle = .compact
27+
3128
datePicker.subviews[0].subviews[0].subviews[0].alpha = 0
3229

33-
datePicker.addTarget(self, action: #selector(datePickerDidEditingEnd(_:)), for: .editingDidEnd)
30+
if #available(iOS 13.0, *) {
31+
datePicker.tintColor = .label
32+
}
33+
34+
if #available(iOS 13.4, *) {
35+
datePicker.preferredDatePickerStyle = .compact
36+
datePicker.addTarget(self, action: #selector(datePickerDidEditingEnd(_:)), for: .editingDidEnd)
37+
}
3438

3539
return datePicker
3640
}()
3741

38-
/// The callback after the user selects the date.
39-
@available(iOS 13.4, *)
40-
public lazy var completion: ((Date?) -> Void)? = nil
41-
4242
@available(iOS, obsoleted: 13.4, message: "The `datePicker` will be used to display the date.")
4343
public lazy var label: UILabel = {
4444
let label = UILabel()
@@ -54,9 +54,25 @@ public class FilterDateCell: UICollectionViewCell {
5454

5555
return label
5656
}()
57+
58+
/// The callback after the user selects the date.
59+
private lazy var _completion: ((Date?) -> Void)? = nil
5760
}
5861

5962
public extension FilterDateCell {
63+
var datePicker: UIDatePicker {
64+
@available(iOS 13.4, *)
65+
get { _datePicker }
66+
set { _datePicker = newValue }
67+
}
68+
69+
/// The callback after the user selects the date.
70+
var completion: ((Date?) -> Void)? {
71+
@available(iOS 13.4, *)
72+
get { _completion }
73+
set { _completion = newValue }
74+
}
75+
6076
@available(iOS 13.4, *)
6177
func setDate(_ _date: Date?) {
6278
guard let date = _date, datePicker.date != date else { return }

ColaCupTests/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.0.3</string>
18+
<string>3.0.4</string>
1919
<key>CFBundleVersion</key>
20-
<string>14</string>
20+
<string>15</string>
2121
</dict>
2222
</plist>

ColaCupUITests/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.0.3</string>
18+
<string>3.0.4</string>
1919
<key>CFBundleVersion</key>
20-
<string>14</string>
20+
<string>15</string>
2121
</dict>
2222
</plist>

Podfile

+11
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,14 @@ target 'ColaCup' do
1919

2020
end
2121

22+
post_install do |installer|
23+
installer.pods_project.targets.each do |target|
24+
target.build_configurations.each do |config|
25+
26+
config.build_settings["CODE_SIGN_IDENTITY"] = ''
27+
28+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
29+
30+
end
31+
end
32+
end

Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ SPEC CHECKSUMS:
1515
JSONPreview: 41c198dce3d1ecdb6345cba19804f65fc28bb9cf
1616
RaLog: 0d795de14557834577e64979ca2b7c7915937c67
1717

18-
PODFILE CHECKSUM: 3131c9934d5b1c41216fcf4c7d7ae65408c25cce
18+
PODFILE CHECKSUM: 914f974b0d958bf0a8b0b8c5f08993521469b222
1919

20-
COCOAPODS: 1.9.3
20+
COCOAPODS: 1.11.3

push.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ release(){
3535

3636
git_message="[Release] version: $version build: $build"
3737

38-
git add . && git commit -m $git_message
38+
git add . && git commit -m "$git_message"
3939

4040
git checkout master
4141
git merge --no-ff -m 'Merge branch '$release_branch'' $release_branch

0 commit comments

Comments
 (0)