Skip to content

Commit 4aeb10d

Browse files
committed
[Feat] #193 - 개발용,상용 Share Extension 딥링크 분리
1 parent d75cf7c commit 4aeb10d

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Neki-iOS/APP/Sources/Application/AppCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ struct AppCoordinator {
112112
}
113113

114114
case let .onOpenURL(url):
115-
guard url.scheme == "neki" && url.host == "shareExtension" else { return .none }
115+
guard (url.scheme == "neki" || url.scheme == "neki-dev") && url.host == "shareExtension" else { return .none }
116116
guard let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
117117
let appGroupID = components.queryItems?.first(where: { $0.name == "appGroupID" })?.value
118118
else { return .none }

Neki-iOS/APP/Sources/Application/Neki_iOSApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct Neki_iOSApp: App {
2727
}
2828

2929
private func handleIncomingURL(_ url: URL) {
30-
if url.scheme == "neki" {
30+
if url.scheme == "neki" || url.scheme == "neki-dev" {
3131
store.send(.onOpenURL(url))
3232
return
3333
}

Neki-iOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
<key>CFBundleTypeRole</key>
2121
<string>Editor</string>
2222
<key>CFBundleURLName</key>
23-
<string>com.OneTen.Neki-iOS</string>
23+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
2424
<key>CFBundleURLSchemes</key>
2525
<array>
26-
<string>neki</string>
26+
<string>$(APP_URL_SCHEME)</string>
2727
</array>
2828
</dict>
2929
</array>

NekiShareExtension/Sources/Domain/Sources/Entities/ShareExtensionConfiguration.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ struct ShareExtensionConfiguration {
1818
init(bundle: Bundle = .main) {
1919
#if DEBUG
2020
self.appGroupID = "group.com.Neki-dev.Share-Extension"
21+
let scheme = "neki-dev"
2122
#else
2223
self.appGroupID = "group.com.OneTen.Neki-iOS.Share-Extension"
24+
let scheme = "neki"
2325
#endif
2426

25-
var components = URLComponents(string: "neki://shareExtension")
27+
var components = URLComponents(string: "\(scheme)://shareExtension")
2628
components?.queryItems = [URLQueryItem(name: "appGroupID", value: appGroupID)]
2729
self.deepLinkURL = components?.url
2830
}

0 commit comments

Comments
 (0)