krz/libre-edit

A free and private text editor for iOS. ios privacy swift text-editor

Commit 541737c71e

541737c71ec220d276f0be7bf1092fb879f1b231

Verified · cmc

cmc <hello@cleberg.net> · 2024-01-14 02:34 UTC

Initial Commit

Layout: unified · split

LibreEdit.xcodeproj/project.pbxproj added +349
@@ -0,0 +1,349 @@
1// !$*UTF8*$!
2{
3 archiveVersion = 1;
4 classes = {
5 };
6 objectVersion = 56;
7 objects = {
8
9/* Begin PBXBuildFile section */
10 8BCA57062B537F9600DBA94B /* LibreEditApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BCA57052B537F9600DBA94B /* LibreEditApp.swift */; };
11 8BCA57082B537F9600DBA94B /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BCA57072B537F9600DBA94B /* ContentView.swift */; };
12 8BCA570A2B537F9700DBA94B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8BCA57092B537F9700DBA94B /* Assets.xcassets */; };
13 8BCA570D2B537F9700DBA94B /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8BCA570C2B537F9700DBA94B /* Preview Assets.xcassets */; };
14/* End PBXBuildFile section */
15
16/* Begin PBXFileReference section */
17 8BCA57022B537F9600DBA94B /* LibreEdit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LibreEdit.app; sourceTree = BUILT_PRODUCTS_DIR; };
18 8BCA57052B537F9600DBA94B /* LibreEditApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LibreEditApp.swift; sourceTree = "<group>"; };
19 8BCA57072B537F9600DBA94B /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
20 8BCA57092B537F9700DBA94B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
21 8BCA570C2B537F9700DBA94B /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
22/* End PBXFileReference section */
23
24/* Begin PBXFrameworksBuildPhase section */
25 8BCA56FF2B537F9600DBA94B /* Frameworks */ = {
26 isa = PBXFrameworksBuildPhase;
27 buildActionMask = 2147483647;
28 files = (
29 );
30 runOnlyForDeploymentPostprocessing = 0;
31 };
32/* End PBXFrameworksBuildPhase section */
33
34/* Begin PBXGroup section */
35 8BCA56F92B537F9600DBA94B = {
36 isa = PBXGroup;
37 children = (
38 8BCA57042B537F9600DBA94B /* LibreEdit */,
39 8BCA57032B537F9600DBA94B /* Products */,
40 );
41 sourceTree = "<group>";
42 };
43 8BCA57032B537F9600DBA94B /* Products */ = {
44 isa = PBXGroup;
45 children = (
46 8BCA57022B537F9600DBA94B /* LibreEdit.app */,
47 );
48 name = Products;
49 sourceTree = "<group>";
50 };
51 8BCA57042B537F9600DBA94B /* LibreEdit */ = {
52 isa = PBXGroup;
53 children = (
54 8BCA57052B537F9600DBA94B /* LibreEditApp.swift */,
55 8BCA57072B537F9600DBA94B /* ContentView.swift */,
56 8BCA57092B537F9700DBA94B /* Assets.xcassets */,
57 8BCA570B2B537F9700DBA94B /* Preview Content */,
58 );
59 path = LibreEdit;
60 sourceTree = "<group>";
61 };
62 8BCA570B2B537F9700DBA94B /* Preview Content */ = {
63 isa = PBXGroup;
64 children = (
65 8BCA570C2B537F9700DBA94B /* Preview Assets.xcassets */,
66 );
67 path = "Preview Content";
68 sourceTree = "<group>";
69 };
70/* End PBXGroup section */
71
72/* Begin PBXNativeTarget section */
73 8BCA57012B537F9600DBA94B /* LibreEdit */ = {
74 isa = PBXNativeTarget;
75 buildConfigurationList = 8BCA57102B537F9700DBA94B /* Build configuration list for PBXNativeTarget "LibreEdit" */;
76 buildPhases = (
77 8BCA56FE2B537F9600DBA94B /* Sources */,
78 8BCA56FF2B537F9600DBA94B /* Frameworks */,
79 8BCA57002B537F9600DBA94B /* Resources */,
80 );
81 buildRules = (
82 );
83 dependencies = (
84 );
85 name = LibreEdit;
86 productName = LibreEdit;
87 productReference = 8BCA57022B537F9600DBA94B /* LibreEdit.app */;
88 productType = "com.apple.product-type.application";
89 };
90/* End PBXNativeTarget section */
91
92/* Begin PBXProject section */
93 8BCA56FA2B537F9600DBA94B /* Project object */ = {
94 isa = PBXProject;
95 attributes = {
96 BuildIndependentTargetsInParallel = 1;
97 LastSwiftUpdateCheck = 1520;
98 LastUpgradeCheck = 1520;
99 TargetAttributes = {
100 8BCA57012B537F9600DBA94B = {
101 CreatedOnToolsVersion = 15.2;
102 };
103 };
104 };
105 buildConfigurationList = 8BCA56FD2B537F9600DBA94B /* Build configuration list for PBXProject "LibreEdit" */;
106 compatibilityVersion = "Xcode 14.0";
107 developmentRegion = en;
108 hasScannedForEncodings = 0;
109 knownRegions = (
110 en,
111 Base,
112 );
113 mainGroup = 8BCA56F92B537F9600DBA94B;
114 productRefGroup = 8BCA57032B537F9600DBA94B /* Products */;
115 projectDirPath = "";
116 projectRoot = "";
117 targets = (
118 8BCA57012B537F9600DBA94B /* LibreEdit */,
119 );
120 };
121/* End PBXProject section */
122
123/* Begin PBXResourcesBuildPhase section */
124 8BCA57002B537F9600DBA94B /* Resources */ = {
125 isa = PBXResourcesBuildPhase;
126 buildActionMask = 2147483647;
127 files = (
128 8BCA570D2B537F9700DBA94B /* Preview Assets.xcassets in Resources */,
129 8BCA570A2B537F9700DBA94B /* Assets.xcassets in Resources */,
130 );
131 runOnlyForDeploymentPostprocessing = 0;
132 };
133/* End PBXResourcesBuildPhase section */
134
135/* Begin PBXSourcesBuildPhase section */
136 8BCA56FE2B537F9600DBA94B /* Sources */ = {
137 isa = PBXSourcesBuildPhase;
138 buildActionMask = 2147483647;
139 files = (
140 8BCA57082B537F9600DBA94B /* ContentView.swift in Sources */,
141 8BCA57062B537F9600DBA94B /* LibreEditApp.swift in Sources */,
142 );
143 runOnlyForDeploymentPostprocessing = 0;
144 };
145/* End PBXSourcesBuildPhase section */
146
147/* Begin XCBuildConfiguration section */
148 8BCA570E2B537F9700DBA94B /* Debug */ = {
149 isa = XCBuildConfiguration;
150 buildSettings = {
151 ALWAYS_SEARCH_USER_PATHS = NO;
152 ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
153 CLANG_ANALYZER_NONNULL = YES;
154 CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
155 CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
156 CLANG_ENABLE_MODULES = YES;
157 CLANG_ENABLE_OBJC_ARC = YES;
158 CLANG_ENABLE_OBJC_WEAK = YES;
159 CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
160 CLANG_WARN_BOOL_CONVERSION = YES;
161 CLANG_WARN_COMMA = YES;
162 CLANG_WARN_CONSTANT_CONVERSION = YES;
163 CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
164 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
165 CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
166 CLANG_WARN_EMPTY_BODY = YES;
167 CLANG_WARN_ENUM_CONVERSION = YES;
168 CLANG_WARN_INFINITE_RECURSION = YES;
169 CLANG_WARN_INT_CONVERSION = YES;
170 CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
171 CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
172 CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
173 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
174 CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
175 CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
176 CLANG_WARN_STRICT_PROTOTYPES = YES;
177 CLANG_WARN_SUSPICIOUS_MOVE = YES;
178 CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
179 CLANG_WARN_UNREACHABLE_CODE = YES;
180 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
181 COPY_PHASE_STRIP = NO;
182 DEBUG_INFORMATION_FORMAT = dwarf;
183 ENABLE_STRICT_OBJC_MSGSEND = YES;
184 ENABLE_TESTABILITY = YES;
185 ENABLE_USER_SCRIPT_SANDBOXING = YES;
186 GCC_C_LANGUAGE_STANDARD = gnu17;
187 GCC_DYNAMIC_NO_PIC = NO;
188 GCC_NO_COMMON_BLOCKS = YES;
189 GCC_OPTIMIZATION_LEVEL = 0;
190 GCC_PREPROCESSOR_DEFINITIONS = (
191 "DEBUG=1",
192 "$(inherited)",
193 );
194 GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
195 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
196 GCC_WARN_UNDECLARED_SELECTOR = YES;
197 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
198 GCC_WARN_UNUSED_FUNCTION = YES;
199 GCC_WARN_UNUSED_VARIABLE = YES;
200 IPHONEOS_DEPLOYMENT_TARGET = 17.2;
201 LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
202 MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
203 MTL_FAST_MATH = YES;
204 ONLY_ACTIVE_ARCH = YES;
205 SDKROOT = iphoneos;
206 SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
207 SWIFT_OPTIMIZATION_LEVEL = "-Onone";
208 };
209 name = Debug;
210 };
211 8BCA570F2B537F9700DBA94B /* Release */ = {
212 isa = XCBuildConfiguration;
213 buildSettings = {
214 ALWAYS_SEARCH_USER_PATHS = NO;
215 ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
216 CLANG_ANALYZER_NONNULL = YES;
217 CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
218 CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
219 CLANG_ENABLE_MODULES = YES;
220 CLANG_ENABLE_OBJC_ARC = YES;
221 CLANG_ENABLE_OBJC_WEAK = YES;
222 CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
223 CLANG_WARN_BOOL_CONVERSION = YES;
224 CLANG_WARN_COMMA = YES;
225 CLANG_WARN_CONSTANT_CONVERSION = YES;
226 CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
227 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
228 CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
229 CLANG_WARN_EMPTY_BODY = YES;
230 CLANG_WARN_ENUM_CONVERSION = YES;
231 CLANG_WARN_INFINITE_RECURSION = YES;
232 CLANG_WARN_INT_CONVERSION = YES;
233 CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
234 CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
235 CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
236 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
237 CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
238 CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
239 CLANG_WARN_STRICT_PROTOTYPES = YES;
240 CLANG_WARN_SUSPICIOUS_MOVE = YES;
241 CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
242 CLANG_WARN_UNREACHABLE_CODE = YES;
243 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
244 COPY_PHASE_STRIP = NO;
245 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
246 ENABLE_NS_ASSERTIONS = NO;
247 ENABLE_STRICT_OBJC_MSGSEND = YES;
248 ENABLE_USER_SCRIPT_SANDBOXING = YES;
249 GCC_C_LANGUAGE_STANDARD = gnu17;
250 GCC_NO_COMMON_BLOCKS = YES;
251 GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
252 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
253 GCC_WARN_UNDECLARED_SELECTOR = YES;
254 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
255 GCC_WARN_UNUSED_FUNCTION = YES;
256 GCC_WARN_UNUSED_VARIABLE = YES;
257 IPHONEOS_DEPLOYMENT_TARGET = 17.2;
258 LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
259 MTL_ENABLE_DEBUG_INFO = NO;
260 MTL_FAST_MATH = YES;
261 SDKROOT = iphoneos;
262 SWIFT_COMPILATION_MODE = wholemodule;
263 VALIDATE_PRODUCT = YES;
264 };
265 name = Release;
266 };
267 8BCA57112B537F9700DBA94B /* Debug */ = {
268 isa = XCBuildConfiguration;
269 buildSettings = {
270 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
271 ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
272 CODE_SIGN_STYLE = Automatic;
273 CURRENT_PROJECT_VERSION = 1;
274 DEVELOPMENT_ASSET_PATHS = "\"LibreEdit/Preview Content\"";
275 DEVELOPMENT_TEAM = ZCNAX3VL9D;
276 ENABLE_PREVIEWS = YES;
277 GENERATE_INFOPLIST_FILE = YES;
278 INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
279 INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
280 INFOPLIST_KEY_UILaunchScreen_Generation = YES;
281 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
282 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
283 LD_RUNPATH_SEARCH_PATHS = (
284 "$(inherited)",
285 "@executable_path/Frameworks",
286 );
287 MARKETING_VERSION = 1.0;
288 PRODUCT_BUNDLE_IDENTIFIER = net.cleberg.LibreEdit;
289 PRODUCT_NAME = "$(TARGET_NAME)";
290 SWIFT_EMIT_LOC_STRINGS = YES;
291 SWIFT_VERSION = 5.0;
292 TARGETED_DEVICE_FAMILY = "1,2";
293 };
294 name = Debug;
295 };
296 8BCA57122B537F9700DBA94B /* Release */ = {
297 isa = XCBuildConfiguration;
298 buildSettings = {
299 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
300 ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
301 CODE_SIGN_STYLE = Automatic;
302 CURRENT_PROJECT_VERSION = 1;
303 DEVELOPMENT_ASSET_PATHS = "\"LibreEdit/Preview Content\"";
304 DEVELOPMENT_TEAM = ZCNAX3VL9D;
305 ENABLE_PREVIEWS = YES;
306 GENERATE_INFOPLIST_FILE = YES;
307 INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
308 INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
309 INFOPLIST_KEY_UILaunchScreen_Generation = YES;
310 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
311 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
312 LD_RUNPATH_SEARCH_PATHS = (
313 "$(inherited)",
314 "@executable_path/Frameworks",
315 );
316 MARKETING_VERSION = 1.0;
317 PRODUCT_BUNDLE_IDENTIFIER = net.cleberg.LibreEdit;
318 PRODUCT_NAME = "$(TARGET_NAME)";
319 SWIFT_EMIT_LOC_STRINGS = YES;
320 SWIFT_VERSION = 5.0;
321 TARGETED_DEVICE_FAMILY = "1,2";
322 };
323 name = Release;
324 };
325/* End XCBuildConfiguration section */
326
327/* Begin XCConfigurationList section */
328 8BCA56FD2B537F9600DBA94B /* Build configuration list for PBXProject "LibreEdit" */ = {
329 isa = XCConfigurationList;
330 buildConfigurations = (
331 8BCA570E2B537F9700DBA94B /* Debug */,
332 8BCA570F2B537F9700DBA94B /* Release */,
333 );
334 defaultConfigurationIsVisible = 0;
335 defaultConfigurationName = Release;
336 };
337 8BCA57102B537F9700DBA94B /* Build configuration list for PBXNativeTarget "LibreEdit" */ = {
338 isa = XCConfigurationList;
339 buildConfigurations = (
340 8BCA57112B537F9700DBA94B /* Debug */,
341 8BCA57122B537F9700DBA94B /* Release */,
342 );
343 defaultConfigurationIsVisible = 0;
344 defaultConfigurationName = Release;
345 };
346/* End XCConfigurationList section */
347 };
348 rootObject = 8BCA56FA2B537F9600DBA94B /* Project object */;
349}
LibreEdit.xcodeproj/project.xcworkspace/contents.xcworkspacedata added +7
@@ -0,0 +1,7 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<Workspace
3 version = "1.0">
4 <FileRef
5 location = "self:">
6 </FileRef>
7</Workspace>
LibreEdit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist added +8
@@ -0,0 +1,8 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3<plist version="1.0">
4<dict>
5 <key>IDEDidComputeMac32BitWarning</key>
6 <true/>
7</dict>
8</plist>
LibreEdit.xcodeproj/xcuserdata/cmc.xcuserdatad/xcschemes/xcschememanagement.plist added +14
@@ -0,0 +1,14 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3<plist version="1.0">
4<dict>
5 <key>SchemeUserState</key>
6 <dict>
7 <key>LibreEdit.xcscheme_^#shared#^_</key>
8 <dict>
9 <key>orderHint</key>
10 <integer>0</integer>
11 </dict>
12 </dict>
13</dict>
14</plist>
LibreEdit/Assets.xcassets/AccentColor.colorset/Contents.json added +11
@@ -0,0 +1,11 @@
1{
2 "colors" : [
3 {
4 "idiom" : "universal"
5 }
6 ],
7 "info" : {
8 "author" : "xcode",
9 "version" : 1
10 }
11}
LibreEdit/Assets.xcassets/AppIcon.appiconset/Contents.json added +13
@@ -0,0 +1,13 @@
1{
2 "images" : [
3 {
4 "idiom" : "universal",
5 "platform" : "ios",
6 "size" : "1024x1024"
7 }
8 ],
9 "info" : {
10 "author" : "xcode",
11 "version" : 1
12 }
13}
LibreEdit/Assets.xcassets/Contents.json added +6
@@ -0,0 +1,6 @@
1{
2 "info" : {
3 "author" : "xcode",
4 "version" : 1
5 }
6}
LibreEdit/ContentView.swift added +24
@@ -0,0 +1,24 @@
1//
2// ContentView.swift
3// LibreEdit
4//
5// Created by Christian Cleberg on 2024-01-13.
6//
7
8import SwiftUI
9
10struct ContentView: View {
11 var body: some View {
12 VStack {
13 Image(systemName: "globe")
14 .imageScale(.large)
15 .foregroundStyle(.tint)
16 Text("Hello, world!")
17 }
18 .padding()
19 }
20}
21
22#Preview {
23 ContentView()
24}
LibreEdit/LibreEditApp.swift added +17
@@ -0,0 +1,17 @@
1//
2// LibreEditApp.swift
3// LibreEdit
4//
5// Created by Christian Cleberg on 2024-01-13.
6//
7
8import SwiftUI
9
10@main
11struct LibreEditApp: App {
12 var body: some Scene {
13 WindowGroup {
14 ContentView()
15 }
16 }
17}
LibreEdit/Preview Content/Preview Assets.xcassets/Contents.json added +6
@@ -0,0 +1,6 @@
1{
2 "info" : {
3 "author" : "xcode",
4 "version" : 1
5 }
6}