{"action":"created","comment":{"url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/comments/42316194","id":42316194,"diff_hunk":"@@ -0,0 +1,137 @@\n+//\n+//  BranchUniversalObject.m\n+//  Branch-TestBed\n+//\n+//  Created by Derrick Staten on 10/16/15.\n+//  Copyright © 2015 Branch Metrics. All rights reserved.\n+//\n+\n+#import \"BranchUniversalObject.h\"\n+#import \"BNCError.h\"\n+#import \"BranchConstants.h\"\n+\n+@implementation BranchUniversalObject\n+\n+- (instancetype)initWithCanonicalIdentifier:(NSString *)canonicalIdentifier {\n+    if (self = [super init]) {\n+        self.canonicalIdentifier = canonicalIdentifier;\n+    }\n+    return self;\n+}\n+\n+- (instancetype)initWithTitle:(NSString *)title {\n+    if (self = [super init]) {\n+        self.title = title;\n+    }\n+    return self;\n+}\n+\n+- (void)registerView {\n+    Branch *branch = [Branch getCurrentInstanceIfAny];\n+    if (!branch) {","path":"Branch-SDK/Branch-SDK/BranchUniversalObject.m","position":31,"original_position":31,"commit_id":"53b365bf7fa30678763385735ab85877baf88db5","original_commit_id":"53b365bf7fa30678763385735ab85877baf88db5","user":{"login":"aaustin","id":1332632,"avatar_url":"https://avatars.githubusercontent.com/u/1332632?v=3","gravatar_id":"","url":"https://api.github.com/users/aaustin","html_url":"https://github.com/aaustin","followers_url":"https://api.github.com/users/aaustin/followers","following_url":"https://api.github.com/users/aaustin/following{/other_user}","gists_url":"https://api.github.com/users/aaustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaustin/subscriptions","organizations_url":"https://api.github.com/users/aaustin/orgs","repos_url":"https://api.github.com/users/aaustin/repos","events_url":"https://api.github.com/users/aaustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaustin/received_events","type":"User","site_admin":false},"body":"All of our other methods will automatically init branch if its not done so by the developer. I think we should take that same course here and create the singleton automatically for the developer. You already have the logic to call in it automatically anyways.","created_at":"2015-10-18T01:45:41Z","updated_at":"2015-10-18T01:45:41Z","html_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pull/206#discussion_r42316194","pull_request_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/206","_links":{"self":{"href":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/comments/42316194"},"html":{"href":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pull/206#discussion_r42316194"},"pull_request":{"href":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/206"}}},"pull_request":{"url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/206","id":47981625,"html_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pull/206","diff_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pull/206.diff","patch_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pull/206.patch","issue_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues/206","number":206,"state":"open","locked":false,"title":"BranchUniversalObject ","user":{"login":"derrickstaten","id":5950251,"avatar_url":"https://avatars.githubusercontent.com/u/5950251?v=3","gravatar_id":"","url":"https://api.github.com/users/derrickstaten","html_url":"https://github.com/derrickstaten","followers_url":"https://api.github.com/users/derrickstaten/followers","following_url":"https://api.github.com/users/derrickstaten/following{/other_user}","gists_url":"https://api.github.com/users/derrickstaten/gists{/gist_id}","starred_url":"https://api.github.com/users/derrickstaten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derrickstaten/subscriptions","organizations_url":"https://api.github.com/users/derrickstaten/orgs","repos_url":"https://api.github.com/users/derrickstaten/repos","events_url":"https://api.github.com/users/derrickstaten/events{/privacy}","received_events_url":"https://api.github.com/users/derrickstaten/received_events","type":"User","site_admin":false},"body":"@aaustin @sojanpr @Sarkar first commit, still need:\r\n- [ ] share sheet\r\n- [ ] core spotlight indexing\r\n- [ ] test coverage\r\n- [ ] more manual testing to find edge cases","created_at":"2015-10-17T07:24:20Z","updated_at":"2015-10-18T01:45:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8dd9dd75e3b3f31c54d455b5255f9922d7e296b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/206/commits","review_comments_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/206/comments","review_comment_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues/206/comments","statuses_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/statuses/53b365bf7fa30678763385735ab85877baf88db5","head":{"label":"BranchMetrics:branch-universal-obj","ref":"branch-universal-obj","sha":"53b365bf7fa30678763385735ab85877baf88db5","user":{"login":"BranchMetrics","id":7772941,"avatar_url":"https://avatars.githubusercontent.com/u/7772941?v=3","gravatar_id":"","url":"https://api.github.com/users/BranchMetrics","html_url":"https://github.com/BranchMetrics","followers_url":"https://api.github.com/users/BranchMetrics/followers","following_url":"https://api.github.com/users/BranchMetrics/following{/other_user}","gists_url":"https://api.github.com/users/BranchMetrics/gists{/gist_id}","starred_url":"https://api.github.com/users/BranchMetrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BranchMetrics/subscriptions","organizations_url":"https://api.github.com/users/BranchMetrics/orgs","repos_url":"https://api.github.com/users/BranchMetrics/repos","events_url":"https://api.github.com/users/BranchMetrics/events{/privacy}","received_events_url":"https://api.github.com/users/BranchMetrics/received_events","type":"Organization","site_admin":false},"repo":{"id":20539166,"name":"iOS-Deferred-Deep-Linking-SDK","full_name":"BranchMetrics/iOS-Deferred-Deep-Linking-SDK","owner":{"login":"BranchMetrics","id":7772941,"avatar_url":"https://avatars.githubusercontent.com/u/7772941?v=3","gravatar_id":"","url":"https://api.github.com/users/BranchMetrics","html_url":"https://github.com/BranchMetrics","followers_url":"https://api.github.com/users/BranchMetrics/followers","following_url":"https://api.github.com/users/BranchMetrics/following{/other_user}","gists_url":"https://api.github.com/users/BranchMetrics/gists{/gist_id}","starred_url":"https://api.github.com/users/BranchMetrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BranchMetrics/subscriptions","organizations_url":"https://api.github.com/users/BranchMetrics/orgs","repos_url":"https://api.github.com/users/BranchMetrics/repos","events_url":"https://api.github.com/users/BranchMetrics/events{/privacy}","received_events_url":"https://api.github.com/users/BranchMetrics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK","description":"The Branch Metrics iOS SDK for deferred and contextual mobile deep linking. Branch helps mobile apps grow with deep links / deeplinks that power referral systems, sharing links and invites with full attribution and analytics.","fork":false,"url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK","forks_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/forks","keys_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/teams","hooks_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/hooks","issue_events_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues/events{/number}","events_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/events","assignees_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/assignees{/user}","branches_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/branches{/branch}","tags_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/tags","blobs_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/statuses/{sha}","languages_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/languages","stargazers_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/stargazers","contributors_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/contributors","subscribers_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/subscribers","subscription_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/subscription","commits_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/contents/{+path}","compare_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/merges","archive_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/downloads","issues_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues{/number}","pulls_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls{/number}","milestones_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/milestones{/number}","notifications_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/labels{/name}","releases_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/releases{/id}","created_at":"2014-06-05T19:56:21Z","updated_at":"2015-10-08T13:01:50Z","pushed_at":"2015-10-17T07:25:26Z","git_url":"git://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK.git","ssh_url":"git@github.com:BranchMetrics/iOS-Deferred-Deep-Linking-SDK.git","clone_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK.git","svn_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK","homepage":"https://dev.branch.io/references/ios_sdk/","size":55325,"stargazers_count":75,"watchers_count":75,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":10,"forks":24,"open_issues":10,"watchers":75,"default_branch":"master"}},"base":{"label":"BranchMetrics:master","ref":"master","sha":"32a351c4651cdeb5e09100f9b532bceba8dd5298","user":{"login":"BranchMetrics","id":7772941,"avatar_url":"https://avatars.githubusercontent.com/u/7772941?v=3","gravatar_id":"","url":"https://api.github.com/users/BranchMetrics","html_url":"https://github.com/BranchMetrics","followers_url":"https://api.github.com/users/BranchMetrics/followers","following_url":"https://api.github.com/users/BranchMetrics/following{/other_user}","gists_url":"https://api.github.com/users/BranchMetrics/gists{/gist_id}","starred_url":"https://api.github.com/users/BranchMetrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BranchMetrics/subscriptions","organizations_url":"https://api.github.com/users/BranchMetrics/orgs","repos_url":"https://api.github.com/users/BranchMetrics/repos","events_url":"https://api.github.com/users/BranchMetrics/events{/privacy}","received_events_url":"https://api.github.com/users/BranchMetrics/received_events","type":"Organization","site_admin":false},"repo":{"id":20539166,"name":"iOS-Deferred-Deep-Linking-SDK","full_name":"BranchMetrics/iOS-Deferred-Deep-Linking-SDK","owner":{"login":"BranchMetrics","id":7772941,"avatar_url":"https://avatars.githubusercontent.com/u/7772941?v=3","gravatar_id":"","url":"https://api.github.com/users/BranchMetrics","html_url":"https://github.com/BranchMetrics","followers_url":"https://api.github.com/users/BranchMetrics/followers","following_url":"https://api.github.com/users/BranchMetrics/following{/other_user}","gists_url":"https://api.github.com/users/BranchMetrics/gists{/gist_id}","starred_url":"https://api.github.com/users/BranchMetrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BranchMetrics/subscriptions","organizations_url":"https://api.github.com/users/BranchMetrics/orgs","repos_url":"https://api.github.com/users/BranchMetrics/repos","events_url":"https://api.github.com/users/BranchMetrics/events{/privacy}","received_events_url":"https://api.github.com/users/BranchMetrics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK","description":"The Branch Metrics iOS SDK for deferred and contextual mobile deep linking. Branch helps mobile apps grow with deep links / deeplinks that power referral systems, sharing links and invites with full attribution and analytics.","fork":false,"url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK","forks_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/forks","keys_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/teams","hooks_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/hooks","issue_events_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues/events{/number}","events_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/events","assignees_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/assignees{/user}","branches_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/branches{/branch}","tags_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/tags","blobs_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/statuses/{sha}","languages_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/languages","stargazers_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/stargazers","contributors_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/contributors","subscribers_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/subscribers","subscription_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/subscription","commits_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/contents/{+path}","compare_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/merges","archive_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/downloads","issues_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues{/number}","pulls_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls{/number}","milestones_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/milestones{/number}","notifications_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/labels{/name}","releases_url":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/releases{/id}","created_at":"2014-06-05T19:56:21Z","updated_at":"2015-10-08T13:01:50Z","pushed_at":"2015-10-17T07:25:26Z","git_url":"git://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK.git","ssh_url":"git@github.com:BranchMetrics/iOS-Deferred-Deep-Linking-SDK.git","clone_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK.git","svn_url":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK","homepage":"https://dev.branch.io/references/ios_sdk/","size":55325,"stargazers_count":75,"watchers_count":75,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":10,"forks":24,"open_issues":10,"watchers":75,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/206"},"html":{"href":"https://github.com/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pull/206"},"issue":{"href":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues/206"},"comments":{"href":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/issues/206/comments"},"review_comments":{"href":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/206/comments"},"review_comment":{"href":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/pulls/206/commits"},"statuses":{"href":"https://api.github.com/repos/BranchMetrics/iOS-Deferred-Deep-Linking-SDK/statuses/53b365bf7fa30678763385735ab85877baf88db5"}}}}