Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ fastlane/test_output/
#
# Tuist 프로젝트의 설정 파일
/.tuist/

# Secret file
*.xcconfig
24 changes: 24 additions & 0 deletions .package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"originHash" : "48d44fe9560aaa48bc97ae34cdb596f62fa2d739be3dafd4261b95db8f8c86ab",
"pins" : [
{
"identity" : "alamofire",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Alamofire/Alamofire.git",
"state" : {
"revision" : "513364f870f6bfc468f9d2ff0a95caccc10044c5",
"version" : "5.10.2"
}
},
{
"identity" : "kakao-ios-sdk",
"kind" : "remoteSourceControl",
"location" : "https://github.com/kakao/kakao-ios-sdk",
"state" : {
"revision" : "e14a8d1fad75645fd5677a295a8b1956ebd14d3d",
"version" : "2.25.0"
}
}
],
"version" : 3
}
25 changes: 25 additions & 0 deletions Derived/Sources/TuistBundle+Megabox.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// periphery:ignore:all
// swiftlint:disable:this file_name
// swiftlint:disable all
// swift-format-ignore-file
// swiftformat:disable all
#if hasFeature(InternalImportsByDefault)
public import Foundation
#else
import Foundation
#endif
// MARK: - Swift Bundle Accessor for Frameworks
private class BundleFinder {}
extension Foundation.Bundle {
/// Since megabox is a application, the bundle for classes within this module can be used directly.
static let module = Bundle(for: BundleFinder.self)
}
// MARK: - Objective-C Bundle Accessor
@objc
public class MegaboxResources: NSObject {
@objc public class var bundle: Bundle {
return .module
}
}
// swiftformat:enable all
// swiftlint:enable all
39 changes: 38 additions & 1 deletion Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import ProjectDescription

