Skip to content

Commit

Permalink
fix: const defaultHost was renamed to DEFAULT_HOST and broke the Andr…
Browse files Browse the repository at this point in the history
…oid build (#98)
  • Loading branch information
marandaneto authored Apr 11, 2024
1 parent 0a64051 commit 8457972
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Next

- fix: const `defaultHost` was renamed to `DEFAULT_HOST` and broke the Android build ([#98](https://github.com/PostHog/posthog-flutter/issues/98))

## 4.4.0

- chore: Allow overriding the route filtering using a ctor param `routeFilter` ([#95](https://github.com/PostHog/posthog-flutter/pull/95))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PosthogFlutterPlugin : FlutterPlugin, MethodCallHandler {
return
}

val host = bundle.getString("com.posthog.posthog.POSTHOG_HOST", PostHogConfig.defaultHost)
val host = bundle.getString("com.posthog.posthog.POSTHOG_HOST", PostHogConfig.DEFAULT_HOST)
val trackApplicationLifecycleEvents = bundle.getBoolean("com.posthog.posthog.TRACK_APPLICATION_LIFECYCLE_EVENTS", false)
val enableDebug = bundle.getBoolean("com.posthog.posthog.DEBUG", false)

Expand Down

0 comments on commit 8457972

Please sign in to comment.