Skip to content

Commit d6138c8

Browse files
authored
[Release] #270 - 버전 수정
[Release] #270 - 버전 수정
2 parents 92f9f4c + 0a5a05a commit d6138c8

File tree

4 files changed

+249
-6
lines changed

4 files changed

+249
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ iOSInjectionProject/
142142

143143
# End of https://www.toptal.com/developers/gitignore/api/xcode,macos,swift,cocoapods
144144

145-
pophory-iOS.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
145+
# pophory-iOS.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
146146

147147
pophory-iOS.xcodeproj/xcshareddata/xcschemes/pophory-iOS.xcscheme
148148
*.xcconfig

ci_scripts/ci_post_clone.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
# ci_post_clone.sh
4+
# pophory-iOS
5+
#
6+
# Created by 강윤서 on 3/4/24.
7+
#
8+
9+
# *.xconfig 파일이 생성될 폴더 경로
10+
FOLDER_PATH="/Volumes/workspace/repository/pophory-iOS"
11+
12+
# PARTS 배열의 두 번째 요소가 "Scheme Name"에 해당
13+
IFS='-' read -ra PARTS <<< "$CI_XCODE_SCHEME"
14+
15+
# *.xconfig 파일 이름
16+
CONFIG_FILENAME="${PARTS[1]}.xcconfig"
17+
18+
# *.xconfig 파일의 전체 경로 계산
19+
CONFIG_FILE_PATH="$FOLDER_PATH/$CONFIG_FILENAME"
20+
21+
# 환경 변수에서 값을 가져와서 *.xconfig 파일에 추가하기
22+
echo "BASE_URL = $BASE_URL" >> "$CONFIG_FILE_PATH"
23+
echo "UNIT_AD_ID = $UNIT_AD_ID" >> "$CONFIG_FILE_PATH"
24+
echo "SENTRY_DSN = $SENTRY_DSN" >> "$CONFIG_FILE_PATH"
25+
echo "ADMOB_APP_ID = $ADMOB_APP_ID" >> "$CONFIG_FILE_PATH"
26+
27+
# 생성된 *.xconfig 파일 내용 출력
28+
cat "$CONFIG_FILE_PATH"
29+
30+
echo "${PARTS[1]}.xcconfig 파일이 성공적으로 생성되었고, 환경변수 값이 확인되었습니다."

