Skip to content

Commit 8013ccc

Browse files
authored
chore: change host to new address (#137)
1 parent 9d5a316 commit 8013ccc

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Next
22

3+
- chore: change host to new address ([#137](https://github.com/PostHog/posthog-android/pull/137))
4+
35
## 3.3.0 - 2024-05-24
46

57
- feat: allow anonymous uuid generation to be customizable ([#132](https://github.com/PostHog/posthog-android/pull/132))

posthog/src/main/java/com/posthog/PostHogConfig.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public open class PostHogConfig(
2020
public val apiKey: String,
2121
/**
2222
* The PostHog Host
23-
* Defaults to https://app.posthog.com
23+
* Defaults to https://us.i.posthog.com
24+
* EU Host: https://eu.i.posthog.com
25+
*
2426
*/
2527
public val host: String = DEFAULT_HOST,
2628
/**
@@ -181,6 +183,6 @@ public open class PostHogConfig(
181183
}
182184

183185
public companion object {
184-
public const val DEFAULT_HOST: String = "https://app.posthog.com"
186+
public const val DEFAULT_HOST: String = "https://us.i.posthog.com"
185187
}
186188
}

posthog/src/test/java/com/posthog/PostHogConfigTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal class PostHogConfigTest {
1212

1313
@Test
1414
fun `host is set app posthog com by default`() {
15-
assertEquals("https://app.posthog.com", config.host)
15+
assertEquals("https://us.i.posthog.com", config.host)
1616
}
1717

1818
@Test

0 commit comments

Comments
 (0)