Skip to content

Commit 259c8a5

Browse files
committed
Merge branch release/2.3.3
2 parents ee8dca2 + feb875e commit 259c8a5

11 files changed

Lines changed: 23 additions & 39 deletions

File tree

Demo/JSONPreviewDemo.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@
572572
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
573573
CODE_SIGN_STYLE = Automatic;
574574
CURRENT_PROJECT_VERSION = 0;
575-
DEVELOPMENT_TEAM = 5C9JW4S9DE;
575+
DEVELOPMENT_TEAM = NDHX69DQ5R;
576576
GENERATE_INFOPLIST_FILE = YES;
577577
INFOPLIST_FILE = JSONPreviewDemo/Other/Info.plist;
578578
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -585,7 +585,7 @@
585585
"$(inherited)",
586586
"@executable_path/Frameworks",
587587
);
588-
MARKETING_VERSION = 2.3.2;
588+
MARKETING_VERSION = 2.3.3;
589589
PRODUCT_BUNDLE_IDENTIFIER = com.rakuyo.JSONPreviewDemo;
590590
PRODUCT_NAME = "$(TARGET_NAME)";
591591
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
@@ -606,7 +606,7 @@
606606
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
607607
CODE_SIGN_STYLE = Automatic;
608608
CURRENT_PROJECT_VERSION = 0;
609-
DEVELOPMENT_TEAM = 5C9JW4S9DE;
609+
DEVELOPMENT_TEAM = NDHX69DQ5R;
610610
GENERATE_INFOPLIST_FILE = YES;
611611
INFOPLIST_FILE = JSONPreviewDemo/Other/Info.plist;
612612
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -619,7 +619,7 @@
619619
"$(inherited)",
620620
"@executable_path/Frameworks",
621621
);
622-
MARKETING_VERSION = 2.3.2;
622+
MARKETING_VERSION = 2.3.3;
623623
PRODUCT_BUNDLE_IDENTIFIER = com.rakuyo.JSONPreviewDemo;
624624
PRODUCT_NAME = "$(TARGET_NAME)";
625625
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";

JSONPreview.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Pod::Spec.new do |s|
55

66
s.name = 'JSONPreview'
77

8-
s.version = '2.3.2'
8+
s.version = '2.3.3'
99

1010
s.summary = '🎨 A view that can be highlighted after formatting JSON.'
1111

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
path: "Sources",
2121
resources: [
2222
.copy("PrivacyInfo.xcprivacy"),
23-
.process("./Resources/Assets.xcassets")
23+
.process("./Resources/Assets.xcassets"),
2424
]
2525
),
2626
.testTarget(
@@ -32,6 +32,6 @@ let package = Package(
3232
)
3333

3434
#if swift(>=5.6)
35-
// Add the Rakuyo Swift formatting plugin if possible
36-
package.dependencies.append(.package(url: "https://github.com/RakuyoKit/swift.git", from: "1.3.1"))
35+
// Add the Swift formatting plugin if possible
36+
package.dependencies.append(.package(url: "https://github.com/RakuyoKit/swift.git", branch: "release/1.4.0"))
3737
#endif

Package@swift-5.9.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ let package = Package(
2828
name: "JSONPreviewTests",
2929
dependencies: ["JSONPreview"],
3030
path: "Tests"
31-
)
31+
),
3232
]
3333
)
3434

35-
// Add the Rakuyo Swift formatting plugin
36-
package.dependencies.append(.package(url: "https://github.com/RakuyoKit/swift.git", from: "1.3.1"))
35+
// Add the Swift formatting plugin
36+
package.dependencies.append(.package(url: "https://github.com/RakuyoKit/swift.git", branch: "release/1.4.0"))

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ pod 'JSONPreview'
3232

3333
- Select File > Swift Packages > Add Package Dependency
3434
- Add https://github.com/RakuyoKit/JSONPreview.git
35-
- Select "Up to Next Major" with "2.3.2"
35+
- Select "Up to Next Major" with "2.3.3"
3636

3737
Or add the following content to your `Package.swift` file:
3838

3939
```swift
4040
dependencies: [
41-
.package(url: "https://github.com/RakuyoKit/JSONPreview.git", from: "2.3.2")
41+
.package(url: "https://github.com/RakuyoKit/JSONPreview.git", from: "2.3.3")
4242
]
4343
```
4444

README_CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ pod 'JSONPreview'
3232

3333
- 依次选择 File > Swift Packages > Add Package Dependency
3434
- 输入 https://github.com/RakuyoKit/JSONPreview.git
35-
- 选择 "Up to Next Major" 并填入 "2.3.2"
35+
- 选择 "Up to Next Major" 并填入 "2.3.3"
3636

3737
或者将下面的内容添加到 `Package.swift` 文件中:
3838

3939
```swift
4040
dependencies: [
41-
.package(url: "https://github.com/RakuyoKit/JSONPreview.git", from: "2.3.2")
41+
.package(url: "https://github.com/RakuyoKit/JSONPreview.git", from: "2.3.3")
4242
]
4343
```
4444

Sources/Entity/JSONObjectKey.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Foundation
55
/// Used to enrich the information of the key of the object in json.
66
public struct JSONObjectKey {
77
/// Used to mark an incorrect key.
8-
public static let wrong: Self = .init(key: "", isWrong: true)
8+
public static let wrong = Self(key: "", isWrong: true)
99

1010
/// The object key.
1111
///

Sources/Entity/JSONSlice.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Foundation
1414
public struct JSONSlice {
1515
/// The current display state of the slice
1616
public enum State: Hashable {
17-
public static let `default`: Self = .expand
17+
public static let `default` = Self.expand
1818

1919
case expand, folded
2020
}

Sources/Tools/String+Range.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,6 @@ extension String {
3636
return results
3737
}
3838

39-
private func findAllRanges(of searchString: Self) -> [Range<Self.Index>] {
40-
var ranges: [Range<Self.Index>] = []
41-
var searchStartIndex = startIndex
42-
while
43-
let range = range(
44-
of: searchString,
45-
options: .literal,
46-
range: searchStartIndex ..< endIndex
47-
)
48-
{
49-
ranges.append(range)
50-
searchStartIndex = range.upperBound
51-
}
52-
return ranges
53-
}
54-
5539
private func nsRange(from range: Range<Self.Index>) -> NSRange? {
5640
guard
5741
let utf16LowerBound = range.lowerBound.samePosition(in: utf16),

0 commit comments

Comments
 (0)