pophory-iOS.xcodeproj/project.pbxproj

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
3B3A09142A56A6C700C8A740 /* PhotoDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhotoDetailViewController.swift; sourceTree = "<group>"; };
306306
3B3BE7182A56CC820064E716 /* PophoryNavigationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PophoryNavigationController.swift; sourceTree = "<group>"; };
307307
3B4E2F0E2B92371D00B60CB4 /* PHPickerProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PHPickerProtocol.swift; sourceTree = "<group>"; };
308+
3B560FC52B95EE20009781B7 /* ci_post_clone.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = ci_post_clone.sh; sourceTree = "<group>"; };
308309
3B583A5C2AF0275F008FFB9A /* PophoryAdManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PophoryAdManager.swift; sourceTree = "<group>"; };
309310
3B583A5E2AF0288F008FFB9A /* AdAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdAPI.swift; sourceTree = "<group>"; };
310311
3B583A612AF029BF008FFB9A /* FetchAdResponseDTO.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FetchAdResponseDTO.swift; sourceTree = "<group>"; };
@@ -753,6 +754,14 @@
753754
path = ViewController;
754755
sourceTree = "<group>";
755756
};
757+
3B560FC42B95EDF9009781B7 /* ci_scripts */ = {
758+
isa = PBXGroup;
759+
children = (
760+
3B560FC52B95EE20009781B7 /* ci_post_clone.sh */,
761+
);
762+
path = ci_scripts;
763+
sourceTree = "<group>";
764+
};
756765
3B583A602AF029B0008FFB9A /* Ad */ = {
757766
isa = PBXGroup;
758767
children = (
@@ -1074,6 +1083,7 @@
10741083
B1631EFE2A1759EA0050974F = {
10751084
isa = PBXGroup;
10761085
children = (
1086+
3B560FC42B95EDF9009781B7 /* ci_scripts */,
10771087
B1631F092A1759EA0050974F /* pophory-iOS */,
10781088
B1631F202A1759EB0050974F /* pophory-iOSTests */,
10791089
B1631F2A2A1759EB0050974F /* pophoryUITests */,
@@ -1506,7 +1516,7 @@
15061516
);
15071517
runOnlyForDeploymentPostprocessing = 0;
15081518
shellPath = /bin/sh;
1509-
shellScript = "\n# Name of the resource we're selectively copying\nGOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist\n\n# Get references to dev and prod versions of the GoogleService-Info.plist\n# NOTE: These should only live on the file system and should NOT be part of the target (since we'll be adding them to the target manually)\nGOOGLESERVICE_INFO_DEV=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Debug/${GOOGLESERVICE_INFO_PLIST}\nGOOGLESERVICE_INFO_PROD=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Release/${GOOGLESERVICE_INFO_PLIST}\n\n# Make sure the dev version of GoogleService-Info.plist exists\necho \"Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_DEV}\"\nif [ ! -f $GOOGLESERVICE_INFO_DEV ]\nthen\n echo \"No Development GoogleService-Info.plist found. Please ensure it's in the proper directory.\"\n exit 1\nfi\n\n# Make sure the prod version of GoogleService-Info.plist exists\necho \"Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_PROD}\"\nif [ ! -f $GOOGLESERVICE_INFO_PROD ]\nthen\n echo \"No Production GoogleService-Info.plist found. Please ensure it's in the proper directory.\"\n exit 1\nfi\n\n# Get a reference to the destination location for the GoogleService-Info.plist\nPLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app\necho \"Will copy ${GOOGLESERVICE_INFO_PLIST} to final destination: ${PLIST_DESTINATION}\"\n\n# Copy over the prod GoogleService-Info.plist for Release builds\nif [ \"${CONFIGURATION}\" == \"Release\" ]\nthen\n echo \"Using ${GOOGLESERVICE_INFO_PROD}\"\n cp \"${GOOGLESERVICE_INFO_PROD}\" \"${PLIST_DESTINATION}\"\nelse\n echo \"Using ${GOOGLESERVICE_INFO_DEV}\"\n cp \"${GOOGLESERVICE_INFO_DEV}\" \"${PLIST_DESTINATION}\"\nfi\n";
1519+
shellScript = "\n# Name of the resource we're selectively copying\nGOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist\n\n# Get references to dev and prod versions of the GoogleService-Info.plist\n# NOTE: These should only live on the file system and should NOT be part of the target (since we'll be adding them to the target manually)\nGOOGLESERVICE_INFO_DEV=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Debug/${GOOGLESERVICE_INFO_PLIST}\nGOOGLESERVICE_INFO_PROD=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Release/${GOOGLESERVICE_INFO_PLIST}\n\n\n# Make sure the dev version of GoogleService-Info.plist exists\necho \"Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_DEV}\"\nif [ ! -f $GOOGLESERVICE_INFO_DEV ]\nthen\n echo \"No Development GoogleService-Info.plist found. Please ensure it's in the proper directory.\"\n exit 1\nfi\n\n# Make sure the prod version of GoogleService-Info.plist exists\necho \"Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_PROD}\"\nif [ ! -f $GOOGLESERVICE_INFO_PROD ]\nthen\n echo \"No Production GoogleService-Info.plist found. Please ensure it's in the proper directory.\"\n exit 1\nfi\n\n# Get a reference to the destination location for the GoogleService-Info.plist\nPLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app\necho \"Will copy ${GOOGLESERVICE_INFO_PLIST} to final destination: ${PLIST_DESTINATION}\"\n\n# Copy over the prod GoogleService-Info.plist for Release builds\nif [ \"${CONFIGURATION}\" == \"Release\" ]\nthen\n echo \"Using ${GOOGLESERVICE_INFO_PROD}\"\n cp \"${GOOGLESERVICE_INFO_PROD}\" \"${PLIST_DESTINATION}\"\nelse\n echo \"Using ${GOOGLESERVICE_INFO_DEV}\"\n cp \"${GOOGLESERVICE_INFO_DEV}\" \"${PLIST_DESTINATION}\"\nfi\n";
15101520
};
15111521
3B5CDBC32A94CEA9001382C4 /* Run Script */ = {
15121522
isa = PBXShellScriptBuildPhase;
@@ -1975,7 +1985,7 @@
19751985
CODE_SIGN_IDENTITY = "Apple Development";
19761986
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
19771987
CODE_SIGN_STYLE = Manual;
1978-
CURRENT_PROJECT_VERSION = 1;
1988+
CURRENT_PROJECT_VERSION = 2;
19791989
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
19801990
DEVELOPMENT_TEAM = "";
19811991
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = CQJ9UKUU35;
@@ -1997,7 +2007,7 @@
19972007
"$(inherited)",
19982008
"@executable_path/Frameworks",
19992009
);
2000-
MARKETING_VERSION = 1.3.0;
2010+
MARKETING_VERSION = 1.3.1;
20012011
PRODUCT_BUNDLE_IDENTIFIER = "Team.pophory-iOS";
20022012
PRODUCT_NAME = "$(TARGET_NAME)";
20032013
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -2022,7 +2032,7 @@
20222032
CODE_SIGN_IDENTITY = "Apple Development";
20232033
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
20242034
CODE_SIGN_STYLE = Manual;
2025-
CURRENT_PROJECT_VERSION = 1;
2035+
CURRENT_PROJECT_VERSION = 2;
20262036
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
20272037
DEVELOPMENT_TEAM = "";
20282038
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = CQJ9UKUU35;
@@ -2044,7 +2054,7 @@
20442054
"$(inherited)",
20452055
"@executable_path/Frameworks",
20462056
);
2047-
MARKETING_VERSION = 1.3.0;
2057+
MARKETING_VERSION = 1.3.1;
20482058
PRODUCT_BUNDLE_IDENTIFIER = "Team.pophory-iOS";
20492059
PRODUCT_NAME = "$(TARGET_NAME)";
20502060
PROVISIONING_PROFILE_SPECIFIER = "";

pophory-iOS.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

0 commit comments

Comments
 (0)