let project = Project(
name: "megabox",
packages: [
.package(url: "https://github.com/kakao/kakao-ios-sdk", from: "2.20.0"),
.package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.8.0")
],
targets: [
.target(
name: "megabox",
Expand All @@ -24,14 +28,47 @@ let project = Project(
"Pretendard-Regular.otf",
"Pretendard-SemiBold.otf",
"Pretendard-Thin.otf"
],

// Secret.xcconfig 키 사용
"KAKAO_NATIVE_APP_KEY": "$(KAKAO_NATIVE_APP_KEY)",

// 카카오 로그인용 URL Scheme 등록
"CFBundleURLTypes": [
[
"CFBundleURLSchemes": ["kakao$(KAKAO_NATIVE_APP_KEY)"]
]
],

// 카카오 SDK가 외부 앱을 열 수 있게 허용
"LSApplicationQueriesSchemes": [
"kakaokompassauth",
"kakaolink"
]
]
),
buildableFolders: [
"megabox/Sources",
"megabox/Resources",
],
dependencies: []
dependencies: [
.package(product: "KakaoSDKCommon"),
.package(product: "KakaoSDKAuth"),
.package(product: "KakaoSDKUser"),
.package(product: "Alamofire")
],

// xcconfig 연결
settings: .settings(
base: [
"OTHER_SWIFT_FLAGS": "-DDEBUG"
],
configurations: [
// Secret.xcconfig 연결
.debug(name: "Debug", xcconfig: "./megabox/Resources/Secret/Secret.xcconfig"),
.release(name: "Release", xcconfig: "./megabox/Resources/Secret/Secret.xcconfig")
]
)
),
.target(
name: "megaboxTests",
Expand Down
71 changes: 71 additions & 0 deletions megabox.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
objectVersion = 70;
objects = {

/* Begin PBXBuildFile section */
1C39AFCEC0A9B6DE7B156A6A /* KakaoSDKUser in Frameworks */ = {isa = PBXBuildFile; productRef = 0E54DCF0B8D4BA3D7D76E461 /* KakaoSDKUser */; };
33FE1AAB9E90978EB0B68B23 /* KakaoSDKAuth in Frameworks */ = {isa = PBXBuildFile; productRef = D00B2BA63ADCF363F9C89B55 /* KakaoSDKAuth */; };
A3F8D55EE960672101CABED8 /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = EE94CB5FE1A59E17DE90F38A /* Alamofire */; };
DA03228E240E5C5472DE4742 /* KakaoSDKCommon in Frameworks */ = {isa = PBXBuildFile; productRef = 3325E827733F1870F34F1F94 /* KakaoSDKCommon */; };
E3BF9CFEC5D98C1A4CF20187 /* TuistBundle+Megabox.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB45D5E01F2BFC1A6AB653F6 /* TuistBundle+Megabox.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
8837CD7A1D909152C3B592D5 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
Expand Down Expand Up @@ -43,6 +51,7 @@
2BDDA1D2F6458E30323A05E7 /* megaboxTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "megaboxTests-Info.plist"; sourceTree = "<group>"; };
BD44B1395767484FD2C78AE0 /* megaboxTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = megaboxTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
C1FE0491C1C7A83A5D01373E /* megabox.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = megabox.app; sourceTree = BUILT_PRODUCTS_DIR; };
CB45D5E01F2BFC1A6AB653F6 /* TuistBundle+Megabox.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "TuistBundle+Megabox.swift"; sourceTree = "<group>"; };
E6D1D2FA149FE294E6CBD89D /* megabox-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "megabox-Info.plist"; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand All @@ -57,6 +66,10 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
DA03228E240E5C5472DE4742 /* KakaoSDKCommon in Frameworks */,
33FE1AAB9E90978EB0B68B23 /* KakaoSDKAuth in Frameworks */,
1C39AFCEC0A9B6DE7B156A6A /* KakaoSDKUser in Frameworks */,
A3F8D55EE960672101CABED8 /* Alamofire in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -70,6 +83,14 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
0AE3DD2CC8948F6F6D70B01D /* Sources */ = {
isa = PBXGroup;
children = (
CB45D5E01F2BFC1A6AB653F6 /* TuistBundle+Megabox.swift */,
);
path = Sources;
sourceTree = "<group>";
};
0D19F4DA33D004128909F5EB = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -110,6 +131,7 @@
isa = PBXGroup;
children = (
59C62F6E03885E77D562E1C8 /* InfoPlists */,
0AE3DD2CC8948F6F6D70B01D /* Sources */,
);
path = Derived;
sourceTree = "<group>";
Expand Down Expand Up @@ -169,6 +191,10 @@
);
name = megabox;
packageProductDependencies = (
3325E827733F1870F34F1F94 /* KakaoSDKCommon */,
D00B2BA63ADCF363F9C89B55 /* KakaoSDKAuth */,
0E54DCF0B8D4BA3D7D76E461 /* KakaoSDKUser */,
EE94CB5FE1A59E17DE90F38A /* Alamofire */,
);
productName = megabox;
productReference = C1FE0491C1C7A83A5D01373E /* megabox.app */;
Expand Down Expand Up @@ -196,6 +222,10 @@
en,
);
mainGroup = 0D19F4DA33D004128909F5EB;
packageReferences = (
C6CD5CE48056BC6D353A43CF /* XCRemoteSwiftPackageReference "Alamofire" */,
E291957838B5BD9C398FDF11 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */,
);
productRefGroup = B92C82379AC30C9C0D6329B2 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -235,6 +265,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E3BF9CFEC5D98C1A4CF20187 /* TuistBundle+Megabox.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -262,6 +293,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_SWIFT_FLAGS = "-DDEBUG";
PRODUCT_BUNDLE_IDENTIFIER = dev.tuist.megabox;
PRODUCT_NAME = megabox;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -313,6 +345,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_SWIFT_FLAGS = "-DDEBUG";
PRODUCT_BUNDLE_IDENTIFIER = dev.tuist.megabox;
PRODUCT_NAME = megabox;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -497,6 +530,44 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
C6CD5CE48056BC6D353A43CF /* XCRemoteSwiftPackageReference "Alamofire" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/Alamofire/Alamofire.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 5.8.0;
};
};
E291957838B5BD9C398FDF11 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/kakao/kakao-ios-sdk";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 2.20.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
0E54DCF0B8D4BA3D7D76E461 /* KakaoSDKUser */ = {
isa = XCSwiftPackageProductDependency;
productName = KakaoSDKUser;
};
3325E827733F1870F34F1F94 /* KakaoSDKCommon */ = {
isa = XCSwiftPackageProductDependency;
productName = KakaoSDKCommon;
};
D00B2BA63ADCF363F9C89B55 /* KakaoSDKAuth */ = {
isa = XCSwiftPackageProductDependency;
productName = KakaoSDKAuth;
};
EE94CB5FE1A59E17DE90F38A /* Alamofire */ = {
isa = XCSwiftPackageProductDependency;
productName = Alamofire;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = D0ABC90962FFD8356ADE03F1 /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"data" : [
{
"filename" : "MovieSchedule.json",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading