Skip to content

Commit

Permalink
Merge pull request #833 from Iterable/chore/update-project-to-default…
Browse files Browse the repository at this point in the history
…-settings

[MOB-9622] Sample App code cleanup
  • Loading branch information
joaodordio authored Sep 24, 2024
2 parents 89a68e9 + ecf46fe commit 4e08441
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion sample-apps/objc-sample-app/objc-sample-app/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ - (BOOL)handleIterableURL:(NSURL *)url context:(IterableActionContext *)context
- (BOOL)handleIterableCustomAction:(IterableAction *)action context:(IterableActionContext *)context {
if ([action.type isEqualToString:@"handleFindCoffee"]) {
if (action.userInput != nil) {
NSString *urlString = [[NSString alloc] initWithFormat:@"https://majumder.me/coffee?q=%@", action.userInput];
NSString *urlString = [[NSString alloc] initWithFormat:@"https://example.com/coffee?q=%@", action.userInput];
NSURL *url = [[NSURL alloc] initWithString:urlString];
return [DeepLinkHandler handleURL:url];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:majumder.me</string>
<string>applinks:links.majumder.me</string>
<string>applinks:example.com</string>
<string>applinks:links.example.com</string>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,13 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "swift-sample-app/swift-sample-app.entitlements";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = BP98Z28R86;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "swift-sample-app/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "iterable.swift-sample-app";
PRODUCT_BUNDLE_IDENTIFIER = "com.example.iterable.swift-sample-app";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -508,13 +508,13 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "swift-sample-app/swift-sample-app.entitlements";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = BP98Z28R86;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "swift-sample-app/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "iterable.swift-sample-app";
PRODUCT_BUNDLE_IDENTIFIER = "com.example.iterable.swift-sample-app";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -525,14 +525,14 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = BP98Z28R86;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "swift-sample-app-notification-extension/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "iterable.swift-sample-app.swift-sample-app-notification-extension";
PRODUCT_BUNDLE_IDENTIFIER = "com.example.iterable.swift-sample-app.swift-sample-app-notification-extension";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
Expand All @@ -544,14 +544,14 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = BP98Z28R86;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "swift-sample-app-notification-extension/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "iterable.swift-sample-app.swift-sample-app-notification-extension";
PRODUCT_BUNDLE_IDENTIFIER = "com.example.iterable.swift-sample-app.swift-sample-app-notification-extension";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ extension AppDelegate: IterableCustomActionDelegate {
func handle(iterableCustomAction action: IterableAction, inContext _: IterableActionContext) -> Bool {
if action.type == "handleFindCoffee" {
if let query = action.userInput {
return DeepLinkHandler.handle(url: URL(string: "https://majumder.me/coffee?q=\(query)")!)
return DeepLinkHandler.handle(url: URL(string: "https://example.com/coffee?q=\(query)")!)
}
}
return false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:majumder.me</string>
<string>applinks:links.majumder.me</string>
<string>applinks:example.com</string>
<string>applinks:links.example.com</string>
</array>
</dict>
</plist>

0 comments on commit 4e08441

Please sign in to comment.