Skip to content

Commit f20f9dc

Browse files
Update CodeEditTextView to 0.6.2 (#1251)
* Updated CodeEditTextView to 0.6.2 * Removed the now unused Preferences package * Fixed tests * Fixed tests by removing reference to Preferences package
1 parent 4624ede commit f20f9dc

File tree

6 files changed

+13
-41
lines changed

6 files changed

+13
-41
lines changed

CodeEdit.xcodeproj/project.pbxproj

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@
247247
58F2EB0D292FB2B0004A9BDE /* ThemeSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58F2EAE0292FB2B0004A9BDE /* ThemeSettings.swift */; };
248248
58F2EB0E292FB2B0004A9BDE /* SoftwareUpdater.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58F2EAE1292FB2B0004A9BDE /* SoftwareUpdater.swift */; };
249249
58F2EB17292FB74D004A9BDE /* CodeEditTextView in Frameworks */ = {isa = PBXBuildFile; productRef = 58F2EB16292FB74D004A9BDE /* CodeEditTextView */; };
250-
58F2EB1A292FB91C004A9BDE /* Preferences in Frameworks */ = {isa = PBXBuildFile; productRef = 58F2EB19292FB91C004A9BDE /* Preferences */; };
251250
58F2EB1E292FB954004A9BDE /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = 58F2EB1D292FB954004A9BDE /* Sparkle */; };
252251
58FD7608291EA1CB0051D6E4 /* CommandPaletteViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58FD7605291EA1CB0051D6E4 /* CommandPaletteViewModel.swift */; };
253252
58FD7609291EA1CB0051D6E4 /* CommandPaletteView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58FD7607291EA1CB0051D6E4 /* CommandPaletteView.swift */; };
@@ -782,7 +781,6 @@
782781
isa = PBXFrameworksBuildPhase;
783782
buildActionMask = 2147483647;
784783
files = (
785-
58F2EB1A292FB91C004A9BDE /* Preferences in Frameworks */,
786784
58F2EB17292FB74D004A9BDE /* CodeEditTextView in Frameworks */,
787785
58F2EB1E292FB954004A9BDE /* Sparkle in Frameworks */,
788786
6C147C4529A329350089B630 /* OrderedCollections in Frameworks */,
@@ -2321,7 +2319,6 @@
23212319
2816F593280CF50500DD548B /* CodeEditSymbols */,
23222320
58798289292ED15F0085B254 /* SwiftTerm */,
23232321
58F2EB16292FB74D004A9BDE /* CodeEditTextView */,
2324-
58F2EB19292FB91C004A9BDE /* Preferences */,
23252322
58F2EB1D292FB954004A9BDE /* Sparkle */,
23262323
6C147C4429A329350089B630 /* OrderedCollections */,
23272324
6C81916A29B41DD300B75C92 /* DequeModule */,
@@ -2413,7 +2410,6 @@
24132410
287136B1292A407E00E9F5F4 /* XCRemoteSwiftPackageReference "SwiftLintPlugin" */,
24142411
58798288292ED15F0085B254 /* XCRemoteSwiftPackageReference "SwiftTerm" */,
24152412
58F2EB15292FB74D004A9BDE /* XCRemoteSwiftPackageReference "CodeEditTextView" */,
2416-
58F2EB18292FB91C004A9BDE /* XCRemoteSwiftPackageReference "Preferences" */,
24172413
58F2EB1C292FB954004A9BDE /* XCRemoteSwiftPackageReference "Sparkle" */,
24182414
583E529A29361BAB001AB554 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */,
24192415
6C147C4329A329350089B630 /* XCRemoteSwiftPackageReference "swift-collections" */,
@@ -3757,15 +3753,7 @@
37573753
repositoryURL = "https://github.com/CodeEditApp/CodeEditTextView.git";
37583754
requirement = {
37593755
kind = exactVersion;
3760-
version = 0.6.1;
3761-
};
3762-
};
3763-
58F2EB18292FB91C004A9BDE /* XCRemoteSwiftPackageReference "Preferences" */ = {
3764-
isa = XCRemoteSwiftPackageReference;
3765-
repositoryURL = "https://github.com/sindresorhus/Preferences.git";
3766-
requirement = {
3767-
kind = exactVersion;
3768-
version = 2.6.0;
3756+
version = 0.6.2;
37693757
};
37703758
};
37713759
58F2EB1C292FB954004A9BDE /* XCRemoteSwiftPackageReference "Sparkle" */ = {
@@ -3820,11 +3808,6 @@
38203808
package = 58F2EB15292FB74D004A9BDE /* XCRemoteSwiftPackageReference "CodeEditTextView" */;
38213809
productName = CodeEditTextView;
38223810
};
3823-
58F2EB19292FB91C004A9BDE /* Preferences */ = {
3824-
isa = XCSwiftPackageProductDependency;
3825-
package = 58F2EB18292FB91C004A9BDE /* XCRemoteSwiftPackageReference "Preferences" */;
3826-
productName = Preferences;
3827-
};
38283811
58F2EB1D292FB954004A9BDE /* Sparkle */ = {
38293812
isa = XCSwiftPackageProductDependency;
38303813
package = 58F2EB1C292FB954004A9BDE /* XCRemoteSwiftPackageReference "Sparkle" */;

CodeEdit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,8 @@
2323
"kind" : "remoteSourceControl",
2424
"location" : "https://github.com/CodeEditApp/CodeEditTextView.git",
2525
"state" : {
26-
"revision" : "cfceb13ef453a9cdf8d587d5a1fe140d37077f8e",
27-
"version" : "0.6.1"
28-
}
29-
},
30-
{
31-
"identity" : "preferences",
32-
"kind" : "remoteSourceControl",
33-
"location" : "https://github.com/sindresorhus/Preferences.git",
34-
"state" : {
35-
"revision" : "2651cd144615009242c994b087508fef99e9275c",
36-
"version" : "2.6.0"
26+
"revision" : "045bd359ef9c4addf2a5bf51e22ba660d69c5d10",
27+
"version" : "0.6.2"
3728
}
3829
},
3930
{
@@ -59,8 +50,8 @@
5950
"kind" : "remoteSourceControl",
6051
"location" : "https://github.com/krzyzanowskim/STTextView.git",
6152
"state" : {
62-
"revision" : "d6bec568df43028352c4062215fc3b5fab07c2d2",
63-
"version" : "0.4.3"
53+
"revision" : "77a37aed80277467990c2c8d224ed951899446f0",
54+
"version" : "0.6.0"
6455
}
6556
},
6657
{

CodeEdit/AppDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
//
2-
// CodeEditorAppDelegate.swift
2+
// AppDelegate.swift
33
// CodeEdit
44
//
55
// Created by Pavel Kasila on 12.03.22.
66
//
77

88
import SwiftUI
9-
import Preferences
109
import CodeEditSymbols
1110

1211
final class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {

CodeEdit/Features/CodeFile/CodeFileView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ struct CodeFileView: View {
7474
CodeEditTextView(
7575
$codeFile.content,
7676
language: getLanguage(),
77-
theme: $selectedTheme.editor.editorTheme,
78-
font: $font,
79-
tabWidth: $defaultTabWidth,
80-
lineHeight: $lineHeightMultiple,
81-
wrapLines: $wrapLinesToEditorWidth,
77+
theme: selectedTheme.editor.editorTheme,
78+
font: font,
79+
tabWidth: defaultTabWidth,
80+
lineHeight: lineHeightMultiple,
81+
wrapLines: wrapLinesToEditorWidth,
8282
cursorPosition: $codeFile.cursorPosition,
8383
useThemeBackground: useThemeBackground,
8484
contentInsets: edgeInsets.nsEdgeInsets,

CodeEdit/Features/Settings/Pages/AccountsSettings/AccountsSettingsDetailsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import SwiftUI
99

1010
struct AccountsSettingsDetailsView: View {
1111
@AppSettings(\.accounts.sourceControlAccounts.sshKey) var sshKey
12+
@AppSettings(\.accounts.sourceControlAccounts.gitAccounts) var gitAccounts
1213

1314
@Binding var account: SourceControlAccount
1415

@@ -83,9 +84,8 @@ struct AccountsSettingsDetailsView: View {
8384
}
8485

8586
private func handleAccountDelete() {
86-
let gitAccounts = settings.accounts.sourceControlAccounts.gitAccounts
8787
// Delete account by finding the position of the account and remove by position
8888
// We can abort if it is `nil` because account should exist
89-
settings.accounts.sourceControlAccounts.gitAccounts.remove(at: gitAccounts.firstIndex(of: account)!)
89+
gitAccounts.remove(at: gitAccounts.firstIndex(of: account)!)
9090
}
9191
}

CodeEdit/Features/Settings/Pages/ThemeSettings/ThemeSettingsView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import SwiftUI
9-
import Preferences
109

1110
/// A view that implements the `Theme` preference section
1211
struct ThemeSettingsView: View {

0 commit comments

Comments
 (0)