{"action":"created","comment":{"url":"https://api.github.com/repos/segmentio/analytics-android/pulls/comments/28717583","id":28717583,"diff_hunk":"@@ -0,0 +1,66 @@\n+package com.segment.analytics.internal.integrations;\n+\n+import android.Manifest;\n+import android.content.Context;\n+import com.apptimize.Apptimize;\n+import com.segment.analytics.Traits;\n+import com.segment.analytics.ValueMap;\n+import com.segment.analytics.internal.AbstractIntegration;\n+import com.segment.analytics.internal.model.payloads.IdentifyPayload;\n+import com.segment.analytics.internal.model.payloads.ScreenPayload;\n+import com.segment.analytics.internal.model.payloads.TrackPayload;\n+import java.util.Map.Entry;\n+\n+import static com.segment.analytics.Analytics.LogLevel;\n+import static com.segment.analytics.internal.Utils.isNullOrEmpty;\n+\n+/**\n+ * Apptimize allows you to instantly update your native app without waiting for\n+ * App or Play Store approvals, and easily see if the change improved the app\n+ * with robust A/B testing analytics.\n+ *\n+ * @see <a href=\"http://www.apptimize.com/\">Apptimize</a>\n+ * @see <a href=\"https://segment.com/docs/integrations/apptimize/\">Apptimize Integration</a>\n+ */\n+public class ApptimizeIntegration extends AbstractIntegration<Void> {\n+  static final String APPTIMIZE_KEY = \"Apptimize\";\n+\n+  @Override public void initialize(Context context, ValueMap settings, LogLevel logLevel)\n+      throws IllegalStateException {\n+    Apptimize.setup(context, settings.getString(\"appkey\"));","path":"analytics-integrations/apptimize/src/main/java/com/segment/analytics/internal/ApptimizeIntegration.java","position":30,"original_position":30,"commit_id":"b8eae28390a18a4e7d2c048ab433b3e138367867","original_commit_id":"b8eae28390a18a4e7d2c048ab433b3e138367867","user":{"login":"confiscate","id":7370422,"avatar_url":"https://avatars.githubusercontent.com/u/7370422?v=3","gravatar_id":"","url":"https://api.github.com/users/confiscate","html_url":"https://github.com/confiscate","followers_url":"https://api.github.com/users/confiscate/followers","following_url":"https://api.github.com/users/confiscate/following{/other_user}","gists_url":"https://api.github.com/users/confiscate/gists{/gist_id}","starred_url":"https://api.github.com/users/confiscate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confiscate/subscriptions","organizations_url":"https://api.github.com/users/confiscate/orgs","repos_url":"https://api.github.com/users/confiscate/repos","events_url":"https://api.github.com/users/confiscate/events{/privacy}","received_events_url":"https://api.github.com/users/confiscate/received_events","type":"User","site_admin":false},"body":"no we don't have any other settings that need initialization","created_at":"2015-04-20T18:53:43Z","updated_at":"2015-04-20T18:53:43Z","html_url":"https://github.com/segmentio/analytics-android/pull/256#discussion_r28717583","pull_request_url":"https://api.github.com/repos/segmentio/analytics-android/pulls/256","_links":{"self":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/comments/28717583"},"html":{"href":"https://github.com/segmentio/analytics-android/pull/256#discussion_r28717583"},"pull_request":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/256"}}},"pull_request":{"url":"https://api.github.com/repos/segmentio/analytics-android/pulls/256","id":33517994,"html_url":"https://github.com/segmentio/analytics-android/pull/256","diff_url":"https://github.com/segmentio/analytics-android/pull/256.diff","patch_url":"https://github.com/segmentio/analytics-android/pull/256.patch","issue_url":"https://api.github.com/repos/segmentio/analytics-android/issues/256","number":256,"state":"closed","locked":false,"title":"Add Segment integration for Apptimize","user":{"login":"confiscate","id":7370422,"avatar_url":"https://avatars.githubusercontent.com/u/7370422?v=3","gravatar_id":"","url":"https://api.github.com/users/confiscate","html_url":"https://github.com/confiscate","followers_url":"https://api.github.com/users/confiscate/followers","following_url":"https://api.github.com/users/confiscate/following{/other_user}","gists_url":"https://api.github.com/users/confiscate/gists{/gist_id}","starred_url":"https://api.github.com/users/confiscate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confiscate/subscriptions","organizations_url":"https://api.github.com/users/confiscate/orgs","repos_url":"https://api.github.com/users/confiscate/repos","events_url":"https://api.github.com/users/confiscate/events{/privacy}","received_events_url":"https://api.github.com/users/confiscate/received_events","type":"User","site_admin":false},"body":"Add Segment integration for Apptimize","created_at":"2015-04-17T06:37:54Z","updated_at":"2015-04-20T18:53:43Z","closed_at":"2015-04-20T17:56:44Z","merged_at":null,"merge_commit_sha":"896f99a7fe3594ea3ed246255a9c109aaf0043ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/segmentio/analytics-android/pulls/256/commits","review_comments_url":"https://api.github.com/repos/segmentio/analytics-android/pulls/256/comments","review_comment_url":"https://api.github.com/repos/segmentio/analytics-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/segmentio/analytics-android/issues/256/comments","statuses_url":"https://api.github.com/repos/segmentio/analytics-android/statuses/b8eae28390a18a4e7d2c048ab433b3e138367867","head":{"label":"confiscate:master","ref":"master","sha":"b8eae28390a18a4e7d2c048ab433b3e138367867","user":{"login":"confiscate","id":7370422,"avatar_url":"https://avatars.githubusercontent.com/u/7370422?v=3","gravatar_id":"","url":"https://api.github.com/users/confiscate","html_url":"https://github.com/confiscate","followers_url":"https://api.github.com/users/confiscate/followers","following_url":"https://api.github.com/users/confiscate/following{/other_user}","gists_url":"https://api.github.com/users/confiscate/gists{/gist_id}","starred_url":"https://api.github.com/users/confiscate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confiscate/subscriptions","organizations_url":"https://api.github.com/users/confiscate/orgs","repos_url":"https://api.github.com/users/confiscate/repos","events_url":"https://api.github.com/users/confiscate/events{/privacy}","received_events_url":"https://api.github.com/users/confiscate/received_events","type":"User","site_admin":false},"repo":{"id":34100634,"name":"analytics-android","full_name":"confiscate/analytics-android","owner":{"login":"confiscate","id":7370422,"avatar_url":"https://avatars.githubusercontent.com/u/7370422?v=3","gravatar_id":"","url":"https://api.github.com/users/confiscate","html_url":"https://github.com/confiscate","followers_url":"https://api.github.com/users/confiscate/followers","following_url":"https://api.github.com/users/confiscate/following{/other_user}","gists_url":"https://api.github.com/users/confiscate/gists{/gist_id}","starred_url":"https://api.github.com/users/confiscate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confiscate/subscriptions","organizations_url":"https://api.github.com/users/confiscate/orgs","repos_url":"https://api.github.com/users/confiscate/repos","events_url":"https://api.github.com/users/confiscate/events{/privacy}","received_events_url":"https://api.github.com/users/confiscate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/confiscate/analytics-android","description":"The hassle-free way to add analytics to your Android app.","fork":true,"url":"https://api.github.com/repos/confiscate/analytics-android","forks_url":"https://api.github.com/repos/confiscate/analytics-android/forks","keys_url":"https://api.github.com/repos/confiscate/analytics-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/confiscate/analytics-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/confiscate/analytics-android/teams","hooks_url":"https://api.github.com/repos/confiscate/analytics-android/hooks","issue_events_url":"https://api.github.com/repos/confiscate/analytics-android/issues/events{/number}","events_url":"https://api.github.com/repos/confiscate/analytics-android/events","assignees_url":"https://api.github.com/repos/confiscate/analytics-android/assignees{/user}","branches_url":"https://api.github.com/repos/confiscate/analytics-android/branches{/branch}","tags_url":"https://api.github.com/repos/confiscate/analytics-android/tags","blobs_url":"https://api.github.com/repos/confiscate/analytics-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/confiscate/analytics-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/confiscate/analytics-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/confiscate/analytics-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/confiscate/analytics-android/statuses/{sha}","languages_url":"https://api.github.com/repos/confiscate/analytics-android/languages","stargazers_url":"https://api.github.com/repos/confiscate/analytics-android/stargazers","contributors_url":"https://api.github.com/repos/confiscate/analytics-android/contributors","subscribers_url":"https://api.github.com/repos/confiscate/analytics-android/subscribers","subscription_url":"https://api.github.com/repos/confiscate/analytics-android/subscription","commits_url":"https://api.github.com/repos/confiscate/analytics-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/confiscate/analytics-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/confiscate/analytics-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/confiscate/analytics-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/confiscate/analytics-android/contents/{+path}","compare_url":"https://api.github.com/repos/confiscate/analytics-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/confiscate/analytics-android/merges","archive_url":"https://api.github.com/repos/confiscate/analytics-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/confiscate/analytics-android/downloads","issues_url":"https://api.github.com/repos/confiscate/analytics-android/issues{/number}","pulls_url":"https://api.github.com/repos/confiscate/analytics-android/pulls{/number}","milestones_url":"https://api.github.com/repos/confiscate/analytics-android/milestones{/number}","notifications_url":"https://api.github.com/repos/confiscate/analytics-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/confiscate/analytics-android/labels{/name}","releases_url":"https://api.github.com/repos/confiscate/analytics-android/releases{/id}","created_at":"2015-04-17T06:34:42Z","updated_at":"2015-04-18T07:47:04Z","pushed_at":"2015-04-18T07:47:03Z","git_url":"git://github.com/confiscate/analytics-android.git","ssh_url":"git@github.com:confiscate/analytics-android.git","clone_url":"https://github.com/confiscate/analytics-android.git","svn_url":"https://github.com/confiscate/analytics-android","homepage":"https://segment.com/docs/libraries/android/","size":32868,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"segmentio:master","ref":"master","sha":"84a6058612894d82b1aca6214bf47000a540e006","user":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"repo":{"id":9185941,"name":"analytics-android","full_name":"segmentio/analytics-android","owner":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segmentio/analytics-android","description":"The hassle-free way to add analytics to your Android app.","fork":false,"url":"https://api.github.com/repos/segmentio/analytics-android","forks_url":"https://api.github.com/repos/segmentio/analytics-android/forks","keys_url":"https://api.github.com/repos/segmentio/analytics-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segmentio/analytics-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segmentio/analytics-android/teams","hooks_url":"https://api.github.com/repos/segmentio/analytics-android/hooks","issue_events_url":"https://api.github.com/repos/segmentio/analytics-android/issues/events{/number}","events_url":"https://api.github.com/repos/segmentio/analytics-android/events","assignees_url":"https://api.github.com/repos/segmentio/analytics-android/assignees{/user}","branches_url":"https://api.github.com/repos/segmentio/analytics-android/branches{/branch}","tags_url":"https://api.github.com/repos/segmentio/analytics-android/tags","blobs_url":"https://api.github.com/repos/segmentio/analytics-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segmentio/analytics-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segmentio/analytics-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/segmentio/analytics-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segmentio/analytics-android/statuses/{sha}","languages_url":"https://api.github.com/repos/segmentio/analytics-android/languages","stargazers_url":"https://api.github.com/repos/segmentio/analytics-android/stargazers","contributors_url":"https://api.github.com/repos/segmentio/analytics-android/contributors","subscribers_url":"https://api.github.com/repos/segmentio/analytics-android/subscribers","subscription_url":"https://api.github.com/repos/segmentio/analytics-android/subscription","commits_url":"https://api.github.com/repos/segmentio/analytics-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/segmentio/analytics-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/segmentio/analytics-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/segmentio/analytics-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/segmentio/analytics-android/contents/{+path}","compare_url":"https://api.github.com/repos/segmentio/analytics-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segmentio/analytics-android/merges","archive_url":"https://api.github.com/repos/segmentio/analytics-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segmentio/analytics-android/downloads","issues_url":"https://api.github.com/repos/segmentio/analytics-android/issues{/number}","pulls_url":"https://api.github.com/repos/segmentio/analytics-android/pulls{/number}","milestones_url":"https://api.github.com/repos/segmentio/analytics-android/milestones{/number}","notifications_url":"https://api.github.com/repos/segmentio/analytics-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segmentio/analytics-android/labels{/name}","releases_url":"https://api.github.com/repos/segmentio/analytics-android/releases{/id}","created_at":"2013-04-03T03:28:33Z","updated_at":"2015-04-20T17:32:31Z","pushed_at":"2015-04-20T18:34:17Z","git_url":"git://github.com/segmentio/analytics-android.git","ssh_url":"git@github.com:segmentio/analytics-android.git","clone_url":"https://github.com/segmentio/analytics-android.git","svn_url":"https://github.com/segmentio/analytics-android","homepage":"https://segment.com/docs/libraries/android/","size":39118,"stargazers_count":89,"watchers_count":89,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":13,"forks":36,"open_issues":13,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/256"},"html":{"href":"https://github.com/segmentio/analytics-android/pull/256"},"issue":{"href":"https://api.github.com/repos/segmentio/analytics-android/issues/256"},"comments":{"href":"https://api.github.com/repos/segmentio/analytics-android/issues/256/comments"},"review_comments":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/256/comments"},"review_comment":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/256/commits"},"statuses":{"href":"https://api.github.com/repos/segmentio/analytics-android/statuses/b8eae28390a18a4e7d2c048ab433b3e138367867"}}}}