3 Commits

Author SHA1 Message Date
Drew Olbrich a9862768c9 Release 1.6.6 2023-03-26 16:54:45 -07:00
Drew Olbrich 638bdd85f7 Disable Swift package test targets 2023-03-26 16:52:24 -07:00
Drew Olbrich 723ec56928 Make ContentView public 2023-03-26 16:23:48 -07:00
6 changed files with 53 additions and 39 deletions
@@ -20,6 +20,20 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Common"
BuildableName = "Common"
BlueprintName = "Common"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
+29 -29
View File
@@ -19,35 +19,35 @@ let package = Package(
.target(
name: "ScrollingContentViewController",
dependencies: []
),
.target(
name: "Common",
dependencies: ["ScrollingContentViewController"],
path: "Tests/Common"
),
.testTarget(
name: "StoryboardTests",
dependencies: ["ScrollingContentViewController", "Common"]
),
.testTarget(
name: "CodeTests",
dependencies: ["ScrollingContentViewController", "Common"]
),
.testTarget(
name: "ManagerTests",
dependencies: ["ScrollingContentViewController", "Common"]
),
.testTarget(
name: "IntrinsicSizeTests",
dependencies: ["ScrollingContentViewController"]
),
.testTarget(
name: "KeyboardTests",
dependencies: ["ScrollingContentViewController"]
),
.testTarget(
name: "InsetContentViewKeyboardTests",
dependencies: ["ScrollingContentViewController"]
)
// .target(
// name: "Common",
// dependencies: ["ScrollingContentViewController"],
// path: "Tests/Common"
// ),
// .testTarget(
// name: "StoryboardTests",
// dependencies: ["ScrollingContentViewController", "Common"]
// ),
// .testTarget(
// name: "CodeTests",
// dependencies: ["ScrollingContentViewController", "Common"]
// ),
// .testTarget(
// name: "ManagerTests",
// dependencies: ["ScrollingContentViewController", "Common"]
// ),
// .testTarget(
// name: "IntrinsicSizeTests",
// dependencies: ["ScrollingContentViewController"]
// ),
// .testTarget(
// name: "KeyboardTests",
// dependencies: ["ScrollingContentViewController"]
// ),
// .testTarget(
// name: "InsetContentViewKeyboardTests",
// dependencies: ["ScrollingContentViewController"]
// )
]
)
+4 -4
View File
@@ -1,6 +1,6 @@
# Release Steps
1. Determine the new release number, like `1.6.5` and search and replace the previous version number with it in this file.
1. Determine the new release number, like `1.6.6` and search and replace the previous version number with it in this file.
2. Verify that the tests pass:
```
@@ -23,13 +23,13 @@ pod lib lint
7. Commit the updated release number and Cocopods spec file:
```
git add -A && git commit -m "Release 1.6.5"
git add -A && git commit -m "Release 1.6.6"
git push
```
8. Create a tag for the new release. For consistency, **do not** prefix tags with 'v'.
```
git tag '1.6.5'
git tag '1.6.6'
git push --tags
```
@@ -46,6 +46,6 @@ pod trunk register drew@retroactivefiasco.com 'Drew Olbrich' --description='MacB
10. Draft a new release on GitHub at https://github.com/drewolbrich/ScrollingContentViewController/releases
11. For the new release, use the release number 1.6.5 as the title and prefix each item in the description with bullets, indicated by '*'.
11. For the new release, use the release number 1.6.6 as the title and prefix each item in the description with bullets, indicated by '*'.
12. Leave **Set as the latest release** checked and click **Publish**.
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ScrollingContentViewController'
s.version = '1.6.5'
s.version = '1.6.6'
s.summary = 'A Swift library that simplifies making a view controller\'s view scrollable'
s.description = <<-DESC
+1 -1
View File
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.6.5</string>
<string>1.6.6</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
+4 -4
View File
@@ -10,15 +10,15 @@
import UIKit
/// A view assigned `contentView` property in StoryboardTests.storyboard.
class ContentView: UIView {
/// A content view used by `StoryboardTests`, `CodeTests`, and `ManagerTests`.
public class ContentView: UIView {
/// A constraint that determines the view's width.
var widthConstraint: NSLayoutConstraint!
public var widthConstraint: NSLayoutConstraint!
/// A constraint that determine the view's height. This constraint's constant is
/// manipulated externally to test the behavior of views of varying heights.
var heightConstraint: NSLayoutConstraint!
public var heightConstraint: NSLayoutConstraint!
override init(frame: CGRect) {
super.init(frame: frame)