Skip to content

Commit 6aeffc9

Browse files
Add default destination folder name
- Add defaultDestinationFolderName class property to BuildSettingExtractor - Use new property for initial defaults dictionary
1 parent 9891f5e commit 6aeffc9

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

BuildSettingExtractor/AppConstants+Categories.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ - (void)tps_registerApplicationDefaults {
3737
TPSLinesBetweenBuildSettingsWithInfo : @3,
3838
TPSTargetFoldersEnabled : @(NO),
3939
TPSProjectFolderEnabled : @(NO),
40-
TPSDestinationFolderName : @"xcconfig",
40+
TPSDestinationFolderName : BuildSettingExtractor.defaultDestinationFolderName,
4141
TPSAutosaveInProjectFolder: @(NO),
4242
TPSAlignBuildSettingValues: @(NO)
4343
};

BuildSettingExtractor/BuildSettingExtractor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ NS_ASSUME_NONNULL_BEGIN
3030
+ (NSString *)defaultSharedConfigName; // "Shared" is the default.
3131
+ (NSString *)defaultProjectConfigName; // "Project" is the default.
3232
+ (NSString *)defaultNameSeparator; // "-" (hyphen) is the default.
33+
+ (NSString *)defaultDestinationFolderName; // "xcconfig" is the default.
3334

3435

3536
// The name that will be used to name common / shared config files.

BuildSettingExtractor/BuildSettingExtractor.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ + (NSString *)defaultNameSeparator {
4343
return @"-";
4444
}
4545

46+
+ (NSString *)defaultDestinationFolderName {
47+
return @"xcconfig";
48+
}
49+
4650
- (instancetype)init {
4751
self = [super init];
4852
if (self) {

0 commit comments

Comments
 (0)