Compare commits
No commits in common. "bcfb41917ac0d28378fdb332d558bb15416ecf2d" and "6ae0e7d084058d7df14327cabc5745dcdbc5de0b" have entirely different histories.
bcfb41917a
...
6ae0e7d084
2
.flake8
2
.flake8
@ -1,6 +1,6 @@
|
||||
[flake8]
|
||||
exclude = .git,__pycache__,.venv
|
||||
per-file-ignores = __init__.py:F401, tests/test_ai.py:E501
|
||||
per-file-ignores = __init__.py:F401
|
||||
max-line-length = 140
|
||||
max-complexity = 10
|
||||
select = B,C,E,F,W,T4,B9
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: 'v1.1.1'
|
||||
hooks:
|
||||
- id: mypy
|
||||
args: [--config-file=mypy.ini, --install-types, --non-interactive]
|
||||
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 6.0.0
|
||||
hooks:
|
||||
- id: flake8
|
||||
@ -1,687 +0,0 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 56;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
4F50EF442A49CE31009BD94E /* MarkdownView in Frameworks */ = {isa = PBXBuildFile; productRef = 4F50EF432A49CE31009BD94E /* MarkdownView */; };
|
||||
4F50EF472A49D012009BD94E /* Highlightr in Frameworks */ = {isa = PBXBuildFile; productRef = 4F50EF462A49D012009BD94E /* Highlightr */; };
|
||||
4F772B052A4706F600D3266B /* ChatMasterMindApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F772B042A4706F600D3266B /* ChatMasterMindApp.swift */; };
|
||||
4F772B072A4706F600D3266B /* ChatData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F772B062A4706F600D3266B /* ChatData.swift */; };
|
||||
4F772B092A4706F600D3266B /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F772B082A4706F600D3266B /* ContentView.swift */; };
|
||||
4F772B0B2A4706F800D3266B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4F772B0A2A4706F800D3266B /* Assets.xcassets */; };
|
||||
4F772B0F2A4706F800D3266B /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4F772B0E2A4706F800D3266B /* Preview Assets.xcassets */; };
|
||||
4F772B1A2A4706F900D3266B /* ChatMasterMindTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F772B192A4706F900D3266B /* ChatMasterMindTests.swift */; };
|
||||
4F772B242A4706F900D3266B /* ChatMasterMindUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F772B232A4706F900D3266B /* ChatMasterMindUITests.swift */; };
|
||||
4F772B262A4706F900D3266B /* ChatMasterMindUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F772B252A4706F900D3266B /* ChatMasterMindUITestsLaunchTests.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
4F772B162A4706F900D3266B /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 4F772AF92A4706F600D3266B /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 4F772B002A4706F600D3266B;
|
||||
remoteInfo = ChatMasterMind;
|
||||
};
|
||||
4F772B202A4706F900D3266B /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 4F772AF92A4706F600D3266B /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 4F772B002A4706F600D3266B;
|
||||
remoteInfo = ChatMasterMind;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
4F772B012A4706F600D3266B /* ChatMasterMind.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ChatMasterMind.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
4F772B042A4706F600D3266B /* ChatMasterMindApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatMasterMindApp.swift; sourceTree = "<group>"; };
|
||||
4F772B062A4706F600D3266B /* ChatData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatData.swift; sourceTree = "<group>"; };
|
||||
4F772B082A4706F600D3266B /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
|
||||
4F772B0A2A4706F800D3266B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
4F772B0C2A4706F800D3266B /* ChatMasterMind.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ChatMasterMind.entitlements; sourceTree = "<group>"; };
|
||||
4F772B0E2A4706F800D3266B /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
|
||||
4F772B102A4706F800D3266B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
4F772B152A4706F900D3266B /* ChatMasterMindTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ChatMasterMindTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
4F772B192A4706F900D3266B /* ChatMasterMindTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatMasterMindTests.swift; sourceTree = "<group>"; };
|
||||
4F772B1F2A4706F900D3266B /* ChatMasterMindUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ChatMasterMindUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
4F772B232A4706F900D3266B /* ChatMasterMindUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatMasterMindUITests.swift; sourceTree = "<group>"; };
|
||||
4F772B252A4706F900D3266B /* ChatMasterMindUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatMasterMindUITestsLaunchTests.swift; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
4F772AFE2A4706F600D3266B /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
4F50EF442A49CE31009BD94E /* MarkdownView in Frameworks */,
|
||||
4F50EF472A49D012009BD94E /* Highlightr in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
4F772B122A4706F900D3266B /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
4F772B1C2A4706F900D3266B /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
4F772AF82A4706F600D3266B = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
4F772B032A4706F600D3266B /* ChatMasterMind */,
|
||||
4F772B182A4706F900D3266B /* ChatMasterMindTests */,
|
||||
4F772B222A4706F900D3266B /* ChatMasterMindUITests */,
|
||||
4F772B022A4706F600D3266B /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
4F772B022A4706F600D3266B /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
4F772B012A4706F600D3266B /* ChatMasterMind.app */,
|
||||
4F772B152A4706F900D3266B /* ChatMasterMindTests.xctest */,
|
||||
4F772B1F2A4706F900D3266B /* ChatMasterMindUITests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
4F772B032A4706F600D3266B /* ChatMasterMind */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
4F772B042A4706F600D3266B /* ChatMasterMindApp.swift */,
|
||||
4F772B062A4706F600D3266B /* ChatData.swift */,
|
||||
4F772B082A4706F600D3266B /* ContentView.swift */,
|
||||
4F772B0A2A4706F800D3266B /* Assets.xcassets */,
|
||||
4F772B0C2A4706F800D3266B /* ChatMasterMind.entitlements */,
|
||||
4F772B102A4706F800D3266B /* Info.plist */,
|
||||
4F772B0D2A4706F800D3266B /* Preview Content */,
|
||||
);
|
||||
path = ChatMasterMind;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
4F772B0D2A4706F800D3266B /* Preview Content */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
4F772B0E2A4706F800D3266B /* Preview Assets.xcassets */,
|
||||
);
|
||||
path = "Preview Content";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
4F772B182A4706F900D3266B /* ChatMasterMindTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
4F772B192A4706F900D3266B /* ChatMasterMindTests.swift */,
|
||||
);
|
||||
path = ChatMasterMindTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
4F772B222A4706F900D3266B /* ChatMasterMindUITests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
4F772B232A4706F900D3266B /* ChatMasterMindUITests.swift */,
|
||||
4F772B252A4706F900D3266B /* ChatMasterMindUITestsLaunchTests.swift */,
|
||||
);
|
||||
path = ChatMasterMindUITests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
4F772B002A4706F600D3266B /* ChatMasterMind */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 4F772B292A4706F900D3266B /* Build configuration list for PBXNativeTarget "ChatMasterMind" */;
|
||||
buildPhases = (
|
||||
4F772AFD2A4706F600D3266B /* Sources */,
|
||||
4F772AFE2A4706F600D3266B /* Frameworks */,
|
||||
4F772AFF2A4706F600D3266B /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = ChatMasterMind;
|
||||
packageProductDependencies = (
|
||||
4F50EF432A49CE31009BD94E /* MarkdownView */,
|
||||
4F50EF462A49D012009BD94E /* Highlightr */,
|
||||
);
|
||||
productName = ChatMasterMind;
|
||||
productReference = 4F772B012A4706F600D3266B /* ChatMasterMind.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
4F772B142A4706F900D3266B /* ChatMasterMindTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 4F772B2C2A4706F900D3266B /* Build configuration list for PBXNativeTarget "ChatMasterMindTests" */;
|
||||
buildPhases = (
|
||||
4F772B112A4706F900D3266B /* Sources */,
|
||||
4F772B122A4706F900D3266B /* Frameworks */,
|
||||
4F772B132A4706F900D3266B /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
4F772B172A4706F900D3266B /* PBXTargetDependency */,
|
||||
);
|
||||
name = ChatMasterMindTests;
|
||||
productName = ChatMasterMindTests;
|
||||
productReference = 4F772B152A4706F900D3266B /* ChatMasterMindTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
4F772B1E2A4706F900D3266B /* ChatMasterMindUITests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 4F772B2F2A4706F900D3266B /* Build configuration list for PBXNativeTarget "ChatMasterMindUITests" */;
|
||||
buildPhases = (
|
||||
4F772B1B2A4706F900D3266B /* Sources */,
|
||||
4F772B1C2A4706F900D3266B /* Frameworks */,
|
||||
4F772B1D2A4706F900D3266B /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
4F772B212A4706F900D3266B /* PBXTargetDependency */,
|
||||
);
|
||||
name = ChatMasterMindUITests;
|
||||
productName = ChatMasterMindUITests;
|
||||
productReference = 4F772B1F2A4706F900D3266B /* ChatMasterMindUITests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.ui-testing";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
4F772AF92A4706F600D3266B /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
BuildIndependentTargetsInParallel = 1;
|
||||
LastSwiftUpdateCheck = 1500;
|
||||
LastUpgradeCheck = 1500;
|
||||
TargetAttributes = {
|
||||
4F772B002A4706F600D3266B = {
|
||||
CreatedOnToolsVersion = 15.0;
|
||||
};
|
||||
4F772B142A4706F900D3266B = {
|
||||
CreatedOnToolsVersion = 15.0;
|
||||
TestTargetID = 4F772B002A4706F600D3266B;
|
||||
};
|
||||
4F772B1E2A4706F900D3266B = {
|
||||
CreatedOnToolsVersion = 15.0;
|
||||
TestTargetID = 4F772B002A4706F600D3266B;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 4F772AFC2A4706F600D3266B /* Build configuration list for PBXProject "ChatMasterMind" */;
|
||||
compatibilityVersion = "Xcode 14.0";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = 4F772AF82A4706F600D3266B;
|
||||
packageReferences = (
|
||||
4F50EF3F2A49CA5E009BD94E /* XCRemoteSwiftPackageReference "Down" */,
|
||||
4F50EF422A49CE31009BD94E /* XCRemoteSwiftPackageReference "MarkdownView" */,
|
||||
4F50EF452A49D012009BD94E /* XCRemoteSwiftPackageReference "Highlightr" */,
|
||||
);
|
||||
productRefGroup = 4F772B022A4706F600D3266B /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
4F772B002A4706F600D3266B /* ChatMasterMind */,
|
||||
4F772B142A4706F900D3266B /* ChatMasterMindTests */,
|
||||
4F772B1E2A4706F900D3266B /* ChatMasterMindUITests */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
4F772AFF2A4706F600D3266B /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
4F772B0F2A4706F800D3266B /* Preview Assets.xcassets in Resources */,
|
||||
4F772B0B2A4706F800D3266B /* Assets.xcassets in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
4F772B132A4706F900D3266B /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
4F772B1D2A4706F900D3266B /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
4F772AFD2A4706F600D3266B /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
4F772B072A4706F600D3266B /* ChatData.swift in Sources */,
|
||||
4F772B052A4706F600D3266B /* ChatMasterMindApp.swift in Sources */,
|
||||
4F772B092A4706F600D3266B /* ContentView.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
4F772B112A4706F900D3266B /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
4F772B1A2A4706F900D3266B /* ChatMasterMindTests.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
4F772B1B2A4706F900D3266B /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
4F772B262A4706F900D3266B /* ChatMasterMindUITestsLaunchTests.swift in Sources */,
|
||||
4F772B242A4706F900D3266B /* ChatMasterMindUITests.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXTargetDependency section */
|
||||
4F772B172A4706F900D3266B /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 4F772B002A4706F600D3266B /* ChatMasterMind */;
|
||||
targetProxy = 4F772B162A4706F900D3266B /* PBXContainerItemProxy */;
|
||||
};
|
||||
4F772B212A4706F900D3266B /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 4F772B002A4706F600D3266B /* ChatMasterMind */;
|
||||
targetProxy = 4F772B202A4706F900D3266B /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
4F772B272A4706F900D3266B /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||
MTL_FAST_MATH = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
4F772B282A4706F900D3266B /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
MTL_FAST_MATH = YES;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
4F772B2A2A4706F900D3266B /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
CODE_SIGN_ENTITLEMENTS = ChatMasterMind/ChatMasterMind.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"ChatMasterMind/Preview Content\"";
|
||||
DEVELOPMENT_TEAM = 8KC3NAN2CJ;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_PREVIEWS = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
INFOPLIST_FILE = ChatMasterMind/Info.plist;
|
||||
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
|
||||
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
|
||||
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
|
||||
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES;
|
||||
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES;
|
||||
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
|
||||
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault;
|
||||
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
|
||||
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = no.fjerkroa.ChatMasterMind;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = auto;
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||
SUPPORTS_MACCATALYST = YES;
|
||||
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2,6";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
4F772B2B2A4706F900D3266B /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
CODE_SIGN_ENTITLEMENTS = ChatMasterMind/ChatMasterMind.entitlements;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"ChatMasterMind/Preview Content\"";
|
||||
DEVELOPMENT_TEAM = 8KC3NAN2CJ;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_PREVIEWS = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
INFOPLIST_FILE = ChatMasterMind/Info.plist;
|
||||
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
|
||||
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
|
||||
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
|
||||
"INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES;
|
||||
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES;
|
||||
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
|
||||
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault;
|
||||
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
|
||||
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = no.fjerkroa.ChatMasterMind;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = auto;
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||
SUPPORTS_MACCATALYST = YES;
|
||||
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2,6";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
4F772B2D2A4706F900D3266B /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_TEAM = 8KC3NAN2CJ;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = no.fjerkroa.ChatMasterMindTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = auto;
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
|
||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ChatMasterMind.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ChatMasterMind";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
4F772B2E2A4706F900D3266B /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_TEAM = 8KC3NAN2CJ;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = no.fjerkroa.ChatMasterMindTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = auto;
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
|
||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ChatMasterMind.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ChatMasterMind";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
4F772B302A4706F900D3266B /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_TEAM = 8KC3NAN2CJ;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = no.fjerkroa.ChatMasterMindUITests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = auto;
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
|
||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_TARGET_NAME = ChatMasterMind;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
4F772B312A4706F900D3266B /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_TEAM = 8KC3NAN2CJ;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
||||
MACOSX_DEPLOYMENT_TARGET = 14.0;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = no.fjerkroa.ChatMasterMindUITests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = auto;
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
|
||||
SWIFT_EMIT_LOC_STRINGS = NO;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_TARGET_NAME = ChatMasterMind;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
4F772AFC2A4706F600D3266B /* Build configuration list for PBXProject "ChatMasterMind" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
4F772B272A4706F900D3266B /* Debug */,
|
||||
4F772B282A4706F900D3266B /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
4F772B292A4706F900D3266B /* Build configuration list for PBXNativeTarget "ChatMasterMind" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
4F772B2A2A4706F900D3266B /* Debug */,
|
||||
4F772B2B2A4706F900D3266B /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
4F772B2C2A4706F900D3266B /* Build configuration list for PBXNativeTarget "ChatMasterMindTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
4F772B2D2A4706F900D3266B /* Debug */,
|
||||
4F772B2E2A4706F900D3266B /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
4F772B2F2A4706F900D3266B /* Build configuration list for PBXNativeTarget "ChatMasterMindUITests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
4F772B302A4706F900D3266B /* Debug */,
|
||||
4F772B312A4706F900D3266B /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
|
||||
/* Begin XCRemoteSwiftPackageReference section */
|
||||
4F50EF3F2A49CA5E009BD94E /* XCRemoteSwiftPackageReference "Down" */ = {
|
||||
isa = XCRemoteSwiftPackageReference;
|
||||
repositoryURL = "https://github.com/iwasrobbed/Down";
|
||||
requirement = {
|
||||
branch = master;
|
||||
kind = branch;
|
||||
};
|
||||
};
|
||||
4F50EF422A49CE31009BD94E /* XCRemoteSwiftPackageReference "MarkdownView" */ = {
|
||||
isa = XCRemoteSwiftPackageReference;
|
||||
repositoryURL = "https://github.com/LiYanan2004/MarkdownView.git";
|
||||
requirement = {
|
||||
kind = upToNextMajorVersion;
|
||||
minimumVersion = 1.3.0;
|
||||
};
|
||||
};
|
||||
4F50EF452A49D012009BD94E /* XCRemoteSwiftPackageReference "Highlightr" */ = {
|
||||
isa = XCRemoteSwiftPackageReference;
|
||||
repositoryURL = "https://github.com/raspu/Highlightr.git";
|
||||
requirement = {
|
||||
kind = upToNextMajorVersion;
|
||||
minimumVersion = 2.1.2;
|
||||
};
|
||||
};
|
||||
/* End XCRemoteSwiftPackageReference section */
|
||||
|
||||
/* Begin XCSwiftPackageProductDependency section */
|
||||
4F50EF432A49CE31009BD94E /* MarkdownView */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
package = 4F50EF422A49CE31009BD94E /* XCRemoteSwiftPackageReference "MarkdownView" */;
|
||||
productName = MarkdownView;
|
||||
};
|
||||
4F50EF462A49D012009BD94E /* Highlightr */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
package = 4F50EF452A49D012009BD94E /* XCRemoteSwiftPackageReference "Highlightr" */;
|
||||
productName = Highlightr;
|
||||
};
|
||||
/* End XCSwiftPackageProductDependency section */
|
||||
};
|
||||
rootObject = 4F772AF92A4706F600D3266B /* Project object */;
|
||||
}
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict/>
|
||||
</plist>
|
||||
@ -1,50 +0,0 @@
|
||||
{
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "down",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/iwasrobbed/Down",
|
||||
"state" : {
|
||||
"branch" : "master",
|
||||
"revision" : "e754ab1c80920dd51a8e08290c912ac1c2ac8b58"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "highlightr",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/raspu/Highlightr.git",
|
||||
"state" : {
|
||||
"revision" : "93199b9e434f04bda956a613af8f571933f9f037",
|
||||
"version" : "2.1.2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "markdownview",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/LiYanan2004/MarkdownView.git",
|
||||
"state" : {
|
||||
"revision" : "e2dfc286ffbc2297c3654699843473bb6152ab20",
|
||||
"version" : "1.3.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swift-cmark",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/apple/swift-cmark.git",
|
||||
"state" : {
|
||||
"revision" : "29d9c97e6310b87c4799268eaa2fc76164b2dbd8",
|
||||
"version" : "0.2.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swift-markdown",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/apple/swift-markdown.git",
|
||||
"state" : {
|
||||
"revision" : "68b2fed9fb12fb71ac81e537f08bed430b189e35",
|
||||
"version" : "0.2.0"
|
||||
}
|
||||
}
|
||||
],
|
||||
"version" : 2
|
||||
}
|
||||
Binary file not shown.
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildLocationStyle</key>
|
||||
<string>UseAppPreferences</string>
|
||||
<key>CustomBuildLocationType</key>
|
||||
<string>RelativeToDerivedData</string>
|
||||
<key>DerivedDataLocationStyle</key>
|
||||
<string>Default</string>
|
||||
<key>ShowSharedSchemesAutomaticallyEnabled</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>SchemeUserState</key>
|
||||
<dict>
|
||||
<key>ChatMasterMind.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -1,11 +0,0 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@ -1,63 +0,0 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"platform" : "ios",
|
||||
"size" : "1024x1024"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "512x512"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "512x512"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@ -1,6 +0,0 @@
|
||||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@ -1,58 +0,0 @@
|
||||
//
|
||||
// Item.swift
|
||||
// ChatMasterMind
|
||||
//
|
||||
// Created by Oleksandr Kozachuk on 2023-06-24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SwiftData
|
||||
|
||||
@Model
|
||||
final class ChatPair: Identifiable {
|
||||
let id: UUID
|
||||
var timestamp: Date
|
||||
var question: String
|
||||
var answer: String?
|
||||
var previousVersions: [ChatPair]
|
||||
|
||||
init(question: String, answer: String? = nil, timestamp: Date = Date(), previousVersions: [ChatPair] = []) {
|
||||
self.id = UUID()
|
||||
self.question = question
|
||||
self.answer = answer
|
||||
self.timestamp = timestamp
|
||||
self.previousVersions = previousVersions
|
||||
}
|
||||
}
|
||||
|
||||
@Model
|
||||
final class ChatHistory: Identifiable {
|
||||
let id: UUID
|
||||
var name: String
|
||||
var chatPairs: [ChatPair]
|
||||
|
||||
init(name: String, chatPairs: [ChatPair] = []) {
|
||||
self.id = UUID()
|
||||
self.name = name
|
||||
self.chatPairs = chatPairs
|
||||
}
|
||||
|
||||
func addChatPair(question: String, answer: String? = nil, timestamp: Date = Date()) {
|
||||
let newPair = ChatPair(question: question, answer: answer, timestamp: timestamp)
|
||||
chatPairs.append(newPair)
|
||||
}
|
||||
|
||||
func editChatPair(withId id: UUID, question: String? = nil, answer: String? = nil) {
|
||||
guard let index = chatPairs.firstIndex(where: { $0.id == id }) else { return }
|
||||
let newChatPair = chatPairs[index]
|
||||
newChatPair.previousVersions.append(chatPairs[index])
|
||||
if let question = question {
|
||||
newChatPair.question = question
|
||||
}
|
||||
if let answer = answer {
|
||||
newChatPair.answer = answer
|
||||
}
|
||||
newChatPair.timestamp = Date()
|
||||
chatPairs[index] = newChatPair
|
||||
}
|
||||
}
|
||||
@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>aps-environment</key>
|
||||
<string>development</string>
|
||||
<key>com.apple.developer.aps-environment</key>
|
||||
<string>development</string>
|
||||
<key>com.apple.developer.icloud-container-identifiers</key>
|
||||
<array/>
|
||||
<key>com.apple.developer.icloud-services</key>
|
||||
<array>
|
||||
<string>CloudKit</string>
|
||||
</array>
|
||||
<key>com.apple.security.app-sandbox</key>
|
||||
<true/>
|
||||
<key>com.apple.security.files.user-selected.read-only</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -1,20 +0,0 @@
|
||||
//
|
||||
// ChatMasterMindApp.swift
|
||||
// ChatMasterMind
|
||||
//
|
||||
// Created by Oleksandr Kozachuk on 2023-06-24.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import SwiftData
|
||||
|
||||
@main
|
||||
struct ChatMasterMindApp: App {
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ContentView()
|
||||
}
|
||||
.modelContainer(for: ChatHistory.self)
|
||||
}
|
||||
}
|
||||
@ -1,159 +0,0 @@
|
||||
//
|
||||
// ContentView.swift
|
||||
// ChatMasterMind
|
||||
//
|
||||
// Created by Oleksandr Kozachuk on 2023-06-24.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import SwiftData
|
||||
import MarkdownView
|
||||
|
||||
struct ContentView: View {
|
||||
@Environment(\.modelContext) private var modelContext
|
||||
@Query private var chatHistoryList: [ChatHistory]
|
||||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
List {
|
||||
ForEach(chatHistoryList) { chatHistory in
|
||||
NavigationLink(destination: ChatHistoryDetailView(chatHistory: chatHistory)) {
|
||||
Text(chatHistory.name)
|
||||
}
|
||||
}
|
||||
.onDelete(perform: deleteItems)
|
||||
}
|
||||
.toolbar {
|
||||
#if os(iOS)
|
||||
ToolbarItem(placement: .navigationBarTrailing) {
|
||||
EditButton()
|
||||
}
|
||||
#endif
|
||||
ToolbarItem {
|
||||
Button(action: newChat) {
|
||||
Label("New chat", systemImage: "plus")
|
||||
}
|
||||
}
|
||||
}
|
||||
Text("Select an chat")
|
||||
}
|
||||
}
|
||||
|
||||
private func newChat() {
|
||||
withAnimation {
|
||||
let newChatHistory = ChatHistory(name: "test1")
|
||||
modelContext.insert(newChatHistory)
|
||||
}
|
||||
}
|
||||
|
||||
private func deleteItems(offsets: IndexSet) {
|
||||
withAnimation {
|
||||
for index in offsets {
|
||||
modelContext.delete(chatHistoryList[index])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct ChatHistoryDetailView: View {
|
||||
@Environment(\.modelContext) private var modelContext
|
||||
var chatHistory: ChatHistory
|
||||
@State private var newQuestion: String = ""
|
||||
@State private var pairToEdit: ChatPair? = nil
|
||||
@State private var newAnswer: String = ""
|
||||
|
||||
var body: some View {
|
||||
VStack {
|
||||
List {
|
||||
ForEach(chatHistory.chatPairs) { chatPair in
|
||||
VStack(alignment: .leading) {
|
||||
MarkdownView(text: chatPair.question)
|
||||
if let answer = chatPair.answer {
|
||||
MarkdownView(text: answer)
|
||||
.tint(.secondary)
|
||||
}
|
||||
Button(action: {
|
||||
pairToEdit = chatPair
|
||||
newAnswer = chatPair.answer ?? ""
|
||||
}) {
|
||||
Text("Edit")
|
||||
.foregroundColor(.blue)
|
||||
}
|
||||
}
|
||||
Text("Timestamp: \(chatPair.timestamp)")
|
||||
.foregroundColor(.secondary)
|
||||
.font(.footnote)
|
||||
}
|
||||
}
|
||||
HStack {
|
||||
TextEditor(text: $newQuestion)
|
||||
.frame(height: 100)
|
||||
.overlay(RoundedRectangle(cornerRadius: 5).stroke(Color.gray))
|
||||
Button(action: {
|
||||
addChatPair()
|
||||
}) {
|
||||
Text("Add")
|
||||
}
|
||||
Button(action: {
|
||||
cancelEdit()
|
||||
}) {
|
||||
Text("Cancel")
|
||||
}
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
.navigationTitle(chatHistory.name)
|
||||
.sheet(item: $pairToEdit) { pairToEdit in
|
||||
VStack {
|
||||
Text(pairToEdit.question)
|
||||
TextEditor(text: $newAnswer)
|
||||
.overlay(RoundedRectangle(cornerRadius: 5).stroke(Color.gray))
|
||||
.frame(maxHeight: .infinity)
|
||||
Button(action: {
|
||||
editChatPair(pairToEdit)
|
||||
}) {
|
||||
Text("Save")
|
||||
}
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
||||
private func addChatPair() {
|
||||
guard !newQuestion.isEmpty else { return }
|
||||
withAnimation {
|
||||
let newPair = ChatPair(question: newQuestion)
|
||||
chatHistory.chatPairs.append(newPair)
|
||||
newQuestion = ""
|
||||
do {
|
||||
try modelContext.save()
|
||||
} catch {
|
||||
print("Error saving model context: \(error)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func editChatPair(_ chatPair: ChatPair) {
|
||||
guard !newAnswer.isEmpty else { return }
|
||||
withAnimation {
|
||||
chatHistory.editChatPair(withId: chatPair.id, question: nil, answer: newAnswer)
|
||||
newAnswer = ""
|
||||
pairToEdit = nil
|
||||
do {
|
||||
try modelContext.save()
|
||||
} catch {
|
||||
print("Error saving model context: \(error)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func cancelEdit() {
|
||||
newAnswer = ""
|
||||
pairToEdit = nil
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
ContentView()
|
||||
.modelContainer(for: ChatHistory.self, inMemory: true)
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>UIBackgroundModes</key>
|
||||
<array>
|
||||
<string>remote-notification</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -1,6 +0,0 @@
|
||||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@ -1,35 +0,0 @@
|
||||
//
|
||||
// ChatMasterMindTests.swift
|
||||
// ChatMasterMindTests
|
||||
//
|
||||
// Created by Oleksandr Kozachuk on 2023-06-24.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
final class ChatMasterMindTests: XCTestCase {
|
||||
|
||||
override func setUpWithError() throws {
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
override func tearDownWithError() throws {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
func testExample() throws {
|
||||
// This is an example of a functional test case.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||
// Any test you write for XCTest can be annotated as throws and async.
|
||||
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
|
||||
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
|
||||
}
|
||||
|
||||
func testPerformanceExample() throws {
|
||||
// This is an example of a performance test case.
|
||||
measure {
|
||||
// Put the code you want to measure the time of here.
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,41 +0,0 @@
|
||||
//
|
||||
// ChatMasterMindUITests.swift
|
||||
// ChatMasterMindUITests
|
||||
//
|
||||
// Created by Oleksandr Kozachuk on 2023-06-24.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
final class ChatMasterMindUITests: XCTestCase {
|
||||
|
||||
override func setUpWithError() throws {
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
|
||||
// In UI tests it is usually best to stop immediately when a failure occurs.
|
||||
continueAfterFailure = false
|
||||
|
||||
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
|
||||
}
|
||||
|
||||
override func tearDownWithError() throws {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
func testExample() throws {
|
||||
// UI tests must launch the application that they test.
|
||||
let app = XCUIApplication()
|
||||
app.launch()
|
||||
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||
}
|
||||
|
||||
func testLaunchPerformance() throws {
|
||||
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
|
||||
// This measures how long it takes to launch your application.
|
||||
measure(metrics: [XCTApplicationLaunchMetric()]) {
|
||||
XCUIApplication().launch()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,32 +0,0 @@
|
||||
//
|
||||
// ChatMasterMindUITestsLaunchTests.swift
|
||||
// ChatMasterMindUITests
|
||||
//
|
||||
// Created by Oleksandr Kozachuk on 2023-06-24.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
final class ChatMasterMindUITestsLaunchTests: XCTestCase {
|
||||
|
||||
override class var runsForEachTargetApplicationUIConfiguration: Bool {
|
||||
true
|
||||
}
|
||||
|
||||
override func setUpWithError() throws {
|
||||
continueAfterFailure = false
|
||||
}
|
||||
|
||||
func testLaunch() throws {
|
||||
let app = XCUIApplication()
|
||||
app.launch()
|
||||
|
||||
// Insert steps here to perform after app launch but before taking a screenshot,
|
||||
// such as logging into a test account or navigating somewhere in the app
|
||||
|
||||
let attachment = XCTAttachment(screenshot: app.screenshot())
|
||||
attachment.name = "Launch Screen"
|
||||
attachment.lifetime = .keepAlways
|
||||
add(attachment)
|
||||
}
|
||||
}
|
||||
@ -10,7 +10,6 @@ import pathlib
|
||||
from .utils import terminal_width, process_tags, display_chat, display_source_code
|
||||
from .storage import save_answers, create_chat, get_tags, read_file, dump_data
|
||||
from .api_client import ai, openai_api_key
|
||||
from itertools import zip_longest
|
||||
|
||||
|
||||
def run_print_command(args: argparse.Namespace, config: dict) -> None:
|
||||
@ -44,20 +43,23 @@ def process_and_display_chat(args: argparse.Namespace,
|
||||
question_list = args.question if args.question is not None else []
|
||||
source_list = args.source if args.source is not None else []
|
||||
|
||||
for question, source in zip_longest(question_list, source_list, fillvalue=None):
|
||||
if question is not None and source is not None:
|
||||
with open(source) as r:
|
||||
question_parts.append(f"{question}\n\n```\n{r.read().strip()}\n```")
|
||||
elif question is not None:
|
||||
for question, source in zip(question_list, source_list):
|
||||
with open(source) as r:
|
||||
question_parts.append(f"{question}\n\n```\n{r.read().strip()}\n```")
|
||||
|
||||
if len(question_list) > len(source_list):
|
||||
for question in question_list[len(source_list):]:
|
||||
question_parts.append(question)
|
||||
elif source is not None:
|
||||
else:
|
||||
for source in source_list[len(question_list):]:
|
||||
with open(source) as r:
|
||||
question_parts.append(f"```\n{r.read().strip()}\n```")
|
||||
|
||||
full_question = '\n\n'.join(question_parts)
|
||||
chat = create_chat(full_question, tags, extags, config)
|
||||
question = '\n\n'.join(question_parts)
|
||||
|
||||
chat = create_chat(question, tags, extags, config)
|
||||
display_chat(chat, dump, args.only_source_code)
|
||||
return chat, full_question, tags
|
||||
return chat, question, tags
|
||||
|
||||
|
||||
def handle_question(args: argparse.Namespace,
|
||||
|
||||
@ -64,7 +64,7 @@ def create_chat(question: Optional[str],
|
||||
extags: Optional[List[str]],
|
||||
config: Dict[str, Any]
|
||||
) -> List[Dict[str, str]]:
|
||||
chat: List[Dict[str, str]] = []
|
||||
chat = []
|
||||
append_message(chat, 'system', config['system'].strip())
|
||||
for file in sorted(pathlib.Path(config['db']).iterdir()):
|
||||
if file.suffix == '.yaml':
|
||||
|
||||
@ -41,13 +41,12 @@ def message_to_chat(message: Dict[str, str],
|
||||
|
||||
|
||||
def display_source_code(content: str) -> None:
|
||||
try:
|
||||
content_start = content.index('```')
|
||||
content_end = content.rindex('```')
|
||||
if content_start + 3 < content_end:
|
||||
print(content[content_start + 3:content_end].strip())
|
||||
except ValueError:
|
||||
pass
|
||||
code_block_count = 0
|
||||
for line in content.splitlines():
|
||||
if line.strip().startswith('```'):
|
||||
code_block_count += 1
|
||||
elif code_block_count == 1:
|
||||
print(line)
|
||||
|
||||
|
||||
def display_chat(chat, dump=False, source_code=False) -> None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user