diff --git a/ElementX.xcodeproj/project.pbxproj b/ElementX.xcodeproj/project.pbxproj
index ca36a2cff..5f4d98da3 100644
--- a/ElementX.xcodeproj/project.pbxproj
+++ b/ElementX.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 51;
+ objectVersion = 52;
objects = {
/* Begin PBXBuildFile section */
@@ -787,6 +787,7 @@
9797D588420FCBBC228A63C9 /* Sources */,
215E1D91B98672C856F559D0 /* Resources */,
EE878EAA342710DB973E0A87 /* Frameworks */,
+ 98CA896D84BFD53B2554E891 /* ⚠️ SwiftLint */,
);
buildRules = (
);
@@ -880,6 +881,27 @@
};
/* End PBXResourcesBuildPhase section */
+/* Begin PBXShellScriptBuildPhase section */
+ 98CA896D84BFD53B2554E891 /* ⚠️ SwiftLint */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ );
+ name = "⚠️ SwiftLint";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "export PATH=\"$PATH:/opt/homebrew/bin\"\nif which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
/* Begin PBXSourcesBuildPhase section */
11F93544B4FC60F78F47D89C /* Sources */ = {
isa = PBXSourcesBuildPhase;
diff --git a/ElementX/SupportingFiles/Info.plist b/ElementX/SupportingFiles/Info.plist
index db9c856e7..3b08df777 100644
--- a/ElementX/SupportingFiles/Info.plist
+++ b/ElementX/SupportingFiles/Info.plist
@@ -15,9 +15,9 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 1.0
+ $(MARKETING_VERSION)
CFBundleVersion
- 1
+ $(CURRENT_PROJECT_VERSION)
UILaunchStoryboardName
LaunchScreen
diff --git a/ElementX/SupportingFiles/target.yml b/ElementX/SupportingFiles/target.yml
index a64885e81..c159688b0 100644
--- a/ElementX/SupportingFiles/target.yml
+++ b/ElementX/SupportingFiles/target.yml
@@ -9,6 +9,8 @@ targets:
path: ../SupportingFiles/Info.plist
properties:
UILaunchStoryboardName: LaunchScreen
+ CFBundleShortVersionString: $(MARKETING_VERSION)
+ CFBundleVersion: $(CURRENT_PROJECT_VERSION)
settings:
base:
@@ -20,6 +22,18 @@ targets:
CURRENT_PROJECT_VERSION: 1.0.0
CODE_SIGN_ENTITLEMENTS: ElementX/SupportingFiles/ElementX.entitlements
SWIFT_OBJC_BRIDGING_HEADER: ElementX/SupportingFiles/ElementX-Bridging-Header.h
+
+ postBuildScripts:
+ - name: ⚠️ SwiftLint
+ runOnlyWhenInstalling: false
+ shell: /bin/sh
+ script: |
+ export PATH="$PATH:/opt/homebrew/bin"
+ if which swiftlint >/dev/null; then
+ swiftlint
+ else
+ echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
+ fi
scheme:
testTargets: