Skip to content

Commit 5a0d8bc

Browse files
committed
add fastlane and update test
1 parent 8b1110e commit 5a0d8bc

File tree

112 files changed

+19527
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+19527
-94
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,9 @@ vendor
111111
.bundle/config
112112
Addame/Configs/Development.xcconfig
113113
Addame/Configs/Production.xcconfig
114+
115+
116+
*.ipa
117+
*.dSYM.*
118+
/fastlane/report.xml
119+
/fastlane/FastlaneRunner

.swiftlint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ opt_in_rules:
3232
- single_test_class
3333
- sorted_first_last
3434

35+
analyzer_rules: # Rules run by `swiftlint analyze` (experimental)
36+
- explicit_self
37+
3538
warning_threshold: 1
3639

3740
line_length: 120
@@ -52,3 +55,12 @@ identifier_name:
5255
excluded:
5356
- id
5457
- _id
58+
59+
indentation: 2
60+
61+
excluded:
62+
- derivedData
63+
- test_output
64+
- fastlane
65+
66+
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)

Addame.xcodeproj/project.pbxproj

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
C3E50C99261B5DFA00285977 /* Frameworks */,
107107
C3E50C9A261B5DFA00285977 /* Resources */,
108108
C36C678E26E3FC9A007CC94D /* swift-format */,
109+
C36AE8D826E8ABD6002FFF84 /* SwiftLint */,
109110
);
110111
buildRules = (
111112
);
@@ -164,6 +165,24 @@
164165
/* End PBXResourcesBuildPhase section */
165166

166167
/* Begin PBXShellScriptBuildPhase section */
168+
C36AE8D826E8ABD6002FFF84 /* SwiftLint */ = {
169+
isa = PBXShellScriptBuildPhase;
170+
buildActionMask = 2147483647;
171+
files = (
172+
);
173+
inputFileListPaths = (
174+
);
175+
inputPaths = (
176+
);
177+
name = SwiftLint;
178+
outputFileListPaths = (
179+
);
180+
outputPaths = (
181+
);
182+
runOnlyForDeploymentPostprocessing = 0;
183+
shellPath = /bin/sh;
184+
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif [ -z \"$CI\" ]; then\n swiftlint --fix --config \".swiftlint.yml\" && swiftlint\nfi\n\nif which swiftlint >/dev/null; then\n swiftlint --fix --config \".swiftlint.yml\" && swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n\n";
185+
};
167186
C36C678E26E3FC9A007CC94D /* swift-format */ = {
168187
isa = PBXShellScriptBuildPhase;
169188
buildActionMask = 2147483647;
@@ -180,7 +199,7 @@
180199
);
181200
runOnlyForDeploymentPostprocessing = 0;
182201
shellPath = /bin/sh;
183-
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif which swift-format >/dev/null; then\n #swift-format -m format -i -r ${PROJECT_DIR}\n #swift-format -m lint -r ${PROJECT_DIR}\nelse\n echo \"warning: swift-format not installed\"\nfi\n";
202+
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\n#if which swift-format >/dev/null; then\n # swift-format -m format -i -r ${PROJECT_DIR}\n # swift-format -m lint -r ${PROJECT_DIR}\n#else\n # echo \"warning: swift-format not installed\"\n#fi\n";
184203
};
185204
/* End PBXShellScriptBuildPhase section */
186205

@@ -324,6 +343,7 @@
324343
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
325344
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
326345
CODE_SIGN_STYLE = Automatic;
346+
CURRENT_PROJECT_VERSION = 2;
327347
DEVELOPMENT_ASSET_PATHS = "\"Addame/Preview Content\"";
328348
DEVELOPMENT_TEAM = 6989658CU5;
329349
ENABLE_PREVIEWS = YES;
@@ -333,10 +353,12 @@
333353
"$(inherited)",
334354
"@executable_path/Frameworks",
335355
);
356+
MARKETING_VERSION = 1.0.0;
336357
PRODUCT_BUNDLE_IDENTIFIER = com.addame.AddaMeIOS;
337358
PRODUCT_NAME = "$(TARGET_NAME)";
338359
SWIFT_VERSION = 5.0;
339360
TARGETED_DEVICE_FAMILY = "1,2";
361+
VERSIONING_SYSTEM = "apple-generic";
340362
};
341363
name = Debug;
342364
};
@@ -347,6 +369,7 @@
347369
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
348370
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
349371
CODE_SIGN_STYLE = Automatic;
372+
CURRENT_PROJECT_VERSION = 2;
350373
DEVELOPMENT_ASSET_PATHS = "\"Addame/Preview Content\"";
351374
DEVELOPMENT_TEAM = 6989658CU5;
352375
ENABLE_PREVIEWS = YES;
@@ -356,10 +379,12 @@
356379
"$(inherited)",
357380
"@executable_path/Frameworks",
358381
);
382+
MARKETING_VERSION = 1.0.0;
359383
PRODUCT_BUNDLE_IDENTIFIER = com.addame.AddaMeIOS;
360384
PRODUCT_NAME = "$(TARGET_NAME)";
361385
SWIFT_VERSION = 5.0;
362386
TARGETED_DEVICE_FAMILY = "1,2";
387+
VERSIONING_SYSTEM = "apple-generic";
363388
};
364389
name = Release;
365390
};

Addame.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

0 commit comments

Comments
 (0)